Home
last modified time | relevance | path

Searched refs:CarAudioGainConfigInfo (Results 1 – 16 of 16) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioGainConfigInfoTest.java43 CarAudioGainConfigInfo carGainInfo = new CarAudioGainConfigInfo(gainInfo); in constructor_succeeds()
66 CarAudioGainConfigInfo carGainInfo1 = new CarAudioGainConfigInfo(gainInfo); in hash_forTheSameAudioGainConfigs_equals()
79 CarAudioGainConfigInfo carGainInfo1 = new CarAudioGainConfigInfo(gainInfo); in hash_withDifferentZoneIds_notEquals()
92 CarAudioGainConfigInfo carGainInfo1 = new CarAudioGainConfigInfo(gainInfo); in hash_forTheSameObject_succeeds()
93 CarAudioGainConfigInfo carGainInfo2 = new CarAudioGainConfigInfo(gainInfo); in hash_forTheSameObject_succeeds()
105 CarAudioGainConfigInfo carGainInfo1 = new CarAudioGainConfigInfo(gainInfo); in equals_succeeds()
106 CarAudioGainConfigInfo carGainInfo2 = new CarAudioGainConfigInfo(gainInfo); in equals_succeeds()
118 CarAudioGainConfigInfo carGainInfo1 = new CarAudioGainConfigInfo(gainInfo1); in equals_fails()
124 CarAudioGainConfigInfo carGainInfo2 = new CarAudioGainConfigInfo(gainInfo2); in equals_fails()
133 CarAudioGainConfigInfo carGainInfo3 = new CarAudioGainConfigInfo(gainInfo3); in equals_fails()
[all …]
DCarVolumeGroupUnitTest.java217 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in setMuted_whenHalMuted_onActivation_returnsTrue()
233 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in setMuted_whenHalMuted_onDeactivation_returnsFalse()
365 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in isHalMuted_withHalMuted()
392 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in getMutedBySystem_withHalMuted()
1064 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in isOverLimit_expectedTrue()
1084 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in isOverLimit_expectedFalse()
1103 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in onAudioGainChanged_withOverLimit_thenEndsAndRestoresVolume()
1150 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in onAudioGainChanged_withUnderLimit_thenEndsWithVolumeUnchanged()
1197 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in onAudioGainChanged_withBlockedGain_thenEndsAndRestoresVolume()
1247 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in onAudioGainChanged_withAttenuatedGain_thenEndsAndRestoresVolume()
[all …]
DCarAudioGainMonitorTest.java231 CarAudioGainConfigInfo primaryZoneCarGain = new CarAudioGainConfigInfo(primaryZoneGain); in handleAudioDeviceGainsChanged_validZones()
235 CarAudioGainConfigInfo primaryZoneCarGain2 = new CarAudioGainConfigInfo(primaryZoneGain2); in handleAudioDeviceGainsChanged_validZones()
239 CarAudioGainConfigInfo primaryZoneCarGain3 = new CarAudioGainConfigInfo(primaryZoneGain3); in handleAudioDeviceGainsChanged_validZones()
242 CarAudioGainConfigInfo passengerZoneCarGain = new CarAudioGainConfigInfo(passengerZoneGain); in handleAudioDeviceGainsChanged_validZones()
245 CarAudioGainConfigInfo rearZoneCarGain = new CarAudioGainConfigInfo(rearZoneGain); in handleAudioDeviceGainsChanged_validZones()
247 SparseArray<List<CarAudioGainConfigInfo>> gainsForZones = new SparseArray<>(); in handleAudioDeviceGainsChanged_validZones()
254 List<CarAudioGainConfigInfo> gains = in handleAudioDeviceGainsChanged_validZones()
265 List<CarAudioGainConfigInfo> gainsForZone = gainsForZones.get(carAudioZone.getId()); in handleAudioDeviceGainsChanged_validZones()
284 CarAudioGainConfigInfo primaryZoneCarGain = new CarAudioGainConfigInfo(primaryZoneGain); in handleAudioDeviceGainsChanged_validAndUnknownZones()
287 CarAudioGainConfigInfo rearZoneCarGain = new CarAudioGainConfigInfo(rearZoneGain); in handleAudioDeviceGainsChanged_validAndUnknownZones()
[all …]
DCarAudioZoneUnitTest.java670 CarAudioGainConfigInfo carMusicGainInfo = new CarAudioGainConfigInfo(musicGainInfo); in onAudioGainChanged_withDeviceAddressesInZone()
675 CarAudioGainConfigInfo carNavGainInfo = new CarAudioGainConfigInfo(navGainInfo); in onAudioGainChanged_withDeviceAddressesInZone()
676 List<CarAudioGainConfigInfo> carGains = List.of(carMusicGainInfo, carNavGainInfo); in onAudioGainChanged_withDeviceAddressesInZone()
695 CarAudioGainConfigInfo carMusicGainInfo = new CarAudioGainConfigInfo(musicGainInfo); in onAudioGainChanged_withMultipleGainInfoForSameGroup_createsNoDuplicateEvents()
700 CarAudioGainConfigInfo carMusicGainInfoDup = new CarAudioGainConfigInfo(musicGainInfoDup); in onAudioGainChanged_withMultipleGainInfoForSameGroup_createsNoDuplicateEvents()
701 List<CarAudioGainConfigInfo> carGains = List.of(carMusicGainInfo, carMusicGainInfoDup); in onAudioGainChanged_withMultipleGainInfoForSameGroup_createsNoDuplicateEvents()
716 CarAudioGainConfigInfo carNavGainInfo = new CarAudioGainConfigInfo(navGainInfo); in onAudioGainChanged_withoutAnyDeviceAddressInZone()
976 List<CarAudioGainConfigInfo> gainInfos = in build()
977 (List<CarAudioGainConfigInfo>) invocation.getArguments()[1]; in build()
983 CarAudioGainConfigInfo gainInfo = gainInfos.get(index); in build()
DCarAudioZoneConfigUnitTest.java733 CarAudioGainConfigInfo carMusicGainInfo = new CarAudioGainConfigInfo(musicGainInfo); in onAudioGainChanged_withDeviceAddressesInZone()
769 CarAudioGainConfigInfo carNavGainInfo = new CarAudioGainConfigInfo(navGainInfo); in onAudioGainChanged_withMultipleGainInfosForOneVolumeGroup()
770 CarAudioGainConfigInfo carVoiceGainInfo = new CarAudioGainConfigInfo(voiceGainInfo); in onAudioGainChanged_withMultipleGainInfosForOneVolumeGroup()
795 CarAudioGainConfigInfo carMusicGainInfo = new CarAudioGainConfigInfo(musicGainInfo); in onAudioGainChanged_withInvalidEventType()
817 CarAudioGainConfigInfo carMusicGainInfo = new CarAudioGainConfigInfo(musicGainInfo); in onAudioGainChanged_withInvalidAddress()
841 CarAudioGainConfigInfo carMusicGainInfo = new CarAudioGainConfigInfo(musicGainInfo); in onAudioGainChanged_withoutAnyDeviceAddressInZone()
DCarAudioVolumeGroupTest.java442 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in calculateNewGainStageFromDeviceInfos_whenBlockingActive_extrapolationSucceeds()
476 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in calculateNewGainStageFromDeviceInfos_whenLimitingActive_extrapolationSucceeds()
512 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in calculateNewGainStageFromDeviceInfos_whenAttenuationActive_extrapolationSucceeds()
545 CarAudioGainConfigInfo musicCarGain = new CarAudioGainConfigInfo(musicGain); in calculateNewGainStageFromDeviceInfos_whenRestrictionsActive_extrapolationFails()
DCarAudioServiceUnitTest.java1613 CarAudioGainConfigInfo carGain = createCarAudioGainConfigInfo(PRIMARY_AUDIO_ZONE, in setGroupVolume_withVolumeGroupMutingDisabled_doesnotThrowException()
3892 CarAudioGainConfigInfo carGain = createCarAudioGainConfigInfo(PRIMARY_AUDIO_ZONE, in onAudioDeviceGainsChanged_forPrimaryZone_changesVolume()
3906 CarAudioGainConfigInfo carGain = createCarAudioGainConfigInfo(TEST_REAR_LEFT_ZONE_ID, in onAudioDeviceGainsChanged_forSecondaryZone_changesVolume()
3922 CarAudioGainConfigInfo carGain = createCarAudioGainConfigInfo(PRIMARY_AUDIO_ZONE, in onAudioDeviceGainsChanged_forIncorrectDeviceAddress_sameVolume()
3936 CarAudioGainConfigInfo primaryAudioZoneCarGain = createCarAudioGainConfigInfo( in onAudioDeviceGainsChanged_forMultipleZones_changesVolume()
3938 CarAudioGainConfigInfo secondaryAudioZoneCarGain = createCarAudioGainConfigInfo( in onAudioDeviceGainsChanged_forMultipleZones_changesVolume()
3957 CarAudioGainConfigInfo primaryAudioZoneCarGain = createCarAudioGainConfigInfo( in onAudioDeviceGainsChanged_withMute_setsSystemMute()
5603 CarAudioGainConfigInfo primaryAudioZoneCarGain = createCarAudioGainConfigInfo( in setUnmuted_whenMutedBySystem_triggersCallback()
5634 CarAudioGainConfigInfo primaryAudioZoneCarGain = createCarAudioGainConfigInfo( in setMuted_whenMutedByApiAndSystem_doesNotTriggerCallback()
6420 private CarAudioGainConfigInfo createCarAudioGainConfigInfo(int zoneId, in createCarAudioGainConfigInfo()
[all …]
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioGainConfigInfo.java26 public class CarAudioGainConfigInfo { class
36 public CarAudioGainConfigInfo(AudioGainConfigInfo audioGainConfigInfo) { in CarAudioGainConfigInfo() method in CarAudioGainConfigInfo
71 if (!(o instanceof CarAudioGainConfigInfo)) { in equals()
74 CarAudioGainConfigInfo other = (CarAudioGainConfigInfo) o; in equals()
DCarAudioGainMonitor.java77 void handleAudioDeviceGainsChanged(List<Integer> reasons, List<CarAudioGainConfigInfo> gains) { in handleAudioDeviceGainsChanged()
81 SparseArray<List<CarAudioGainConfigInfo>> gainsByZones = new SparseArray<>(); in handleAudioDeviceGainsChanged()
83 CarAudioGainConfigInfo gain = gains.get(index); in handleAudioDeviceGainsChanged()
DCarAudioZoneConfig.java440 List<CarAudioGainConfigInfo> gainInfos) { in onAudioGainChanged()
447 CarAudioGainConfigInfo gainInfo = gainInfos.get(index); in onAudioGainChanged()
DCarAudioZone.java374 List<CarAudioGainConfigInfo> gainInfos) { in onAudioGainChanged()
DCarVolumeGroup.java865 int onAudioGainChanged(List<Integer> halReasons, CarAudioGainConfigInfo gain) { in onAudioGainChanged()
DCarAudioService.java370 List<Integer> halReasons, List<CarAudioGainConfigInfo> gains) {
3748 List<Integer> halReasons, List<CarAudioGainConfigInfo> gains) {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/hal/
DAudioControlWrapperAidlTest.java74 import com.android.car.audio.CarAudioGainConfigInfo;
771 CarAudioGainConfigInfo carGainInfo1 = new CarAudioGainConfigInfo(gainInfo1); in onAudioDeviceGainsChanged_succeeds()
776 CarAudioGainConfigInfo carGainInfo2 = new CarAudioGainConfigInfo(gainInfo2); in onAudioDeviceGainsChanged_succeeds()
780 List<CarAudioGainConfigInfo> carGains = List.of(carGainInfo1, carGainInfo2); in onAudioDeviceGainsChanged_succeeds()
784 ArgumentCaptor<List<CarAudioGainConfigInfo>> captorGains = in onAudioDeviceGainsChanged_succeeds()
806 CarAudioGainConfigInfo carGainInfo1 = new CarAudioGainConfigInfo(gainInfo1); in onAudioDeviceGainsChanged_invalidReasons()
811 CarAudioGainConfigInfo carGainInfo2 = new CarAudioGainConfigInfo(gainInfo2); in onAudioDeviceGainsChanged_invalidReasons()
815 List<CarAudioGainConfigInfo> carGains = List.of(carGainInfo1, carGainInfo2); in onAudioDeviceGainsChanged_invalidReasons()
819 ArgumentCaptor<List<CarAudioGainConfigInfo>> captorGains = in onAudioDeviceGainsChanged_invalidReasons()
842 CarAudioGainConfigInfo carGainInfo1 = new CarAudioGainConfigInfo(gainInfo1); in onAudioDeviceGainsChanged_invalidReasonsAmongValidReasons()
[all …]
/packages/services/Car/service/src/com/android/car/audio/hal/
DHalAudioGainCallback.java23 import com.android.car.audio.CarAudioGainConfigInfo;
112 void onAudioDeviceGainsChanged(List<Integer> halReasons, List<CarAudioGainConfigInfo> gains); in onAudioDeviceGainsChanged()
DAudioControlWrapperAidl.java45 import com.android.car.audio.CarAudioGainConfigInfo;
450 List<CarAudioGainConfigInfo> carAudioGainConfigs = new ArrayList<>(); in onAudioDeviceGainsChanged()
453 carAudioGainConfigs.add(new CarAudioGainConfigInfo(gain)); in onAudioDeviceGainsChanged()