Searched refs:mAudioFocusRequest (Results 1 – 3 of 3) sorted by relevance
79 private final AudioFocusRequest mAudioFocusRequest; field in TextToSpeechHelper115 mAudioFocusRequest = new AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT) in TextToSpeechHelper()165 int result = mAudioManager.requestAudioFocus(mAudioFocusRequest); in requestPlay()196 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in onTtsStopped()
69 private final AudioFocusRequest mAudioFocusRequest; field in TmaPlayer91 mAudioFocusRequest = new AudioFocusRequest.Builder(AUDIOFOCUS_GAIN).build(); in TmaPlayer()261 return mAudioManager.requestAudioFocus(mAudioFocusRequest) == AUDIOFOCUS_REQUEST_GRANTED; in audioFocusGranted()
177 private AudioFocusRequest mAudioFocusRequest; field in HeadsetClientStateMachine760 if (mAudioFocusRequest == null) return; in returnAudioFocusIfNecessary()761 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in returnAudioFocusIfNecessary()762 mAudioFocusRequest = null; in returnAudioFocusIfNecessary()1501 mAudioFocusRequest = requestAudioFocus(); in processAudioEvent()