Home
last modified time | relevance | path

Searched refs:areaIds (Results 1 – 25 of 35) sorted by relevance

12

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java287 int[] areaIds = prop.getAreaIds(); in configureDualOn() local
292 for (int i = 0; i < areaIds.length; i++) { in configureDualOn()
293 setBooleanProperty(CarHvacManager.ID_ZONED_DUAL_ZONE_ON, areaIds[i], in configureDualOn()
300 int[] areaIds = prop.getAreaIds(); in configureAcOn() local
305 for (int i = 0; i < areaIds.length; i++) { in configureAcOn()
306 setBooleanProperty(CarHvacManager.ID_ZONED_AC_ON, areaIds[i], mTbAc.isChecked()); in configureAcOn()
312 int[] areaIds = prop.getAreaIds(); in configureAutoModeOn() local
317 for (int i = 0; i < areaIds.length; i++) { in configureAutoModeOn()
318 setBooleanProperty(CarHvacManager.ID_ZONED_AUTOMATIC_MODE_ON, areaIds[i], in configureAutoModeOn()
325 int[] areaIds = prop.getAreaIds(); in configureFanPosition() local
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DInputSanitizationUtils.java140 int[] areaIds = inputOption.areaIds;
141 Preconditions.checkArgument(areaIds != null && areaIds.length != 0,
158 for (int areaId : areaIds) {
175 disabledVurOption.areaIds = convertToIntArray(disabledAreaIds);
182 enabledVurOption.areaIds = convertToIntArray(enabledAreaIds);
DCarPropertyEventController.java71 public void addContinuousProperty(int propertyId, int[] areaIds, float updateRateHz, in addContinuousProperty() argument
73 requireNonNull(areaIds); in addContinuousProperty()
75 for (int areaId : areaIds) { in addContinuousProperty()
91 public void addOnChangeProperty(int propertyId, int[] areaIds) { in addOnChangeProperty() argument
92 requireNonNull(areaIds); in addOnChangeProperty()
94 for (int areaId : areaIds) { in addOnChangeProperty()
DSubscriptionManager.java286 for (int areaId : option.areaIds) { in stageNewOptions()
314 ArraySet<Integer> areaIds = in stageUnregister() local
316 for (int j = 0; j < areaIds.size(); j++) { in stageUnregister()
317 int areaId = areaIds.valueAt(j); in stageUnregister()
485 ArraySet<Integer> areaIds = diffRateInfoByPropIdAreaId.getSecondKeysForFirstKey( in getCarSubscription() local
490 for (int i = 0; i < areaIds.size(); i++) { in getCarSubscription()
491 int areaId = areaIds.valueAt(i); in getCarSubscription()
503 option.areaIds = convertToIntArray(areaIdsByRateInfo.valueAt(i)); in getCarSubscription()
DCarSubscription.aidl25 int[] areaIds;
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarHvacManagerTest.java129 int[] areaIds = property.getAreaIds(); in checkIntMinMax() local
130 assertThat(areaIds.length).isGreaterThan(0); in checkIntMinMax()
131 assertThat(property.getAreaCount()).isEqualTo(areaIds.length); in checkIntMinMax()
133 for (int areaId : areaIds) { in checkIntMinMax()
154 int[] areaIds = property.getAreaIds(); in checkFloatMinMax() local
155 assertThat(areaIds.length).isGreaterThan(0); in checkFloatMinMax()
156 assertThat(property.getAreaCount()).isEqualTo(areaIds.length); in checkFloatMinMax()
158 for (int areaId : areaIds) { in checkFloatMinMax()
DCarCabinManagerTest.java133 int[] areaIds = property.getAreaIds(); in checkIntMinMax() local
134 assertThat(areaIds.length).isGreaterThan(0); in checkIntMinMax()
135 assertThat(property.getAreaCount()).isEqualTo(areaIds.length); in checkIntMinMax()
137 for (int areId : areaIds) { in checkIntMinMax()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DVehicleHalTest.java727 int[] areaIds = new int[] {AREA_ID_1};
729 areaIds, ANY_SAMPLING_RATE_1, /* enableVariableUpdateRate= */ true);
733 ANY_SAMPLING_RATE_1, areaIds, /* enableVur= */ true);
741 int[] areaIds = new int[] {AREA_ID_1};
743 areaIds, ANY_SAMPLING_RATE_1, /* enableVariableUpdateRate= */ true);
747 ANY_SAMPLING_RATE_1, areaIds, /* enableVur= */ false);
754 int[] areaIds = new int[] {AREA_ID_1};
756 areaIds, ANY_SAMPLING_RATE_1, /* enableVariableUpdateRate= */ true);
760 CONTINUOUS_PROPERTY, ANY_SAMPLING_RATE_1, areaIds, /* enableVur= */ true)}));
763 areaIds, ANY_SAMPLING_RATE_1, /* enableVariableUpdateRate= */ false);
[all …]
/packages/services/Car/service/src/com/android/car/property/
DCarPropertyServiceClient.java82 public void addContinuousProperty(int propertyId, int[] areaIds, float updateRateHz, in addContinuousProperty() argument
90 super.addContinuousProperty(propertyId, areaIds, updateRateHz, enableVur, resolution); in addContinuousProperty()
98 public void addOnChangeProperty(int propertyId, int[] areaIds) { in addOnChangeProperty() argument
105 super.addOnChangeProperty(propertyId, areaIds); in addOnChangeProperty()
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java326 int[] areaIds = EMPTY_INT_ARRAY; in registerListener() local
330 areaIds = carPropertyConfig.getAreaIds(); in registerListener()
334 option.areaIds = areaIds; in registerListener()
386 subscription.propertyId, subscription.areaIds); in validateAndSanitizeSubscriptions()
473 option.propertyId, option.areaIds, option.updateRateHz, in registerListener()
476 client.addOnChangeProperty(option.propertyId, option.areaIds); in registerListener()
562 int[] areaIds = option.areaIds; in getAndDispatchPropertyInitValue() local
563 for (int areaId : areaIds) { in getAndDispatchPropertyInitValue()
1182 private void assertIfReadableAtAreaIds(CarPropertyConfig<?> carPropertyConfig, int[] areaIds) { in assertIfReadableAtAreaIds() argument
1183 for (int i = 0; i < areaIds.length; i++) { in assertIfReadableAtAreaIds()
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java166 HalSubscribeOptions(int halPropId, int[] areaIds, float updateRateHz) { in HalSubscribeOptions() argument
167 this(halPropId, areaIds, updateRateHz, /* enableVariableUpdateRate= */ false, in HalSubscribeOptions()
171 HalSubscribeOptions(int halPropId, int[] areaIds, float updateRateHz, in HalSubscribeOptions() argument
173 this(halPropId, areaIds, updateRateHz, enableVariableUpdateRate, in HalSubscribeOptions()
177 HalSubscribeOptions(int halPropId, int[] areaIds, float updateRateHz, in HalSubscribeOptions() argument
180 mAreaIds = areaIds; in HalSubscribeOptions()
705 int[] areaIds = halSubscribeOption.getAreaId(); in createVhalSubscribeOptionsLocked() local
753 if (areaIds.length == 0) { in createVhalSubscribeOptionsLocked()
758 areaIds = getAllAreaIdsFromPropertyId(config); in createVhalSubscribeOptionsLocked()
760 for (int j = 0; j < areaIds.length; j++) { in createVhalSubscribeOptionsLocked()
[all …]
DPropertyHalService.java1208 int[] areaIds = carSubscription.areaIds; in subscribeProperty() local
1217 List.of(newCarSubscription(halPropId, areaIds, updateRateHz, in subscribeProperty()
1387 halOptions.add(new HalSubscribeOptions(carOption.propertyId, carOption.areaIds, in toHalSubscribeOptions()
1739 private static CarSubscription newCarSubscription(int propertyId, int[] areaIds, in newCarSubscription() argument
1741 return newCarSubscription(propertyId, areaIds, updateRateHz, enableVur, in newCarSubscription()
1745 private static CarSubscription newCarSubscription(int propertyId, int[] areaIds, in newCarSubscription() argument
1749 option.areaIds = areaIds; in newCarSubscription()
/packages/services/Car/service/src/com/android/car/hal/fakevhal/
DFakeVehicleStub.java975 int[] areaIds = isPropertyGlobal(propId) ? new int[]{AREA_ID_GLOBAL} in subscribe() local
976 : getSubscribedAreaIds(propId, options[i].areaIds); in subscribe()
984 subscribeOnChangeProp(client, propId, areaIds); in subscribe()
990 subscribeContinuousProp(client, propId, areaIds, sampleRate); in subscribe()
1006 int[] areaIds) { in subscribeOnChangeProp() argument
1008 for (int areaId : areaIds) { in subscribeOnChangeProp()
1034 int[] areaIds, float sampleRate) { in subscribeContinuousProp() argument
1036 for (int areaId : areaIds) { in subscribeContinuousProp()
1161 private int[] getSubscribedAreaIds(int propId, int[] areaIds) { in getSubscribedAreaIds() argument
1162 if (areaIds != null && areaIds.length != 0) { in getSubscribedAreaIds()
[all …]
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DHvacController.java400 mHvacPropertyViewMap.forEach((propId, areaIds) -> { in handleHvacPropertyChange() argument
401 areaIds.forEach((areaId, views) -> { in handleHvacPropertyChange()
414 mHvacPropertyViewMap.forEach((propId, areaIds) -> { in handleHvacPropertyChange() argument
415 areaIds.forEach((areaId, views) -> { in handleHvacPropertyChange()
422 mHvacPropertyViewMap.forEach((propId, areaIds) -> { in handleHvacPropertyChange() argument
425 areaIds.forEach((areaId, views) -> { in handleHvacPropertyChange()
466 ArrayList<Integer> areaIds = getAreaIdsFromTargetAreaId(propertyId, in handleHvacPowerOn() local
468 for (int areaId: areaIds) { in handleHvacPowerOn()
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java318 int[] areaIds = new int[mAreaIdConfigs.size()]; in getAreaIds() local
319 for (int i = 0; i < areaIds.length; i++) { in getAreaIds()
320 areaIds[i] = mAreaIdConfigs.get(i).getAreaId(); in getAreaIds()
322 return areaIds; in getAreaIds()
610 public Builder<T> addAreas(int[] areaIds) {
611 for (int areaId : areaIds) {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/
DSubscriptionManagerUnitTest.java39 private CarSubscription getCarSubscription(int propertyId, int[] areaIds) { in getCarSubscription() argument
40 return getCarSubscription(propertyId, areaIds, ON_CHANGE_RATE, in getCarSubscription()
44 private CarSubscription getCarSubscription(int propertyId, int[] areaIds, in getCarSubscription() argument
46 return getCarSubscription(propertyId, areaIds, updateRateHz, in getCarSubscription()
50 private CarSubscription getCarSubscription(int propertyId, int[] areaIds, in getCarSubscription() argument
55 option.areaIds = areaIds; in getCarSubscription()
DInputSanitizationUtilsUnitTest.java205 private static CarSubscription newCarSubscription(int propertyId, int[] areaIds, in newCarSubscription() argument
209 option.areaIds = areaIds; in newCarSubscription()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarPropertyServiceTest.java150 options.areaIds = new int[]{ in testregisterListener()
179 options.areaIds = new int[]{ in testregisterListener_exceptionAndRetry()
218 options.areaIds = new int[]{ in testUnregisterListener()
245 options.areaIds = new int[]{ in testUnregisterListener_exceptionAndRetry()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java1209 subscribeOption.areaIds = new int[0]; in registerCallback()
1500 internalOption.areaIds = clientOption.getAreaIds(); in convertToCarSubscribeOptions()
1578 int[] areaIds = option.areaIds; in subscribePropertyEventsInternal() local
1585 cpeCallbackController.addOnChangeProperty(propertyId, areaIds); in subscribePropertyEventsInternal()
1587 cpeCallbackController.addContinuousProperty(propertyId, areaIds, in subscribePropertyEventsInternal()
1615 int[] areaIds = option.areaIds; in validateAreaDisjointness() local
1616 for (int areaId : areaIds) { in validateAreaDisjointness()
3336 carSubscription.areaIds = subscribeOption.areaIds; in sanitizeSubscribeOptions()
3337 if (carSubscription.areaIds.length == 0) { in sanitizeSubscribeOptions()
3339 carSubscription.areaIds = carPropertyConfig.getAreaIds(); in sanitizeSubscribeOptions()
/packages/services/Car/tests/carservice_test/src/com/android/car/hal/test/
DAidlMockedVehicleHal.java88 default void onPropertySubscribe(int property, int[] areaIds, float sampleRate) {} in onPropertySubscribe() argument
344 handler.onPropertySubscribe(opt.propId, opt.areaIds, opt.sampleRate); in subscribe()
422 public void onPropertySubscribe(int property, int[] areaIds, float sampleRate) { in onPropertySubscribe() argument
511 public void onPropertySubscribe(int property, int[] areaIds, float sampleRate) { in onPropertySubscribe() argument
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyTestFragment.java330 int[] areaIds = info.mConfig.getAreaIds(); in onItemSelected() local
332 if (areaIds.length == 0) { in onItemSelected()
335 for (int areaId : areaIds) { in onItemSelected()
/packages/services/Car/cpp/vhal/client/test/
DAidlVhalClientTest.cpp943 .areaIds = {TEST_AREA_ID}, in TEST_F()
988 .areaIds = {TEST_AREA_ID}, in TEST_F()
1040 .areaIds = {1, 2}, in TEST_F()
1061 .areaIds = {1, 2}, in TEST_F()
DHidlVhalClientTest.cpp444 .areaIds = {TEST_AREA_ID}, in TEST_F()
496 .areaIds = {TEST_AREA_ID}, in TEST_F()
/packages/services/Car/cpp/evs/apps/default/src/
Devs_app.cpp67 .areaIds = {}, in subscribeToVHal()
/packages/services/Car/cpp/vhal/client/include/
DIVhalClient.h200 .areaIds = mAreaIds, in build()

12