Home
last modified time | relevance | path

Searched refs:mHalAudioFocus (Results 1 – 2 of 2) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java74 private HalAudioFocus mHalAudioFocus; field in HalAudioFocusTest
78 mHalAudioFocus = new HalAudioFocus(mMockAudioManager, mAudioControlWrapper, AUDIO_ZONE_IDS); in setUp()
83 mHalAudioFocus.registerFocusListener(); in registerFocusListener_succeeds()
85 verify(mAudioControlWrapper).registerFocusListener(mHalAudioFocus); in registerFocusListener_succeeds()
92 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_notifiesHalOfFocusChange()
102 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesUsage()
112 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesFocusGain()
122 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesZoneId()
134 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_providesFocusChangeListener()
145 () -> mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, INVALID_ZONE_ID, in requestAudioFocus_withInvalidZone_throws()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java149 private HalAudioFocus mHalAudioFocus; field in CarAudioService
288 if (mHalAudioFocus != null) { in release()
289 mHalAudioFocus.unregisterFocusListener(); in release()
375 if (mHalAudioFocus != null) { in dump()
377 mHalAudioFocus.dump(writer); in dump()
683 mHalAudioFocus = new HalAudioFocus(mAudioManager, mAudioControlWrapper, getAudioZoneIds()); in setupHalAudioFocusListenerLocked()
684 mHalAudioFocus.registerFocusListener(); in setupHalAudioFocusListenerLocked()
1306 if (mHalAudioFocus == null) { in getActiveHalUsagesForZone()
1309 return mHalAudioFocus.getActiveUsagesForZone(zoneId); in getActiveHalUsagesForZone()
1501 if (mHalAudioFocus != null) { in resetHalAudioFocus()
[all …]