Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioGainMonitorTest.java390 List<Integer> limitReasons = in shouldLimitVolume_returnsTrue() local
394 for (int index = 0; index < limitReasons.size(); index++) { in shouldLimitVolume_returnsTrue()
395 List<Integer> reasons = Arrays.asList(limitReasons.get(index)); in shouldLimitVolume_returnsTrue()
402 .that(CarAudioGainMonitor.shouldLimitVolume(limitReasons)) in shouldLimitVolume_returnsTrue()
441 List<Integer> limitReasons = List.of(Reasons.ADAS_DUCKING, Reasons.NAV_DUCKING); in shouldDuckGain_returnsTrue() local
444 for (int index = 0; index < limitReasons.size(); index++) { in shouldDuckGain_returnsTrue()
445 List<Integer> reasons = Arrays.asList(limitReasons.get(index)); in shouldDuckGain_returnsTrue()
452 .that(CarAudioGainMonitor.shouldDuckGain(limitReasons)) in shouldDuckGain_returnsTrue()
DCarVolumeGroupUnitTest.java1058 List<Integer> limitReasons = List.of(Reasons.THERMAL_LIMITATION); in isOverLimit_expectedTrue() local
1066 carVolumeGroup.onAudioGainChanged(limitReasons, musicCarGain); in isOverLimit_expectedTrue()
1078 List<Integer> limitReasons = List.of(Reasons.THERMAL_LIMITATION); in isOverLimit_expectedFalse() local
1086 carVolumeGroup.onAudioGainChanged(limitReasons, musicCarGain); in isOverLimit_expectedFalse()
1098 List<Integer> limitReasons = List.of(Reasons.THERMAL_LIMITATION); in onAudioGainChanged_withOverLimit_thenEndsAndRestoresVolume() local
1106 .that(carVolumeGroup.onAudioGainChanged(limitReasons, musicCarGain)) in onAudioGainChanged_withOverLimit_thenEndsAndRestoresVolume()
1145 List<Integer> limitReasons = List.of(Reasons.THERMAL_LIMITATION); in onAudioGainChanged_withUnderLimit_thenEndsWithVolumeUnchanged() local
1153 .that(carVolumeGroup.onAudioGainChanged(limitReasons, musicCarGain)) in onAudioGainChanged_withUnderLimit_thenEndsWithVolumeUnchanged()