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.java439 int dispatchFocusChange(int focusChange) { in dispatchFocusChange() argument
445 if (focusChange == AudioManager.AUDIOFOCUS_NONE) { in dispatchFocusChange()
448 } else if ((focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK in dispatchFocusChange()
449 || focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE in dispatchFocusChange()
450 || focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT in dispatchFocusChange()
451 || focusChange == AudioManager.AUDIOFOCUS_GAIN) in dispatchFocusChange()
452 && (mFocusGainRequest != focusChange)){ in dispatchFocusChange()
454 + ", dispatching " + focusChange); in dispatchFocusChange()
455 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK in dispatchFocusChange()
456 || focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT in dispatchFocusChange()
[all …]
DMediaFocusControl.java663 int dispatchFocusChange(AudioFocusInfo afi, int focusChange) { in dispatchFocusChange() argument
665 Log.v(TAG, "dispatchFocusChange " + focusChange + " to afi client=" in dispatchFocusChange()
674 if (focusChange == AudioManager.AUDIOFOCUS_LOSS) { in dispatchFocusChange()
683 return fr.dispatchFocusChange(focusChange); in dispatchFocusChange()
DAudioService.java7649 public int dispatchFocusChange(AudioFocusInfo afi, int focusChange, IAudioPolicyCallback pcb) { in dispatchFocusChange() argument
7660 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.aidl239 int dispatchFocusChange(in AudioFocusInfo afi, in int focusChange, in dispatchFocusChange() argument
DAudioManager.java2450 public void onAudioFocusChange(int focusChange); in onAudioFocusChange() argument
2559 public void dispatchAudioFocusChange(int focusChange, String id) {
2568 MSSG_FOCUS_CHANGE/*what*/, focusChange/*arg1*/, 0/*arg2 ignored*/,
3130 public int dispatchAudioFocusChange(@NonNull AudioFocusInfo afi, int focusChange, in dispatchAudioFocusChange() argument
3140 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()