Home
last modified time | relevance | path

Searched refs:mAudioControlWrapper (Results 1 – 7 of 7) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DHalAudioFocusTest.java103 private AudioControlWrapper mAudioControlWrapper; field in HalAudioFocusTest
116 mHalAudioFocus = new HalAudioFocus(mAudioManagerWrapper, mAudioControlWrapper, in setUp()
124 verify(mAudioControlWrapper).registerFocusListener(mHalAudioFocus); in registerFocusListener_succeeds()
133 verify(mAudioControlWrapper).unregisterFocusListener(); in unregisterFocusListener_succeeds()
143 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_notifiesHalOfFocusChange()
200 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_ALARM, ZONE_ID, AUDIOFOCUS_LOSS); in requestAudioFocus_withFocusRequestDelayed()
205 HalAudioFocus halAudioFocus = new HalAudioFocus(mAudioManagerWrapper, mAudioControlWrapper, in requestAudioFocus_withNullPlaybackMonitor()
211 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_withNullPlaybackMonitor()
257 verify(mAudioControlWrapper).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus()
262 verify(mAudioControlWrapper, times(2)).onAudioFocusChange(METADATA_MEDIA, ZONE_ID, in requestAudioFocus_withSameZoneAndUsage_notifiesHalOfExistingRequestStatus()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioModuleChangeMonitor.java37 private final AudioControlWrapper mAudioControlWrapper; field in CarAudioModuleChangeMonitor
44 mAudioControlWrapper = in CarAudioModuleChangeMonitor()
58 mAudioControlWrapper.setModuleChangeCallback(callback); in setModuleChangeCallback()
65 mAudioControlWrapper.clearModuleChangeCallback(); in clearModuleChangeCallback()
DCarAudioGainMonitor.java40 @NonNull private final AudioControlWrapper mAudioControlWrapper; field in CarAudioGainMonitor
46 mAudioControlWrapper = Objects.requireNonNull(audioControlWrapper, in CarAudioGainMonitor()
63 mAudioControlWrapper.registerAudioGainCallback(callback); in registerAudioGainListener()
68 mAudioControlWrapper.unregisterAudioGainCallback(); in unregisterAudioGainListener()
DCarDucking.java45 private final AudioControlWrapper mAudioControlWrapper; field in CarDucking
53 mAudioControlWrapper = Objects.requireNonNull(audioControlWrapper, in CarDucking()
83 mAudioControlWrapper.onDevicesToDuckChange(newDuckingInfos); in onFocusChange()
DCarVolumeGroupMuting.java48 private final AudioControlWrapper mAudioControlWrapper; field in CarVolumeGroupMuting
60 mAudioControlWrapper = Objects.requireNonNull(audioControlWrapper, in CarVolumeGroupMuting()
85 mAudioControlWrapper.onDevicesToMuteChange(mutingInfo); in carMuteChanged()
DCarAudioService.java243 private @Nullable AudioControlWrapper mAudioControlWrapper; field in CarAudioService
623 if (mAudioControlWrapper != null) { in releaseAudioControlWrapperLocked()
624 mAudioControlWrapper.unlinkToDeath(); in releaseAudioControlWrapperLocked()
625 mAudioControlWrapper = null; in releaseAudioControlWrapperLocked()
2208 mHalAudioFocus = new HalAudioFocus(mAudioManagerWrapper, mAudioControlWrapper,
2221 mCarAudioGainMonitor = new CarAudioGainMonitor(mAudioControlWrapper,
2234 mCarAudioModuleChangeMonitor = new CarAudioModuleChangeMonitor(mAudioControlWrapper,
3711 if (mAudioControlWrapper == null) {
3712 mAudioControlWrapper = AudioControlFactory.newAudioControl();
3713 mAudioControlWrapper.linkToDeath(this::audioControlDied);
[all …]
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioFocus.java71 private final AudioControlWrapper mAudioControlWrapper; field in HalAudioFocus
89 mAudioControlWrapper = Objects.requireNonNull(audioControlWrapper); in HalAudioFocus()
105 mAudioControlWrapper.registerFocusListener(this); in registerFocusListener()
112 mAudioControlWrapper.unregisterFocusListener(); in unregisterFocusListener()
136 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, in requestAudioFocus()
278 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, AUDIOFOCUS_LOSS); in abandonAudioFocusLocked()
322 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, focusChange); in onAudioFocusChange()
355 mAudioControlWrapper.onAudioFocusChange(metadata, zoneId, resultingFocusGain); in makeAudioFocusRequestLocked()