Methods Summary |
---|
void | clearLossReceived() mLossReceived = 0;
|
public int | describeContents()
return 0;
|
public boolean | equals(java.lang.Object obj)
if (this == obj)
return true;
if (obj == null)
return false;
if (getClass() != obj.getClass())
return false;
AudioFocusInfo other = (AudioFocusInfo) obj;
if (!mAttributes.equals(other.mAttributes)) {
return false;
}
if (!mClientId.equals(other.mClientId)) {
return false;
}
if (!mPackageName.equals(other.mPackageName)) {
return false;
}
if (mGainRequest != other.mGainRequest) {
return false;
}
if (mLossReceived != other.mLossReceived) {
return false;
}
if (mFlags != other.mFlags) {
return false;
}
return true;
|
public AudioAttributes | getAttributes()The audio attributes for the audio focus request. return mAttributes;
|
public java.lang.String | getClientId() return mClientId;
|
public int | getFlags()The flags set in the audio focus request. return mFlags;
|
public int | getGainRequest()The type of audio focus gain request. return mGainRequest;
|
public int | getLossReceived()The type of audio focus loss that was received by the
{@link AudioManager.OnAudioFocusChangeListener} if one was set. return mLossReceived;
|
public java.lang.String | getPackageName() return mPackageName;
|
public int | hashCode()
return Objects.hash(mAttributes, mClientId, mPackageName, mGainRequest, mFlags);
|
public void | writeToParcel(android.os.Parcel dest, int flags)
mAttributes.writeToParcel(dest, flags);
dest.writeString(mClientId);
dest.writeString(mPackageName);
dest.writeInt(mGainRequest);
dest.writeInt(mLossReceived);
dest.writeInt(mFlags);
|