Home
last modified time | relevance | path

Searched refs:durationHint (Results 1 – 3 of 3) sorted by relevance

/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAudioManager.java84 android.media.AudioManager.OnAudioFocusChangeListener l, int streamType, int durationHint) { in requestAudioFocus() argument
85 lastAudioFocusRequest = new AudioFocusRequest(l, streamType, durationHint); in requestAudioFocus()
271 public final int durationHint; field in ShadowAudioManager.AudioFocusRequest
274 …oFocusRequest(AudioManager.OnAudioFocusChangeListener listener, int streamType, int durationHint) { in AudioFocusRequest() argument
277 this.durationHint = durationHint; in AudioFocusRequest()
283 this.streamType = this.durationHint = -1; in AudioFocusRequest()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAudioManagerTest.java35 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().durationHint).isEqualTo(888); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
64 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().durationHint).isEqualTo(-1); in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall()
/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()
461 : audioFocusRequest.durationHint; in getAudioFocusGainFromRequest()