Home
last modified time | relevance | path

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

/packages/services/Car/car-lib/src/android/car/oem/
DOemCarAudioFocusEvaluationRequest.java46 private @Nullable final AudioFocusEntry mAudioFocusRequest; field in OemCarAudioFocusEvaluationRequest
59 mAudioFocusRequest = (flg & Builder.FOCUS_REQUEST_FIELDS_SET) == 0 in OemCarAudioFocusEvaluationRequest()
101 if (mAudioFocusRequest != null) { in writeToParcel()
105 if (mAudioFocusRequest != null) { in writeToParcel()
106 mAudioFocusRequest.writeToParcel(dest, flags); in writeToParcel()
130 return mAudioFocusRequest; in getAudioFocusRequest()
175 return safeEquals(mAudioFocusRequest, that.mAudioFocusRequest) in equals()
190 int hash = Objects.hash(mAudioFocusRequest, mFocusHolders, mFocusLosers, mMutedVolumeGroups, in hashCode()
209 mAudioFocusRequest = audioFocusEntry; in OemCarAudioFocusEvaluationRequest()
226 + mAudioZoneId + ", audioFocusInfo = " + mAudioFocusRequest in toString()
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/
DCarAudioZoneInputFragment.java71 private AudioFocusRequest mAudioFocusRequest; field in CarAudioZoneInputFragment
156 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in playAudio()
161 mAudioFocusRequest = new AudioFocusRequest in playAudio()
170 int audioFocusRequestResults = mAudioManager.requestAudioFocus(mAudioFocusRequest); in playAudio()
184 mAudioFocusRequest = null; in playAudio()
194 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in stopAudio()
245 mAudioFocusRequest = null; in stopAudioLocked()
/packages/providers/MediaProvider/src/com/android/providers/media/photopicker/ui/remotepreview/
DRemotePreviewSession.java78 private AudioFocusRequest mAudioFocusRequest = null; field in RemotePreviewSession
428 if (mAudioFocusRequest == null) return; in abandonAudioFocusIfAny()
430 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in abandonAudioFocusIfAny()
431 mAudioFocusRequest = null; in abandonAudioFocusIfAny()
438 mAudioFocusRequest = new AudioFocusRequest.Builder(AudioManager.AUDIOFOCUS_GAIN_TRANSIENT) in requestAudioFocus()
453 return mAudioManager.requestAudioFocus(mAudioFocusRequest); in requestAudioFocus()
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java270 int result = mAudioManager.abandonAudioFocusRequest(currentRequest.mAudioFocusRequest); in abandonAudioFocusLocked()
372 final AudioFocusRequest mAudioFocusRequest; field in HalAudioFocusRequest
377 mAudioFocusRequest = audioFocusRequest; in HalAudioFocusRequest()
387 .append(mAudioFocusRequest.getAudioAttributes()) in toString()
389 .append(mAudioFocusRequest.getFocusGain()) in toString()
/packages/apps/Car/systemlibs/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/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHeadsetClientStateMachine.java189 private AudioFocusRequest mAudioFocusRequest; field in HeadsetClientStateMachine
1011 if (mAudioFocusRequest == null) return; in returnAudioFocusIfNecessary()
1012 mAudioManager.abandonAudioFocusRequest(mAudioFocusRequest); in returnAudioFocusIfNecessary()
1013 mAudioFocusRequest = null; in returnAudioFocusIfNecessary()
1938 mAudioFocusRequest = requestAudioFocus(); in processAudioEvent()