/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioZonesValidatorTest.java | 43 CarAudioZonesValidator.validate(new SparseArray<CarAudioZone>()); in validate_thereIsAtLeastOneZone() 48 SparseArray<CarAudioZone> zones = generateAudioZonesWithPrimary(); in validate_volumeGroupsForEachZone() 49 CarAudioZone zoneOne = new MockBuilder() in validate_volumeGroupsForEachZone() 65 CarAudioZone primaryZone = new MockBuilder() in validate_eachAddressAppearsInOnlyOneZone() 72 CarAudioZone secondaryZone = new MockBuilder() in validate_eachAddressAppearsInOnlyOneZone() 76 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_eachAddressAppearsInOnlyOneZone() 90 SparseArray<CarAudioZone> zones = generateAudioZonesWithPrimary(); in validate_passesWithoutExceptionForValidZoneConfiguration() 95 private SparseArray<CarAudioZone> generateAudioZonesWithPrimary() { in generateAudioZonesWithPrimary() 96 CarAudioZone zone = new MockBuilder().build(); in generateAudioZonesWithPrimary() 97 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateAudioZonesWithPrimary() [all …]
|
D | CarAudioZonesHelperTest.java | 144 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesAllZones() 156 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_versionOneParsesAllZones() 167 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesAudioZoneId() 181 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesOccupantZoneId() 198 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesZoneName() 200 CarAudioZone primaryZone = zones.get(0); in loadAudioZones_parsesZoneName() 209 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesIsPrimary() 211 CarAudioZone primaryZone = zones.get(0); in loadAudioZones_parsesIsPrimary() 214 CarAudioZone rseZone = zones.get(2); in loadAudioZones_parsesIsPrimary() 223 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesVolumeGroups() [all …]
|
D | CarAudioZonesHelperLegacyTest.java | 94 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_succeeds() 108 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_parsesAllVolumeGroups() 123 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_associatesLegacyContextsWithCorrectBuses() 150 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_associatesNonLegacyContextsWithMediaBus()
|
D | CarZonesAudioFocusTest.java | 88 private SparseArray<CarAudioZone> mCarAudioZones; 329 private SparseArray<CarAudioZone> generateAudioZones() { in generateAudioZones() 330 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateAudioZones() 331 zones.put(PRIMARY_ZONE_ID, new CarAudioZone(PRIMARY_ZONE_ID, "Primary zone")); in generateAudioZones() 332 zones.put(SECONDARY_ZONE_ID, new CarAudioZone(SECONDARY_ZONE_ID, "Secondary zone")); in generateAudioZones()
|
D | CarAudioZoneTest.java | 74 private CarAudioZone mTestAudioZone = 75 new CarAudioZone(CarAudioManager.PRIMARY_AUDIO_ZONE, "Primary zone");
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioZonesValidator.java | 28 static void validate(SparseArray<CarAudioZone> carAudioZones) { in validate() 34 private static void validateAtLeastOneZoneDefined(SparseArray<CarAudioZone> carAudioZones) { in validateAtLeastOneZoneDefined() 40 private static void validateVolumeGroupsForEachZone(SparseArray<CarAudioZone> carAudioZones) { in validateVolumeGroupsForEachZone() 42 CarAudioZone zone = carAudioZones.valueAt(i); in validateVolumeGroupsForEachZone() 51 SparseArray<CarAudioZone> carAudioZones) { in validateEachAddressAppearsAtMostOnce() 54 CarAudioZone zone = carAudioZones.valueAt(i); in validateEachAddressAppearsAtMostOnce()
|
D | CarAudioZonesHelper.java | 168 SparseArray<CarAudioZone> loadAudioZones() throws IOException, XmlPullParserException { in loadAudioZones() 192 private SparseArray<CarAudioZone> parseCarAudioZones(InputStream stream) in parseCarAudioZones() 225 private SparseArray<CarAudioZone> parseAudioZones(XmlPullParser parser) in parseAudioZones() 227 SparseArray<CarAudioZone> carAudioZones = new SparseArray<>(); in parseAudioZones() 232 CarAudioZone zone = parseAudioZone(parser); in parseAudioZones() 244 private void verifyOnlyOnePrimaryZone(CarAudioZone newZone, SparseArray<CarAudioZone> zones) { in verifyOnlyOnePrimaryZone() 251 private void verifyPrimaryZonePresent(SparseArray<CarAudioZone> zones) { in verifyPrimaryZonePresent() 257 private CarAudioZone parseAudioZone(XmlPullParser parser) in parseAudioZone() 264 final CarAudioZone zone = new CarAudioZone(audioZoneId, zoneName); in parseAudioZone() 337 private void parseInputAudioDevices(XmlPullParser parser, CarAudioZone zone) in parseInputAudioDevices() [all …]
|
D | CarAudioService.java | 185 private SparseArray<CarAudioZone> mCarAudioZones; 336 CarAudioZone zone = mCarAudioZones.valueAt(i); in dump() 553 private SparseArray<CarAudioZone> loadCarAudioConfigurationLocked( in loadCarAudioConfigurationLocked() 567 private SparseArray<CarAudioZone> loadVolumeGroupConfigurationWithAudioControlLocked( in loadVolumeGroupConfigurationWithAudioControlLocked() 604 CarAudioZone zone = mCarAudioZones.valueAt(i); in setupDynamicRoutingLocked() 1360 CarAudioZone zone = mCarAudioZones.valueAt(i); in assignMissingZonesToDriverLocked() 1370 CarAudioZone zone = mCarAudioZones.valueAt(i); in adjustZonesToUserIdLocked() 1375 private void assignUserIdToAudioZoneLocked(CarAudioZone zone, @UserIdInt int userId) { in assignUserIdToAudioZoneLocked() 1403 CarAudioZone audioZone = getCarAudioZoneLocked(audioZoneId); in updateUserForOccupantZoneLocked() 1451 private void setUserIdDeviceAffinitiesLocked(CarAudioZone zone, @UserIdInt int userId, in setUserIdDeviceAffinitiesLocked() [all …]
|
D | CarAudioZonesHelperLegacy.java | 132 SparseArray<CarAudioZone> loadAudioZones() { in loadAudioZones() 133 CarAudioZone zone = new CarAudioZone(PRIMARY_AUDIO_ZONE, "Primary zone"); in loadAudioZones() 137 SparseArray<CarAudioZone> carAudioZones = new SparseArray<>(); in loadAudioZones()
|
D | CarDucking.java | 39 private final SparseArray<CarAudioZone> mCarAudioZones; 46 CarDucking(@NonNull SparseArray<CarAudioZone> carAudioZones, in CarDucking() 105 CarAudioZone zone = mCarAudioZones.get(zoneId); in generateNewDuckingInfoLocked()
|
D | CarVolumeGroupMuting.java | 44 private final SparseArray<CarAudioZone> mCarAudioZones; 52 CarVolumeGroupMuting(@NonNull SparseArray<CarAudioZone> carAudioZones, in CarVolumeGroupMuting() 161 static MutingInfo generateMutingInfoFromZone(CarAudioZone audioZone, in generateMutingInfoFromZone()
|
D | CarAudioDynamicRouting.java | 51 SparseArray<CarAudioZone> carAudioZones) { in setupAudioDynamicRouting() 53 CarAudioZone zone = carAudioZones.valueAt(i); in setupAudioDynamicRouting()
|
D | CarAudioPlaybackCallback.java | 43 private final CarAudioZone mCarPrimaryAudioZone; 47 CarAudioPlaybackCallback(@NonNull CarAudioZone carPrimaryAudioZone, in CarAudioPlaybackCallback()
|
D | CarDuckingUtils.java | 127 static List<String> getAddressesToDuck(int[] usages, CarAudioZone zone) { in getAddressesToDuck() 154 private static Set<String> getAddressesForContexts(Set<Integer> contexts, CarAudioZone zone) { in getAddressesForContexts()
|
D | CarAudioZone.java | 48 /* package */ class CarAudioZone { class 56 CarAudioZone(int id, String name) { in CarAudioZone() method in CarAudioZone
|
D | CarZonesAudioFocus.java | 60 @NonNull SparseArray<CarAudioZone> carAudioZones, in createCarZonesAudioFocus() 75 CarAudioZone audioZone = carAudioZones.valueAt(i); in createCarZonesAudioFocus()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarVolumeGroupMutingTest.java | 61 private CarAudioZone mPrimaryAudioZone; 67 private CarAudioZone mSingleDevicePrimaryZone; 68 private CarAudioZone mSingleDeviceSecondaryZone; 69 private CarAudioZone mSingleDeviceTertiaryZone; 409 CarAudioZone primaryZone = createAudioZone( in generateMutingInfoFromZone_withMutedMultiDeviceGroup_returnsAllDevicesMuted() 427 CarAudioZone primaryZone = createAudioZone( in generateMutingInfoFromZone_withUnMutedMultiDeviceGroup_returnsAllDevicesUnMuted() 444 CarAudioZone primaryZone = createAudioZone( in generateMutingInfoFromZone_mutingRestricted_mutesAllNonCriticalDevices() 461 CarAudioZone primaryZone = in generateMutingInfoFromZone_mutingRestricted_setsAllCriticalGroupsToTheirState() 489 private CarAudioZone createAudioZone(CarVolumeGroup volumeGroup, String name, int zoneId) { in createAudioZone() 513 private SparseArray<CarAudioZone> getAudioZones(CarAudioZone... zones) { in getAudioZones() [all …]
|
D | CarDuckingTest.java | 59 private final SparseArray<CarAudioZone> mCarAudioZones = generateZoneMocks(); 184 private static SparseArray<CarAudioZone> generateZoneMocks() { in generateZoneMocks() 185 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateZoneMocks() 186 CarAudioZone primaryZone = mock(CarAudioZone.class); in generateZoneMocks() 192 CarAudioZone passengerZone = mock(CarAudioZone.class); in generateZoneMocks() 196 CarAudioZone rearZone = mock(CarAudioZone.class); in generateZoneMocks()
|
D | CarDuckingUtilsTest.java | 134 CarAudioZone mockZone = generateAudioZoneMock(); in getAddressesToDuck_withOneUsage_returnsEmptyList() 144 CarAudioZone mockZone = generateAudioZoneMock(); in getAddressesToDuck_withMultipleUsagesForTheSameContext_returnsEmptyList() 154 CarAudioZone mockZone = generateAudioZoneMock(); in getAddressesToDuck_onlyReturnsDevicesForUsagesHoldingFocus() 165 CarAudioZone mockZone = generateAudioZoneMock(); in getAddressesToDuck_withDuckedAndUnduckedContextsSharingDevice_excludesThatDevice() 176 CarAudioZone mockZone = generateAudioZoneMock(); in getAddressesToDuck_withDuckedContextsSharingADevice_includesAddressOnce() 221 private static CarAudioZone generateAudioZoneMock() { in generateAudioZoneMock() 222 CarAudioZone mockZone = mock(CarAudioZone.class); in generateAudioZoneMock()
|
D | CarZonesAudioFocusUnitTest.java | 61 private final SparseArray<CarAudioZone> mMockZones = generateAudioZones(); 233 private static SparseArray<CarAudioZone> generateAudioZones() { in generateAudioZones() 234 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateAudioZones() 235 zones.put(PRIMARY_ZONE_ID, new CarAudioZone(PRIMARY_ZONE_ID, "Primary zone")); in generateAudioZones() 236 zones.put(SECONDARY_ZONE_ID, new CarAudioZone(SECONDARY_ZONE_ID, "Secondary zone")); in generateAudioZones()
|
D | TestCarAudioZoneBuilder.java | 38 CarAudioZone build() { in build() 39 return mCarVolumeGroups.stream().collect(()->new CarAudioZone(mAudioZoneId, mAudioZoneName), in build()
|
D | CarAudioPlaybackCallbackTest.java | 69 private CarAudioZone mPrimaryZone; 485 private CarAudioZone generatePrimaryZone() { in generatePrimaryZone()
|