Home
last modified time | relevance | path

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

12

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java92 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/
DA2dpSinkStreamHandlerTest.java76 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/
DCarAudioFocusTest.java165 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/
DAudioManagerHelper.java114 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/
DA2dpSinkStreamHandler.java129 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()
DA2dpSinkService.java150 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/
DTmaPlayer.java225 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/
DPlayer.java158 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/
DAudioManagerHelperTest.java159 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/
DAudioAutoStartActivity.java94 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/
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/
DAudioControlWrapperV2.java193 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()
DAudioControlWrapperAidl.java222 public void requestAudioFocus(String usage, int zoneId, int focusGain) { in requestAudioFocus() method in AudioControlWrapperAidl.FocusListenerWrapper
224 mListener.requestAudioFocus(usageValue, zoneId, focusGain); in requestAudioFocus()
DHalAudioFocus.java92 public void requestAudioFocus(@AttributeUsage int usage, int zoneId, int focusGain) { in requestAudioFocus() method in HalAudioFocus
263 int requestResult = mAudioManager.requestAudioFocus(audioFocusRequest); in makeAudioFocusRequestLocked()
DHalFocusListener.java30 void requestAudioFocus(@AttributeUsage int usage, int zoneId, int focusGain); in requestAudioFocus() method
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java470 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()
DCarAudioZoneInputFragment.java162 int audioFocusRequestResults = mAudioManager.requestAudioFocus(mAudioFocusRequest); in playAudio()
DAudioPlayer.java189 ret = mAudioManager.requestAudioFocus(mFocusRequest); in start()
/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/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachineTest.java1102 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/
DAudioPreview.java268 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/
DAudioPreview.kt241 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/
DAudioStreamController.java135 int res = mAudioManager.requestAudioFocus(mGainFocusReq); in requestAudioFocusLocked()
/packages/apps/Car/Notification/src/com/android/car/notification/
DBeeper.java210 mAudiofocusRequestFailed = mAudioManager.requestAudioFocus(focusRequest); in onPrepared()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java97 audioManager.requestAudioFocus(null, mCmd.stream, in run()

12