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.java72 private HalAudioFocus mHalAudioFocus; field in HalAudioFocusTest
76 mHalAudioFocus = new HalAudioFocus(mMockAudioManager, mAudioControlWrapper, AUDIO_ZONE_IDS); in setUp()
81 mHalAudioFocus.registerFocusListener(); in registerFocusListener_succeeds()
83 verify(mAudioControlWrapper).registerFocusListener(mHalAudioFocus); in registerFocusListener_succeeds()
90 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_notifiesHalOfFocusChange()
100 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesUsage()
110 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesFocusGain()
120 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_specifiesZoneId()
132 mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, ZONE_ID, AUDIOFOCUS_GAIN); in requestAudioFocus_providesFocusChangeListener()
143 () -> mHalAudioFocus.requestAudioFocus(USAGE_MEDIA, INVALID_ZONE_ID, in requestAudioFocus_withInvalidZone_throws()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioService.java131 private HalAudioFocus mHalAudioFocus; field in CarAudioService
283 if (mHalAudioFocus != null) { in release()
284 mHalAudioFocus.unregisterFocusListener(); in release()
330 if (mHalAudioFocus != null) { in dump()
332 mHalAudioFocus.dump("\t", writer); in dump()
584 mHalAudioFocus = new HalAudioFocus(mAudioManager, mAudioControlWrapper, getAudioZoneIds()); in setupHalAudioFocusListenerLocked()
585 mHalAudioFocus.registerFocusListener(); in setupHalAudioFocusListenerLocked()
1249 if (mHalAudioFocus != null) { in resetHalAudioFocus()
1250 mHalAudioFocus.reset(); in resetHalAudioFocus()
1251 mHalAudioFocus.registerFocusListener(); in resetHalAudioFocus()