/packages/services/Car/car-lib/src/android/car/ |
H A D | VehicleZoneUtil.java | 21 * 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 D | VehicleZoneUtilTest.java | 26 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 D | ShadowZoneGetter.java | 37 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 D | MockedVehicleHal.java | 50 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 D | CarVolumeServiceTest.java | 297 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 D | CarPowerManagementTest.java | 140 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | CarProjectionManagerTest.java | 154 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | CarAudioManagerTest.java | 192 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | CarCabinManagerTest.java | 179 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | CarRadioManagerTest.java | 104 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | SystemActivityMonitoringServiceTest.java | 213 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | CarHvacManagerTest.java | 212 public synchronized void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | CarAudioFocusSystemSoundTest.java | 384 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | CarAudioFocusTest.java | 608 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
H A D | CarDiagnosticManagerTest.java | 123 int property, int zones, float sampleRate) { 122 onPropertySubscribe( int property, int zones, float sampleRate) argument
|
H A D | CarAudioExtFocusTest.java | 966 public void onPropertySubscribe(int property, int zones, float sampleRate) { argument
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/ |
H A D | HvacTestFragment.java | 83 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 D | DigitalAppWidgetProvider.java | 361 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 D | Utils.java | 448 * 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) {
|