/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioZonesValidatorTest.java | 57 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnEmptyInputDevices() local 58 zones.put(zone.getId(), zone); in validate_failsOnEmptyInputDevices() 61 () -> CarAudioZonesValidator.validate(zones, /* useCoreAudioRouting= */ false)); in validate_failsOnEmptyInputDevices() 70 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnNullInputDevices() local 71 zones.put(zone.getId(), zone); in validate_failsOnNullInputDevices() 74 () -> CarAudioZonesValidator.validate(zones, /* useCoreAudioRouting= */ false)); in validate_failsOnNullInputDevices() 85 SparseArray<CarAudioZone> zones = new SparseArray<>(); in validate_failsOnMissingMicrophoneInputDevices() local 86 zones.put(zone.getId(), zone); in validate_failsOnMissingMicrophoneInputDevices() 89 () -> CarAudioZonesValidator.validate(zones, /* useCoreAudioRouting= */ false)); in validate_failsOnMissingMicrophoneInputDevices() 97 SparseArray<CarAudioZone> zones = generateAudioZonesWithPrimary(); in validate_zoneConfigsForEachZone() local [all …]
|
D | CarAudioZonesHelperTest.java | 303 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesAllZones() local 305 expectWithMessage("Zones parsed").that(zones.size()).isEqualTo(2); in loadAudioZones_parsesAllZones() 319 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_versionTwoParsesAllZones() local 322 .that(zones.size()).isEqualTo(2); in loadAudioZones_versionTwoParsesAllZones() 337 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_versionOneParsesAllZones() local 339 assertThat(zones.size()).isEqualTo(2); in loadAudioZones_versionOneParsesAllZones() 352 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_parsesAudioZoneId() local 355 .that(zones.contains(PRIMARY_AUDIO_ZONE)).isTrue(); in loadAudioZones_parsesAudioZoneId() 357 .that(zones.contains(SECONDARY_ZONE_ID)).isTrue(); in loadAudioZones_parsesAudioZoneId() 371 SparseArray<CarAudioZone> zones = cazh.loadAudioZones(); in loadAudioZones_versionTwoParsesAudioZoneId() local [all …]
|
D | CarAudioZonesHelperLegacyTest.java | 238 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_succeeds() local 240 assertThat(zones.size()).isEqualTo(1); in loadAudioZones_succeeds() 253 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_parsesAllVolumeGroups() local 254 CarVolumeGroup[] volumeGroups = zones.get(0).getCurrentVolumeGroups(); in loadAudioZones_parsesAllVolumeGroups() 268 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_primaryZoneHasInputDevice() local 269 CarAudioZone primaryZone = zones.get(PRIMARY_AUDIO_ZONE); in loadAudioZones_primaryZoneHasInputDevice() 283 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_primaryZoneHasMicrophoneInputDevice() local 284 CarAudioZone primaryZone = zones.get(PRIMARY_AUDIO_ZONE); in loadAudioZones_primaryZoneHasMicrophoneInputDevice() 301 SparseArray<CarAudioZone> zones = helper.loadAudioZones(); in loadAudioZones_associatesLegacyContextsWithCorrectBuses() local 303 CarVolumeGroup[] volumeGroups = zones.get(0).getCurrentVolumeGroups(); in loadAudioZones_associatesLegacyContextsWithCorrectBuses() [all …]
|
D | CarAudioDynamicRoutingTest.java | 82 SparseArray<CarAudioZone> zones = getTestCarAudioZones(/* defaultConfigSelected= */ false, in setupAudioDynamicRouting() local 86 mockBuilder, zones); in setupAudioDynamicRouting() 160 SparseArray<CarAudioZone> zones = getTestCarAudioZones(/* defaultConfigSelected= */ true, in setupAudioDynamicRouting_withDefaultConfigSelected() local 164 mockBuilder, zones); in setupAudioDynamicRouting_withDefaultConfigSelected() 241 SparseArray<CarAudioZone> zones = getTestCarAudioZones(/* defaultConfigSelected= */ false, in setupAudioDynamicRouting_withoutSelectedConfig() local 246 mAudioManager, mockBuilder, zones)); in setupAudioDynamicRouting_withoutSelectedConfig() 315 SparseArray<CarAudioZone> zones = new SparseArray<>(); in getTestCarAudioZones() local 316 zones.put(CarAudioManager.PRIMARY_AUDIO_ZONE, carAudioZone); in getTestCarAudioZones() 317 return zones; in getTestCarAudioZones()
|
D | CarZonesAudioFocusTestBase.java | 247 SparseArray<CarAudioZone> zones = new SparseArray<>(2); in generateAudioZones() local 263 zones.put(PRIMARY_ZONE_ID, primaryZone); in generateAudioZones() 264 zones.put(SECONDARY_ZONE_ID, secondaryZone); in generateAudioZones() 265 return zones; in generateAudioZones()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datetime/ |
D | TimeZonePickerScreenPreferenceController.java | 87 List<Map<String, Object>> zones = ZoneGetter.getZonesList(getContext()); in constructTimeZoneList() local 88 setZonesList(zones); in constructTimeZoneList() 92 void setZonesList(List<Map<String, Object>> zones) { in setZonesList() argument 93 Collections.sort(zones, new TimeZonesComparator()); in setZonesList() 95 for (Map<String, Object> zone : zones) { in setZonesList()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/userpicker/ |
D | CarServiceMediatorTest.java | 112 OccupantZoneInfo[] zones = new OccupantZoneInfo[seatDatas.length - 1]; in checkUserSeatDescription_byZoneInfo_validSeatDescription() local 117 zones[i] = new OccupantZoneInfo(/* zoneId= */ i + 1, in checkUserSeatDescription_byZoneInfo_validSeatDescription() 121 mOccupantZoneInfos.add(zones[i]); in checkUserSeatDescription_byZoneInfo_validSeatDescription() 126 .getAllDisplaysForOccupant(zones[i]); in checkUserSeatDescription_byZoneInfo_validSeatDescription() 131 .isEqualTo(getZoneDesc(zones[i])); in checkUserSeatDescription_byZoneInfo_validSeatDescription()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/ |
D | CarDuckingTest.java | 348 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateZoneMocks() local 356 zones.append(PRIMARY_ZONE_ID, primaryZone); in generateZoneMocks() 362 zones.append(PASSENGER_ZONE_ID, passengerZone); in generateZoneMocks() 369 zones.append(REAR_ZONE_ID, rearZone); in generateZoneMocks() 371 return zones; in generateZoneMocks()
|
D | CarAudioGainMonitorTest.java | 589 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateZoneMocks() local 598 zones.append(PRIMARY_ZONE_ID, primaryZone); in generateZoneMocks() 604 zones.append(PASSENGER_ZONE_ID, passengerZone); in generateZoneMocks() 612 zones.append(REAR_ZONE_ID, rearZone); in generateZoneMocks() 614 return zones; in generateZoneMocks()
|
D | CarZonesAudioFocusUnitTest.java | 506 SparseArray<CarAudioZone> zones = new SparseArray<>(); in generateAudioZones() local 507 zones.put(PRIMARY_ZONE_ID, primaryZone); in generateAudioZones() 508 zones.put(SECONDARY_ZONE_ID, secondaryZone); in generateAudioZones() 509 return zones; in generateAudioZones()
|
D | CarVolumeGroupMutingTest.java | 565 private SparseArray<CarAudioZone> getAudioZones(CarAudioZone... zones) { in getAudioZones() argument 567 for (CarAudioZone zone : zones) { in getAudioZones()
|
D | CarAudioServiceUnitTest.java | 5261 int[] zones = service.getMirrorAudioZonesForAudioZone(TEST_REAR_RIGHT_ZONE_ID); in getMirrorAudioZonesForAudioZone_withoutMirroringEnabled() local 5264 .that(zones).asList().isEmpty(); in getMirrorAudioZonesForAudioZone_withoutMirroringEnabled() 5276 int[] zones = service.getMirrorAudioZonesForAudioZone(TEST_REAR_RIGHT_ZONE_ID); in getMirrorAudioZonesForAudioZone_withMirroringEnabled() local 5278 expectWithMessage("Mirroring zones for mirror zone %s", TEST_REAR_RIGHT_ZONE_ID).that(zones) in getMirrorAudioZonesForAudioZone_withMirroringEnabled() 5294 int[] zones = service.getMirrorAudioZonesForAudioZone(TEST_REAR_RIGHT_ZONE_ID); in getMirrorAudioZonesForAudioZone_afterDisableMirror() local 5297 TEST_REAR_RIGHT_ZONE_ID).that(zones).asList().isEmpty(); in getMirrorAudioZonesForAudioZone_afterDisableMirror() 5312 int[] zones = service.getMirrorAudioZonesForAudioZone(TEST_REAR_RIGHT_ZONE_ID); in getMirrorAudioZonesForAudioZone_afterPassengerLogout() local 5315 TEST_REAR_RIGHT_ZONE_ID).that(zones).asList().isEmpty(); in getMirrorAudioZonesForAudioZone_afterPassengerLogout() 5327 int[] zones = service.getMirrorAudioZonesForMirrorRequest(requestId); in getMirrorAudioZonesForMirrorRequest_withMirroringEnabled() local 5329 expectWithMessage("Mirroring zones for mirror request %s", requestId).that(zones).asList() in getMirrorAudioZonesForMirrorRequest_withMirroringEnabled() [all …]
|
/packages/apps/DeskClock/src/com/android/alarmclock/ |
D | DigitalAppWidgetProvider.kt | 177 val zones: MutableSet<TimeZone> = ArraySet(selectedCities.size + 2) in <lambda>() constant 178 zones.add(TimeZone.getDefault()) in <lambda>() 180 zones.add(dm.homeCity.timeZone) in <lambda>() 183 zones.add(city.timeZone) in <lambda>() 185 val nextDay = Utils.getNextDay(Date(), zones) in <lambda>()
|
/packages/services/Car/tests/OemCarServiceTestApp/src/com/android/car/oem/volume/ |
D | VolumeInteractions.java | 253 List<Integer> zones = carAudioManager.getAudioZoneIds(); in init() local 255 for (int zone = 0; zone < zones.size(); zone++) { in init() 256 int zoneId = zones.get(zone); in init()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/audio/ |
D | AudioMirrorTestFragment.java | 251 Integer[] zones = audioZones.toArray(Integer[]::new); in setupAudioZones() local 252 mZoneOneAdapter = new ArrayAdapter<>(mContext, simple_spinner_item, zones); in setupAudioZones() 257 mZoneTwoAdapter = new ArrayAdapter<>(mContext, simple_spinner_item, zones); in setupAudioZones()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/ |
D | HvacTestFragment.java | 93 int zones = value.getAreaId(); 141 if (zones == mZonesForFanSpeed[i]) { 151 if ((zones & mZoneForSetTempD) == mZoneForSetTempD) { 155 if ((zones & mZoneForSetTempP) == mZoneForSetTempP) { 164 if ((zones & VehicleAreaWindow.WINDOW_FRONT_WINDSHIELD) 168 if ((zones & VehicleAreaWindow.WINDOW_REAR_WINDSHIELD)
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/key/ |
D | InjectKeyTestFragment.java | 123 List<OccupantZoneInfo> zones = mOccupantZoneManager.getAllOccupantZones(); in getOccupantZoneForDisplayId() local 124 for (OccupantZoneInfo zone : zones) { in getOccupantZoneForDisplayId()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/ |
D | InjectMotionTestFragment.java | 250 List<OccupantZoneInfo> zones = mOccupantZoneManager.getAllOccupantZones(); in getOccupantZoneForDisplayId() local 251 for (OccupantZoneInfo zone : zones) { in getOccupantZoneForDisplayId()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/users/ |
D | ProfileUserFragment.java | 476 ArrayList<String> zones = new ArrayList<>(); in getZones() local 489 zones.add(builder.toString()); in getZones() 491 return zones; in getZones()
|
/packages/modules/GeoTZ/geotz_lookup/ |
D | Android.bp | 15 // A library for use on device or host to lookup time zones for a location.
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.kt | 448 fun getNextDay(time: Date, zones: Collection<TimeZone>): Date { in getNextDay() 450 for (tz in zones) { in getNextDay()
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioService.java | 1463 ArraySet<Integer> zones = CarServiceUtils.toIntArraySet(audioZones); in verifyCanMirrorToAudioZones() local 1465 if (zones.size() != audioZones.length) { in verifyCanMirrorToAudioZones() 1471 if (zones.contains(PRIMARY_AUDIO_ZONE)) { in verifyCanMirrorToAudioZones() 1528 ArrayList<Integer> zones = new ArrayList<>(); in handleEnableAudioMirrorForZones() local 1530 zones.addAll(CarServiceUtils.asList(config)); in handleEnableAudioMirrorForZones() 1565 zones.add(audioZoneId); in handleEnableAudioMirrorForZones() 1568 int[] audioZoneIdsToAdd = CarServiceUtils.toIntArray(zones); in handleEnableAudioMirrorForZones() 1853 SparseArray<CarAudioZone> zones = zonesHelper.loadAudioZones(); 1856 return zones;
|
D | CarAudioZonesHelper.java | 413 private void verifyPrimaryZonePresent(SparseArray<CarAudioZone> zones) { in verifyPrimaryZonePresent() argument 414 if (!zones.contains(PRIMARY_AUDIO_ZONE)) { in verifyPrimaryZonePresent()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/media/ |
D | CarAudioManagerUnitTest.java | 1563 int[] zones = invocation.getArgument(0); in enableMirrorForAudioZones() 1564 callback.onAudioZonesMirrorStatusChanged(zones, in enableMirrorForAudioZones() 1604 int[] zones = invocation.getArgument(1); in extendAudioMirrorRequest() 1605 callback.onAudioZonesMirrorStatusChanged(zones, in extendAudioMirrorRequest()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarOccupantZoneService.java | 320 List<OccupantZoneInfo> zones = new ArrayList<OccupantZoneInfo>(); in init() 323 zones.add(ozi); in init() 326 return zones; in init()
|