public class AudioPolicyConfig extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<AudioPolicyConfig> |
CREATOR |
protected int |
mDuckingPolicy |
protected ArrayList<AudioMix> |
mMixes |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_ELIDE_DUPLICATES, PARCELABLE_WRITE_RETURN_VALUE
Modifier | Constructor and Description |
---|---|
protected |
AudioPolicyConfig(AudioPolicyConfig conf) |
Modifier and Type | Method and Description |
---|---|
void |
addMix(AudioMix mix)
Add an
AudioMix to be part of the audio policy being built. |
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation.
|
ArrayList<AudioMix> |
getMixes() |
protected String |
getRegistration() |
int |
hashCode()
Returns a hash code value for the object.
|
protected void |
setRegistration(String regId) |
String |
toLogFriendlyString() |
void |
writeToParcel(Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
protected int mDuckingPolicy
public static final Parcelable.Creator<AudioPolicyConfig> CREATOR
protected AudioPolicyConfig(AudioPolicyConfig conf)
public void addMix(AudioMix mix) throws IllegalArgumentException
AudioMix
to be part of the audio policy being built.mix
- a non-null AudioMix
to be part of the audio policy.IllegalArgumentException
public int hashCode()
Object
HashMap
.
The general contract of hashCode
is:
hashCode
method
must consistently return the same integer, provided no information
used in equals
comparisons on the object is modified.
This integer need not remain consistent from one execution of an
application to another execution of the same application.
equals(Object)
method, then calling the hashCode
method on each of
the two objects must produce the same integer result.
Object.equals(java.lang.Object)
method, then calling the hashCode
method on each of the
two objects must produce distinct integer results. However, the
programmer should be aware that producing distinct integer results
for unequal objects may improve the performance of hash tables.
As much as is reasonably practical, the hashCode method defined by
class Object
does return distinct integers for distinct
objects. (This is typically implemented by converting the internal
address of the object into an integer, but this implementation
technique is not required by the
JavaTM programming language.)
hashCode
in class Object
Object.equals(java.lang.Object)
,
System.identityHashCode(java.lang.Object)
public int describeContents()
Parcelable
Parcelable.writeToParcel(Parcel, int)
,
the return value of this method must include the
Parcelable.CONTENTS_FILE_DESCRIPTOR
bit.describeContents
in interface Parcelable
Parcelable.CONTENTS_FILE_DESCRIPTOR
public void writeToParcel(Parcel dest, int flags)
Parcelable
writeToParcel
in interface Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.public String toLogFriendlyString()
protected void setRegistration(String regId)
protected String getRegistration()