/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioZonesValidatorTest.java | 46 () -> CarAudioZonesValidator.validate(new SparseArray<CarAudioZone>(), in validate_thereIsAtLeastOneZone() 56 CarAudioZone zone = new MockBuilder().withInputDevices(new ArrayList<>()).build(); in validate_failsOnEmptyInputDevices() 57 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnEmptyInputDevices() 69 CarAudioZone zone = new MockBuilder().withInputDevices(null).build(); in validate_failsOnNullInputDevices() 70 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnNullInputDevices() 82 CarAudioZone zone = new MockBuilder().withInputDevices( in validate_failsOnMissingMicrophoneInputDevices() 85 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnMissingMicrophoneInputDevices() 97 SparseArray<CarAudioZone> zones = generateAudioZonesWithPrimary(); in validate_zoneConfigsForEachZone() 98 CarAudioZone zoneOne = new MockBuilder() in validate_zoneConfigsForEachZone() 117 CarAudioZone primaryZone = new MockBuilder() in validate_addressesCanNotRepeatAcrossZones() [all …]
|
D | CarAudioZonesHelperTest.java | 303 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesAllZones() 319 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_versionTwoParsesAllZones() 337 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_versionOneParsesAllZones() 352 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesAudioZoneId() 371 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_versionTwoParsesAudioZoneId() 434 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesZoneName() 436 CarAudioZone primaryZone = zones.get(0); in loadAudioZones_parsesZoneName() 452 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_versionTwoParsesZoneName() 454 CarAudioZone primaryZone = zones.get(0); in loadAudioZones_versionTwoParsesZoneName() 469 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesIsPrimary() [all …]
|
D | CarZonesAudioFocusTestBase.java | 196 protected SparseArray<CarAudioZone> mCarAudioZones; 245 protected SparseArray<CarAudioZone> generateAudioZones() { in generateAudioZones() 247 SparseArray<CarAudioZone> zones = new SparseArray<>(2); in generateAudioZones() 251 CarAudioZone primaryZone = new CarAudioZone(testCarAudioContext, "Primary zone", in generateAudioZones() 253 CarAudioZone secondaryZone = new CarAudioZone(testCarAudioContext, "Secondary zone", in generateAudioZones()
|
D | CarAudioZonesHelperLegacyTest.java | 238 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_succeeds() 253 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_parsesAllVolumeGroups() 268 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_primaryZoneHasInputDevice() 269 CarAudioZone primaryZone = zones.get(PRIMARY_AUDIO_ZONE); in loadAudioZones_primaryZoneHasInputDevice() 283 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_primaryZoneHasMicrophoneInputDevice() 284 CarAudioZone primaryZone = zones.get(PRIMARY_AUDIO_ZONE); in loadAudioZones_primaryZoneHasMicrophoneInputDevice() 301 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_associatesLegacyContextsWithCorrectBuses() 331 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_associatesNonLegacyContextsWithMediaBus()
|
D | CarAudioDynamicRoutingTest.java | 82 SparseArray<CarAudioZone> zones = getTestCarAudioZones(/* defaultConfigSelected= */ false, in setupAudioDynamicRouting() 160 SparseArray<CarAudioZone> zones = getTestCarAudioZones(/* defaultConfigSelected= */ true, in setupAudioDynamicRouting_withDefaultConfigSelected() 241 SparseArray<CarAudioZone> zones = getTestCarAudioZones(/* defaultConfigSelected= */ false, in setupAudioDynamicRouting_withoutSelectedConfig() 279 private SparseArray<CarAudioZone> getTestCarAudioZones(boolean defaultConfigSelected, in getTestCarAudioZones() 311 CarAudioZone carAudioZone = new CarAudioZone(TEST_CAR_AUDIO_CONTEXT, "Primary zone", in getTestCarAudioZones() 315 SparseArray<CarAudioZone> zones = new SparseArray<>(); in getTestCarAudioZones()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioZonesValidator.java | 64 static void validate(SparseArray<CarAudioZone> carAudioZones, boolean useCoreAudioRouting) in validate() 74 private static void validatePrimaryZoneHasInputDevice(SparseArray<CarAudioZone> carAudioZones) { in validatePrimaryZoneHasInputDevice() 75 CarAudioZone primaryZone = carAudioZones.get(PRIMARY_AUDIO_ZONE); in validatePrimaryZoneHasInputDevice() 87 private static void validateAtLeastOneZoneDefined(SparseArray<CarAudioZone> carAudioZones) { in validateAtLeastOneZoneDefined() 93 private static void validateZoneConfigsForEachZone(SparseArray<CarAudioZone> carAudioZones, in validateZoneConfigsForEachZone() 96 CarAudioZone zone = carAudioZones.valueAt(i); in validateZoneConfigsForEachZone() 113 SparseArray<CarAudioZone> carAudioZones) { in validateEachAddressAppearsAtMostOnceInOneConfig()
|
D | CarAudioModuleChangeMonitor.java | 40 private final SparseArray<CarAudioZone> mCarAudioZones; 43 CarVolumeInfoWrapper carVolumeInfoWrapper, SparseArray<CarAudioZone> carAudioZones) { in CarAudioModuleChangeMonitor() 76 CarAudioZone zone = mCarAudioZones.valueAt(i); in handleAudioPortsChanged()
|
D | CarAudioZonesHelper.java | 210 SparseArray<CarAudioZone> loadAudioZones() throws IOException, XmlPullParserException { in loadAudioZones() 239 private SparseArray<CarAudioZone> parseCarAudioZones(InputStream stream) in parseCarAudioZones() 384 private SparseArray<CarAudioZone> parseAudioZones(XmlPullParser parser) in parseAudioZones() 386 SparseArray<CarAudioZone> carAudioZones = new SparseArray<>(); in parseAudioZones() 391 CarAudioZone zone = parseAudioZone(parser); in parseAudioZones() 403 private void addRemainingMicrophonesToPrimaryZone(SparseArray<CarAudioZone> carAudioZones) { in addRemainingMicrophonesToPrimaryZone() 404 CarAudioZone primaryAudioZone = carAudioZones.get(PRIMARY_AUDIO_ZONE); in addRemainingMicrophonesToPrimaryZone() 413 private void verifyPrimaryZonePresent(SparseArray<CarAudioZone> zones) { in verifyPrimaryZonePresent() 419 private CarAudioZone parseAudioZone(XmlPullParser parser) in parseAudioZone() 426 final CarAudioZone zone = new CarAudioZone(mCarAudioContext, zoneName, audioZoneId); in parseAudioZone() [all …]
|
D | CarDuckingUtils.java | 34 CarAudioZone zone) { in generateDuckingInfo() 57 List<AudioAttributes> activeAudioAttributes, CarAudioZone zone) { in getAddressesToDuck() 86 private static Set<String> getAddressesForContexts(Set<Integer> contexts, CarAudioZone zone) { in getAddressesForContexts()
|
D | CarAudioZonesHelperLegacy.java | 156 SparseArray<CarAudioZone> loadAudioZones() { in loadAudioZones() 164 CarAudioZone zone = new CarAudioZone(mCarAudioContext, zoneName, PRIMARY_AUDIO_ZONE); in loadAudioZones() 167 SparseArray<CarAudioZone> carAudioZones = new SparseArray<>(); in loadAudioZones() 261 private void addMicrophonesToPrimaryZone(CarAudioZone primaryAudioZone) { in addMicrophonesToPrimaryZone()
|
D | CarAudioPlaybackCallback.java | 40 CarAudioPlaybackCallback(@NonNull SparseArray<CarAudioZone> carAudioZones, in CarAudioPlaybackCallback() 50 private static SparseArray createCallbackMapping(SparseArray<CarAudioZone> carAudioZones, in createCallbackMapping() 56 CarAudioZone zone = carAudioZones.get(i); in createCallbackMapping()
|
D | CarDucking.java | 44 private final SparseArray<CarAudioZone> mCarAudioZones; 51 CarDucking(SparseArray<CarAudioZone> carAudioZones, AudioControlWrapper audioControlWrapper) { in CarDucking() 124 CarAudioZone zone = mCarAudioZones.get(zoneId); in generateNewDuckingInfoLocked()
|
D | CarAudioGainMonitor.java | 41 @NonNull private final SparseArray<CarAudioZone> mCarAudioZones; 45 CarVolumeInfoWrapper carVolumeInfoWrapper, SparseArray<CarAudioZone> carAudioZones) { in CarAudioGainMonitor() 102 CarAudioZone carAudioZone = mCarAudioZones.get(zoneId); in handleAudioDeviceGainsChanged()
|
D | CarHalAudioUtils.java | 70 AudioAttributes audioAttributes, CarAudioZone zone) { in audioAttributeToMetadata() 104 @AttributeUsage int usage, CarAudioZone zone) { in usageToMetadata() 127 List<AudioAttributes> audioAttributes, CarAudioZone zone) { in audioAttributesToMetadatas()
|
D | CarAudioService.java | 343 private SparseArray<CarAudioZone> mCarAudioZones; 743 CarAudioZone zone = mCarAudioZones.valueAt(i); in dump() 862 CarAudioZone zone = mCarAudioZones.valueAt(i); in dumpProto() 1770 CarAudioZone audioZone = getCarAudioZone(zoneId); 1783 CarAudioZone audioZone = getCarAudioZone(zoneId); 1801 CarAudioZone audioZone = getCarAudioZone(zoneId); 1841 private SparseArray<CarAudioZone> loadCarAudioConfigurationLocked( 1853 SparseArray<CarAudioZone> zones = zonesHelper.loadAudioZones(); 1881 private SparseArray<CarAudioZone> loadVolumeGroupConfigurationWithAudioControlLocked( 1919 CarAudioZone zone = mCarAudioZones.valueAt(i); [all …]
|
D | CarVolumeGroupMuting.java | 47 private final SparseArray<CarAudioZone> mCarAudioZones; 55 CarVolumeGroupMuting(@NonNull SparseArray<CarAudioZone> carAudioZones, in CarVolumeGroupMuting() 197 static MutingInfo generateMutingInfoFromZone(CarAudioZone audioZone, in generateMutingInfoFromZone()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarVolumeGroupMutingTest.java | 83 private CarAudioZone mPrimaryAudioZone; 90 private CarAudioZone mSingleDevicePrimaryZone; 91 private CarAudioZone mSingleDeviceSecondaryZone; 92 private CarAudioZone mSingleDeviceTertiaryZone; 446 CarAudioZone primaryZone = createAudioZone( in generateMutingInfoFromZone_withMutedMultiDeviceGroup_returnsAllDevicesMuted() 464 CarAudioZone primaryZone = createAudioZone( in generateMutingInfoFromZone_withUnMutedMultiDeviceGroup_returnsAllDevicesUnMuted() 481 CarAudioZone primaryZone = createAudioZone( in generateMutingInfoFromZone_mutingRestricted_mutesAllNonCriticalDevices() 519 CarAudioZone primaryZone = in generateMutingInfoFromZone_mutingRestricted_setsAllCriticalGroupsToTheirState() 539 private CarAudioZone createAudioZone(CarVolumeGroup volumeGroup, String name, int zoneId) { in createAudioZone() 565 private SparseArray<CarAudioZone> getAudioZones(CarAudioZone... zones) { in getAudioZones() [all …]
|
D | CarDuckingTest.java | 75 private final SparseArray<CarAudioZone> mCarAudioZones = generateZoneMocks(); 347 private static SparseArray<CarAudioZone> generateZoneMocks() { in generateZoneMocks() 348 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateZoneMocks() 349 CarAudioZone primaryZone = mock(CarAudioZone.class); in generateZoneMocks() 358 CarAudioZone passengerZone = mock(CarAudioZone.class); in generateZoneMocks() 364 CarAudioZone rearZone = mock(CarAudioZone.class); in generateZoneMocks()
|
D | CarAudioGainMonitorTest.java | 122 private final SparseArray<CarAudioZone> mCarAudioZones = generateZoneMocks(); 264 CarAudioZone carAudioZone = mCarAudioZones.valueAt(index); in handleAudioDeviceGainsChanged_validZones() 302 CarAudioZone carAudioZone = mCarAudioZones.valueAt(index); in handleAudioDeviceGainsChanged_validAndUnknownZones() 332 CarAudioZone carAudioZone = mCarAudioZones.valueAt(index); in handleAudioDeviceGainsChanged_unknownZones() 588 private static SparseArray<CarAudioZone> generateZoneMocks() { in generateZoneMocks() 589 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateZoneMocks() 590 CarAudioZone primaryZone = mock(CarAudioZone.class, RETURNS_DEEP_STUBS); in generateZoneMocks() 600 CarAudioZone passengerZone = mock(CarAudioZone.class, RETURNS_DEEP_STUBS); in generateZoneMocks() 606 CarAudioZone rearZone = mock(CarAudioZone.class, RETURNS_DEEP_STUBS); in generateZoneMocks()
|
D | TestCarAudioZoneBuilder.java | 56 CarAudioZone build() { in build() 57 CarAudioZone carAudioZone = new CarAudioZone(mCarAudioContext, mAudioZoneName, in build()
|
D | CarDuckingUtilsTest.java | 121 CarAudioZone mockZone = generateAudioZoneMock(); in generateDuckingInfo_succeed() 216 private static CarAudioZone generateAudioZoneMock() { in generateAudioZoneMock() 217 CarAudioZone mockZone = mock(CarAudioZone.class); in generateAudioZoneMock()
|
D | CarAudioPlaybackMonitorTest.java | 71 private CarAudioZone mPrimaryZone; 72 private CarAudioZone mSecondaryZone; 73 private SparseArray<CarAudioZone> mCarAudioZones = new SparseArray<>(); 327 private CarAudioZone generatePrimaryZone() { in generatePrimaryZone() 352 private CarAudioZone generateSecondaryZone() { in generateSecondaryZone()
|
D | CarAudioPlaybackCallbackTest.java | 78 private CarAudioZone mPrimaryZone; 79 private SparseArray<CarAudioZone> mCarAudioZones = new SparseArray<>(); 80 private CarAudioZone mSecondaryZone; 401 private CarAudioZone generatePrimaryZone() { in generatePrimaryZone() 415 private CarAudioZone generateSecondaryZone() { in generateSecondaryZone()
|
D | CarZonesAudioFocusUnitTest.java | 74 private final SparseArray<CarAudioZone> mMockZones = generateAudioZones(); 487 private static SparseArray<CarAudioZone> generateAudioZones() { in generateAudioZones() 500 CarAudioZone primaryZone = new CarAudioZone(testCarAudioContext, "Primary zone", in generateAudioZones() 502 CarAudioZone secondaryZone = new CarAudioZone(testCarAudioContext, "Secondary zone", in generateAudioZones() 506 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateAudioZones()
|
D | CarHalAudioUtilsTest.java | 94 private final CarAudioZone mCarAudioZone = generateZoneMock(); 428 private static CarAudioZone generateZoneMock() { in generateZoneMock() 429 CarAudioZone zone = mock(CarAudioZone.class); in generateZoneMock()
|