/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarPropertyConfigTest.java | 209 CarPropertyConfig<Integer> carPropertyConfig = CarPropertyConfig in getConfigString_returnsExpectedValue() local 214 assertThat(carPropertyConfig.getConfigString()).isEqualTo(testConfigString); in getConfigString_returnsExpectedValue() 219 CarPropertyConfig<Long> carPropertyConfig = CarPropertyConfig.newBuilder(Long.class, in getFirstAndOnlyAreaId_returnsAreaId() local 223 assertThat(carPropertyConfig.getFirstAndOnlyAreaId()).isEqualTo( in getFirstAndOnlyAreaId_returnsAreaId() 229 CarPropertyConfig<Long> carPropertyConfig = CarPropertyConfig.newBuilder(Long.class, in getFirstAndOnlyAreaId_throwsIllegalStateException() local 234 assertThrows(IllegalStateException.class, () -> carPropertyConfig.getFirstAndOnlyAreaId()); in getFirstAndOnlyAreaId_throwsIllegalStateException() 239 CarPropertyConfig<Long> carPropertyConfig = CarPropertyConfig.newBuilder(Long.class, in getAreaIdConfigs_returnsEmptyIfNoAreaIdsSupplied() local 242 assertThat(carPropertyConfig.getAreaIdConfigs()).isEmpty(); in getAreaIdConfigs_returnsEmptyIfNoAreaIdsSupplied() 250 CarPropertyConfig<Long> carPropertyConfig = CarPropertyConfig.newBuilder(Long.class, in getAreaIdConfigs_returnsAreaIdConfigThatIsSupplied() local 254 assertThat(carPropertyConfig.getAreaIdConfigs()).containsExactly(areaIdConfig); in getAreaIdConfigs_returnsAreaIdConfigThatIsSupplied() [all …]
|
/packages/services/Car/car-lib/src/com/android/car/internal/property/ |
D | InputSanitizationUtils.java | 56 CarPropertyConfig<?> carPropertyConfig, float updateRateHz) { in sanitizeUpdateRateHz() argument 58 if (carPropertyConfig.getChangeMode() in sanitizeUpdateRateHz() 61 } else if (sanitizedUpdateRateHz > carPropertyConfig.getMaxSampleRate()) { in sanitizeUpdateRateHz() 62 sanitizedUpdateRateHz = carPropertyConfig.getMaxSampleRate(); in sanitizeUpdateRateHz() 63 } else if (sanitizedUpdateRateHz < carPropertyConfig.getMinSampleRate()) { in sanitizeUpdateRateHz() 64 sanitizedUpdateRateHz = carPropertyConfig.getMinSampleRate(); in sanitizeUpdateRateHz() 75 CarPropertyConfig<?> carPropertyConfig, float resolution) { in sanitizeResolution() argument 76 if (!featureFlags.subscriptionWithResolution() || carPropertyConfig.getChangeMode() in sanitizeResolution() 106 CarPropertyConfig<?> carPropertyConfig) { 113 if (carPropertyConfig.getChangeMode() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarPropertyService.java | 327 CarPropertyConfig<?> carPropertyConfig = getCarPropertyConfig(propertyId); in registerListener() local 329 if (carPropertyConfig != null) { in registerListener() 330 areaIds = carPropertyConfig.getAreaIds(); in registerListener() 361 CarPropertyConfig<?> carPropertyConfig = getCarPropertyConfig(propertyId); in registerListener() local 364 if (carPropertyConfig != null in registerListener() 365 && carPropertyConfig.getChangeMode() == VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS) { in registerListener() 385 CarPropertyConfig<?> carPropertyConfig = validateRegisterParameterAndGetConfig( in validateAndSanitizeSubscriptions() local 388 carPropertyConfig, subscription.updateRateHz); in validateAndSanitizeSubscriptions() 390 mFeatureFlags, carPropertyConfig, subscription.resolution); in validateAndSanitizeSubscriptions() 392 mFeatureFlags, carPropertyConfig, subscription)); in validateAndSanitizeSubscriptions() [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/ |
D | HvacUtils.java | 65 public static Integer getHighestMinValueForAllAreaIds(CarPropertyConfig<?> carPropertyConfig) { in getHighestMinValueForAllAreaIds() argument 66 if (!carPropertyConfig.getPropertyType().equals(Integer.class)) { in getHighestMinValueForAllAreaIds() 70 for (AreaIdConfig<?> areaIdConfig: carPropertyConfig.getAreaIdConfigs()) { in getHighestMinValueForAllAreaIds() 87 public static Integer getLowestMaxValueForAllAreaIds(CarPropertyConfig<?> carPropertyConfig) { in getLowestMaxValueForAllAreaIds() argument 88 if (!carPropertyConfig.getPropertyType().equals(Integer.class)) { in getLowestMaxValueForAllAreaIds() 92 for (AreaIdConfig<?> areaIdConfig: carPropertyConfig.getAreaIdConfigs()) { in getLowestMaxValueForAllAreaIds()
|
D | SeatTemperatureLevelButton.java | 108 public void setConfigInfo(CarPropertyConfig<?> carPropertyConfig) { in setConfigInfo() argument 110 carPropertyConfig.getAreaIdConfig(mAreaId); in setConfigInfo()
|
D | HvacController.java | 292 CarPropertyConfig carPropertyConfig = in registerHvacViews() local 294 if (carPropertyConfig == null) { in registerHvacViews() 302 hvacView.setConfigInfo(carPropertyConfig); in registerHvacViews() 328 if (carPropertyConfig.getAreaType() != VEHICLE_AREA_TYPE_SEAT) { in registerHvacViews()
|
D | HvacView.java | 37 default void setConfigInfo(CarPropertyConfig<?> carPropertyConfig) {} in setConfigInfo() argument
|
D | TemperatureControlView.java | 143 public void setConfigInfo(CarPropertyConfig<?> carPropertyConfig) { in setConfigInfo() argument 144 List<Integer> configArray = carPropertyConfig.getConfigArray(); in setConfigInfo()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/ |
D | HalPropConfigTest.java | 276 CarPropertyConfig<?> carPropertyConfig = halPropConfig.toCarPropertyConfig( in toCarPropertyConfig_populatesGlobalAreaId() local 278 assertThat(carPropertyConfig.getPropertyId()).isEqualTo(GLOBAL_INTEGER_PROP_ID); in toCarPropertyConfig_populatesGlobalAreaId() 279 assertThat(carPropertyConfig.getAreaIdConfigs()).hasSize(1); in toCarPropertyConfig_populatesGlobalAreaId() 281 AreaIdConfig<?> areaIdConfig = carPropertyConfig.getAreaIdConfig(/*areaId=*/0); in toCarPropertyConfig_populatesGlobalAreaId() 524 CarPropertyConfig<?> carPropertyConfig = halPropConfig.toCarPropertyConfig( in toCarPropertyConfig_aidlAreaConfigWithInvalidAccessPopulatedWithPropConfigAccess() local 526 assertThat(carPropertyConfig.getAccess()).isEqualTo(TEST_ACCESS); in toCarPropertyConfig_aidlAreaConfigWithInvalidAccessPopulatedWithPropConfigAccess() 528 AreaIdConfig<?> areaIdConfig1 = carPropertyConfig.getAreaIdConfig(TEST_AREA_ID); in toCarPropertyConfig_aidlAreaConfigWithInvalidAccessPopulatedWithPropConfigAccess() 533 AreaIdConfig<?> areaIdConfig2 = carPropertyConfig.getAreaIdConfig(TEST_ALTERNATE_AREA_ID); in toCarPropertyConfig_aidlAreaConfigWithInvalidAccessPopulatedWithPropConfigAccess() 588 CarPropertyConfig<?> carPropertyConfig = halPropConfig.toCarPropertyConfig( in toCarPropertyConfig_populatesVendorAreaType() local 590 assertThat(carPropertyConfig.getPropertyId()).isEqualTo(VENDOR_INTEGER_VEC_PROP_ID); in toCarPropertyConfig_populatesVendorAreaType() [all …]
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/custom/ |
D | FanSpeedSeekBar.java | 168 public void setConfigInfo(CarPropertyConfig<?> carPropertyConfig) { in setConfigInfo() argument 172 Integer highestMinValue = HvacUtils.getHighestMinValueForAllAreaIds(carPropertyConfig); in setConfigInfo() 173 Integer lowestMaxValue = HvacUtils.getLowestMaxValueForAllAreaIds(carPropertyConfig); in setConfigInfo()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/ |
D | CarPropertyConfigListUnitTest.java | 88 CarPropertyConfig carPropertyConfig = CarPropertyConfig.newBuilder( in testCreateFromParcel() local 91 List.of(carPropertyConfig)); in testCreateFromParcel()
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/referenceui/ |
D | FanSpeedBar.java | 224 public void setConfigInfo(CarPropertyConfig<?> carPropertyConfig) { in setConfigInfo() argument 228 Integer highestMinValue = HvacUtils.getHighestMinValueForAllAreaIds(carPropertyConfig); in setConfigInfo() 229 Integer lowestMaxValue = HvacUtils.getLowestMaxValueForAllAreaIds(carPropertyConfig); in setConfigInfo()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/hvac/ |
D | CarUiPortraitTemperatureControlView.java | 144 public void setConfigInfo(CarPropertyConfig<?> carPropertyConfig) { in setConfigInfo() argument 145 List<Integer> configArray = carPropertyConfig.getConfigArray(); in setConfigInfo()
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | PropertyHalService.java | 326 void parseClientUpdateRateHz(CarPropertyConfig carPropertyConfig) { in parseClientUpdateRateHz() argument 331 clientUpdateRateHz = carPropertyConfig.getMaxSampleRate(); in parseClientUpdateRateHz() 333 mUpdateRateHz = sanitizeUpdateRateHz(carPropertyConfig, clientUpdateRateHz); in parseClientUpdateRateHz() 1077 CarPropertyConfig<?> carPropertyConfig = halPropConfig.toCarPropertyConfig( in getPropertyList() local 1079 mgrPropIdToCarPropConfig.put(mgrPropId, carPropertyConfig); in getPropertyList()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 3333 CarPropertyConfig<?> carPropertyConfig = configs.getConfig(propertyId); in sanitizeSubscribeOptions() local 3339 carSubscription.areaIds = carPropertyConfig.getAreaIds(); in sanitizeSubscribeOptions() 3344 carPropertyConfig, subscribeOption.updateRateHz); in sanitizeSubscribeOptions() 3348 carPropertyConfig, resolution); in sanitizeSubscribeOptions() 3350 mFeatureFlags, carPropertyConfig, carSubscription)); in sanitizeSubscribeOptions()
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/hvac/ |
D | HvacControllerTest.java | 303 public void setConfigInfo(CarPropertyConfig<?> carPropertyConfig) { in setConfigInfo() argument
|