Home
last modified time | relevance | path

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

/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowAudioManagerTest.java31 assertThat(shadowOf(audioManager).getLastAudioFocusRequest()).isNull(); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
33 … assertThat(shadowOf(audioManager).getLastAudioFocusRequest().listener).isSameInstanceAs(listener); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
34 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().streamType).isEqualTo(999); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
35 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().durationHint).isEqualTo(888); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
36 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().audioFocusRequest).isNull(); in requestAudioFocus_shouldRecordArgumentsOfMostRecentCall()
53 assertThat(shadowOf(audioManager).getLastAudioFocusRequest()).isNull(); in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall()
62 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().listener).isNull(); in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall()
63 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().streamType).isEqualTo(-1); in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall()
64 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().durationHint).isEqualTo(-1); in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall()
65 assertThat(shadowOf(audioManager).getLastAudioFocusRequest().audioFocusRequest) in requestAudioFocus2_shouldRecordArgumentsOfMostRecentCall()
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/
DAudioFocusManagerTest.java77 Shadows.shadowOf(audioManager).getLastAudioFocusRequest(); in setAudioAttributes_withNullUsage_doesNotManageAudioFocus()
91 Shadows.shadowOf(audioManager).getLastAudioFocusRequest(); in setAudioAttributes_withNullUsage_abandonsAudioFocus()
114 Shadows.shadowOf(audioManager).getLastAudioFocusRequest(); in setAudioAttributes_withNullUsage_abandonsAudioFocus_v26()
150 Shadows.shadowOf(audioManager).getLastAudioFocusRequest(); in setAudioAttributes_withUsageMedia_usesAudioFocusGain()
163 Shadows.shadowOf(audioManager).getLastAudioFocusRequest(); in setAudioAttributes_inEndedState_requestsAudioFocus()
175 assertThat(Shadows.shadowOf(audioManager).getLastAudioFocusRequest()).isNull(); in updateAudioFocus_idleToBuffering_setsPlayerCommandPlayWhenReady()
180 Shadows.shadowOf(audioManager).getLastAudioFocusRequest(); in updateAudioFocus_idleToBuffering_setsPlayerCommandPlayWhenReady()
193 assertThat(Shadows.shadowOf(audioManager).getLastAudioFocusRequest()).isNull(); in updateAudioFocus_pausedToPlaying_setsPlayerCommandPlayWhenReady()
199 Shadows.shadowOf(audioManager).getLastAudioFocusRequest(); in updateAudioFocus_pausedToPlaying_setsPlayerCommandPlayWhenReady()
280 Shadows.shadowOf(audioManager).getLastAudioFocusRequest(); in updateAudioFocus_readyToIdle_abandonsAudioFocus()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowAudioManager.java252 public AudioFocusRequest getLastAudioFocusRequest() { in getLastAudioFocusRequest() method in ShadowAudioManager