Searched refs:updateAudioFocus (Results 1 – 3 of 3) sorted by relevance
/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/ |
D | AudioFocusManagerTest.java | 72 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ false, Player.STATE_IDLE)) in setAudioAttributes_withNullUsage_doesNotManageAudioFocus() 74 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_doesNotManageAudioFocus() 88 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_abandonsAudioFocus() 97 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_abandonsAudioFocus() 111 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_abandonsAudioFocus_v26() 119 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withNullUsage_abandonsAudioFocus_v26() 147 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_READY)) in setAudioAttributes_withUsageMedia_usesAudioFocusGain() 160 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_ENDED)) in setAudioAttributes_inEndedState_requestsAudioFocus() 173 assertThat(audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_IDLE)) in updateAudioFocus_idleToBuffering_setsPlayerCommandPlayWhenReady() 177 audioFocusManager.updateAudioFocus(/* playWhenReady= */ true, Player.STATE_BUFFERING)) in updateAudioFocus_idleToBuffering_setsPlayerCommandPlayWhenReady() [all …]
|
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/ |
D | AudioFocusManager.java | 157 public int updateAudioFocus(boolean playWhenReady, @Player.State int playbackState) { in updateAudioFocus() method in AudioFocusManager
|
D | SimpleExoPlayer.java | 721 int playerCommand = audioFocusManager.updateAudioFocus(playWhenReady, getPlaybackState()); in setAudioAttributes() 1266 int playerCommand = audioFocusManager.updateAudioFocus(playWhenReady, Player.STATE_BUFFERING); in prepare() 1471 int playerCommand = audioFocusManager.updateAudioFocus(playWhenReady, getPlaybackState()); in setPlayWhenReady() 1585 audioFocusManager.updateAudioFocus(getPlayWhenReady(), Player.STATE_IDLE); in stop()
|