/packages/services/Car/service/src/com/android/car/hal/property/ |
D | PropertyHalServiceConfigs.java | 83 int propertyId, int halPropId, String propertyName, String description, in CarSvcPropertyConfig() argument 138 if (config.halPropId() != config.propertyId()) { in PropertyHalServiceConfigs() 140 halPropIdMgrIds.add(config.halPropId()); in PropertyHalServiceConfigs() 218 public Set<Integer> getAllPossibleSupportedEnumValues(int halPropId) { in getAllPossibleSupportedEnumValues() argument 219 if (!mHalPropIdToCarSvcConfig.contains(halPropId)) { in getAllPossibleSupportedEnumValues() 222 Set<Integer> dataEnums = mHalPropIdToCarSvcConfig.get(halPropId).dataEnums; in getAllPossibleSupportedEnumValues() 266 public PermissionCondition getReadPermission(int halPropId) { in getReadPermission() argument 267 if (CarPropertyHelper.isVendorOrBackportedProperty(halPropId)) { in getReadPermission() 268 return getVendorReadPermission(halPropId); in getReadPermission() 271 halPropId); in getReadPermission() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | PropertyHalService.java | 692 int halPropId = managerToHalPropId(mgrPropId); in parseGetAsyncResults() local 695 halPropConfig = mHalPropIdToPropConfig.get(halPropId); in parseGetAsyncResults() 1091 int halPropId = managerToHalPropId(pendingRequest.getPropertyId()); in cleanupPendingAsyncSetRequestLocked() local 1113 if (!mHalPropIdToWaitingUpdateRequestInfo.contains(halPropId)) { in cleanupPendingAsyncSetRequestLocked() 1116 if (!mHalPropIdToWaitingUpdateRequestInfo.get(halPropId).remove(pendingRequest)) { in cleanupPendingAsyncSetRequestLocked() 1119 if (mHalPropIdToWaitingUpdateRequestInfo.get(halPropId).isEmpty()) { in cleanupPendingAsyncSetRequestLocked() 1120 mHalPropIdToWaitingUpdateRequestInfo.remove(halPropId); in cleanupPendingAsyncSetRequestLocked() 1124 new ArraySet<Integer>(Set.of(halPropId))); in cleanupPendingAsyncSetRequestLocked() 1200 int halPropId = managerToHalPropId(mgrPropId); in getProperty() local 1205 halPropConfig = mHalPropIdToPropConfig.get(halPropId); in getProperty() [all …]
|
D | DiagnosticHalService.java | 367 private HalPropConfig getPropConfig(int halPropId) { in getPropConfig() argument 370 config = mVehiclePropertyToConfig.get(halPropId, null); in getPropConfig() 375 private int[] getPropConfigArray(int halPropId) { in getPropConfigArray() argument 376 HalPropConfig propConfig = getPropConfig(halPropId); in getPropConfigArray() 399 private int getNumIntegerSensors(int halPropId) { in getNumIntegerSensors() argument 401 int[] configArray = getPropConfigArray(halPropId); in getNumIntegerSensors() 404 + "vendor-specific properties. Assuming 0.", halPropId); in getNumIntegerSensors() 411 private int getNumFloatSensors(int halPropId) { in getNumFloatSensors() argument 413 int[] configArray = getPropConfigArray(halPropId); in getNumFloatSensors() 416 + "vendor-specific properties. Assuming 0.", halPropId); in getNumFloatSensors()
|
D | HalPropValueBuilder.java | 356 public HalPropValue build(CarPropertyValue carPropertyValue, int halPropId, in build() argument 358 return build(carPropertyValue, halPropId, /* timestamp */ 0, config); in build() 369 public HalPropValue build(CarPropertyValue carPropertyValue, int halPropId, long timestamp, in build() argument 372 return new AidlHalPropValue(carPropertyValue, halPropId, timestamp, config); in build() 374 return new HidlHalPropValue(carPropertyValue, halPropId, timestamp, config); in build() 517 AidlHalPropValue(CarPropertyValue value, int halPropId, long timestamp, in AidlHalPropValue() argument 519 init(halPropId, value.getAreaId(), timestamp, VehiclePropertyStatus.AVAILABLE); in AidlHalPropValue() 521 if (HalPropValue.isMixedTypeProperty(halPropId)) { in AidlHalPropValue() 895 HidlHalPropValue(CarPropertyValue value, int halPropId, long timestamp, in HidlHalPropValue() argument 897 init(halPropId, value.getAreaId(), timestamp, VehiclePropertyStatus.AVAILABLE); in HidlHalPropValue() [all …]
|
D | HalServiceBase.java | 151 int getManagerPropId(int halPropId) { in getManagerPropId() argument 152 return mMap.getKey(halPropId, NOT_SUPPORTED_PROPERTY); in getManagerPropId()
|
D | HalPropConfig.java | 198 public static boolean shouldConfigArrayDefineSupportedEnumValues(int halPropId) { in shouldConfigArrayDefineSupportedEnumValues() argument 199 var annotations = AnnotationsForVehicleProperty.values.get(halPropId); in shouldConfigArrayDefineSupportedEnumValues()
|
D | VehicleHal.java | 187 HalSubscribeOptions(int halPropId, int[] areaIds, float updateRateHz) { in HalSubscribeOptions() argument 188 this(halPropId, areaIds, updateRateHz, /* enableVariableUpdateRate= */ false, in HalSubscribeOptions() 192 HalSubscribeOptions(int halPropId, int[] areaIds, float updateRateHz, in HalSubscribeOptions() argument 194 this(halPropId, areaIds, updateRateHz, enableVariableUpdateRate, in HalSubscribeOptions() 198 HalSubscribeOptions(int halPropId, int[] areaIds, float updateRateHz, in HalSubscribeOptions() argument 200 mHalPropId = halPropId; in HalSubscribeOptions()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/property/ |
D | PropertyHalServiceConfigsUnitTest.java | 236 for (int halPropId : allSystemHalPropIds) { in testWritePermissionsExistInReadPermissionsForSystemProperty() 238 mPropertyHalServiceConfigs.getReadPermission(halPropId); in testWritePermissionsExistInReadPermissionsForSystemProperty() 243 mPropertyHalServiceConfigs.getWritePermission(halPropId); in testWritePermissionsExistInReadPermissionsForSystemProperty() 255 + VehiclePropertyIds.toString(halPropId) in testWritePermissionsExistInReadPermissionsForSystemProperty() 259 + VehiclePropertyIds.toString(halPropId) in testWritePermissionsExistInReadPermissionsForSystemProperty() 469 int halPropId = 2345; in testParseJsonConfig_validConfig() local 484 CarSvcPropertyConfig expectedConfig = new CarSvcPropertyConfig(propertyId, halPropId, in testParseJsonConfig_validConfig() 515 int halPropId = 1234; in testParseJsonConfig_halPropIdDefaultEqualPropId() local 522 var expectedConfig = new CarSvcPropertyConfig(propertyId, halPropId, in testParseJsonConfig_halPropIdDefaultEqualPropId() 553 int halPropId = 1234; in testParseJsonConfig_dataFlags() local [all …]
|
/packages/services/Car/service/src/com/android/car/hal/fakevhal/ |
D | VehicleStubWrapper.java | 394 int halPropId, long timestamp) { in buildHalPropValue() argument 395 return getHalPropValueBuilder().build(carPropertyValue, halPropId, timestamp, in buildHalPropValue() 396 mPropConfigsByPropId.get(halPropId)); in buildHalPropValue()
|