Home
last modified time | relevance | path

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

/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DPlayback.java315 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
316 LogHelper.d(TAG, "onAudioFocusChange. focusChange=", focusChange); in onAudioFocusChange()
317 if (focusChange == AudioManager.AUDIOFOCUS_GAIN) { in onAudioFocusChange()
321 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS || in onAudioFocusChange()
322 focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT || in onAudioFocusChange()
323 focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK) { in onAudioFocusChange()
326 boolean canDuck = focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK; in onAudioFocusChange()
337 LogHelper.e(TAG, "onAudioFocusChange: Ignoring unsupported focusChange: ", focusChange); in onAudioFocusChange()
/development/samples/browseable/MediaRouter/src/com.example.android.mediarouter/player/
DMainActivity.java189 public void onAudioFocusChange(int focusChange) {
190 if (focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT) {
192 } else if (focusChange == AudioManager.AUDIOFOCUS_GAIN) {
194 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS) {