Home
last modified time | relevance | path

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

/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPlayback.java74 private int mAudioFocus = AUDIO_NO_FOCUS_NO_DUCK; field in Playback
243 if (mAudioFocus != AUDIO_FOCUSED) { in tryToGetAudioFocus()
247 mAudioFocus = AUDIO_FOCUSED; in tryToGetAudioFocus()
257 if (mAudioFocus == AUDIO_FOCUSED) { in giveUpAudioFocus()
259 mAudioFocus = AUDIO_NO_FOCUS_NO_DUCK; in giveUpAudioFocus()
275 LogHelper.d(TAG, "configMediaPlayerState. mAudioFocus=", mAudioFocus); in configMediaPlayerState()
276 if (mAudioFocus == AUDIO_NO_FOCUS_NO_DUCK) { in configMediaPlayerState()
282 if (mAudioFocus == AUDIO_NO_FOCUS_CAN_DUCK) { in configMediaPlayerState()
319 mAudioFocus = AUDIO_FOCUSED; in onAudioFocusChange()
327 mAudioFocus = canDuck ? AUDIO_NO_FOCUS_CAN_DUCK : AUDIO_NO_FOCUS_NO_DUCK; in onAudioFocusChange()