Home
last modified time | relevance | path

Searched refs:AUDIOFOCUS_GAIN (Results 1 – 6 of 6) sorted by relevance

/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DAudioFocusManager.java144 focusGain == C.AUDIOFOCUS_GAIN || focusGain == C.AUDIOFOCUS_NONE, in setAudioAttributes()
182 return playbackState == Player.STATE_IDLE || focusGain != C.AUDIOFOCUS_GAIN; in shouldAbandonAudioFocus()
282 return C.AUDIOFOCUS_GAIN; in convertAudioAttributesToFocusGain()
291 return C.AUDIOFOCUS_GAIN; in convertAudioAttributesToFocusGain()
355 case AudioManager.AUDIOFOCUS_GAIN: in handlePlatformAudioFocusChange()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DAudioFocusManagerTest.java92 assertThat(request.durationHint).isEqualTo(AudioManager.AUDIOFOCUS_GAIN); in setAudioAttributes_withNullUsage_abandonsAudioFocus()
115 assertThat(getAudioFocusGainFromRequest(request)).isEqualTo(AudioManager.AUDIOFOCUS_GAIN); in setAudioAttributes_withNullUsage_abandonsAudioFocus_v26()
151 assertThat(getAudioFocusGainFromRequest(request)).isEqualTo(AudioManager.AUDIOFOCUS_GAIN); in setAudioAttributes_withUsageMedia_usesAudioFocusGain()
164 assertThat(getAudioFocusGainFromRequest(request)).isEqualTo(AudioManager.AUDIOFOCUS_GAIN); in setAudioAttributes_inEndedState_requestsAudioFocus()
181 assertThat(getAudioFocusGainFromRequest(request)).isEqualTo(AudioManager.AUDIOFOCUS_GAIN); in updateAudioFocus_idleToBuffering_setsPlayerCommandPlayWhenReady()
200 assertThat(getAudioFocusGainFromRequest(request)).isEqualTo(AudioManager.AUDIOFOCUS_GAIN); in updateAudioFocus_pausedToPlaying_setsPlayerCommandPlayWhenReady()
380 audioFocusManager.getFocusListener().onAudioFocusChange(AudioManager.AUDIOFOCUS_GAIN); in onAudioFocusChange_withDuckEnabled_reducesAndRestoresVolume()
404 audioFocusManager.getFocusListener().onAudioFocusChange(AudioManager.AUDIOFOCUS_GAIN); in onAudioFocusChange_withPausedWhenDucked_sendsCommandWaitForCallback()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAudioManagerTest.java57 new android.media.AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN) in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall()
74 new android.media.AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN).build()); in requestAudioFocus2_shouldReturnTheSpecifiedValue()
81 new android.media.AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN).build()); in requestAudioFocus2_shouldReturnTheSpecifiedValue()
98 new android.media.AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN).build(); in abandonAudioFocusRequest_shouldRecordTheListenerOfTheMostRecentCall()
/external/exoplayer/tree/library/common/src/main/java/com/google/android/exoplayer2/
DC.java477 AUDIOFOCUS_GAIN,
486 public static final int AUDIOFOCUS_GAIN = AudioManager.AUDIOFOCUS_GAIN; field in C
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/media/
DAudioManagerFacade.java46 } else if (focusChange == AudioManager.AUDIOFOCUS_GAIN) { in AudioManagerFacade()
/external/webrtc/examples/androidapp/src/org/appspot/apprtc/
DAppRTCAudioManager.java228 case AudioManager.AUDIOFOCUS_GAIN: in start()