Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java232 mHalAudioFocus.abandonAudioFocus(USAGE_MEDIA, ZONE_ID); in abandonAudioFocus_withNoCurrentRequest_doesNothing()
242 () -> mHalAudioFocus.abandonAudioFocus(USAGE_MEDIA, INVALID_ZONE_ID)); in abandonAudioFocus_withInvalidZone_throws()
251 mHalAudioFocus.abandonAudioFocus(USAGE_MEDIA, ZONE_ID); in abandonAudioFocus_withCurrentRequest_abandonsExistingFocus()
264 mHalAudioFocus.abandonAudioFocus(USAGE_MEDIA, ZONE_ID); in abandonAudioFocus_withCurrentRequest_notifiesHalOfFocusChange()
277 mHalAudioFocus.abandonAudioFocus(USAGE_MEDIA, ZONE_ID); in abandonAudioFocus_withFocusAlreadyLost_doesNothing()
291 mHalAudioFocus.abandonAudioFocus(USAGE_MEDIA, ZONE_ID); in abandonAudioFocus_withFocusTransientlyLost_abandonsExistingFocus()
302 mHalAudioFocus.abandonAudioFocus(USAGE_ALARM, ZONE_ID); in abandonAudioFocus_withExistingRequestOfDifferentUsage_doesNothing()
313 mHalAudioFocus.abandonAudioFocus(USAGE_MEDIA, SECOND_ZONE_ID); in abandonAudioFocus_withExistingRequestOfDifferentZoneId_doesNothing()
327 mHalAudioFocus.abandonAudioFocus(USAGE_MEDIA, ZONE_ID); in abandonAudioFocus_withFailedRequest_doesNotNotifyHal()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandlerTest.java78 when(mMockAudioManager.abandonAudioFocus(any())).thenReturn(AudioManager.AUDIOFOCUS_GAIN); in setUp()
131 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testDisconnect()
192 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testFocusLostTransient()
204 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testFocusRerequest()
224 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testFocusGainTransient()
237 verify(mMockAudioManager, times(1)).abandonAudioFocus(any()); in testFocusLost()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java125 abandonAudioFocus(); in cleanup()
233 abandonAudioFocus(); in handleMessage()
323 private synchronized void abandonAudioFocus() { in abandonAudioFocus() method in A2dpSinkStreamHandler
326 mAudioManager.abandonAudioFocus(mAudioFocusListener); in abandonAudioFocus()
/packages/apps/TV/src/com/android/tv/audio/
DAudioManagerHelper.java131 public void abandonAudioFocus() { in abandonAudioFocus() method in AudioManagerHelper
136 mAudioManager.abandonAudioFocus(this); in abandonAudioFocus()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java674 mAudioManager.abandonAudioFocus(mNavFocusListener, mNavAudioAttrib); in handleNavEnd()
722 mAudioManager.abandonAudioFocus(mVrFocusListener, mVrAudioAttrib); in handleVrEnd()
737 mAudioManager.abandonAudioFocus(mRadioFocusListener, mRadioAudioAttrib); in handleRadioEnd()
850 abandonAudioFocus(); in FocusHandler()
868 abandonAudioFocus(); in release()
871 private void abandonAudioFocus() { in abandonAudioFocus() method in AudioTestFragment.FocusHandler
DAudioPlayer.java229 mAudioManager.abandonAudioFocus(mFocusListener); in doStart()
244 mAudioManager.abandonAudioFocus(mFocusListener); in doStart()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java64 public void abandonAudioFocus() { in abandonAudioFocus() method in VoicemailAudioManager
66 audioManager.abandonAudioFocus(this); in abandonAudioFocus()
DVoicemailPlaybackPresenter.java713 voicemailAudioManager.abandonAudioFocus(); in pausePlayback()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperV2.java198 public void abandonAudioFocus(int usage, int zoneId) throws RemoteException { in abandonAudioFocus() method in AudioControlWrapperV2.FocusListenerWrapper
199 mListener.abandonAudioFocus(usage, zoneId); in abandonAudioFocus()
DAudioControlWrapperAidl.java228 public void abandonAudioFocus(String usage, int zoneId) { in abandonAudioFocus() method in AudioControlWrapperAidl.FocusListenerWrapper
230 mListener.abandonAudioFocus(usageValue, zoneId); in abandonAudioFocus()
DHalFocusListener.java37 void abandonAudioFocus(@AttributeUsage int usage, int zoneId); in abandonAudioFocus() method
DHalAudioFocus.java117 public void abandonAudioFocus(@AttributeUsage int usage, int zoneId) { in abandonAudioFocus() method in HalAudioFocus
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java165 mAudioManager.abandonAudioFocus(null); in stopSound()
223 mAudioManager.abandonAudioFocus(null); in onCompletion()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.kt339 mAudioManager?.abandonAudioFocus(null) in <lambda>()
545 mAudioManager!!.abandonAudioFocus(null) in <lambda>()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java234 mAudioManager.abandonAudioFocus(mAudioFocusListener); in stopPlayback()
282 mAudioManager.abandonAudioFocus(this);
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt208 mAudioManager.abandonAudioFocus(mAudioFocusListener) in stopPlayback()
253 mAudioManager.abandonAudioFocus(this) in onAudioFocusChange()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java190 mAudioManager.abandonAudioFocus(mAudioFocusListener); in onPause()
196 mAudioManager.abandonAudioFocus(mAudioFocusListener); in destroy()
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java263 mAudioManager.abandonAudioFocus(this); in cleanUp()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMovieActivity.java232 .abandonAudioFocus(null); in onStop()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DCarAudioZoneVolumeFragment.java94 mAudioManager.abandonAudioFocus(mFocusListener); in handleMessage()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java310 mAudioManager.abandonAudioFocus(this); in onDestroy()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackOverlayFragment.java303 mAudioManagerHelper.abandonAudioFocus(); in onDestroy()
/packages/apps/TV/src/com/android/tv/
DMainActivity.java943 mAudioManagerHelper.abandonAudioFocus(); in onPause()
1649 mAudioManagerHelper.abandonAudioFocus(); in stopTv()
2525 mAudioManagerHelper.abandonAudioFocus();
/packages/services/Car/car-lib/api/released/
D2.txt262 …method public void abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, androi…
D1.txt255 …method public void abandonAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, androi…