Home
last modified time | relevance | path

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

/development/samples/RandomMusicPlayer/src/com/example/android/musicplayer/
DAudioFocusHelper.java54 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
56 switch (focusChange) { in onAudioFocusChange()
/development/samples/Support4Demos/src/com/example/android/supportv4/media/
DPlayback.java316 public void onAudioFocusChange(int focusChange) { in onAudioFocusChange() argument
317 Log.d(TAG, "onAudioFocusChange. focusChange=" + focusChange); in onAudioFocusChange()
318 if (focusChange == AudioManager.AUDIOFOCUS_GAIN) { in onAudioFocusChange()
322 } else if (focusChange == AudioManager.AUDIOFOCUS_LOSS || in onAudioFocusChange()
323 focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT || in onAudioFocusChange()
324 focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK) { in onAudioFocusChange()
327 boolean canDuck = focusChange == AudioManager.AUDIOFOCUS_LOSS_TRANSIENT_CAN_DUCK; in onAudioFocusChange()
338 Log.e(TAG, "onAudioFocusChange: Ignoring unsupported focusChange: " + focusChange); in onAudioFocusChange()
/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/Support7Demos/src/com/example/android/supportv7/media/
DSampleMediaRouterActivity.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) {
/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) {
/development/samples/training/NavigationDrawer/libs/
Dandroid-support-v4.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/support/ android/ ...