Searched refs:CarAudioDeviceInfo (Results 1 – 10 of 10) sorted by relevance
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioDeviceInfoTest.java | 53 assertThrows(NullPointerException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresNonNullGain() 62 assertThrows(NullPointerException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresJointModeGain() 71 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresMaxGainLargerThanMin() 81 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresDefaultGainLargerThanMin() 91 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresDefaultGainSmallerThanMax() 100 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresGainStepSizeFactorOfRange() 109 assertThrows(IllegalArgumentException.class, () -> new CarAudioDeviceInfo(audioDeviceInfo)); in constructor_requiresGainStepSizeFactorOfRangeToDefault() 117 CarAudioDeviceInfo info = new CarAudioDeviceInfo(audioDeviceInfo); in getSampleRate_withMultipleSampleRates_returnsMax() 128 CarAudioDeviceInfo info = new CarAudioDeviceInfo(audioDeviceInfo); in getSampleRate_withNullSampleRate_returnsDefault() 132 assertThat(sampleRate).isEqualTo(CarAudioDeviceInfo.DEFAULT_SAMPLE_RATE); in getSampleRate_withNullSampleRate_returnsDefault() [all …]
|
D | CarVolumeGroupUnitTest.java | 57 private CarAudioDeviceInfo mMediaDeviceInfo; 58 private CarAudioDeviceInfo mNavigationDeviceInfo; 97 CarAudioDeviceInfo differentStepValueDevice = new InfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_withDifferentStepSize_throws() 152 CarAudioDeviceInfo secondInfo = new InfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithSmallerMinGain_updatesMinGain() 164 CarAudioDeviceInfo secondInfo = new InfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithLargerMinGain_keepsFirstMinGain() 176 CarAudioDeviceInfo secondInfo = new InfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithLargerMaxGain_updatesMaxGain() 188 CarAudioDeviceInfo secondInfo = new InfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithSmallerMaxGain_keepsFirstMaxGain() 200 CarAudioDeviceInfo secondInfo = new InfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithLargerDefaultGain_updatesDefaultGain() 212 CarAudioDeviceInfo secondInfo = new InfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithSmallerDefaultGain_keepsFirstDefaultGain() 372 CarAudioDeviceInfo actualDevice = carVolumeGroup.getCarAudioDeviceInfoForAddress( in getCarAudioDeviceInfoForAddress_returnsExpectedDevice() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioZonesHelperLegacyTest.java | 64 List<CarAudioDeviceInfo> carAudioDeviceInfos = getCarAudioDeviceInfoWithDuplicateBuses(); in constructor_checksForNoDuplicateBusNumbers() 75 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in constructor_throwsIfLegacyContextNotAssignedToBus() 88 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in loadAudioZones_succeeds() 101 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in loadAudioZones_parsesAllVolumeGroups() 115 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in loadAudioZones_associatesLegacyContextsWithCorrectBuses() 142 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in loadAudioZones_associatesNonLegacyContextsWithMediaBus() 161 private List<CarAudioDeviceInfo> getCarAudioDeviceInfoWithDuplicateBuses() { in getCarAudioDeviceInfoWithDuplicateBuses() 162 CarAudioDeviceInfo deviceInfo1 = Mockito.mock(CarAudioDeviceInfo.class); in getCarAudioDeviceInfoWithDuplicateBuses() 164 CarAudioDeviceInfo deviceInfo2 = Mockito.mock(CarAudioDeviceInfo.class); in getCarAudioDeviceInfoWithDuplicateBuses() 169 private List<CarAudioDeviceInfo> getValidCarAudioDeviceInfos() { in getValidCarAudioDeviceInfos() [all …]
|
D | CarAudioZonesHelperTest.java | 54 private List<CarAudioDeviceInfo> mCarAudioOutputDeviceInfos; 92 private List<CarAudioDeviceInfo> generateCarDeviceInfos() { in generateCarDeviceInfos() 118 private CarAudioDeviceInfo generateCarAudioDeviceInfo(String address) { in generateCarAudioDeviceInfo() 119 CarAudioDeviceInfo cadiMock = mock(CarAudioDeviceInfo.class); in generateCarAudioDeviceInfo()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioZonesHelperLegacy.java | 63 private final SparseArray<CarAudioDeviceInfo> mBusToCarAudioDeviceInfo; 67 @NonNull List<CarAudioDeviceInfo> carAudioDeviceInfos, in CarAudioZonesHelperLegacy() 112 private static SparseArray<CarAudioDeviceInfo> generateBusToCarAudioDeviceInfo( in generateBusToCarAudioDeviceInfo() 113 List<CarAudioDeviceInfo> carAudioDeviceInfos) { in generateBusToCarAudioDeviceInfo() 114 SparseArray<CarAudioDeviceInfo> busToCarAudioDeviceInfo = new SparseArray<>(); in generateBusToCarAudioDeviceInfo() 116 for (CarAudioDeviceInfo carAudioDeviceInfo : carAudioDeviceInfos) { in generateBusToCarAudioDeviceInfo() 195 CarAudioDeviceInfo info = mBusToCarAudioDeviceInfo.get(busNumber); in bindContextToBuilder()
|
D | CarVolumeGroup.java | 63 private final Map<String, CarAudioDeviceInfo> mAddressToCarAudioDeviceInfo; 78 Map<String, CarAudioDeviceInfo> addressToCarAudioDeviceInfo, in CarVolumeGroup() 101 CarAudioDeviceInfo getCarAudioDeviceInfoForAddress(String address) { in getCarAudioDeviceInfoForAddress() 167 CarAudioDeviceInfo info = mAddressToCarAudioDeviceInfo.get(address); in setCurrentGainIndex() 339 private final Map<String, CarAudioDeviceInfo> mAddressToCarAudioDeviceInfo = 359 Builder setDeviceInfoForContext(int carAudioContext, CarAudioDeviceInfo info) { in setDeviceInfoForContext()
|
D | CarAudioZonesHelper.java | 123 CarAudioDeviceInfo info) { in setNonLegacyContexts() 130 private final Map<String, CarAudioDeviceInfo> mAddressToCarAudioDeviceInfo; 147 @NonNull List<CarAudioDeviceInfo> carAudioDeviceInfos, in CarAudioZonesHelper() 172 private static Map<String, CarAudioDeviceInfo> generateAddressToInfoMap( in generateAddressToInfoMap() 173 List<CarAudioDeviceInfo> carAudioDeviceInfos) { in generateAddressToInfoMap() 176 .collect(Collectors.toMap(CarAudioDeviceInfo::getAddress, info -> info)); in generateAddressToInfoMap() 438 CarAudioDeviceInfo info = mAddressToCarAudioDeviceInfo.get(address); in parseVolumeGroupContexts()
|
D | CarAudioService.java | 538 private List<CarAudioDeviceInfo> generateCarAudioDeviceInfos() { in generateCarAudioDeviceInfos() 544 .map(CarAudioDeviceInfo::new) in generateCarAudioDeviceInfos() 554 List<CarAudioDeviceInfo> carAudioDeviceInfos) { in loadCarAudioConfigurationLocked() 568 List<CarAudioDeviceInfo> carAudioDeviceInfos) { in loadVolumeGroupConfigurationWithAudioControlLocked() 583 List<CarAudioDeviceInfo> carAudioDeviceInfos = generateCarAudioDeviceInfos(); in loadCarAudioZonesLocked() 807 final CarAudioDeviceInfo helper = new CarAudioDeviceInfo(sourcePortInfo); in createAudioPatchLocked()
|
D | CarAudioDeviceInfo.java | 44 /* package */ class CarAudioDeviceInfo { class 63 CarAudioDeviceInfo(AudioDeviceInfo audioDeviceInfo) { in CarAudioDeviceInfo() method in CarAudioDeviceInfo
|
D | CarAudioDynamicRouting.java | 70 CarAudioDeviceInfo info = group.getCarAudioDeviceInfoForAddress(address); in setupAudioDynamicRoutingForGroup()
|