Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/audio/
DFocusRequester.java487 int dispatchFocusChange(int focusChange) { in dispatchFocusChange() argument
493 if (focusChange == AudioManager.AUDIOFOCUS_NONE) { in dispatchFocusChange()
496 } else if ((focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK in dispatchFocusChange()
497 || focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE in dispatchFocusChange()
498 || focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT in dispatchFocusChange()
499 || focusChange == AudioManager.AUDIOFOCUS_GAIN) in dispatchFocusChange()
500 && (mFocusGainRequest != focusChange)){ in dispatchFocusChange()
502 + ", dispatching " + focusChange); in dispatchFocusChange()
503 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK in dispatchFocusChange()
504 || focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT in dispatchFocusChange()
[all …]
DMediaFocusControl.java761 int dispatchFocusChange(AudioFocusInfo afi, int focusChange) { in dispatchFocusChange() argument
763 Log.v(TAG, "dispatchFocusChange " + focusChange + " to afi client=" in dispatchFocusChange()
772 if (focusChange == AudioManager.AUDIOFOCUS_LOSS) { in dispatchFocusChange()
781 return fr.dispatchFocusChange(focusChange); in dispatchFocusChange()
DAudioService.java10166 public int dispatchFocusChange(AudioFocusInfo afi, int focusChange, IAudioPolicyCallback pcb) { in dispatchFocusChange() argument
10177 return mMediaFocusControl.dispatchFocusChange(afi, focusChange); in dispatchFocusChange()
/frameworks/base/media/java/android/media/
DIAudioFocusDispatcher.aidl27 void dispatchAudioFocusChange(int focusChange, String clientId); in dispatchAudioFocusChange() argument
DIAudioService.aidl268 int dispatchFocusChange(in AudioFocusInfo afi, in int focusChange, in dispatchFocusChange() argument
DAudioManager.java3682 public void onAudioFocusChange(int focusChange); in onAudioFocusChange() argument
3791 public void dispatchAudioFocusChange(int focusChange, String id) {
3800 MSSG_FOCUS_CHANGE/*what*/, focusChange/*arg1*/, 0/*arg2 ignored*/,
4438 public int dispatchAudioFocusChange(@NonNull AudioFocusInfo afi, int focusChange, in dispatchAudioFocusChange() argument
4448 return service.dispatchFocusChange(afi, focusChange, ap.cb()); in dispatchAudioFocusChange()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaAudioManagerTest.java132 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
133 mLastFocusChange = focusChange; in onAudioFocusChange()
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
DLocalRenderer.java347 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
350 switch (focusChange) { in onAudioFocusChange()
374 Log.d(TAG, "Unknown focus change event " + focusChange); in onAudioFocusChange()