/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarAudioDeviceInfoTest.java | 31 import static com.android.car.audio.CarAudioDeviceInfo.DEFAULT_SAMPLE_RATE; 64 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in setAudioDeviceInfo_requiresNonNullGain_forBusDevices() 80 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in setAudioDeviceInfo_doesNotRequiresNonNullGain_forNonBusDevices() 94 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in setAudioDeviceInfo_requiresJointModeGain() 109 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in setAudioDeviceInfo_requiresMaxGainLargerThanMin() 124 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in setAudioDeviceInfo_requiresDefaultGainLargerThanMin() 140 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in setAudioDeviceInfo_requiresDefaultGainSmallerThanMax() 156 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in setAudioDeviceInfo_requiresGainStepSizeFactorOfRange() 171 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in setAudioDeviceInfo_requiresGainStepSizeFactorOfRangeToDefault() 187 CarAudioDeviceInfo info = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); in isActive_beforeSettingAudioDevice() [all …]
|
D | CarVolumeGroupFactoryTest.java | 65 private CarAudioDeviceInfo mMediaDeviceInfo; 66 private CarAudioDeviceInfo mNavigationDeviceInfo; 113 CarAudioDeviceInfo differentStepValueDevice = new TestCarAudioDeviceInfoBuilder( in setDeviceInfoForContext_withDifferentStepSize_throws() 166 CarAudioDeviceInfo secondInfo = new TestCarAudioDeviceInfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithSmallerMinGain_updatesMinGain() 178 CarAudioDeviceInfo secondInfo = new TestCarAudioDeviceInfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithLargerMinGain_keepsFirstMinGain() 190 CarAudioDeviceInfo secondInfo = new TestCarAudioDeviceInfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithLargerMaxGain_updatesMaxGain() 202 CarAudioDeviceInfo secondInfo = new TestCarAudioDeviceInfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithSmallerMaxGain_keepsFirstMaxGain() 214 CarAudioDeviceInfo secondInfo = new TestCarAudioDeviceInfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithLargerDefaultGain_updatesDefaultGain() 226 CarAudioDeviceInfo secondInfo = new TestCarAudioDeviceInfoBuilder(NAVIGATION_DEVICE_ADDRESS) in setDeviceInfoForContext_SecondCallWithSmallerDefaultGain_keepsFirstDefaultGain()
|
D | CarAudioVolumeGroupTest.java | 136 private CarAudioDeviceInfo mMediaDeviceInfo; 137 private CarAudioDeviceInfo mNavigationDeviceInfo; 155 mMediaDeviceInfo = new CarAudioDeviceInfo(mAudioManagerWrapper, in setUp() 158 mNavigationDeviceInfo = new CarAudioDeviceInfo(mAudioManagerWrapper, in setUp() 574 CarAudioDeviceInfo mockCarDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in audioDevicesAdded_whileInactive() 591 CarAudioDeviceInfo mockCarDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in audioDevicesAdded_whileActive() 604 CarAudioDeviceInfo mockDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in audioDevicesAdded_withNullDevices() 619 CarAudioDeviceInfo mockCarDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in audioDevicesRemoved_whileActive() 634 CarAudioDeviceInfo mockCarDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in audioDevicesRemoved_whileInactive() 648 CarAudioDeviceInfo mockDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in audioDevicesRemoved_withNullDevices() [all …]
|
D | CarAudioZoneConfigUnitTest.java | 335 CarAudioDeviceInfo musicCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in validateCanUseDynamicMixRouting_addressSharedAmongGroups_forbidUseDynamicRouting() 353 CarAudioDeviceInfo musicCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in validateCanUseDynamicMixRouting_whenUseCoreRouting_disablesDynamicRouting() 372 CarAudioDeviceInfo musicCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in validateZoneWhenUsageSharedAmongContext_forbidUseDynamicRouting() 373 CarAudioDeviceInfo navCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in validateZoneWhenUsageSharedAmongContext_forbidUseDynamicRouting() 395 CarAudioDeviceInfo musicCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in validateZoneWhenUsageSharedAmongContext_usingCoreRouting_disablesDynamicRouting() 396 CarAudioDeviceInfo navCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in validateZoneWhenUsageSharedAmongContext_usingCoreRouting_disablesDynamicRouting() 420 CarAudioDeviceInfo musicCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in validateZoneWhenUsageSharedAmongContext_notUsingCoreRouting_fails() 421 CarAudioDeviceInfo navCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in validateZoneWhenUsageSharedAmongContext_notUsingCoreRouting_fails() 603 CarAudioDeviceInfo musicCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in getAudioDeviceInfos() 604 CarAudioDeviceInfo navCarAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in getAudioDeviceInfos() [all …]
|
D | TestCarAudioDeviceInfoBuilder.java | 82 CarAudioDeviceInfo build() { in build() 86 CarAudioDeviceInfo infoMock = Mockito.mock(CarAudioDeviceInfo.class); in build()
|
D | CoreAudioVolumeGroupTest.java | 94 private CarAudioDeviceInfo mNavInfoMock = mock(CarAudioDeviceInfo.class); 95 private CarAudioDeviceInfo mOemInfoMock = mock(CarAudioDeviceInfo.class); 173 SparseArray<CarAudioDeviceInfo> musicContextToDeviceInfo = new SparseArray<>(); in setUp() 182 SparseArray<CarAudioDeviceInfo> navContextToDeviceInfo = new SparseArray<>(); in setUp() 190 SparseArray<CarAudioDeviceInfo> oemContextToDeviceInfo = new SparseArray<>(); in setUp() 317 SparseArray<CarAudioDeviceInfo> musicContextToDeviceInfo = new SparseArray<>(); in setMute_whenNotMutable()
|
D | VolumeGroupBuilder.java | 56 private CarAudioDeviceInfo mCarAudioDeviceInfoMock; 95 public VolumeGroupBuilder addCarAudioDeviceInfoMock(CarAudioDeviceInfo infoMock) { in addCarAudioDeviceInfoMock()
|
D | CarAudioMirrorRequestHandlerTest.java | 52 private CarAudioDeviceInfo mCarAudioDeviceInfoOne; 56 private CarAudioDeviceInfo mCarAudioDeviceInfoTwo; 59 private List<CarAudioDeviceInfo> mTestCarAudioDeviceInfos;
|
D | CarVolumeGroupUnitTest.java | 134 private CarAudioDeviceInfo mMediaDeviceInfo; 135 private CarAudioDeviceInfo mNavigationDeviceInfo; 136 private CarAudioDeviceInfo mInactiveMediaDeviceInfo; 318 CarAudioDeviceInfo actualDevice = carVolumeGroup.getCarAudioDeviceInfoForAddress( in getCarAudioDeviceInfoForAddress_returnsExpectedDevice() 329 CarAudioDeviceInfo actualDevice = carVolumeGroup.getCarAudioDeviceInfoForAddress( in getCarAudioDeviceInfoForAddress_returnsNullIfAddressNotBound()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioZonesHelperLegacyTest.java | 122 List<CarAudioDeviceInfo> carAudioDeviceInfos = getCarAudioDeviceInfoWithDuplicateBuses(); in constructor_checksForNoDuplicateBusNumbers() 134 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in constructor_throwsIfLegacyContextNotAssignedToBus() 149 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in constructor_throwsIfNullInputDevices() 163 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in constructor_throwsIfNullContext() 189 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in constructor_throwsIfNullCarAudioControl() 203 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in constructor_throwsIfNullCarAudioSettings() 217 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in constructor_throwsIfNullCarAudioContexts() 231 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in loadAudioZones_succeeds() 245 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in loadAudioZones_parsesAllVolumeGroups() 260 List<CarAudioDeviceInfo> carAudioDeviceInfos = getValidCarAudioDeviceInfos(); in loadAudioZones_primaryZoneHasInputDevice() [all …]
|
D | CarAudioDynamicRoutingTest.java | 256 CarAudioDeviceInfo carMirrorDeviceInfo = getCarAudioDeviceInfo(MUSIC_ADDRESS, in setupAudioDynamicRoutingForMirrorDevice() 282 CarAudioDeviceInfo musicCarAudioDeviceInfo = getCarAudioDeviceInfo(MUSIC_ADDRESS, in getTestCarAudioZones() 285 CarAudioDeviceInfo navCarAudioDeviceInfo = getCarAudioDeviceInfo(NAV_ADDRESS, in getTestCarAudioZones() 320 private CarAudioDeviceInfo getCarAudioDeviceInfo(String address, in getCarAudioDeviceInfo() 326 CarAudioDeviceInfo carAudioDeviceInfo = Mockito.mock(CarAudioDeviceInfo.class); in getCarAudioDeviceInfo() 339 private CarAudioDeviceInfo mCarAudioDeviceInfoMock; 348 VolumeGroupBuilder addCarAudioDeviceInfoMock(CarAudioDeviceInfo infoMock) { in addCarAudioDeviceInfoMock()
|
D | CarAudioZonesHelperTest.java | 197 private List<CarAudioDeviceInfo> mCarAudioOutputDeviceInfos; 206 private CarAudioDeviceInfo mTestCarMirrorDeviceOne; 208 private CarAudioDeviceInfo mTestCarMirrorDeviceTwo; 245 private List<CarAudioDeviceInfo> generateCarDeviceInfos() { in generateCarDeviceInfos() 273 private CarAudioDeviceInfo generateCarAudioDeviceInfo(String address) { in generateCarAudioDeviceInfo() 274 CarAudioDeviceInfo cadiMock = mock(CarAudioDeviceInfo.class); in generateCarAudioDeviceInfo()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioZonesHelperLegacy.java | 73 private final SparseArray<CarAudioDeviceInfo> mBusToCarAudioDeviceInfo; 79 @XmlRes int xmlConfiguration, List<CarAudioDeviceInfo> carAudioDeviceInfos, in CarAudioZonesHelperLegacy() 136 private static SparseArray<CarAudioDeviceInfo> generateBusToCarAudioDeviceInfo( in generateBusToCarAudioDeviceInfo() 137 List<CarAudioDeviceInfo> carAudioDeviceInfos) { in generateBusToCarAudioDeviceInfo() 138 SparseArray<CarAudioDeviceInfo> busToCarAudioDeviceInfo = new SparseArray<>(); in generateBusToCarAudioDeviceInfo() 140 for (CarAudioDeviceInfo carAudioDeviceInfo : carAudioDeviceInfos) { in generateBusToCarAudioDeviceInfo() 231 CarAudioDeviceInfo info = mBusToCarAudioDeviceInfo.get(busNumber); in bindContextToBuilder()
|
D | CarVolumeGroupFactory.java | 36 private final SparseArray<CarAudioDeviceInfo> mContextToDeviceInfo = new SparseArray<>(); 81 void setDeviceInfoForContext(int carAudioContextId, CarAudioDeviceInfo info) { in setDeviceInfoForContext() 111 void setNonLegacyContexts(CarAudioDeviceInfo info) { in setNonLegacyContexts()
|
D | CarVolumeGroup.java | 106 protected final SparseArray<CarAudioDeviceInfo> mContextToDevices; 116 protected final ArrayMap<String, CarAudioDeviceInfo> mAddressToCarAudioDeviceInfo; 175 SparseArray<CarAudioDeviceInfo> contextToDevices, int zoneId, int configId, in CarVolumeGroup() 191 CarAudioDeviceInfo info = contextToDevices.valueAt(index); in CarVolumeGroup() 349 CarAudioDeviceInfo getCarAudioDeviceInfoForAddress(String address) { in getCarAudioDeviceInfoForAddress() 403 CarAudioDeviceInfo info; in getAudioDeviceForContext() 626 CarAudioDeviceInfo info = mContextToDevices.valueAt(i); in dump() 694 CarAudioDeviceInfo info = mContextToDevices.valueAt(i); in dumpProto() 1019 CarAudioDeviceInfo info = mAddressToCarAudioDeviceInfo.get(halDeviceInfo.getAddress()); in updateAudioDeviceInfo() 1047 CarAudioDeviceInfo info = mAddressToCarAudioDeviceInfo.valueAt(c); in isActive() [all …]
|
D | CarAudioZonesHelper.java | 150 private final Map<String, CarAudioDeviceInfo> mAddressToCarAudioDeviceInfo; 162 private final List<CarAudioDeviceInfo> mMirroringDevices = new ArrayList<>(); 177 InputStream inputStream, List<CarAudioDeviceInfo> carAudioDeviceInfos, in CarAudioZonesHelper() 214 private static Map<String, CarAudioDeviceInfo> generateAddressToInfoMap( in generateAddressToInfoMap() 215 List<CarAudioDeviceInfo> carAudioDeviceInfos) { in generateAddressToInfoMap() 216 Map<String, CarAudioDeviceInfo> addressToInfoMap = new ArrayMap<>(); in generateAddressToInfoMap() 218 CarAudioDeviceInfo info = carAudioDeviceInfos.get(i); in generateAddressToInfoMap() 302 CarAudioDeviceInfo info = getCarAudioDeviceInfo(address, TYPE_BUS); in parseMirroringDevice() 980 CarAudioDeviceInfo info = getCarAudioDeviceInfo(address, type); 994 private CarAudioDeviceInfo getCarAudioDeviceInfo(String address, int type) { [all …]
|
D | CarAudioMirrorRequestHandler.java | 73 private final List<CarAudioDeviceInfo> mMirrorDevices = new ArrayList<>(); 77 private final LongSparseArray<CarAudioDeviceInfo> mRequestIdToMirrorDevice = 109 void setMirrorDeviceInfos(List<CarAudioDeviceInfo> mirroringDevices) { in setMirrorDeviceInfos() 118 List<CarAudioDeviceInfo> getMirroringDeviceInfos() { in getMirroringDeviceInfos() 420 CarAudioDeviceInfo info = mMirrorDevices.get(index); in assignAvailableDeviceToRequestIdLocked()
|
D | CarAudioVolumeGroup.java | 52 SparseArray<CarAudioDeviceInfo> contextToDeviceInfo, int zoneId, int configId, in CarAudioVolumeGroup() 85 CarAudioDeviceInfo info = mAddressToCarAudioDeviceInfo.valueAt(index); in setCurrentGainIndexLocked() 135 CarAudioDeviceInfo info = mAddressToCarAudioDeviceInfo.valueAt(index); in calculateNewGainStageFromDeviceInfos()
|
D | CarAudioDynamicRouting.java | 123 CarAudioDeviceInfo info = group.getCarAudioDeviceInfoForAddress(address); in setupAudioDynamicRoutingForGroup() 169 AudioPolicy.Builder mirrorPolicyBuilder, List<CarAudioDeviceInfo> audioDeviceInfos, in setupAudioDynamicRoutingForMirrorDevice() 183 private static AudioFormat createMixFormatFromDevice(CarAudioDeviceInfo mirrorDevice) { in createMixFormatFromDevice()
|
D | CarAudioZoneConfig.java | 166 CarAudioDeviceInfo info = group.getCarAudioDeviceInfoForAddress(address); in getAudioDeviceSupportingDynamicMix() 197 SparseArray<CarAudioDeviceInfo> usageToDevice = new SparseArray<>(); in validateCanUseDynamicMixRouting() 208 CarAudioDeviceInfo info = group.getCarAudioDeviceInfoForAddress(address); in validateCanUseDynamicMixRouting() 218 CarAudioDeviceInfo infoForAttr = usageToDevice.get(usage); in validateCanUseDynamicMixRouting()
|
D | CarAudioDeviceInfo.java | 55 /* package */ final class CarAudioDeviceInfo { class 98 CarAudioDeviceInfo(AudioManagerWrapper audioManager, in CarAudioDeviceInfo() method in CarAudioDeviceInfo
|
D | CoreAudioVolumeGroup.java | 68 CarAudioSettings settingsManager, SparseArray<CarAudioDeviceInfo> contextToDevices, in CoreAudioVolumeGroup()
|
D | CarAudioService.java | 1812 private List<CarAudioDeviceInfo> generateCarAudioDeviceInfos() { 1816 List<CarAudioDeviceInfo> carInfos = new ArrayList<>(); 1825 CarAudioDeviceInfo carInfo = new CarAudioDeviceInfo(mAudioManagerWrapper, attributes); 1842 List<CarAudioDeviceInfo> carAudioDeviceInfos, AudioDeviceInfo[] inputDevices) { 1882 List<CarAudioDeviceInfo> carAudioDeviceInfos, AudioDeviceInfo[] inputDevices) { 1905 List<CarAudioDeviceInfo> carAudioDeviceInfos = generateCarAudioDeviceInfos();
|