/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
D | CarHvacManager.java | 254 void onErrorEvent(@PropertyId int propertyId, int zone); in onErrorEvent() argument 273 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument 276 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent() 293 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument 300 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent() 374 public boolean isPropertyAvailable(@PropertyId int propertyId, int area) { in isPropertyAvailable() argument 375 return mCarPropertyMgr.isPropertyAvailable(propertyId, area); in isPropertyAvailable() 384 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument 385 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty() 394 public float getFloatProperty(@PropertyId int propertyId, int area) { in getFloatProperty() argument [all …]
|
/packages/services/Car/car-lib/src/android/car/hardware/cabin/ |
D | CarCabinManager.java | 416 void onErrorEvent(@PropertyId int propertyId, int zone); in onErrorEvent() argument 435 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument 438 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent() 453 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument 460 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent() 485 public static boolean isZonedProperty(@PropertyId int propertyId) { in isZonedProperty() argument 540 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument 541 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty() 550 public float getFloatProperty(@PropertyId int propertyId, int area) { in getFloatProperty() argument 551 return mCarPropertyMgr.getFloatProperty(propertyId, area); in getFloatProperty() [all …]
|
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/ |
D | CarPropertyManagerPublicPermissionTest.java | 210 for (int propertyId : mProps) { in testCarPropertyManagerGetter() 212 switch (propertyId & VehiclePropertyType.MASK) { in testCarPropertyManagerGetter() 216 mPropertyManager.getBooleanProperty(propertyId, DUMMY_AREA_ID); in testCarPropertyManagerGetter() 219 mPropertyManager.getFloatProperty(propertyId, DUMMY_AREA_ID); in testCarPropertyManagerGetter() 222 mPropertyManager.getIntArrayProperty(propertyId, DUMMY_AREA_ID); in testCarPropertyManagerGetter() 225 mPropertyManager.getIntProperty(propertyId, DUMMY_AREA_ID); in testCarPropertyManagerGetter() 228 mPropertyManager.getProperty(propertyId, DUMMY_AREA_ID); in testCarPropertyManagerGetter() 231 assertWithMessage("Get property: 0x" + Integer.toHexString(propertyId) in testCarPropertyManagerGetter() 236 assertPropertyNotImplementedInVhal(propertyId); in testCarPropertyManagerGetter() 240 private void assertPropertyNotImplementedInVhal(int propertyId) { in assertPropertyNotImplementedInVhal() argument [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 49 VehiclePropValue halValue, int propertyId) { in toCarPropertyValue() argument 58 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 61 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 64 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 67 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 74 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 80 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 86 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 88 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, v.stringValue); in toCarPropertyValue() 91 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, halData); in toCarPropertyValue() [all …]
|
D | VehicleHal.java | 365 public boolean isPropertySupported(int propertyId) { in isPropertySupported() argument 367 return mAllProperties.containsKey(propertyId); in isPropertySupported() 378 public @Nullable VehiclePropValue getIfAvailableOrFail(int propertyId, int numberOfRetries) { in getIfAvailableOrFail() argument 379 if (!isPropertySupported(propertyId)) { in getIfAvailableOrFail() 385 return get(propertyId); in getIfAvailableOrFail() 387 Log.e(CarLog.TAG_HAL, "Cannot get property:" + propertyId, e); in getIfAvailableOrFail() 390 throw new IllegalStateException("Cannot get property:" + propertyId in getIfAvailableOrFail() 402 public @Nullable VehiclePropValue getIfAvailableOrFailForEarlyStage(int propertyId, in getIfAvailableOrFailForEarlyStage() argument 405 return getIfAvailableOrFail(propertyId, numberOfRetries); in getIfAvailableOrFailForEarlyStage() 408 public VehiclePropValue get(int propertyId) { in get() argument [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/ |
D | ShadowCarUnitsManager.java | 50 protected static Unit[] getUnitsSupportedByProperty(int propertyId) { in getUnitsSupportedByProperty() argument 51 return sSupportedUnits.get(propertyId); in getUnitsSupportedByProperty() 55 protected static Unit getUnitUsedByProperty(int propertyId) { in getUnitUsedByProperty() argument 56 return sUnitsBeingUsed.get(propertyId); in getUnitUsedByProperty() 60 protected static void setUnitUsedByProperty(int propertyId, int unitId) { in setUnitUsedByProperty() argument 61 sUnitsBeingUsed.put(propertyId, UnitsMap.MAP.get(unitId)); in setUnitUsedByProperty() 83 public static void setUnitsSupportedByProperty(int propertyId, Unit[] units) { in setUnitsSupportedByProperty() argument 84 sSupportedUnits.put(propertyId, units); in setUnitsSupportedByProperty()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 247 int propertyId, @FloatRange(from = 0.0, to = 100.0) float rate) { in registerCallback() argument 252 CarPropertyConfig config = mConfigMap.get(propertyId); in registerCallback() 254 Log.e(TAG, "registerListener: propId is not in config list: " + propertyId); in registerCallback() 262 listeners = mActivePropertyListener.get(propertyId); in registerCallback() 265 mActivePropertyListener.put(propertyId, listeners); in registerCallback() 272 if (!registerOrUpdatePropertyListener(propertyId, rate)) { in registerCallback() 280 private boolean registerOrUpdatePropertyListener(int propertyId, float rate) { in registerOrUpdatePropertyListener() argument 282 mService.registerListener(propertyId, rate, mCarPropertyEventToService); in registerOrUpdatePropertyListener() 335 public void unregisterCallback(@NonNull CarPropertyEventCallback callback, int propertyId) { in unregisterCallback() argument 337 doUnregisterListenerLocked(callback, propertyId); in unregisterCallback() [all …]
|
/packages/apps/Car/Settings/src/com/android/car/settings/units/ |
D | CarUnitsManager.java | 93 protected boolean isPropertyAvailable(int propertyId) { in isPropertyAvailable() argument 97 intProperty = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in isPropertyAvailable() 105 protected Unit[] getUnitsSupportedByProperty(int propertyId) { in getUnitsSupportedByProperty() argument 107 propertyIdSet.add(propertyId); in getUnitsSupportedByProperty() 135 protected Unit getUnitUsedByProperty(int propertyId) { in getUnitUsedByProperty() argument 137 int unitId = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in getUnitUsedByProperty() 149 protected void setUnitUsedByProperty(int propertyId, int unitId) { in setUnitUsedByProperty() argument 151 mCarPropertyManager.setIntProperty(propertyId, AREA_ID, unitId); in setUnitUsedByProperty()
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarVendorExtensionManager.java | 69 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument 75 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent() 101 void onErrorEvent(int propertyId, int zone); in onErrorEvent() argument 146 public boolean isPropertyAvailable(int propertyId, int area) { in isPropertyAvailable() argument 147 return mPropertyManager.isPropertyAvailable(propertyId, area); in isPropertyAvailable() 230 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument 233 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
|
D | CarPropertyConfig.java | 59 float maxSampleRate, float minSampleRate, int propertyId, in CarPropertyConfig() argument 68 mPropertyId = propertyId; in CarPropertyConfig() 493 public static <T> Builder<T> newBuilder(Class<T> type, int propertyId, int areaType, 495 return new Builder<>(areaCapacity, areaType, propertyId, type); 505 public static <T> Builder<T> newBuilder(Class<T> type, int propertyId, int areaType) { 506 return new Builder<>(0, areaType, propertyId, type); 527 private Builder(int areaCapacity, int areaType, int propertyId, Class<T> type) { 530 mPropertyId = propertyId;
|
D | CarPropertyValue.java | 77 public CarPropertyValue(int propertyId, int areaId, T value) { in CarPropertyValue() argument 78 this(propertyId, areaId, 0, 0, value); in CarPropertyValue() 90 public CarPropertyValue(int propertyId, int areaId, int status, long timestamp, T value) { in CarPropertyValue() argument 91 mPropertyId = propertyId; in CarPropertyValue()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | MockedCarTestBase.java | 284 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId, in addProperty() argument 286 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 291 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId) { in addProperty() argument 292 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 297 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId, in addProperty() argument 299 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 304 protected synchronized VehiclePropConfigBuilder addStaticProperty(int propertyId, in addStaticProperty() argument 306 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId) in addStaticProperty()
|
D | CarCabinManagerTest.java | 129 public void onErrorEvent(@PropertyId int propertyId, int area) { in testError() 130 propertyIdReceived.value = propertyId; in testError() 235 public void onErrorEvent(final int propertyId, final int zone) { in onErrorEvent() argument 236 Log.d(TAG, "Error: propertyId=" + propertyId + " zone=" + zone); in onErrorEvent()
|
D | CarHvacManagerTest.java | 171 public void onErrorEvent(@PropertyId int propertyId, int area) { in testError() 172 propertyIdReceived.value = propertyId; in testError() 322 public void onErrorEvent(final int propertyId, final int zone) { in onErrorEvent() argument 323 Log.d(TAG, "Error: propertyId=" + propertyId + " zone=" + zone); in onErrorEvent()
|
D | CarPropertyManagerTest.java | 581 for (int propertyId : USER_HAL_PROPERTIES) { in userHalPropertiesTest() 583 visitor.visit(propertyId); in userHalPropertiesTest() 584 failedProperties.add(propToString(propertyId)); in userHalPropertiesTest() 666 private static String propToString(int propertyId) { in propToString() argument 667 return VehiclePropertyIds.toString(propertyId) + " (" + propertyId + ")"; in propToString()
|
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/ |
D | Utils.java | 72 int propertyId, in readVhalProperty() argument 74 return readVhalProperty(vehicle, propertyId, 0, f); in readVhalProperty() 79 int propertyId, in readVhalProperty() argument 83 VehiclePropValueBuilder.newBuilder(propertyId).setAreaId(areaId).build(); in readVhalProperty()
|
D | CarPropertyTest.java | 146 public void onErrorEvent(final int propertyId, final int zone) { in onErrorEvent() argument 147 Assert.fail("Error: propertyId=" + toHexString(propertyId) + " zone=" + zone); in onErrorEvent() 324 public void onErrorEvent(final int propertyId, final int zone) { in onErrorEvent() argument 325 Assert.fail("Error: propertyId: x0" + toHexString(propertyId) + " areaId: " + zone); in onErrorEvent()
|
/packages/apps/Car/Cluster/src/android/car/cluster/sensors/ |
D | Sensors.java | 94 private static <T> Sensor<T> registerSensor(String propertyName, int propertyId, int areaId, in registerSensor() argument 96 Sensor<T> sensor = new Sensor<>(propertyName, propertyId, areaId, expectedPropertyType, in registerSensor() 134 public List<Sensor<?>> getSensorsForPropertyId(int propertyId) { in getSensorsForPropertyId() argument 135 return mSensorsByPropertyId.get(propertyId); in getSensorsForPropertyId()
|
D | Sensor.java | 52 Sensor(String name, int propertyId, int areaId, int expectedPropertyType, in Sensor() argument 55 mPropertyId = propertyId; in Sensor()
|
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/ |
D | DiagnosticEventBuilder.java | 105 public DiagnosticEventBuilder(int propertyId) { in DiagnosticEventBuilder() argument 106 this(propertyId, 0, 0); in DiagnosticEventBuilder() 110 int propertyId, int numVendorIntSensors, int numVendorFloatSensors) { in DiagnosticEventBuilder() argument 111 mPropertyId = propertyId; in DiagnosticEventBuilder()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/ |
D | HvacTestFragment.java | 186 public void onErrorEvent(final int propertyId, final int zone) { 187 Log.w(TAG, "Error: propertyId=0x" + toHexString(propertyId) 630 private void setBooleanProperty(int propertyId, int areaId, boolean value) { in setBooleanProperty() argument 632 mCarHvacManager.setBooleanProperty(propertyId, areaId, value); in setBooleanProperty() 639 private void setIntProperty(int propertyId, int areaId, int value) { in setIntProperty() argument 641 mCarHvacManager.setIntProperty(propertyId, areaId, value); in setIntProperty() 648 private void setFloatProperty(int propertyId, int areaId, float value) { in setFloatProperty() argument 650 mCarHvacManager.setFloatProperty(propertyId, areaId, value); in setFloatProperty()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarDrivingStateService.java | 147 for (int propertyId : REQUIRED_PROPERTIES) { in checkPropertySupport() 150 if (config.getPropertyId() == propertyId) { in checkPropertySupport() 156 Log.e(TAG, "Required property not supported: " + propertyId); in checkPropertySupport() 167 for (int propertyId : REQUIRED_PROPERTIES) { in subscribeToProperties() 168 mPropertyService.registerListener(propertyId, PROPERTY_UPDATE_RATE, in subscribeToProperties()
|
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/ |
D | MockedVehicleHal.java | 123 public synchronized void injectError(int errorCode, int propertyId, int areaId) { in injectError() argument 124 List<IVehicleCallback> callbacks = mSubscribers.get(propertyId); in injectError() 125 assertNotNull("Injecting error failed for property: " + propertyId in injectError() 129 callback.onPropertySetError(errorCode, propertyId, areaId); in injectError()
|
/packages/apps/Car/Cluster/src/android/car/cluster/ |
D | ClusterViewModel.java | 112 for (Integer propertyId : sensors.getPropertyIds()) { in registerCarPropertiesListener() 115 propertyId, PROPERTIES_REFRESH_RATE_UI); in registerCarPropertiesListener() 117 Log.e(TAG, "onServiceConnected: Unable to listen to car property: " + propertyId in registerCarPropertiesListener() 118 + " sensors: " + sensors.getSensorsForPropertyId(propertyId), ex); in registerCarPropertiesListener()
|
/packages/services/Car/evs/apps/default/ |
D | evs_app.cpp | 81 VehicleProperty propertyId) { in subscribeToVHal() argument 89 .propId = static_cast<int32_t>(propertyId), in subscribeToVHal() 97 LOG(WARNING) << "VHAL subscription for property " << static_cast<int32_t>(propertyId) in subscribeToVHal()
|