Searched refs:focusGain (Results 1 – 8 of 8) 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 | 237 int getFocusRampTimeMs(in int focusGain, in AudioAttributes attr); in getFocusRampTimeMs() argument
|
D | AudioManager.java | 3070 public int getFocusRampTimeMs(int focusGain, AudioAttributes attr) { in getFocusRampTimeMs() argument 3073 return service.getFocusRampTimeMs(focusGain, attr); in getFocusRampTimeMs()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | FocusRequester.java | 303 boolean handleFocusLossFromGain(int focusGain, final FocusRequester frWinner, boolean forceDuck) in handleFocusLossFromGain() argument 305 final int focusLoss = focusLossForGainRequest(focusGain); in handleFocusLossFromGain() 311 void handleFocusGain(int focusGain) { in handleFocusGain() argument 319 Log.v(TAG, "dispatching " + focusChangeToString(focusGain) + " to " in handleFocusGain() 323 fd.dispatchAudioFocusChange(focusGain, mClientId); in handleFocusGain()
|
D | MediaFocusControl.java | 205 private void propagateFocusLossFromGain_syncAf(int focusGain, final FocusRequester fr, in propagateFocusLossFromGain_syncAf() argument 212 focusLoser.handleFocusLossFromGain(focusGain, fr, forceDuck); in propagateFocusLossFromGain_syncAf() 725 protected static int getFocusRampTimeMs(int focusGain, AudioAttributes attr) { in getFocusRampTimeMs() argument
|
D | AudioService.java | 6030 public int getFocusRampTimeMs(int focusGain, AudioAttributes attr) { in getFocusRampTimeMs() argument 6031 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 | 113 int focusGain = AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_MAY_DUCK; in run() local 115 focusGain = AudioManager.AUDIOFOCUS_GAIN; in run() 118 focusGain, mCmd.attributes); in run() 120 focusGain, 0); in run()
|