/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | HalAudioFocusTest.java | 92 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_notifiesHalOfFocusChange() 102 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesUsage() 112 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesFocusGain() 122 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesZoneId() 134 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_providesFocusChangeListener() 145 () -> mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, INVALID_ZONE_ID, in requestAudioFocus_withInvalidZone_throws() 153 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withSameZoneAndUsage_keepsExistingRequest() 155 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withSameZoneAndUsage_keepsExistingRequest() 164 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus() 172 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 76 when(mMockAudioManager.requestAudioFocus(any())).thenReturn( in setUp() 92 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStart() 102 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStop() 111 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testSnkPlay() 120 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSnkPause() 139 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcPlay() 149 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testSrcPlayIot() 158 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcPause() 170 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testFocusGain() 209 verify(mMockAudioManager, times(2)).requestAudioFocus(any()); in testFocusRerequest()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioFocusTest.java | 165 assertThat(mAudioManager.requestAudioFocus(mediaAudioFocusRequest)) in requestAudioFocus_forRequestWithDelayedFocus_requestGranted() 174 mAudioManager.requestAudioFocus(phoneAudioFocusRequest); in requestAudioFocus_forRequestWithDelayedFocus_whileOneCall_requestDelayed() 179 assertThat(mAudioManager.requestAudioFocus(mediaAudioFocusRequest)) in requestAudioFocus_forRequestWithDelayedFocus_whileOneCall_requestDelayed() 187 mAudioManager.requestAudioFocus(phoneAudioFocusRequest); in abandonAudioFocusRequest_forCall_whileFocusDelayed_focusGained() 194 mAudioManager.requestAudioFocus(mediaAudioFocusRequest); in abandonAudioFocusRequest_forCall_whileFocusDelayed_focusGained() 210 mAudioManager.requestAudioFocus(phoneAudioFocusRequest); in abandonAudioFocusRequest_forDelayedRequest_whileOnCall_requestGranted() 215 mAudioManager.requestAudioFocus(mediaAudioFocusRequest); in abandonAudioFocusRequest_forDelayedRequest_whileOnCall_requestGranted() 228 mAudioManager.requestAudioFocus(phoneAudioFocusRequest); in abandonAudioFocusRequest_forCall_afterDelayedAbandon_delayedRequestDoesNotGainsFocus() 235 mAudioManager.requestAudioFocus(mediaAudioFocusRequest); in abandonAudioFocusRequest_forCall_afterDelayedAbandon_delayedRequestDoesNotGainsFocus() 255 mAudioManager.requestAudioFocus(phoneAudioFocusRequest); in requestAudioFocus_multipleTimesForSameDelayedRequest_delayedRequestDoesNotGainsFocus() [all …]
|
/packages/apps/TV/src/com/android/tv/audio/ |
D | AudioManagerHelper.java | 114 public void requestAudioFocus() { in requestAudioFocus() method in AudioManagerHelper 117 result = mAudioManager.requestAudioFocus(mFocusRequest); in requestAudioFocus() 120 mAudioManager.requestAudioFocus( in requestAudioFocus()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandler.java | 129 void requestAudioFocus(boolean request) { in requestAudioFocus() method in A2dpSinkStreamHandler 259 requestAudioFocus(); in requestAudioFocusIfNone() 263 private synchronized int requestAudioFocus() { in requestAudioFocus() method in A2dpSinkStreamHandler 277 int focusRequestStatus = mAudioManager.requestAudioFocus(focusRequest); in requestAudioFocus()
|
D | A2dpSinkService.java | 150 public void requestAudioFocus(BluetoothDevice device, boolean request) { in requestAudioFocus() method in A2dpSinkService 153 mA2dpSinkStreamHandler.requestAudioFocus(request); in requestAudioFocus()
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaPlayer.java | 225 boolean requestAudioFocus = !wasPlaying; in onSeekTo() 226 startPlayBack(requestAudioFocus); in onSeekTo() 264 return mAudioManager.requestAudioFocus(mAudioFocusRequest) == AUDIOFOCUS_REQUEST_GRANTED; in audioFocusGranted() 309 private void startPlayBack(boolean requestAudioFocus) { in startPlayBack() argument 310 if (requestAudioFocus && !audioFocusGranted()) return; in startPlayBack()
|
/packages/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Player.java | 158 private boolean requestAudioFocus(Runnable onSuccess) { in requestAudioFocus() method in Player 159 int result = mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in requestAudioFocus() 179 requestAudioFocus(() -> resumePlayback()); in onPlay() 309 requestAudioFocus(() -> { in maybeRestoreState() method 512 boolean wasGrantedAudio = requestAudioFocus(() -> { in play() 574 requestAudioFocus(() -> startPlayback(mediaId)); in onPlayFromMediaId()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/audio/ |
D | AudioManagerHelperTest.java | 159 mAudioManagerHelper.requestAudioFocus(); in requestAudioFocus_granted() 171 mAudioManagerHelper.requestAudioFocus(); in requestAudioFocus_failed() 183 mAudioManagerHelper.requestAudioFocus(); in requestAudioFocus_delayed()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | AudioAutoStartActivity.java | 94 requestAudioFocus(); in onCreate() 130 private void requestAudioFocus() { in requestAudioFocus() method in AudioAutoStartActivity 146 delayedFocusRequestResults = mAudioManager.requestAudioFocus(mFocusRequest); in requestAudioFocus()
|
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/ |
D | VoicemailAudioManager.java | 54 public void requestAudioFocus() { in requestAudioFocus() method in VoicemailAudioManager 56 audioManager.requestAudioFocus( in requestAudioFocus()
|
/packages/services/Car/service/src/com/android/car/audio/hal/ |
D | AudioControlWrapperV2.java | 193 public void requestAudioFocus(int usage, int zoneId, int focusGain) throws RemoteException { in requestAudioFocus() method in AudioControlWrapperV2.FocusListenerWrapper 194 mListener.requestAudioFocus(usage, zoneId, focusGain); in requestAudioFocus()
|
D | AudioControlWrapperAidl.java | 222 public void requestAudioFocus(String usage, int zoneId, int focusGain) { in requestAudioFocus() method in AudioControlWrapperAidl.FocusListenerWrapper 224 mListener.requestAudioFocus(usageValue, zoneId, focusGain); in requestAudioFocus()
|
D | HalAudioFocus.java | 92 public void requestAudioFocus(@AttributeUsage int usage, int zoneId, int focusGain) { in requestAudioFocus() method in HalAudioFocus 263 int requestResult = mAudioManager.requestAudioFocus(audioFocusRequest); in makeAudioFocusRequestLocked()
|
D | HalFocusListener.java | 30 void requestAudioFocus(@AttributeUsage int usage, int zoneId, int focusGain); in requestAudioFocus() method
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTestFragment.java | 470 int delayedFocusRequestResults = mAudioManager.requestAudioFocus(mDelayedFocusRequest); in handleDelayedMediaStart() 662 mAudioManager.requestAudioFocus(mNavFocusListener, mNavAudioAttrib, in handleNavStart() 710 mAudioManager.requestAudioFocus(mVrFocusListener, mVrAudioAttrib, in handleVrStart() 730 mAudioManager.requestAudioFocus(mRadioFocusListener, mRadioAudioAttrib, AUDIOFOCUS_GAIN, 0); in handleRadioStart() 859 int ret = mAudioManager.requestAudioFocus(mFocusRequest); in FocusHandler()
|
D | CarAudioZoneInputFragment.java | 162 int audioFocusRequestResults = mAudioManager.requestAudioFocus(mAudioFocusRequest); in playAudio()
|
D | AudioPlayer.java | 189 ret = mAudioManager.requestAudioFocus(mFocusRequest); in start()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.kt | 313 mAudioManager!!.requestAudioFocus(null, AudioManager.STREAM_ALARM, in <lambda>() 504 mAudioManager!!.requestAudioFocus(null, AudioManager.STREAM_ALARM, in <lambda>()
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachineTest.java | 1102 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileMusicPlaying() 1117 verify(mA2dpSinkService).requestAudioFocus(mTestDevice, true); in testPlaybackWhileIdle() 1137 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileErrorState() 1156 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhilePlayingState() 1302 verify(mA2dpSinkService, never()).requestAudioFocus(mTestDevice, true); in testPlaybackWhileNotActiveDevice()
|
/packages/apps/Music/src/com/android/music/ |
D | AudioPreview.java | 268 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in showPostPrepareUI() 309 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in start()
|
/packages/apps/Music/kotlin/src/com/android/music/ |
D | AudioPreview.kt | 241 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in showPostPrepareUI() 275 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in start()
|
/packages/apps/Car/Radio/src/com/android/car/radio/audio/ |
D | AudioStreamController.java | 135 int res = mAudioManager.requestAudioFocus(mGainFocusReq); in requestAudioFocusLocked()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | Beeper.java | 210 mAudiofocusRequestFailed = mAudioManager.requestAudioFocus(focusRequest); in onPrepared()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | NotificationPlayer.java | 97 audioManager.requestAudioFocus(null, mCmd.stream, in run()
|