Home
last modified time | relevance | path

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

/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DMusicService.java113 enum AudioFocus { enum in MusicService
118 AudioFocus mAudioFocus = AudioFocus.NoFocusNoDuck;
199 mAudioFocus = AudioFocus.Focused; // no focus feature, so we always "have" audio focus in onCreate()
345 if (mAudioFocus == AudioFocus.Focused && mAudioFocusHelper != null in giveUpAudioFocus()
347 mAudioFocus = AudioFocus.NoFocusNoDuck; in giveUpAudioFocus()
359 if (mAudioFocus == AudioFocus.NoFocusNoDuck) { in configAndStartMediaPlayer()
366 else if (mAudioFocus == AudioFocus.NoFocusCanDuck) in configAndStartMediaPlayer()
391 if (mAudioFocus != AudioFocus.Focused && mAudioFocusHelper != null in tryToGetAudioFocus()
393 mAudioFocus = AudioFocus.Focused; in tryToGetAudioFocus()
564 mAudioFocus = AudioFocus.Focused; in onGainedAudioFocus()
[all …]