Home
last modified time | relevance | path

Searched refs:CarPropertyConfig (Results 1 – 25 of 72) sorted by relevance

123

/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarPropertyConfigTest.java25 import android.car.hardware.CarPropertyConfig;
47 private CarPropertyConfig<Float> createFloatPropertyConfig() { in createFloatPropertyConfig()
48 CarPropertyConfig<Float> config = CarPropertyConfig in createFloatPropertyConfig()
71 CarPropertyConfig<Float> config = createFloatPropertyConfig(); in testWriteReadFloat()
74 CarPropertyConfig<Float> configRead = readFromParcel(); in testWriteReadFloat()
93 CarPropertyConfig<Integer> config = CarPropertyConfig in testWriteReadIntegerValue()
99 CarPropertyConfig<Integer> configRead = readFromParcel(); in testWriteReadIntegerValue()
117 CarPropertyConfig<Long> config = CarPropertyConfig in testWriteReadLongValue()
123 CarPropertyConfig<Long> configRead = readFromParcel(); in testWriteReadLongValue()
139 CarPropertyConfig<Integer[]> config = CarPropertyConfig in testWriteReadIntegerArray()
[all …]
DCarHvacManagerTest.java22 import android.car.hardware.CarPropertyConfig;
51 List<CarPropertyConfig> properties = mHvacManager.getPropertyList(); in testAllHvacProperties()
55 for (CarPropertyConfig property : properties) { in testAllHvacProperties()
71 private void assertTypeAndZone(CarPropertyConfig property) { in assertTypeAndZone()
117 CarPropertyConfig<Integer> property) { in checkTypeAndGlobal()
126 private void checkIntMinMax(CarPropertyConfig<Integer> property) { in checkIntMinMax()
151 private void checkFloatMinMax(CarPropertyConfig<Float> property) { in checkFloatMinMax()
DCarCabinManagerTest.java23 import android.car.hardware.CarPropertyConfig;
53 List<CarPropertyConfig> properties = mCabinManager.getPropertyList(); in testAllCabinProperties()
57 for (CarPropertyConfig property : properties) { in testAllCabinProperties()
66 private void assertTypeAndZone(CarPropertyConfig property) { in assertTypeAndZone()
130 private void checkIntMinMax(CarPropertyConfig<Integer> property) { in checkIntMinMax()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/property/
DInputSanitizationUtilsUnitTest.java27 import android.car.hardware.CarPropertyConfig;
42 private static final CarPropertyConfig.Builder<Integer> CAR_PROPERTY_CONFIG_BUILDER =
43 CarPropertyConfig.newBuilder(
52 CarPropertyConfig in sanitizeUpdateRateHz_returnsZeroForStaticProperties()
65 CarPropertyConfig in sanitizeUpdateRateHz_returnsZeroForOnChangeProperties()
78 CarPropertyConfig in sanitizeUpdateRateHz_returnsMaxUpdateRateHzIfOver()
93 CarPropertyConfig in sanitizeUpdateRateHz_returnsMinUpdateRateHzIfOver()
108 CarPropertyConfig in sanitizeUpdateRateHz_returnsDefaultUpdateRateHz()
119 CarPropertyConfig config = mock(CarPropertyConfig.class); in testIsVurAllowed()
121 CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS); in testIsVurAllowed()
[all …]
DCarPropertyConfigListUnitTest.java22 import android.car.hardware.CarPropertyConfig;
61 List<CarPropertyConfig> configs = List.of( in testSerializeThenDeserializeWithValidResults()
62 CarPropertyConfig.newBuilder(Float.class, HVAC_TEMPERATURE_SET, in testSerializeThenDeserializeWithValidResults()
88 CarPropertyConfig carPropertyConfig = CarPropertyConfig.newBuilder( in testCreateFromParcel()
97 CarPropertyConfig carPropertyConfigCreateFromParcel = in testCreateFromParcel()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisherTest.java34 import android.car.hardware.CarPropertyConfig;
193 private static final CarPropertyConfig<Integer> PROP_STRING_CONFIG =
194 CarPropertyConfig.newBuilder(Integer.class, PROP_STRING_ID, AREA_ID)
195 .setAccess(CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ)
197 CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ, /* areaId */ 0).build())
199 private static final CarPropertyConfig<Integer> PROP_BOOLEAN_CONFIG =
200 CarPropertyConfig.newBuilder(Integer.class, PROP_BOOLEAN_ID, AREA_ID)
201 .setAccess(CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ)
203 CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ, /* areaId */ 0).build())
205 private static final CarPropertyConfig<Integer> PROP_INT_CONFIG =
[all …]
/packages/services/Car/car-lib/src/com/android/car/internal/property/
DCarPropertyConfigList.java21 import android.car.hardware.CarPropertyConfig;
32 public final class CarPropertyConfigList extends LargeParcelableList<CarPropertyConfig> {
38 public CarPropertyConfigList(List<CarPropertyConfig> carPropertyConfigs) { in CarPropertyConfigList()
42 public List<CarPropertyConfig> getConfigs() { in getConfigs()
65 protected Creator<CarPropertyConfig> getCreator() { in getCreator()
66 return CarPropertyConfig.CREATOR; in getCreator()
DInputSanitizationUtils.java24 import android.car.hardware.CarPropertyConfig;
56 CarPropertyConfig<?> carPropertyConfig, float updateRateHz) { in sanitizeUpdateRateHz()
59 != CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS) { in sanitizeUpdateRateHz()
75 CarPropertyConfig<?> carPropertyConfig, float resolution) { in sanitizeResolution()
77 != CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS) { in sanitizeResolution()
106 CarPropertyConfig<?> carPropertyConfig) {
114 != CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS) {
138 FeatureFlags featureFlags, CarPropertyConfig<?> carPropertyConfig,
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarPropertyServiceUnitTest.java46 import android.car.hardware.CarPropertyConfig;
111 private final SparseArray<CarPropertyConfig<?>> mConfigs = new SparseArray<>();
153 mConfigs.put(SPEED_ID, CarPropertyConfig.newBuilder(Float.class, SPEED_ID, in setUp()
156 CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ, GLOBAL_AREA_ID) in setUp()
158 .setAccess(CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ).setChangeMode( in setUp()
159 CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS).setMaxSampleRate( in setUp()
163 mConfigs.put(HVAC_TEMP, CarPropertyConfig.newBuilder(Float.class, HVAC_TEMP, in setUp()
166 CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ, GLOBAL_AREA_ID).build()) in setUp()
167 .setAccess(CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ).build()); in setUp()
170 CarPropertyConfig.newBuilder(Integer.class, VehiclePropertyIds.GEAR_SELECTION, in setUp()
[all …]
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DCarPropertyTest.java26 import android.car.hardware.CarPropertyConfig;
285 List<CarPropertyConfig> configs = propMgr.getPropertyList(propConfigSet); in testMixedTypeProperty()
292 CarPropertyConfig<?> cfg = configs.get(0); in testMixedTypeProperty()
349 List<CarPropertyConfig> configs = propMgr.getPropertyList(); in checkVendorPropertyPermission()
350 for (CarPropertyConfig cfg : configs) { in checkVendorPropertyPermission()
373 List<CarPropertyConfig> configs = propMgr.getPropertyList(); in checkSystemPropertyPermission()
374 for (CarPropertyConfig<?> cfg : configs) { in checkSystemPropertyPermission()
382 case CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_NONE: in checkSystemPropertyPermission()
388 case CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ_WRITE: in checkSystemPropertyPermission()
394 case CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_WRITE: in checkSystemPropertyPermission()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/property/
DAreaIdConfig.java26 import android.car.hardware.CarPropertyConfig;
42 private final @CarPropertyConfig.VehiclePropertyAccessType int mAccess;
51 @CarPropertyConfig.VehiclePropertyAccessType int access, in AreaIdConfig()
103 public @CarPropertyConfig.VehiclePropertyAccessType int getAccess() {
210 private final @CarPropertyConfig.VehiclePropertyAccessType int mAccess;
218 mAccess = CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_NONE;
223 public Builder(@CarPropertyConfig.VehiclePropertyAccessType int access, int areaId) {
/packages/services/Car/car-lib/src/android/car/hardware/
DCarPropertyConfig.java51 public final class CarPropertyConfig<T> implements Parcelable { class
52 private static final String TAG = CarPropertyConfig.class.getSimpleName();
65 private CarPropertyConfig(int access, int areaType, int changeMode, in CarPropertyConfig() method in CarPropertyConfig
420 private CarPropertyConfig(Parcel in) { in CarPropertyConfig() method in CarPropertyConfig
443 public static final Creator<CarPropertyConfig> CREATOR = new Creator<CarPropertyConfig>() {
445 public CarPropertyConfig createFromParcel(Parcel in) {
446 return new CarPropertyConfig(in);
450 public CarPropertyConfig[] newArray(int size) {
451 return new CarPropertyConfig[size];
734 public CarPropertyConfig<T> build() {
[all …]
DCarVendorExtensionManager.java112 List<CarPropertyConfig> configs = mPropertyManager.getPropertyList(); in registerCallback()
113 for (CarPropertyConfig c : configs) { in registerCallback()
125 List<CarPropertyConfig> configs = mPropertyManager.getPropertyList(); in unregisterCallback()
126 for (CarPropertyConfig c : configs) { in unregisterCallback()
137 public List<CarPropertyConfig> getProperties() { in getProperties()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisher.java27 import android.car.hardware.CarPropertyConfig;
64 private final SparseArray<CarPropertyConfig> mCarPropertyList;
92 List<CarPropertyConfig> propertyList = mCarPropertyService.getPropertyList() in VehiclePropertyPublisher()
95 for (CarPropertyConfig property : propertyList) { in VehiclePropertyPublisher()
108 CarPropertyConfig<?> config = mCarPropertyList.get(propertyId); in addDataSubscriber()
116 accessLevel == CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ in addDataSubscriber()
118 == CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ_WRITE, in addDataSubscriber()
124 config.getAccess() == CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ in addDataSubscriber()
126 == CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ_WRITE, in addDataSubscriber()
338 public final CarPropertyConfig config;
[all …]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java24 import android.car.hardware.CarPropertyConfig;
86 private List<CarPropertyConfig> mCarPropertyConfigs;
209 for (CarPropertyConfig prop : mCarPropertyConfigs) { in onCreateView()
286 private void configureDualOn(View v, CarPropertyConfig prop) { in configureDualOn()
299 private void configureAcOn(View v, CarPropertyConfig prop) { in configureAcOn()
311 private void configureAutoModeOn(View v, CarPropertyConfig prop) { in configureAutoModeOn()
324 private void configureFanPosition(View v, CarPropertyConfig prop) { in configureFanPosition()
377 private void configureFanSpeed(View v, CarPropertyConfig prop) { in configureFanSpeed()
428 private void configureTempSetpoint(View v, CarPropertyConfig prop) { in configureTempSetpoint()
537 private void configureDefrosterOn(View v, CarPropertyConfig prop1) { in configureDefrosterOn()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarPropertyService.java19 import static android.car.hardware.CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS;
37 import android.car.hardware.CarPropertyConfig;
187 private SparseArray<CarPropertyConfig<?>> mPropertyIdToCarPropertyConfig = new SparseArray<>();
327 CarPropertyConfig<?> carPropertyConfig = getCarPropertyConfig(propertyId); in registerListener()
361 CarPropertyConfig<?> carPropertyConfig = getCarPropertyConfig(propertyId); in registerListener()
385 CarPropertyConfig<?> carPropertyConfig = validateRegisterParameterAndGetConfig( in validateAndSanitizeSubscriptions()
574 CarPropertyConfig<?> carPropertyConfig = getCarPropertyConfig(propertyId); in getAndDispatchPropertyInitValue()
720 List<CarPropertyConfig> availableProp = new ArrayList<>(); in getPropertyConfigList()
1115 private void assertPropertyIsReadable(CarPropertyConfig<?> carPropertyConfig, in assertPropertyIsReadable()
1121 accessLevel == CarPropertyConfig.VEHICLE_PROPERTY_ACCESS_READ in assertPropertyIsReadable()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java23 import android.car.hardware.CarPropertyConfig;
327 List<CarPropertyConfig> configs = getPropertyList(); in registerCallback()
328 for (CarPropertyConfig c : configs) { in registerCallback()
345 List<CarPropertyConfig> configs = getPropertyList(); in unregisterCallback()
346 for (CarPropertyConfig c : configs) { in unregisterCallback()
365 public List<CarPropertyConfig> getPropertyList() { in getPropertyList()
/packages/services/Car/car-lib-module/api/
Dsystem-removed.txt12 @Deprecated public static class CarPropertyConfig.Builder<T> {
13 method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int);
14 …method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, …
15 method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]);
/packages/services/Car/car-lib/api/
Dtest-removed.txt12 @Deprecated public static class CarPropertyConfig.Builder<T> {
13 method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int);
14 …method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, …
15 method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]);
Dsystem-removed.txt12 @Deprecated public static class CarPropertyConfig.Builder<T> {
13 method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addArea(int);
14 …method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addAreaConfig(int, T, …
15 method @Deprecated public android.car.hardware.CarPropertyConfig.Builder<T> addAreas(int[]);
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyInfo.java20 import android.car.hardware.CarPropertyConfig;
24 public final CarPropertyConfig mConfig;
28 PropertyInfo(CarPropertyConfig config) { in PropertyInfo()
/packages/services/Car/car-lib/src/android/car/hardware/cabin/
DCarCabinManager.java23 import android.car.hardware.CarPropertyConfig;
493 List<CarPropertyConfig> configs = getPropertyList(); in registerCallback()
498 for (CarPropertyConfig c : configs) { in registerCallback()
514 List<CarPropertyConfig> configs = getPropertyList(); in unregisterCallback()
515 for (CarPropertyConfig c : configs) { in unregisterCallback()
529 public List<CarPropertyConfig> getPropertyList() { in getPropertyList()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/
DHvacUtils.java19 import android.car.hardware.CarPropertyConfig;
65 public static Integer getHighestMinValueForAllAreaIds(CarPropertyConfig<?> carPropertyConfig) { in getHighestMinValueForAllAreaIds()
87 public static Integer getLowestMaxValueForAllAreaIds(CarPropertyConfig<?> carPropertyConfig) { in getLowestMaxValueForAllAreaIds()
/packages/services/Car/service/src/com/android/car/hal/
DHalPropConfig.java22 import android.car.hardware.CarPropertyConfig;
102 public CarPropertyConfig<?> toCarPropertyConfig(int mgrPropertyId, in toCarPropertyConfig()
109 CarPropertyConfig.Builder carPropertyConfigBuilder = CarPropertyConfig.newBuilder(clazz, in toCarPropertyConfig()
115 if (getChangeMode() == CarPropertyConfig.VEHICLE_PROPERTY_CHANGE_MODE_CONTINUOUS) { in toCarPropertyConfig()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeCarPropertyService.java27 import android.car.hardware.CarPropertyConfig;
61 private final Map<Integer, CarPropertyConfig> mConfigs = new HashMap<>();
115 List<CarPropertyConfig> configs = new ArrayList<>(propIds.length); in getPropertyConfigList()
117 CarPropertyConfig cfg = mConfigs.get(prop); in getPropertyConfigList()
206 CarPropertyConfig.Builder<?> builder = CarPropertyConfig in addProperty()
217 public CarPropertyController addProperty(CarPropertyConfig<?> config, in addProperty()

123