/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()
|
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/ |
D | TmaPlayer.java | 185 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/ |
D | A2dpSinkStreamHandler.java | 118 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()
|
D | A2dpSinkService.java | 93 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/ |
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/Car/LocalMediaPlayer/src/com/android/car/media/localmediaplayer/ |
D | Player.java | 157 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/ |
D | VoicemailAudioManager.java | 54 public void requestAudioFocus() { in requestAudioFocus() method in VoicemailAudioManager 56 audioManager.requestAudioFocus( in requestAudioFocus()
|
D | VoicemailPlaybackPresenter.java | 675 voicemailAudioManager.requestAudioFocus(); in resumePlayback()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioTestFragment.java | 430 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()
|
D | AudioPlayer.java | 133 ret = mAudioManager.requestAudioFocus(mFocusListener, mAttrib, in start()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | AudioFocusTest.java | 376 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/ |
D | AsyncRingtonePlayer.java | 372 mAudioManager.requestAudioFocus(null, STREAM_ALARM, AUDIOFOCUS_GAIN_TRANSIENT); 564 mAudioManager.requestAudioFocus(null, STREAM_ALARM, AUDIOFOCUS_GAIN_TRANSIENT);
|
/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/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 | 213 mAudiofocusRequestFailed = mAudioManager.requestAudioFocus(focusRequest); in onPrepared()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/ |
D | VolumeTestFragment.java | 76 mAudioManager.requestAudioFocus(mFocusListener, groupId, in handleMessage()
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | NotificationPlayer.java | 97 audioManager.requestAudioFocus(null, mCmd.stream, in run()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | MovieActivity.java | 216 .requestAudioFocus(null, AudioManager.STREAM_MUSIC, in onStart()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/ |
D | HeadsetClientStateMachine.java | 765 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/ |
D | TextToSpeechHelper.java | 164 int result = mAudioManager.requestAudioFocus(mAudioFocusRequest); in requestPlay()
|
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/ |
D | CellBroadcastAlertAudio.java | 444 mAudioManager.requestAudioFocus(null, AudioManager.STREAM_ALARM, in playAlertTone()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpControllerStateMachine.java | 749 a2dpSinkService.requestAudioFocus(mDevice, true);
|
/packages/apps/SoundRecorder/src/com/android/soundrecorder/ |
D | SoundRecorder.java | 359 am.requestAudioFocus(null, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN); in stopAudioPlayback()
|
/packages/services/Car/car-lib/api/released/ |
D | 1.txt | 260 …method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android…
|
D | 2.txt | 267 …method public int requestAudioFocus(android.media.AudioManager.OnAudioFocusChangeListener, android…
|