Home
last modified time | relevance | path

Searched refs:onAudioGainChanged (Results 1 – 9 of 9) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarVolumeGroupUnitTest.java218 carVolumeGroup.onAudioGainChanged(muteReasons, musicCarGain); in setMuted_whenHalMuted_onActivation_returnsTrue()
234 carVolumeGroup.onAudioGainChanged(muteReasons, musicCarGain); in setMuted_whenHalMuted_onDeactivation_returnsFalse()
366 carVolumeGroup.onAudioGainChanged(muteReasons, musicCarGain); in isHalMuted_withHalMuted()
393 carVolumeGroup.onAudioGainChanged(muteReasons, musicCarGain); in getMutedBySystem_withHalMuted()
1066 carVolumeGroup.onAudioGainChanged(limitReasons, musicCarGain); in isOverLimit_expectedTrue()
1086 carVolumeGroup.onAudioGainChanged(limitReasons, musicCarGain); in isOverLimit_expectedFalse()
1106 .that(carVolumeGroup.onAudioGainChanged(limitReasons, musicCarGain)) in onAudioGainChanged_withOverLimit_thenEndsAndRestoresVolume()
1124 .that(carVolumeGroup.onAudioGainChanged(noReasons, musicCarGain)) in onAudioGainChanged_withOverLimit_thenEndsAndRestoresVolume()
1153 .that(carVolumeGroup.onAudioGainChanged(limitReasons, musicCarGain)) in onAudioGainChanged_withUnderLimit_thenEndsWithVolumeUnchanged()
1171 .that(carVolumeGroup.onAudioGainChanged(noReasons, musicCarGain)) in onAudioGainChanged_withUnderLimit_thenEndsWithVolumeUnchanged()
[all …]
DCarAudioZoneConfigUnitTest.java734 when(mMockNavGroup.onAudioGainChanged(any(), any())).thenReturn(EVENT_TYPE_MUTE_CHANGED); in onAudioGainChanged_withDeviceAddressesInZone()
735 when(mMockMusicGroup.onAudioGainChanged(any(), any())) in onAudioGainChanged_withDeviceAddressesInZone()
737 when(mMockVoiceGroup.onAudioGainChanged(any(), any())) in onAudioGainChanged_withDeviceAddressesInZone()
740 List<CarVolumeGroupEvent> events = zoneConfig.onAudioGainChanged(reasons, in onAudioGainChanged_withDeviceAddressesInZone()
744 verify(mMockMusicGroup).onAudioGainChanged(reasons, carMusicGainInfo); in onAudioGainChanged_withDeviceAddressesInZone()
745 verify(mMockNavGroup, never()).onAudioGainChanged(any(), any()); in onAudioGainChanged_withDeviceAddressesInZone()
746 verify(mMockVoiceGroup, never()).onAudioGainChanged(any(), any()); in onAudioGainChanged_withDeviceAddressesInZone()
771 when(mockNavAndVoiceGroup.onAudioGainChanged(any(), any())) in onAudioGainChanged_withMultipleGainInfosForOneVolumeGroup()
773 when(mMockMusicGroup.onAudioGainChanged(any(), any())) in onAudioGainChanged_withMultipleGainInfosForOneVolumeGroup()
776 List<CarVolumeGroupEvent> events = zoneConfig.onAudioGainChanged(reasons, in onAudioGainChanged_withMultipleGainInfosForOneVolumeGroup()
[all …]
DCarAudioZoneUnitTest.java680 mTestAudioZone.onAudioGainChanged(reasons, carGains); in onAudioGainChanged_withDeviceAddressesInZone()
682 verify(mMockMusicGroup0, never()).onAudioGainChanged(any(), any()); in onAudioGainChanged_withDeviceAddressesInZone()
683 verify(mMockNavGroup0).onAudioGainChanged(any(), any()); in onAudioGainChanged_withDeviceAddressesInZone()
684 verify(mMockVoiceGroup0, never()).onAudioGainChanged(any(), any()); in onAudioGainChanged_withDeviceAddressesInZone()
685 verify(mMockGroup1).onAudioGainChanged(any(), any()); in onAudioGainChanged_withDeviceAddressesInZone()
706 .that(mTestAudioZone.onAudioGainChanged(reasons, carGains).size()).isEqualTo(1); in onAudioGainChanged_withMultipleGainInfoForSameGroup_createsNoDuplicateEvents()
722 mTestAudioZone.onAudioGainChanged(reasons, List.of(carNavGainInfo)); in onAudioGainChanged_withoutAnyDeviceAddressInZone()
724 verify(mMockMusicGroup0, never()).onAudioGainChanged(any(), any()); in onAudioGainChanged_withoutAnyDeviceAddressInZone()
725 verify(mMockNavGroup0, never()).onAudioGainChanged(any(), any()); in onAudioGainChanged_withoutAnyDeviceAddressInZone()
726 verify(mMockVoiceGroup0, never()).onAudioGainChanged(any(), any()); in onAudioGainChanged_withoutAnyDeviceAddressInZone()
[all …]
DCarAudioGainMonitorTest.java266 verify(carAudioZone).onAudioGainChanged(eq(reasons), eq(gainsForZone)); in handleAudioDeviceGainsChanged_validZones()
306 verify(carAudioZone).onAudioGainChanged(eq(reasons), eq(gainsForZone)); in handleAudioDeviceGainsChanged_validAndUnknownZones()
309 verify(carAudioZone, never()).onAudioGainChanged(any(), any()); in handleAudioDeviceGainsChanged_validAndUnknownZones()
333 verify(carAudioZone, never()).onAudioGainChanged(any(), any()); in handleAudioDeviceGainsChanged_unknownZones()
596 when(primaryZone.onAudioGainChanged(any(), any())) in generateZoneMocks()
602 when(passengerZone.onAudioGainChanged(any(), any())) in generateZoneMocks()
610 when(rearZone.onAudioGainChanged(any(), any())) in generateZoneMocks()
DCarAudioVolumeGroupTest.java443 carVolumeGroup.onAudioGainChanged(reasons, musicCarGain); in calculateNewGainStageFromDeviceInfos_whenBlockingActive_extrapolationSucceeds()
477 carVolumeGroup.onAudioGainChanged(reasons, musicCarGain); in calculateNewGainStageFromDeviceInfos_whenLimitingActive_extrapolationSucceeds()
513 carVolumeGroup.onAudioGainChanged(reasons, musicCarGain); in calculateNewGainStageFromDeviceInfos_whenAttenuationActive_extrapolationSucceeds()
546 carVolumeGroup.onAudioGainChanged(reasons, musicCarGain); in calculateNewGainStageFromDeviceInfos_whenRestrictionsActive_extrapolationFails()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioZone.java373 List<CarVolumeGroupEvent> onAudioGainChanged(List<Integer> halReasons, in onAudioGainChanged() method in CarAudioZone
378 .onAudioGainChanged(halReasons, gainInfos); in onAudioGainChanged()
DCarAudioGainMonitor.java103 events.addAll(carAudioZone.onAudioGainChanged(reasons, gainsByZones.valueAt(i))); in handleAudioDeviceGainsChanged()
DCarAudioZoneConfig.java439 List<CarVolumeGroupEvent> onAudioGainChanged(List<Integer> halReasons, in onAudioGainChanged() method in CarAudioZoneConfig
454 int eventType = mVolumeGroups.get(groupId).onAudioGainChanged(halReasons, gainInfo); in onAudioGainChanged()
DCarVolumeGroup.java865 int onAudioGainChanged(List<Integer> halReasons, CarAudioGainConfigInfo gain) { in onAudioGainChanged() method in CarVolumeGroup