Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/audio/
DFocusRequester.java508 int dispatchFocusChange(int focusChange) { in dispatchFocusChange() argument
514 if (focusChange == AudioManager.AUDIOFOCUS_NONE) { in dispatchFocusChange()
517 } else if ((focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK in dispatchFocusChange()
518 || focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE in dispatchFocusChange()
519 || focusChange == AudioManager.AUDIOFOCUS_GAIN_TRANSIENT in dispatchFocusChange()
520 || focusChange == AudioManager.AUDIOFOCUS_GAIN) in dispatchFocusChange()
521 && (mFocusGainRequest != focusChange)){ in dispatchFocusChange()
523 + ", dispatching " + focusChange); in dispatchFocusChange()
524 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK in dispatchFocusChange()
525 || focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT in dispatchFocusChange()
[all …]
DMediaFocusControl.java930 int dispatchFocusChange(AudioFocusInfo afi, int focusChange) { in dispatchFocusChange() argument
932 Log.v(TAG, "dispatchFocusChange " + focusChange + " to afi client=" in dispatchFocusChange()
937 /* shouldRemove= */ focusChange == AudioManager.AUDIOFOCUS_LOSS); in dispatchFocusChange()
944 return fr.dispatchFocusChange(focusChange); in dispatchFocusChange()
948 int dispatchFocusChangeWithFade(AudioFocusInfo afi, int focusChange, in dispatchFocusChangeWithFade() argument
951 Log.v(TAG, "dispatchFocusChangeWithFade " + AudioManager.audioFocusToString(focusChange) in dispatchFocusChangeWithFade()
978 int status = fr.dispatchFocusChangeWithFadeLocked(focusChange, otherActiveFrs); in dispatchFocusChangeWithFade()
980 && focusChange == AudioManager.AUDIOFOCUS_LOSS) { in dispatchFocusChangeWithFade()
DAudioService.java13854 public int dispatchFocusChange(AudioFocusInfo afi, int focusChange, IAudioPolicyCallback pcb) { in dispatchFocusChange() argument
13865 return mMediaFocusControl.dispatchFocusChange(afi, focusChange); in dispatchFocusChange()
13890 public int dispatchFocusChangeWithFade(AudioFocusInfo afi, int focusChange, in dispatchFocusChangeWithFade() argument
13909 mPlaybackMonitor.setTransientFadeManagerConfiguration(focusChange, in dispatchFocusChangeWithFade()
13912 int status = mMediaFocusControl.dispatchFocusChangeWithFade(afi, focusChange, in dispatchFocusChangeWithFade()
13916 mPlaybackMonitor.clearTransientFadeManagerConfiguration(focusChange); in dispatchFocusChangeWithFade()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/tv/
DTvPipMenuControllerTest.java344 private void showAndAssertMoveMenu(boolean focusChange) { in showAndAssertMoveMenu() argument
346 if (focusChange) { in showAndAssertMoveMenu()
363 private void showAndAssertAllActionsMenu(boolean focusChange) { in showAndAssertAllActionsMenu() argument
364 showAndAssertAllActionsMenu(focusChange, 1); in showAndAssertAllActionsMenu()
367 private void showAndAssertAllActionsMenu(boolean focusChange, int times) { in showAndAssertAllActionsMenu() argument
369 if (focusChange) { in showAndAssertAllActionsMenu()
384 private void closeMenuAndAssertMenuClosed(boolean focusChange) { in closeMenuAndAssertMenuClosed() argument
386 if (focusChange) { in closeMenuAndAssertMenuClosed()
/frameworks/base/media/java/android/media/
DIAudioFocusDispatcher.aidl27 void dispatchAudioFocusChange(int focusChange, String clientId); in dispatchAudioFocusChange() argument
DIAudioService.aidl405 int dispatchFocusChange(in AudioFocusInfo afi, in int focusChange, in dispatchFocusChange() argument
411 in int focusChange, in dispatchFocusChangeWithFade() argument
DAudioManager.java4215 public void onAudioFocusChange(int focusChange); in onAudioFocusChange() argument
4324 public void dispatchAudioFocusChange(int focusChange, String id) {
4333 MSSG_FOCUS_CHANGE/*what*/, focusChange/*arg1*/, 0/*arg2 ignored*/,
5111 public int dispatchAudioFocusChange(@NonNull AudioFocusInfo afi, int focusChange, in dispatchAudioFocusChange() argument
5121 return service.dispatchFocusChange(afi, focusChange, ap.cb()); in dispatchAudioFocusChange()
5175 public int dispatchAudioFocusChangeWithFade(@NonNull AudioFocusInfo afi, int focusChange, in dispatchAudioFocusChangeWithFade() argument
5184 return service.dispatchFocusChangeWithFade(afi, focusChange, ap.cb(), otherActiveAfis, in dispatchAudioFocusChangeWithFade()
/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()
/frameworks/layoutlib/bridge/src/android/media/
DAudioManager.java327 public int dispatchAudioFocusChange(AudioFocusInfo afi, int focusChange, AudioPolicy ap) { in dispatchAudioFocusChange() argument