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.java346 mHalAudioFocus.abandonAudioFocus(METADATA_MEDIA, ZONE_ID); in abandonAudioFocus_withNoCurrentRequest_doesNothing()
356 () -> mHalAudioFocus.abandonAudioFocus(METADATA_MEDIA, INVALID_ZONE_ID)); in abandonAudioFocus_withInvalidZone_throws()
365 mHalAudioFocus.abandonAudioFocus(METADATA_MEDIA, ZONE_ID); in abandonAudioFocus_withCurrentRequest_abandonsExistingFocus()
378 mHalAudioFocus.abandonAudioFocus(METADATA_MEDIA, ZONE_ID); in abandonAudioFocus_withCurrentRequest_notifiesHalOfFocusChange()
391 mHalAudioFocus.abandonAudioFocus(METADATA_MEDIA, ZONE_ID); in abandonAudioFocus_withFocusAlreadyLost_doesNothing()
405 mHalAudioFocus.abandonAudioFocus(METADATA_MEDIA, ZONE_ID); in abandonAudioFocus_withFocusTransientlyLost_abandonsExistingFocus()
415 mHalAudioFocus.abandonAudioFocus(METADATA_ALARM, ZONE_ID); in abandonAudioFocus_withExistingRequestOfDifferentUsage_doesNothing()
425 mHalAudioFocus.abandonAudioFocus(METADATA_MEDIA, SECOND_ZONE_ID); in abandonAudioFocus_withExistingRequestOfDifferentZoneId_doesNothing()
439 mHalAudioFocus.abandonAudioFocus(METADATA_MEDIA, ZONE_ID); in abandonAudioFocus_withFailedRequest_doesNotNotifyHal()
DAudioControlWrapperV2Test.java173 captor.getValue().abandonAudioFocus(USAGE, ZONE_ID); in abandonAudioFocus_forFocusListenerWrapper_succeeds()
175 verify(mockListener).abandonAudioFocus(METADATA, ZONE_ID); in abandonAudioFocus_forFocusListenerWrapper_succeeds()
DAudioControlWrapperAidlTest.java304 captor.getValue().abandonAudioFocus(USAGE_NAME, ZONE_ID); in abandonAudioFocus_forFocusListenerWrapper_succeeds()
306 verify(mockListener).abandonAudioFocus(METADATA, ZONE_ID); in abandonAudioFocus_forFocusListenerWrapper_succeeds()
319 verify(mockListener).abandonAudioFocus(METADATA, ZONE_ID); in abandonAudioFocusWithMetaData_forFocusListenerWrapper_succeeds()
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandlerTest.java103 when(mMockAudioManager.abandonAudioFocus(any())) in setUp()
170 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testDisconnect()
247 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testFocusLostTransient()
265 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testFocusRerequest()
283 verify(mMockAudioManager, times(0)).abandonAudioFocus(any()); in testFocusGainFromTransientLoss()
298 verify(mMockAudioManager, times(1)).abandonAudioFocus(any()); in testFocusLost()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java112 abandonAudioFocus(); in cleanup()
216 abandonAudioFocus(); in handleMessage()
310 private synchronized void abandonAudioFocus() { in abandonAudioFocus() method in A2dpSinkStreamHandler
313 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/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/
DAudioControlWrapperAidl.java395 public void abandonAudioFocus(String usage, int zoneId) { in abandonAudioFocus() method in AudioControlWrapperAidl.FocusListenerWrapper
397 abandonAudioFocus(usageValue, zoneId); in abandonAudioFocus()
417 mListener.abandonAudioFocus(playbackMetaData, zoneId); in abandonAudioFocusWithMetaData()
420 private void abandonAudioFocus(int usage, int zoneId) { in abandonAudioFocus() method in AudioControlWrapperAidl.FocusListenerWrapper
DAudioControlWrapperV2.java222 public void abandonAudioFocus(int usage, int zoneId) throws RemoteException { in abandonAudioFocus() method in AudioControlWrapperV2.FocusListenerWrapper
223 mListener.abandonAudioFocus(usageToMetadata(usage), zoneId); in abandonAudioFocus()
DHalFocusListener.java40 void abandonAudioFocus(PlaybackTrackMetadata metadata, int zoneId); in abandonAudioFocus() method
DHalAudioFocus.java147 public void abandonAudioFocus(PlaybackTrackMetadata metadata, 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/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java776 mAudioManager.abandonAudioFocus(mNavFocusListener, mNavAudioAttrib); in handleNavEnd()
824 mAudioManager.abandonAudioFocus(mVrFocusListener, mVrAudioAttrib); in handleVrEnd()
839 mAudioManager.abandonAudioFocus(mRadioFocusListener, mRadioAudioAttrib); in handleRadioEnd()
969 abandonAudioFocus(); in FocusHandler()
987 abandonAudioFocus(); in release()
990 private void abandonAudioFocus() { in abandonAudioFocus() method in AudioTestFragment.FocusHandler
DAudioPlayer.java259 mAudioManager.abandonAudioFocus(mFocusListener); in doStart()
274 mAudioManager.abandonAudioFocus(mFocusListener); in doStart()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.kt339 mAudioManager?.abandonAudioFocus(null) in <lambda>()
545 mAudioManager!!.abandonAudioFocus(null) in <lambda>()
/packages/apps/Music/kotlin/src/com/android/music/
DAudioPreview.kt208 mAudioManager.abandonAudioFocus(mAudioFocusListener) in stopPlayback()
253 mAudioManager.abandonAudioFocus(this) in onAudioFocusChange()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java234 mAudioManager.abandonAudioFocus(mAudioFocusListener); in stopPlayback()
282 mAudioManager.abandonAudioFocus(this);
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java263 mAudioManager.abandonAudioFocus(this); in cleanUp()
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java195 mAudioManager.abandonAudioFocus(mAudioFocusListener); in onPause()
201 mAudioManager.abandonAudioFocus(mAudioFocusListener); in destroy()
/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.java116 mAudioManager.abandonAudioFocus(mFocusListener); in handleMessage()
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/
DDvrPlaybackOverlayFragment.java303 mAudioManagerHelper.abandonAudioFocus(); in onDestroy()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java326 mAudioManager.abandonAudioFocus(this); in onDestroy()
/packages/apps/TV/src/com/android/tv/
DMainActivity.java981 mAudioManagerHelper.abandonAudioFocus(); in onPause()
1700 mAudioManagerHelper.abandonAudioFocus(); in stopTv()
2585 mAudioManagerHelper.abandonAudioFocus();