/frameworks/base/media/java/android/media/audiopolicy/ |
D | IAudioPolicyCallback.aidl | 26 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
|
D | AudioPolicy.java | 1094 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/ |
D | MediaFocusControl.java | 806 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 …]
|
D | FocusRequester.java | 120 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()
|
D | AudioService.java | 13854 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/ |
D | AudioFocusInfo.java | 198 final AudioFocusInfo afi = new AudioFocusInfo( 208 afi.setGen(in.readLong()); 209 return afi;
|
D | IAudioService.aidl | 405 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
|
D | AudioManager.java | 5072 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/ |
D | AudioManager.java | 325 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
|