Home
last modified time | relevance | path

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

12

/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()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaPlayer.java185 boolean requestAudioFocus = !wasPlaying; in onSeekTo()
186 startPlayBack(requestAudioFocus); in onSeekTo()
222 return mAudioManager.requestAudioFocus(mAudioFocusRequest) == AUDIOFOCUS_REQUEST_GRANTED; in audioFocusGranted()
261 private void startPlayBack(boolean requestAudioFocus) { in startPlayBack() argument
262 if (requestAudioFocus && !audioFocusGranted()) return; in startPlayBack()
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStreamHandler.java118 void requestAudioFocus(boolean request) { in requestAudioFocus() method in A2dpSinkStreamHandler
246 requestAudioFocus(); in requestAudioFocusIfNone()
253 private synchronized int requestAudioFocus() { in requestAudioFocus() method in A2dpSinkStreamHandler
267 int focusRequestStatus = mAudioManager.requestAudioFocus(focusRequest); in requestAudioFocus()
DA2dpSinkService.java93 public void requestAudioFocus(BluetoothDevice device, boolean request) { in requestAudioFocus() method in A2dpSinkService
94 mA2dpSinkStreamHandler.requestAudioFocus(request); in requestAudioFocus()
/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/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/
DPlayer.java157 private boolean requestAudioFocus(Runnable onSuccess) { in requestAudioFocus() method in Player
158 int result = mAudioManager.requestAudioFocus(mAudioFocusListener, AudioManager.STREAM_MUSIC, in requestAudioFocus()
178 requestAudioFocus(() -> resumePlayback()); in onPlay()
284 requestAudioFocus(() -> { in maybeRestoreState() method
486 boolean wasGrantedAudio = requestAudioFocus(() -> { in play()
548 requestAudioFocus(() -> startPlayback(mediaId)); in onPlayFromMediaId()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailAudioManager.java54 public void requestAudioFocus() { in requestAudioFocus() method in VoicemailAudioManager
56 audioManager.requestAudioFocus( in requestAudioFocus()
DVoicemailPlaybackPresenter.java675 voicemailAudioManager.requestAudioFocus(); in resumePlayback()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DAudioTestFragment.java430 mAudioManager.requestAudioFocus(mNavFocusListener, mNavAudioAttrib, in handleNavStart()
480 mAudioManager.requestAudioFocus(mVrFocusListener, mVrAudioAttrib, in handleVrStart()
501 mAudioManager.requestAudioFocus(mRadioFocusListener, mRadioAudioAttrib, in handleRadioStart()
632 int ret = mAudioManager.requestAudioFocus(mFocusRequest); in FocusHandler()
DAudioPlayer.java133 ret = mAudioManager.requestAudioFocus(mFocusListener, mAttrib, in start()
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
DAudioFocusTest.java376 int requestResult = mAudioManager.requestAudioFocus(audioFocusRequest1); in testInteraction()
382 requestResult = mAudioManager.requestAudioFocus(audioFocusRequest2); in testInteraction()
450 int requestResult = mAudioManager.requestAudioFocus(audioFocusRequest); in requestAndLoseFocusForAttribute()
/packages/apps/DeskClock/src/com/android/deskclock/
DAsyncRingtonePlayer.java372 mAudioManager.requestAudioFocus(null, STREAM_ALARM, AUDIOFOCUS_GAIN_TRANSIENT);
564 mAudioManager.requestAudioFocus(null, STREAM_ALARM, AUDIOFOCUS_GAIN_TRANSIENT);
/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/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.java213 mAudiofocusRequestFailed = mAudioManager.requestAudioFocus(focusRequest); in onPrepared()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
DVolumeTestFragment.java76 mAudioManager.requestAudioFocus(mFocusListener, groupId, in handleMessage()
/packages/apps/Messaging/src/com/android/messaging/util/
DNotificationPlayer.java97 audioManager.requestAudioFocus(null, mCmd.stream, in run()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DMovieActivity.java216 .requestAudioFocus(null, AudioManager.STREAM_MUSIC, in onStart()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java765 private AudioFocusRequest requestAudioFocus() { in requestAudioFocus() method in HeadsetClientStateMachine
774 int focusRequestStatus = mAudioManager.requestAudioFocus(focusRequest); in requestAudioFocus()
1555 mAudioFocusRequest = requestAudioFocus(); in processAudioEvent()
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/tts/
DTextToSpeechHelper.java164 int result = mAudioManager.requestAudioFocus(mAudioFocusRequest); in requestPlay()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertAudio.java444 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_ALARM, in playAlertTone()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpControllerStateMachine.java749 a2dpSinkService.requestAudioFocus(mDevice, true);
/packages/apps/SoundRecorder/src/com/android/soundrecorder/
DSoundRecorder.java359 am.requestAudioFocus(null, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); in stopAudioPlayback()
/packages/services/Car/car-lib/api/released/
D1.txt260 …method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android…
D2.txt267 …method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android…

12