Home
last modified time | relevance | path

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

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DCarAudioZoneInputFragment.java67 private AudioFocusRequest mAudioFocusRequest; field in CarAudioZoneInputFragment
148 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in playAudio()
153 mAudioFocusRequest = new AudioFocusRequest in playAudio()
162 int audioFocusRequestResults = mAudioManager.requestAudioFocus(mAudioFocusRequest); in playAudio()
176 mAudioFocusRequest = null; in playAudio()
186 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in stopAudio()
237 mAudioFocusRequest = null; in stopAudioLocked()
/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/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java206 int result = mAudioManager.abandonAudioFocusRequest(currentRequest.mAudioFocusRequest); in abandonAudioFocusLocked()
284 final AudioFocusRequest mAudioFocusRequest; field in HalAudioFocusRequest
289 mAudioFocusRequest = audioFocusRequest; in HalAudioFocusRequest()
/packages/apps/Car/tests/TestMediaApp/src/com/android/car/media/testmediaapp/
DTmaPlayer.java70 private final AudioFocusRequest mAudioFocusRequest; field in TmaPlayer
91 mAudioFocusRequest = new AudioFocusRequest.Builder(AUDIOFOCUS_GAIN).build(); in TmaPlayer()
264 return mAudioManager.requestAudioFocus(mAudioFocusRequest) == AUDIOFOCUS_REQUEST_GRANTED; in audioFocusGranted()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java187 private AudioFocusRequest mAudioFocusRequest; field in HeadsetClientStateMachine
854 if (mAudioFocusRequest == null) return; in returnAudioFocusIfNecessary()
855 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in returnAudioFocusIfNecessary()
856 mAudioFocusRequest = null; in returnAudioFocusIfNecessary()
1625 mAudioFocusRequest = requestAudioFocus(); in processAudioEvent()