Home
last modified time | relevance | path

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

/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
DPlayback.java75 private int mAudioFocus = AUDIO_NO_FOCUS_NO_DUCK; field in Playback
244 if (mAudioFocus != AUDIO_FOCUSED) { in tryToGetAudioFocus()
248 mAudioFocus = AUDIO_FOCUSED; in tryToGetAudioFocus()
258 if (mAudioFocus == AUDIO_FOCUSED) { in giveUpAudioFocus()
260 mAudioFocus = AUDIO_NO_FOCUS_NO_DUCK; in giveUpAudioFocus()
276 Log.d(TAG, "configMediaPlayerState. mAudioFocus=" + mAudioFocus); in configMediaPlayerState()
277 if (mAudioFocus == AUDIO_NO_FOCUS_NO_DUCK) { in configMediaPlayerState()
283 if (mAudioFocus == AUDIO_NO_FOCUS_CAN_DUCK) { in configMediaPlayerState()
320 mAudioFocus = AUDIO_FOCUSED; in onAudioFocusChange()
328 mAudioFocus = canDuck ? AUDIO_NO_FOCUS_CAN_DUCK : AUDIO_NO_FOCUS_NO_DUCK; in onAudioFocusChange()