/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/ |
D | VehicleZoneUtilTest.java | 26 int zones = 0; in testZoneToIndex() local 29 int r = VehicleZoneUtil.zoneToIndex(zones, zone); in testZoneToIndex() 36 int r = VehicleZoneUtil.zoneToIndex(zones, zone); in testZoneToIndex() 41 zones = 0xffffffff; in testZoneToIndex() 43 assertEquals(0, VehicleZoneUtil.zoneToIndex(zones, zone)); in testZoneToIndex() 45 assertEquals(31, VehicleZoneUtil.zoneToIndex(zones, zone)); in testZoneToIndex() 46 zones = 0x1002; in testZoneToIndex() 48 int r = VehicleZoneUtil.zoneToIndex(zones, zone); in testZoneToIndex() 54 assertEquals(0, VehicleZoneUtil.zoneToIndex(zones, zone)); in testZoneToIndex() 56 assertEquals(1, VehicleZoneUtil.zoneToIndex(zones, zone)); in testZoneToIndex() [all …]
|
/packages/services/Car/car-lib/src/android/car/ |
D | VehicleZoneUtil.java | 36 public static int zoneToIndex(int zones, int zone) throws IllegalArgumentException { in zoneToIndex() argument 38 (zones == 0) || // check that zones is non-zero in zoneToIndex() 39 ((zone & zones) != zone) || // check that zone is inside of zones in zoneToIndex() 41 throw new IllegalArgumentException("Invalid zones 0x" + Integer.toHexString(zones) + in zoneToIndex() 45 while((zone & zones) != 0) { in zoneToIndex() 47 zones &= zones - 1; in zoneToIndex() 55 public static int getNumberOfZones(int zones) { in getNumberOfZones() argument 57 while (zones != 0) { in getNumberOfZones() 58 zones &= zones - 1; in getNumberOfZones() 69 public static int getFirstZone(int zones) { in getFirstZone() argument [all …]
|
/packages/services/Car/car-systemtest-lib/src/android/car/test/ |
D | VehicleHalEmulator.java | 57 void onPropertySubscribe(int property, float sampleRate, int zones); in onPropertySubscribe() argument 167 float sampleRate, int zones) { in assertPropertyForSubscribe() argument 246 private synchronized void handlePropertySubscribe(int property, float sampleRate, int zones) { in handlePropertySubscribe() argument 247 getHalPropertyLocked(property).handler.onPropertySubscribe(property, sampleRate, zones); in handlePropertySubscribe() 297 public synchronized void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument 298 assertPropertyForSubscribe(mConfig, property, sampleRate, zones); in onPropertySubscribe() 332 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument 333 handlePropertySubscribe(property, sampleRate, zones); in onPropertySubscribe()
|
D | CarTestManager.java | 175 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument 180 testManager.getHalMock().onPropertySubscribe(property, sampleRate, zones); in onPropertySubscribe()
|
/packages/services/Car/vehicle_network_service/ |
D | VehicleNetworkService.h | 96 int32_t zones; variable 99 zones(0) {}; in SubscriptionInfo() 102 zones(aZones) {}; in SubscriptionInfo() 105 zones(info.zones) {}; in SubscriptionInfo() 141 void setSubscriptionInfo(int32_t property, float sampleRate, int32_t zones) { in setSubscriptionInfo() argument 143 SubscriptionInfo info(sampleRate, zones); in setSubscriptionInfo() 300 float sampleRate, int32_t zones);
|
D | VehicleNetworkService.cpp | 250 info.sampleRate, info.zones); in dump() 600 float sampleRate, int32_t zones) { in subscribe() argument 603 int32_t newZones = zones; in subscribe() 628 if ((zones != 0) && ((zones & config->vehicle_zone_flags) != zones)) { in subscribe() 629 ALOGE("subscribe requested zones 0x%x out of range, supported:0x%x", zones, in subscribe() 634 zones = 0; in subscribe() 658 newZones = (info.zones == 0) ? 0 : ((zones == 0) ? 0 : (info.zones | zones)); in subscribe() 659 if (info.zones != newZones) { in subscribe() 663 client->setSubscriptionInfo(prop, sampleRate, zones); in subscribe()
|
/packages/services/Car/libvehiclenetwork/include/ |
D | IVehicleNetwork.h | 52 float sampleRate, int32_t zones) = 0; 92 static int countNumberOfZones(int32_t zones) { in countNumberOfZones() argument 93 if (zones == 0) { // no-zone, treat as one zone. in countNumberOfZones() 99 if ((flag & zones) != 0) { in countNumberOfZones()
|
D | IVehicleNetworkHalMock.h | 44 virtual status_t onPropertySubscribe(int32_t property, float sampleRate, int32_t zones) = 0;
|
D | VehicleNetwork.h | 119 status_t subscribe(int32_t property, float sampleRate, int32_t zones = 0);
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/ |
D | HvacTestFragment.java | 73 int zones = value.getAreaId(); 98 if ((zones & mZoneForFanSpeed) != 0) { 104 if ((zones & mZoneForSetTempD) != 0) { 108 if ((zones & mZoneForSetTempP) != 0) { 114 if((zones & VehicleWindow.VEHICLE_WINDOW_FRONT_WINDSHIELD) == 118 if((zones & VehicleWindow.VEHICLE_WINDOW_REAR_WINDSHIELD) ==
|
/packages/services/Car/libvehiclenetwork/native/ |
D | IVehicleNetworkHalMock.cpp | 128 virtual status_t onPropertySubscribe(int32_t property, float sampleRate, int32_t zones) { in onPropertySubscribe() argument 133 data.writeInt32(zones); in onPropertySubscribe() 253 int32_t zones = data.readInt32(); in onTransact() local 254 r = onPropertySubscribe(property, sampleRate, zones); in onTransact()
|
D | IVehicleNetwork.cpp | 144 float sampleRate, int32_t zones) { in subscribe() argument 150 data.writeInt32(zones); in subscribe() 328 int32_t zones = data.readInt32(); in onTransact() local 329 r = subscribe(listener, property, sampleRate, zones); in onTransact()
|
D | VehicleNetwork.cpp | 263 status_t VehicleNetwork::subscribe(int32_t property, float sampleRate, int32_t zones) { in subscribe() argument 264 return getService()->subscribe(this, property, sampleRate, zones); in subscribe()
|
/packages/services/Car/libvehiclenetwork/java/src/com/android/car/vehiclenetwork/ |
D | VehiclePropConfigUtil.java | 40 int property, int propAccess, int changeType, int valueType, int zones, in createZonedProperty() argument 48 setZones(zones). in createZonedProperty()
|
D | VehicleNetwork.java | 60 void onPropertySubscribe(int property, float sampleRate, int zones); in onPropertySubscribe() argument 413 public void subscribe(int property, float sampleRate, int zones) in subscribe() argument 416 mService.subscribe(mVehicleNetworkListener, property, sampleRate, zones); in subscribe() 678 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument 683 vehicleNetwork.getHalMock().onPropertySubscribe(property, sampleRate, zones); in onPropertySubscribe()
|
D | IVehicleNetworkHalMock.aidl | 29 void onPropertySubscribe(int property, float sampleRate, int zones) = 3; in onPropertySubscribe() argument
|
D | IVehicleNetwork.aidl | 36 int zones) = 3; in subscribe() argument
|
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/ |
D | VehicleNetworkMockedTest.java | 431 void onPropertySubscribe(int property, float sampleRate, int zones); in onPropertySubscribe() argument 476 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument 481 handler.onPropertySubscribe(property, sampleRate, zones); in onPropertySubscribe() 521 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument 523 " zones:0x" + Integer.toHexString(zones)); in onPropertySubscribe()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | CarEmulator.java | 180 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument 200 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | CarAudioFocusTest.java | 65 public void onPropertySubscribe(int property, float sampleRate, int zones) { 94 public void onPropertySubscribe(int property, float sampleRate, int zones) { 572 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument
|
D | AudioRoutingPolicyTest.java | 56 public void onPropertySubscribe(int property, float sampleRate, int zones) {
|
D | CarRadioManagerTest.java | 106 public synchronized void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument
|
D | CarHvacManagerTest.java | 196 public synchronized void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument
|
D | CarPowerManagementTest.java | 195 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument
|
/packages/services/Car/libvehiclenetwork/proto/ |
D | VehicleNetworkProto.proto | 27 optional int32 zones = 6; field
|