Home
last modified time | relevance | path

Searched refs:afi (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java265 final AudioFocusInfo afi = fr.toAudioFocusInfo(); in removeFocusStackEntry() local
266 afi.clearLossReceived(); in removeFocusStackEntry()
267 notifyExtPolicyFocusLoss_syncAf(afi, false); in removeFocusStackEntry()
542 void notifyExtPolicyFocusGrant_syncAf(AudioFocusInfo afi, int requestResult) { in notifyExtPolicyFocusGrant_syncAf() argument
546 pcb.notifyAudioFocusGrant(afi, requestResult); in notifyExtPolicyFocusGrant_syncAf()
557 void notifyExtPolicyFocusLoss_syncAf(AudioFocusInfo afi, boolean wasDispatched) { in notifyExtPolicyFocusLoss_syncAf() argument
561 pcb.notifyAudioFocusLoss(afi, wasDispatched); in notifyExtPolicyFocusLoss_syncAf()
579 boolean notifyExtFocusPolicyFocusRequest_syncAf(AudioFocusInfo afi, in notifyExtFocusPolicyFocusRequest_syncAf() argument
582 Log.v(TAG, "notifyExtFocusPolicyFocusRequest client="+afi.getClientId() in notifyExtFocusPolicyFocusRequest_syncAf()
586 afi.setGen(mExtFocusChangeCounter++); in notifyExtFocusPolicyFocusRequest_syncAf()
[all …]
DFocusRequester.java109 FocusRequester(AudioFocusInfo afi, IAudioFocusDispatcher afl, in FocusRequester() argument
111 mAttributes = afi.getAttributes(); in FocusRequester()
112 mClientId = afi.getClientId(); in FocusRequester()
113 mPackageName = afi.getPackageName(); in FocusRequester()
114 mCallingUid = afi.getClientUid(); in FocusRequester()
115 mFocusGainRequest = afi.getGainRequest(); in FocusRequester()
118 mGrantFlags = afi.getFlags(); in FocusRequester()
119 mSdkTarget = afi.getSdkTarget(); in FocusRequester()
DAudioService.java7649 public int dispatchFocusChange(AudioFocusInfo afi, int focusChange, IAudioPolicyCallback pcb) { in dispatchFocusChange() argument
7650 if (afi == null) { in dispatchFocusChange()
7660 return mMediaFocusControl.dispatchFocusChange(afi, focusChange); in dispatchFocusChange()
7664 public void setFocusRequestResultFromExtPolicy(AudioFocusInfo afi, int requestResult, in setFocusRequestResultFromExtPolicy() argument
7666 if (afi == null) { in setFocusRequestResultFromExtPolicy()
7676 mMediaFocusControl.setFocusRequestResultFromExtPolicy(afi, requestResult); in setFocusRequestResultFromExtPolicy()
/frameworks/base/media/java/android/media/audiopolicy/
DIAudioPolicyCallback.aidl26 void notifyAudioFocusGrant(in AudioFocusInfo afi, int requestResult); in notifyAudioFocusGrant() argument
27 void notifyAudioFocusLoss(in AudioFocusInfo afi, boolean wasNotified); in notifyAudioFocusLoss() argument
29 void notifyAudioFocusRequest(in AudioFocusInfo afi, int requestResult); in notifyAudioFocusRequest() argument
30 void notifyAudioFocusAbandon(in AudioFocusInfo afi); in notifyAudioFocusAbandon() argument
DAudioPolicy.java750 public void onAudioFocusGrant(AudioFocusInfo afi, int requestResult) {} in onAudioFocusGrant() argument
751 public void onAudioFocusLoss(AudioFocusInfo afi, boolean wasNotified) {} in onAudioFocusLoss() argument
761 public void onAudioFocusRequest(AudioFocusInfo afi, int requestResult) {} in onAudioFocusRequest() argument
769 public void onAudioFocusAbandon(AudioFocusInfo afi) {} in onAudioFocusAbandon() argument
806 public void notifyAudioFocusGrant(AudioFocusInfo afi, int requestResult) {
807 sendMsg(MSG_FOCUS_GRANT, afi, requestResult);
809 Log.v(TAG, "notifyAudioFocusGrant: pack=" + afi.getPackageName() + " client="
810 + afi.getClientId() + "reqRes=" + requestResult);
814 public void notifyAudioFocusLoss(AudioFocusInfo afi, boolean wasNotified) {
815 sendMsg(MSG_FOCUS_LOSS, afi, wasNotified ? 1 : 0);
[all …]
/frameworks/base/media/java/android/media/
DAudioFocusInfo.java200 final AudioFocusInfo afi = new AudioFocusInfo(
210 afi.setGen(in.readLong());
211 return afi;
DIAudioService.aidl239 int dispatchFocusChange(in AudioFocusInfo afi, in int focusChange, in dispatchFocusChange() argument
250 oneway void setFocusRequestResultFromExtPolicy(in AudioFocusInfo afi, int requestResult, in setFocusRequestResultFromExtPolicy() argument
DAudioManager.java3090 public void setFocusRequestResult(@NonNull AudioFocusInfo afi, in setFocusRequestResult() argument
3092 if (afi == null) { in setFocusRequestResult()
3100 service.setFocusRequestResultFromExtPolicy(afi, requestResult, ap.cb()); in setFocusRequestResult()
3130 public int dispatchAudioFocusChange(@NonNull AudioFocusInfo afi, int focusChange, in dispatchAudioFocusChange() argument
3132 if (afi == null) { in dispatchAudioFocusChange()
3140 return service.dispatchFocusChange(afi, focusChange, ap.cb()); in dispatchAudioFocusChange()