/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | HalAudioFocusTest.java | 346 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()
|
D | AudioControlWrapperV2Test.java | 173 captor.getValue().abandonAudioFocus(USAGE, ZONE_ID); in abandonAudioFocus_forFocusListenerWrapper_succeeds() 175 verify(mockListener).abandonAudioFocus(METADATA, ZONE_ID); in abandonAudioFocus_forFocusListenerWrapper_succeeds()
|
D | AudioControlWrapperAidlTest.java | 304 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/ |
D | A2dpSinkStreamHandlerTest.java | 103 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/ |
D | A2dpSinkStreamHandler.java | 112 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/ |
D | AudioManagerHelper.java | 131 public void abandonAudioFocus() { in abandonAudioFocus() method in AudioManagerHelper 136 mAudioManager.abandonAudioFocus(this); in abandonAudioFocus()
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailAudioManager.java | 64 public void abandonAudioFocus() { in abandonAudioFocus() method in VoicemailAudioManager 66 audioManager.abandonAudioFocus(this); in abandonAudioFocus()
|
D | VoicemailPlaybackPresenter.java | 713 voicemailAudioManager.abandonAudioFocus(); in pausePlayback()
|
/packages/services/Car/service/src/com/android/car/audio/hal/ |
D | AudioControlWrapperAidl.java | 395 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
|
D | AudioControlWrapperV2.java | 222 public void abandonAudioFocus(int usage, int zoneId) throws RemoteException { in abandonAudioFocus() method in AudioControlWrapperV2.FocusListenerWrapper 223 mListener.abandonAudioFocus(usageToMetadata(usage), zoneId); in abandonAudioFocus()
|
D | HalFocusListener.java | 40 void abandonAudioFocus(PlaybackTrackMetadata metadata, int zoneId); in abandonAudioFocus() method
|
D | HalAudioFocus.java | 147 public void abandonAudioFocus(PlaybackTrackMetadata metadata, int zoneId) { in abandonAudioFocus() method in HalAudioFocus
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | NotificationPlayer.java | 165 mAudioManager.abandonAudioFocus(null); in stopSound() 223 mAudioManager.abandonAudioFocus(null); in onCompletion()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTestFragment.java | 776 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
|
D | AudioPlayer.java | 259 mAudioManager.abandonAudioFocus(mFocusListener); in doStart() 274 mAudioManager.abandonAudioFocus(mFocusListener); in doStart()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.kt | 339 mAudioManager?.abandonAudioFocus(null) in <lambda>() 545 mAudioManager!!.abandonAudioFocus(null) in <lambda>()
|
/packages/apps/Music/kotlin/src/com/android/music/ |
D | AudioPreview.kt | 208 mAudioManager.abandonAudioFocus(mAudioFocusListener) in stopPlayback() 253 mAudioManager.abandonAudioFocus(this) in onAudioFocusChange()
|
/packages/apps/Music/src/com/android/music/ |
D | AudioPreview.java | 234 mAudioManager.abandonAudioFocus(mAudioFocusListener); in stopPlayback() 282 mAudioManager.abandonAudioFocus(this);
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | Beeper.java | 263 mAudioManager.abandonAudioFocus(this); in cleanUp()
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Player.java | 195 mAudioManager.abandonAudioFocus(mAudioFocusListener); in onPause() 201 mAudioManager.abandonAudioFocus(mAudioFocusListener); in destroy()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | MovieActivity.java | 232 .abandonAudioFocus(null); in onStop()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | CarAudioZoneVolumeFragment.java | 116 mAudioManager.abandonAudioFocus(mFocusListener); in handleMessage()
|
/packages/apps/TV/src/com/android/tv/dvr/ui/playback/ |
D | DvrPlaybackOverlayFragment.java | 303 mAudioManagerHelper.abandonAudioFocus(); in onDestroy()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertAudio.java | 326 mAudioManager.abandonAudioFocus(this); in onDestroy()
|
/packages/apps/TV/src/com/android/tv/ |
D | MainActivity.java | 981 mAudioManagerHelper.abandonAudioFocus(); in onPause() 1700 mAudioManagerHelper.abandonAudioFocus(); in stopTv() 2585 mAudioManagerHelper.abandonAudioFocus();
|