Home
last modified time | relevance | path

Searched refs:mAudioFocusRequest (Results 1 – 3 of 3) sorted by relevance

/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/tts/
DTextToSpeechHelper.java79 private final AudioFocusRequest mAudioFocusRequest; field in TextToSpeechHelper
115 mAudioFocusRequest = new AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT) in TextToSpeechHelper()
165 int result = mAudioManager.requestAudioFocus(mAudioFocusRequest); in requestPlay()
196 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in onTtsStopped()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaPlayer.java69 private final AudioFocusRequest mAudioFocusRequest; field in TmaPlayer
91 mAudioFocusRequest = new AudioFocusRequest.Builder(AUDIOFOCUS_GAIN).build(); in TmaPlayer()
261 return mAudioManager.requestAudioFocus(mAudioFocusRequest) == AUDIOFOCUS_REQUEST_GRANTED; in audioFocusGranted()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java177 private AudioFocusRequest mAudioFocusRequest; field in HeadsetClientStateMachine
760 if (mAudioFocusRequest == null) return; in returnAudioFocusIfNecessary()
761 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in returnAudioFocusIfNecessary()
762 mAudioFocusRequest = null; in returnAudioFocusIfNecessary()
1501 mAudioFocusRequest = requestAudioFocus(); in processAudioEvent()