Searched refs:zones (Results 1 - 19 of 19) sorted by relevance

/packages/services/Car/car-lib/src/android/car/
H A DVehicleZoneUtil.java21 * Collection of utilities for handling zones
28 * Change zone flag into index with available zones.
30 * @param available zones, should not be zero
32 * defined in zones.
34 * @throws IllegalArgumentException if zones or zone is invalid.
36 public static int zoneToIndex(int zones, int zone) throws IllegalArgumentException { argument
38 ((zone & zones) != zone) || // check that zone is inside of zones
40 throw new IllegalArgumentException("Invalid zones 0x" + Integer.toHexString(zones)
54 getNumberOfZones(int zones) argument
68 getFirstZone(int zones) argument
86 getNextZone(int zones, int startingZone) argument
104 listAllZones(int zones) argument
[all...]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
H A DVehicleZoneUtilTest.java26 int[] zones = {0, 0, 1, 0xf0, 0xf};
30 for (int i = 0; i < zones.length; i++) {
32 int r = VehicleZoneUtil.zoneToIndex(zones[i], zone[i]);
39 zones = new int[] {0xffffffff, 0xffffffff, 0x1002, 0x1002};
44 for (int i = 0; i < zones.length; i++) {
45 assertEquals(result[i], VehicleZoneUtil.zoneToIndex(zones[i], zone[i]));
50 int[] zones = {0, 0x1, 0x7, 0xffffffff};
53 for (int i = 0; i < zones.length; i++) {
54 assertEquals(result[i], VehicleZoneUtil.getNumberOfZones(zones[i]));
59 int[] zones
[all...]
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
H A DShadowZoneGetter.java37 List<Map<String, Object>> zones = new ArrayList<>();
38 zones.add(createDisplayEntry(TimeZone.getDefault(), "gmt-1:00", "FakePlace", 10000));
39 return zones;
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
H A DMockedVehicleHal.java50 default void onPropertySubscribe(int property, int zones, float sampleRate) {} argument
201 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
249 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
H A DCarVolumeServiceTest.java297 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
322 public void onPropertySubscribe(int property, int zones, float sampleRate) {
347 public void onPropertySubscribe(int property, int zones, float sampleRate) {
360 int zones = (1<<maxs.size()) - 1;
372 .setSupportedAreas(zones);
H A DCarPowerManagementTest.java140 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DCarProjectionManagerTest.java154 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DCarAudioManagerTest.java192 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DCarCabinManagerTest.java179 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DCarRadioManagerTest.java104 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DSystemActivityMonitoringServiceTest.java213 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DCarHvacManagerTest.java212 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DCarAudioFocusSystemSoundTest.java384 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DCarAudioFocusTest.java608 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
H A DCarDiagnosticManagerTest.java123 int property, int zones, float sampleRate) {
122 onPropertySubscribe( int property, int zones, float sampleRate) argument
H A DCarAudioExtFocusTest.java966 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
H A DHvacTestFragment.java83 int zones = value.getAreaId();
128 if ((zones & mZoneForFanSpeed) != 0) {
134 if ((zones & mZoneForSetTempD) != 0) {
138 if ((zones & mZoneForSetTempP) != 0) {
147 if((zones & VehicleAreaWindow.FRONT_WINDSHIELD) ==
151 if((zones & VehicleAreaWindow.REAR_WINDSHIELD) ==
/packages/apps/DeskClock/src/com/android/alarmclock/
H A DDigitalAppWidgetProvider.java361 final Set<TimeZone> zones = new ArraySet<>(selectedCities.size() + 2);
362 zones.add(TimeZone.getDefault());
364 zones.add(dm.getHomeCity().getTimeZone());
367 zones.add(city.getTimeZone());
369 final Date nextDay = Utils.getNextDay(new Date(), zones);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DUtils.java448 * Given a point in time, return the subsequent moment any of the time zones changes days.
449 * e.g. Given 8:00pm on 1/1/2016 and time zones in LA and NY this method would return a Date for
453 * @param zones a collection of time zones
454 * @return the nearest point in the future at which any of the time zones changes days
456 public static Date getNextDay(Date time, Collection<TimeZone> zones) { argument
458 for (TimeZone tz : zones) {

Completed in 331 milliseconds