Home
last modified time | relevance | path

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

/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.java1094 public void onAudioFocusGrant(AudioFocusInfo afi, int requestResult) {} in onAudioFocusGrant() argument
1095 public void onAudioFocusLoss(AudioFocusInfo afi, boolean wasNotified) {} in onAudioFocusLoss() argument
1105 public void onAudioFocusRequest(AudioFocusInfo afi, int requestResult) {} in onAudioFocusRequest() argument
1113 public void onAudioFocusAbandon(AudioFocusInfo afi) {} in onAudioFocusAbandon() argument
1145 public void notifyAudioFocusGrant(AudioFocusInfo afi, int requestResult) {
1146 sendMsg(MSG_FOCUS_GRANT, afi, requestResult);
1148 Log.v(TAG, "notifyAudioFocusGrant: pack=" + afi.getPackageName() + " client="
1149 + afi.getClientId() + "reqRes=" + requestResult);
1153 public void notifyAudioFocusLoss(AudioFocusInfo afi, boolean wasNotified) {
1154 sendMsg(MSG_FOCUS_LOSS, afi, wasNotified ? 1 : 0);
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DMediaFocusControl.java806 void notifyExtPolicyFocusGrant_syncAf(AudioFocusInfo afi, int requestResult) { in notifyExtPolicyFocusGrant_syncAf() argument
810 pcb.notifyAudioFocusGrant(afi, requestResult); in notifyExtPolicyFocusGrant_syncAf()
821 void notifyExtPolicyFocusLoss_syncAf(AudioFocusInfo afi, boolean wasDispatched) { in notifyExtPolicyFocusLoss_syncAf() argument
825 pcb.notifyAudioFocusLoss(afi, wasDispatched); in notifyExtPolicyFocusLoss_syncAf()
843 boolean notifyExtFocusPolicyFocusRequest_syncAf(AudioFocusInfo afi, in notifyExtFocusPolicyFocusRequest_syncAf() argument
846 Log.v(TAG, "notifyExtFocusPolicyFocusRequest client="+afi.getClientId() in notifyExtFocusPolicyFocusRequest_syncAf()
850 afi.setGen(mExtFocusChangeCounter++); in notifyExtFocusPolicyFocusRequest_syncAf()
852 final FocusRequester existingFr = mFocusOwnersForFocusPolicy.get(afi.getClientId()); in notifyExtFocusPolicyFocusRequest_syncAf()
871 mFocusOwnersForFocusPolicy.put(afi.getClientId(), in notifyExtFocusPolicyFocusRequest_syncAf()
872 new FocusRequester(afi, fd, cb, hdlr, this)); in notifyExtFocusPolicyFocusRequest_syncAf()
[all …]
DFocusRequester.java120 FocusRequester(AudioFocusInfo afi, IAudioFocusDispatcher afl, in FocusRequester() argument
122 mAttributes = afi.getAttributes(); in FocusRequester()
123 mClientId = afi.getClientId(); in FocusRequester()
124 mPackageName = afi.getPackageName(); in FocusRequester()
125 mCallingUid = afi.getClientUid(); in FocusRequester()
126 mFocusGainRequest = afi.getGainRequest(); in FocusRequester()
130 mGrantFlags = afi.getFlags(); in FocusRequester()
131 mSdkTarget = afi.getSdkTarget(); in FocusRequester()
DAudioService.java13854 public int dispatchFocusChange(AudioFocusInfo afi, int focusChange, IAudioPolicyCallback pcb) { in dispatchFocusChange() argument
13855 if (afi == null) { in dispatchFocusChange()
13865 return mMediaFocusControl.dispatchFocusChange(afi, focusChange); in dispatchFocusChange()
13869 public void setFocusRequestResultFromExtPolicy(AudioFocusInfo afi, int requestResult, in setFocusRequestResultFromExtPolicy() argument
13871 if (afi == null) { in setFocusRequestResultFromExtPolicy()
13881 mMediaFocusControl.setFocusRequestResultFromExtPolicy(afi, requestResult); in setFocusRequestResultFromExtPolicy()
13890 public int dispatchFocusChangeWithFade(AudioFocusInfo afi, int focusChange, in dispatchFocusChangeWithFade() argument
13895 Objects.requireNonNull(afi, "AudioFocusInfo cannot be null"); in dispatchFocusChangeWithFade()
13912 int status = mMediaFocusControl.dispatchFocusChangeWithFade(afi, focusChange, in dispatchFocusChangeWithFade()
/frameworks/base/media/java/android/media/
DAudioFocusInfo.java198 final AudioFocusInfo afi = new AudioFocusInfo(
208 afi.setGen(in.readLong());
209 return afi;
DIAudioService.aidl405 int dispatchFocusChange(in AudioFocusInfo afi, in int focusChange, in dispatchFocusChange() argument
410 int dispatchFocusChangeWithFade(in AudioFocusInfo afi, in dispatchFocusChangeWithFade() argument
422 oneway void setFocusRequestResultFromExtPolicy(in AudioFocusInfo afi, int requestResult, in setFocusRequestResultFromExtPolicy() argument
DAudioManager.java5072 public void setFocusRequestResult(@NonNull AudioFocusInfo afi, in setFocusRequestResult() argument
5074 if (afi == null) { in setFocusRequestResult()
5082 service.setFocusRequestResultFromExtPolicy(afi, requestResult, ap.cb()); in setFocusRequestResult()
5111 public int dispatchAudioFocusChange(@NonNull AudioFocusInfo afi, int focusChange, in dispatchAudioFocusChange() argument
5113 if (afi == null) { in dispatchAudioFocusChange()
5121 return service.dispatchFocusChange(afi, focusChange, ap.cb()); in dispatchAudioFocusChange()
5175 public int dispatchAudioFocusChangeWithFade(@NonNull AudioFocusInfo afi, int focusChange, in dispatchAudioFocusChangeWithFade() argument
5178 Objects.requireNonNull(afi, "AudioFocusInfo cannot be null"); in dispatchAudioFocusChangeWithFade()
5184 return service.dispatchFocusChangeWithFade(afi, focusChange, ap.cb(), otherActiveAfis, in dispatchAudioFocusChangeWithFade()
/frameworks/layoutlib/bridge/src/android/media/
DAudioManager.java325 public void setFocusRequestResult(AudioFocusInfo afi, int requestResult, AudioPolicy ap) { } in setFocusRequestResult() argument
327 public int dispatchAudioFocusChange(AudioFocusInfo afi, int focusChange, AudioPolicy ap) { in dispatchAudioFocusChange() argument