Home
last modified time | relevance | path

Searched refs:zones (Results 1 – 25 of 28) sorted by relevance

12

/packages/services/Car/tests/android_car_api_test/src/com/android/car/apitest/
DVehicleZoneUtilTest.java26 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/
DVehicleZoneUtil.java36 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/
DVehicleHalEmulator.java57 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()
DCarTestManager.java175 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/
DVehicleNetworkService.h96 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);
DVehicleNetworkService.cpp250 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/
DIVehicleNetwork.h52 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()
DIVehicleNetworkHalMock.h44 virtual status_t onPropertySubscribe(int32_t property, float sampleRate, int32_t zones) = 0;
DVehicleNetwork.h119 status_t subscribe(int32_t property, float sampleRate, int32_t zones = 0);
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java73 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/
DIVehicleNetworkHalMock.cpp128 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()
DIVehicleNetwork.cpp144 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()
DVehicleNetwork.cpp263 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/
DVehiclePropConfigUtil.java40 int property, int propAccess, int changeType, int valueType, int zones, in createZonedProperty() argument
48 setZones(zones). in createZonedProperty()
DVehicleNetwork.java60 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()
DIVehicleNetworkHalMock.aidl29 void onPropertySubscribe(int property, float sampleRate, int zones) = 3; in onPropertySubscribe() argument
DIVehicleNetwork.aidl36 int zones) = 3; in subscribe() argument
/packages/services/Car/tests/libvehiclenetwork-java-test/src/com/android/car/vehiclenetwork/libtest/
DVehicleNetworkMockedTest.java431 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/
DCarEmulator.java180 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/
DCarAudioFocusTest.java65 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
DAudioRoutingPolicyTest.java56 public void onPropertySubscribe(int property, float sampleRate, int zones) {
DCarRadioManagerTest.java106 public synchronized void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument
DCarHvacManagerTest.java196 public synchronized void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument
DCarPowerManagementTest.java195 public void onPropertySubscribe(int property, float sampleRate, int zones) { in onPropertySubscribe() argument
/packages/services/Car/libvehiclenetwork/proto/
DVehicleNetworkProto.proto27 optional int32 zones = 6; field

12