Home
last modified time | relevance | path

Searched refs:halReasons (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/service/src/com/android/car/audio/
DCarVolumeGroup.java865 int onAudioGainChanged(List<Integer> halReasons, CarAudioGainConfigInfo gain) { in onAudioGainChanged() argument
877 mReasons = new ArrayList<>(halReasons); in onAudioGainChanged()
879 boolean shouldBlock = CarAudioGainMonitor.shouldBlockVolumeRequest(halReasons); in onAudioGainChanged()
886 boolean shouldLimit = CarAudioGainMonitor.shouldLimitVolume(halReasons); in onAudioGainChanged()
893 boolean shouldDuck = CarAudioGainMonitor.shouldDuckGain(halReasons); in onAudioGainChanged()
902 boolean shouldMute = CarAudioGainMonitor.shouldMuteVolumeGroup(halReasons); in onAudioGainChanged()
908 if (CarAudioGainMonitor.shouldUpdateVolumeIndex(halReasons) in onAudioGainChanged()
DCarAudioZone.java373 List<CarVolumeGroupEvent> onAudioGainChanged(List<Integer> halReasons, in onAudioGainChanged() argument
378 .onAudioGainChanged(halReasons, gainInfos); in onAudioGainChanged()
DCarAudioZoneConfig.java439 List<CarVolumeGroupEvent> onAudioGainChanged(List<Integer> halReasons, in onAudioGainChanged() argument
443 List<Integer> extraInfos = CarAudioGainMonitor.convertReasonsToExtraInfo(halReasons); in onAudioGainChanged()
454 int eventType = mVolumeGroups.get(groupId).onAudioGainChanged(halReasons, gainInfo); in onAudioGainChanged()
DCarAudioService.java370 List<Integer> halReasons, List<CarAudioGainConfigInfo> gains) {
372 handleAudioDeviceGainsChangedLocked(halReasons, gains);
3748 List<Integer> halReasons, List<CarAudioGainConfigInfo> gains) {
3752 mCarAudioGainMonitor.handleAudioDeviceGainsChanged(halReasons, gains);
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java764 int[] halReasons = {Reasons.REMOTE_MUTE, Reasons.NAV_DUCKING}; in onAudioDeviceGainsChanged_succeeds() local
765 List<Integer> reasons = Arrays.stream(halReasons).boxed().collect(Collectors.toList()); in onAudioDeviceGainsChanged_succeeds()
782 captor.getValue().onAudioDeviceGainsChanged(halReasons, gains); in onAudioDeviceGainsChanged_succeeds()
799 int[] halReasons = {-1, 1999, 666}; in onAudioDeviceGainsChanged_invalidReasons() local
817 captor.getValue().onAudioDeviceGainsChanged(halReasons, gains); in onAudioDeviceGainsChanged_invalidReasons()
835 int[] halReasons = {-1, Reasons.REMOTE_MUTE, 1999, 666, Reasons.NAV_DUCKING}; in onAudioDeviceGainsChanged_invalidReasonsAmongValidReasons() local
853 captor.getValue().onAudioDeviceGainsChanged(halReasons, gains); in onAudioDeviceGainsChanged_invalidReasonsAmongValidReasons()
/packages/services/Car/service/src/com/android/car/audio/hal/
DAudioControlWrapperAidl.java449 public void onAudioDeviceGainsChanged(int[] halReasons, AudioGainConfigInfo[] gains) { in onAudioDeviceGainsChanged() argument
456 for (int index = 0; index < halReasons.length; index++) { in onAudioDeviceGainsChanged()
457 int halReason = halReasons[index]; in onAudioDeviceGainsChanged()
DHalAudioGainCallback.java112 void onAudioDeviceGainsChanged(List<Integer> halReasons, List<CarAudioGainConfigInfo> gains); in onAudioDeviceGainsChanged() argument
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioZoneUnitTest.java975 List<Integer> halReasons = (List<Integer>) invocation.getArguments()[0]; in build()
980 CarAudioGainMonitor.convertReasonsToExtraInfo(halReasons); in build()
989 int eventType = mCarVolumeGroups.get(groupId).onAudioGainChanged(halReasons, in build()