/frameworks/base/services/core/java/com/android/server/audio/ |
D | FocusRequester.java | 508 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 …]
|
D | MediaFocusControl.java | 930 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()
|
D | AudioService.java | 13854 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/ |
D | TvPipMenuControllerTest.java | 344 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/ |
D | IAudioFocusDispatcher.aidl | 27 void dispatchAudioFocusChange(int focusChange, String clientId); in dispatchAudioFocusChange() argument
|
D | IAudioService.aidl | 405 int dispatchFocusChange(in AudioFocusInfo afi, in int focusChange, in dispatchFocusChange() argument 411 in int focusChange, in dispatchFocusChangeWithFade() argument
|
D | AudioManager.java | 4215 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/ |
D | MediaAudioManagerTest.java | 132 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument 133 mLastFocusChange = focusChange; in onAudioFocusChange()
|
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/ |
D | LocalRenderer.java | 347 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/ |
D | AudioManager.java | 327 public int dispatchAudioFocusChange(AudioFocusInfo afi, int focusChange, AudioPolicy ap) { in dispatchAudioFocusChange() argument
|