/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/ |
D | HalAudioFocusTest.java | 141 mHalAudioFocus.requestAudioFocus(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_notifiesHalOfFocusChange() 154 mHalAudioFocus.requestAudioFocus(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesUsage() 164 mHalAudioFocus.requestAudioFocus(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesFocusGain() 174 mHalAudioFocus.requestAudioFocus(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesZoneId() 186 mHalAudioFocus.requestAudioFocus(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_providesFocusChangeListener() 195 mHalAudioFocus.requestAudioFocus(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withFocusRequestDelayed() 196 when(mAudioManagerWrapper.requestAudioFocus(any())).thenReturn(AUDIOFOCUS_REQUEST_DELAYED); in requestAudioFocus_withFocusRequestDelayed() 198 mHalAudioFocus.requestAudioFocus(METADATA_ALARM, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withFocusRequestDelayed() 209 halAudioFocus.requestAudioFocus(METADATA_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_withNullPlaybackMonitor() 229 () -> mHalAudioFocus.requestAudioFocus(METADATA_MEDIA, INVALID_ZONE_ID, in requestAudioFocus_withInvalidZone_throws() [all …]
|
D | AudioControlWrapperV2Test.java | 160 captor.getValue().requestAudioFocus(USAGE, ZONE_ID, FOCUS_GAIN); in requestAudioFocus_forFocusListenerWrapper_succeeds() 162 verify(mockListener).requestAudioFocus(METADATA, ZONE_ID, FOCUS_GAIN); in requestAudioFocus_forFocusListenerWrapper_succeeds()
|
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandlerTest.java | 101 when(mMockAudioManager.requestAudioFocus(any())) in setUp() 125 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStart() 137 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcStop() 148 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testSnkPlay() 157 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSnkPause() 180 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcPlay() 192 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testSrcPlayIot() 201 verify(mMockAudioManager, times(0)).requestAudioFocus(any()); in testSrcPause() 214 verify(mMockAudioManager, times(1)).requestAudioFocus(any()); in testFocusGain() 270 verify(mMockAudioManager, times(2)).requestAudioFocus(any()); in testFocusRerequest()
|
/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/modules/Bluetooth/android/app/src/com/android/bluetooth/a2dpsink/ |
D | A2dpSinkStreamHandler.java | 116 void requestAudioFocus(boolean request) { in requestAudioFocus() method in A2dpSinkStreamHandler 239 requestAudioFocus(); in requestAudioFocusIfNone() 243 private synchronized int requestAudioFocus() { in requestAudioFocus() method in A2dpSinkStreamHandler 258 int focusRequestStatus = mAudioManager.requestAudioFocus(focusRequest); in requestAudioFocus()
|
/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/apps/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Player.java | 163 private boolean requestAudioFocus(Runnable onSuccess) { in requestAudioFocus() method in Player 164 int result = mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in requestAudioFocus() 184 requestAudioFocus(() -> resumePlayback()); in onPlay() 314 requestAudioFocus(() -> { in maybeRestoreState() method 519 boolean wasGrantedAudio = requestAudioFocus(() -> { in play() 581 requestAudioFocus(() -> startPlayback(mediaId)); in onPlayFromMediaId()
|
/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 145 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 | AudioControlWrapperAidl.java | 389 public void requestAudioFocus(String usage, int zoneId, int focusGain) { in requestAudioFocus() method in AudioControlWrapperAidl.FocusListenerWrapper 391 requestAudioFocus(usageValue, zoneId, focusGain); in requestAudioFocus() 407 mListener.requestAudioFocus(playbackMetaData, zoneId, focusGain); in requestAudioFocusWithMetaData() 424 private void requestAudioFocus(int usage, int zoneId, int focusGain) { in requestAudioFocus() method in AudioControlWrapperAidl.FocusListenerWrapper
|
D | AudioControlWrapperV2.java | 217 public void requestAudioFocus(int usage, int zoneId, int focusGain) throws RemoteException { in requestAudioFocus() method in AudioControlWrapperV2.FocusListenerWrapper 218 mListener.requestAudioFocus(usageToMetadata(usage), zoneId, focusGain); in requestAudioFocus()
|
D | HalFocusListener.java | 32 void requestAudioFocus(PlaybackTrackMetadata metadata, int zoneId, int focusGain); in requestAudioFocus() method
|
D | HalAudioFocus.java | 118 public void requestAudioFocus(PlaybackTrackMetadata metadata, int zoneId, int focusGain) { in requestAudioFocus() method in HalAudioFocus 335 int requestResult = mAudioManager.requestAudioFocus(audioFocusRequest); in makeAudioFocusRequestLocked()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | AudioManagerWrapper.java | 100 public int requestAudioFocus(AudioFocusRequest audioFocusRequest) { in requestAudioFocus() method in AudioManagerWrapper 101 return mAudioManager.requestAudioFocus(audioFocusRequest); in requestAudioFocus()
|
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/remotepreview/ |
D | RemotePreviewSession.java | 417 } else if (requestAudioFocus() == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) { in handleAudioFocusAndInitVolumeState() 434 private int requestAudioFocus() { in requestAudioFocus() method in RemotePreviewSession 453 return mAudioManager.requestAudioFocus(mAudioFocusRequest); in requestAudioFocus()
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/providers/CtsProvider/src/com/android/ctssdkprovider/ |
D | ICtsSdkProviderApi.aidl | 44 int requestAudioFocus(); in requestAudioFocus() method
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallAudioModeStateMachine.java | 469 mAudioManager.requestAudioFocus(RING_AUDIO_FOCUS_REQUEST); in tryStartRinging() 572 mAudioManager.requestAudioFocus(CALL_AUDIO_FOCUS_REQUEST); in enter() 660 mAudioManager.requestAudioFocus(CALL_AUDIO_FOCUS_REQUEST); in enter() 820 mAudioManager.requestAudioFocus(CALL_AUDIO_FOCUS_REQUEST); in enter()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | AudioManagerWrapperTest.java | 195 public void requestAudioFocus() { in requestAudioFocus() method in AudioManagerWrapperTest 198 mAudioManagerWrapper.requestAudioFocus(request); in requestAudioFocus() 200 verify(mAudioManager).requestAudioFocus(request); in requestAudioFocus()
|
/packages/modules/AdServices/sdksandbox/tests/cts/hostside/app/src/com/android/sdksandbox/cts/app/ |
D | CtsSdkSandboxMediaTestApp.java | 77 int result = sdk.requestAudioFocus(); in testAudioFocus()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTestFragment.java | 576 int delayedFocusRequestResults = mAudioManager.requestAudioFocus(mDelayedFocusRequest); in handleDelayedMediaStart() 764 mAudioManager.requestAudioFocus(mNavFocusListener, mNavAudioAttrib, in handleNavStart() 812 mAudioManager.requestAudioFocus(mVrFocusListener, mVrAudioAttrib, in handleVrStart() 832 mAudioManager.requestAudioFocus(mRadioFocusListener, mRadioAudioAttrib, AUDIOFOCUS_GAIN, 0); in handleRadioStart() 978 int ret = mAudioManager.requestAudioFocus(mFocusRequest); in FocusHandler()
|
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/ |
D | SdkSandboxMediaTest.java | 77 int result = mSdk.requestAudioFocus(); in testAudioFocus()
|
/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/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/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/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallAudioModeStateMachineTest.java | 347 verify(mAudioManager).requestAudioFocus(captor.capture()); in testAudioFocusRequestWithResolveHiddenDependencies() 352 verify(mAudioManager, atLeast(1)).requestAudioFocus(captor.capture()); in testAudioFocusRequestWithResolveHiddenDependencies()
|