Searched refs:focusGain (Results 1 – 9 of 9) sorted by relevance
/frameworks/base/media/java/android/media/ |
D | AudioFocusRequest.java | 235 AudioAttributes attr, int focusGain, int flags) { in AudioFocusRequest() argument 238 mFocusGain = focusGain; in AudioFocusRequest() 249 final static boolean isValidFocusGain(int focusGain) { in isValidFocusGain() argument 250 switch (focusGain) { in isValidFocusGain() 372 public Builder(int focusGain) { in Builder() argument 373 setFocusGain(focusGain); in Builder() 403 public @NonNull Builder setFocusGain(int focusGain) { in setFocusGain() argument 404 if (!isValidFocusGain(focusGain)) { in setFocusGain() 405 throw new IllegalArgumentException("Illegal audio focus gain type " + focusGain); in setFocusGain() 407 mFocusGain = focusGain; in setFocusGain()
|
D | IAudioService.aidl | 403 int getFocusRampTimeMs(in int focusGain, in AudioAttributes attr); in getFocusRampTimeMs() argument
|
D | AudioManager.java | 5053 public int getFocusRampTimeMs(int focusGain, AudioAttributes attr) { in getFocusRampTimeMs() argument 5056 return service.getFocusRampTimeMs(focusGain, attr); in getFocusRampTimeMs()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | FocusRequester.java | 342 boolean handleFocusLossFromGain(int focusGain, final FocusRequester frWinner, boolean forceDuck) in handleFocusLossFromGain() argument 345 Log.i(TAG, "handleFocusLossFromGain for " + mClientId + " gain:" + focusGain); in handleFocusLossFromGain() 347 final int focusLoss = focusLossForGainRequest(focusGain); in handleFocusLossFromGain() 353 void handleFocusGain(int focusGain) { in handleFocusGain() argument 362 Log.v(TAG, "dispatching " + focusChangeToString(focusGain) + " to " in handleFocusGain() 366 fd.dispatchAudioFocusChange(focusGain, mClientId); in handleFocusGain()
|
D | MediaFocusControl.java | 368 private void propagateFocusLossFromGain_syncAf(int focusGain, final FocusRequester fr, in propagateFocusLossFromGain_syncAf() argument 371 Log.i(TAG, "propagateFocusLossFromGain_syncAf gain:" + focusGain); in propagateFocusLossFromGain_syncAf() 383 focusLoser.handleFocusLossFromGain(focusGain, fr, forceDuck); in propagateFocusLossFromGain_syncAf() 395 multifocusLoser.handleFocusLossFromGain(focusGain, fr, forceDuck); in propagateFocusLossFromGain_syncAf() 1048 protected static int getFocusRampTimeMs(int focusGain, AudioAttributes attr) { in getFocusRampTimeMs() argument
|
D | AudioService.java | 10436 public int getFocusRampTimeMs(int focusGain, AudioAttributes attr) { in getFocusRampTimeMs() argument 10437 return mMediaFocusControl.getFocusRampTimeMs(focusGain, attr); in getFocusRampTimeMs()
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 305 public void setAudioFocusRequest(int focusGain) { in setAudioFocusRequest() argument 306 if (focusGain != AudioManager.AUDIOFOCUS_NONE in setAudioFocusRequest() 307 && focusGain != AudioManager.AUDIOFOCUS_GAIN in setAudioFocusRequest() 308 && focusGain != AudioManager.AUDIOFOCUS_GAIN_TRANSIENT in setAudioFocusRequest() 309 && focusGain != AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK in setAudioFocusRequest() 310 && focusGain != AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE) { in setAudioFocusRequest() 311 throw new IllegalArgumentException("Illegal audio focus type " + focusGain); in setAudioFocusRequest() 313 mAudioFocusType = focusGain; in setAudioFocusRequest()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 115 int focusGain = AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK; in run() local 117 focusGain = AudioManager.AUDIOFOCUS_GAIN_TRANSIENT; in run() 120 focusGain, mCmd.attributes); in run() 122 focusGain, 0); in run()
|
/frameworks/layoutlib/bridge/src/android/media/ |
D | AudioManager.java | 321 public int getFocusRampTimeMs(int focusGain, AudioAttributes attr) { in getFocusRampTimeMs() argument
|