Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java141 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 …]
DAudioControlWrapperV2Test.java160 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/
DA2dpSinkStreamHandlerTest.java101 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/
DAudioManagerHelper.java114 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/
DA2dpSinkStreamHandler.java116 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/
DAudioManagerHelperTest.java159 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/
DPlayer.java163 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/
DAudioAutoStartActivity.java94 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/
DVoicemailAudioManager.java54 public void requestAudioFocus() { in requestAudioFocus() method in VoicemailAudioManager
56 audioManager.requestAudioFocus( in requestAudioFocus()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperAidl.java389 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
DAudioControlWrapperV2.java217 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()
DHalFocusListener.java32 void requestAudioFocus(PlaybackTrackMetadata metadata, int zoneId, int focusGain); in requestAudioFocus() method
DHalAudioFocus.java118 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/
DAudioManagerWrapper.java100 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/
DRemotePreviewSession.java417 } 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/
DICtsSdkProviderApi.aidl44 int requestAudioFocus(); in requestAudioFocus() method
/packages/services/Telecomm/src/com/android/server/telecom/
DCallAudioModeStateMachine.java469 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/
DAudioManagerWrapperTest.java195 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/
DCtsSdkSandboxMediaTestApp.java77 int result = sdk.requestAudioFocus(); in testAudioFocus()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java576 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/
DSdkSandboxMediaTest.java77 int result = mSdk.requestAudioFocus(); in testAudioFocus()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.kt313 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/
DAudioPreview.kt241 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in showPostPrepareUI()
275 mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in start()
/packages/apps/Music/src/com/android/music/
DAudioPreview.java268 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/
DCallAudioModeStateMachineTest.java347 verify(mAudioManager).requestAudioFocus(captor.capture()); in testAudioFocusRequestWithResolveHiddenDependencies()
352 verify(mAudioManager, atLeast(1)).requestAudioFocus(captor.capture()); in testAudioFocusRequestWithResolveHiddenDependencies()

12