/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
D | CarHvacManager.java | 248 void onErrorEvent(@PropertyId int propertyId, int zone); in onErrorEvent() argument 267 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument 270 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent() 287 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument 294 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent() 363 public boolean isPropertyAvailable(@PropertyId int propertyId, int area) { in isPropertyAvailable() argument 364 return mCarPropertyMgr.isPropertyAvailable(propertyId, area); in isPropertyAvailable() 373 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument 374 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty() 383 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 | 415 void onErrorEvent(@PropertyId int propertyId, int zone); in onErrorEvent() argument 434 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument 437 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent() 452 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument 459 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent() 483 public static boolean isZonedProperty(@PropertyId int propertyId) { in isZonedProperty() argument 534 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument 535 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty() 544 public float getFloatProperty(@PropertyId int propertyId, int area) { in getFloatProperty() argument 545 return mCarPropertyMgr.getFloatProperty(propertyId, area); in getFloatProperty() [all …]
|
/packages/services/Car/service/src/com/android/car/hal/ |
D | CarPropertyUtils.java | 44 VehiclePropValue halValue, int propertyId) { in toCarPropertyValue() argument 53 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 56 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 59 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 62 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue() 69 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 75 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 81 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue() 83 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, v.stringValue); in toCarPropertyValue() 86 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, halData); in toCarPropertyValue() [all …]
|
D | VehicleHal.java | 306 public boolean isPropertySupported(int propertyId) { in isPropertySupported() argument 307 return mAllProperties.containsKey(propertyId); in isPropertySupported() 314 public VehiclePropValue get(int propertyId) throws PropertyTimeoutException { in get() argument 315 return get(propertyId, NO_AREA); in get() 318 public VehiclePropValue get(int propertyId, int areaId) throws PropertyTimeoutException { in get() argument 320 Log.i(CarLog.TAG_HAL, "get, property: 0x" + toHexString(propertyId) in get() 324 propValue.prop = propertyId; in get() 329 public <T> T get(Class clazz, int propertyId) throws PropertyTimeoutException { in get() argument 330 return get(clazz, createPropValue(propertyId, NO_AREA)); in get() 333 public <T> T get(Class clazz, int propertyId, int areaId) throws PropertyTimeoutException { in get() argument [all …]
|
D | DiagnosticHalService.java | 62 void setSupported(int propertyId) { in setSupported() argument 63 mProperties.add(propertyId); in setSupported() 66 boolean isSupported(int propertyId) { in isSupported() argument 67 return mProperties.contains(propertyId); in isSupported()
|
/packages/services/Car/car-lib/src/android/car/hardware/property/ |
D | CarPropertyManager.java | 172 int propertyId, @FloatRange(from = 0.0, to = 100.0) float rate) { in registerCallback() argument 177 CarPropertyConfig config = mConfigMap.get(propertyId); in registerCallback() 179 Log.e(TAG, "registerListener: propId is not in config list: " + propertyId); in registerCallback() 187 listeners = mActivePropertyListener.get(propertyId); in registerCallback() 190 mActivePropertyListener.put(propertyId, listeners); in registerCallback() 197 if (!registerOrUpdatePropertyListener(propertyId, rate)) { in registerCallback() 205 private boolean registerOrUpdatePropertyListener(int propertyId, float rate) { in registerOrUpdatePropertyListener() argument 207 mService.registerListener(propertyId, rate, mCarPropertyEventToService); in registerOrUpdatePropertyListener() 260 public void unregisterCallback(@NonNull CarPropertyEventCallback callback, int propertyId) { in unregisterCallback() argument 262 doUnregisterListenerLocked(callback, propertyId); in unregisterCallback() [all …]
|
D | CarPropertyEvent.java | 84 public static CarPropertyEvent createErrorEvent(int propertyId, int areaId) { in createErrorEvent() argument 86 CarPropertyValue<Integer> valueWithErrorCode = new CarPropertyValue<>(propertyId, areaId, in createErrorEvent()
|
/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/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 | 70 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument 76 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() 227 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument 230 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent()
|
D | CarPropertyConfig.java | 61 float maxSampleRate, float minSampleRate, int propertyId, in CarPropertyConfig() argument 70 mPropertyId = propertyId; in CarPropertyConfig() 477 public static <T> Builder<T> newBuilder(Class<T> type, int propertyId, int areaType, 479 return new Builder<>(areaCapacity, areaType, propertyId, type); 489 public static <T> Builder<T> newBuilder(Class<T> type, int propertyId, int areaType) { 490 return new Builder<>(0, areaType, propertyId, type); 511 private Builder(int areaCapacity, int areaType, int propertyId, Class<T> type) { 514 mPropertyId = propertyId;
|
D | CarPropertyValue.java | 76 public CarPropertyValue(int propertyId, int areaId, T value) { in CarPropertyValue() argument 77 this(propertyId, areaId, 0, 0, value); in CarPropertyValue() 89 public CarPropertyValue(int propertyId, int areaId, int status, long timestamp, T value) { in CarPropertyValue() argument 90 mPropertyId = propertyId; in CarPropertyValue()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/ |
D | MockedCarTestBase.java | 209 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId, in addProperty() argument 211 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 216 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId) { in addProperty() argument 217 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 222 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId, in addProperty() argument 224 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 229 protected synchronized VehiclePropConfigBuilder addStaticProperty(int propertyId, in addStaticProperty() argument 231 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId) in addStaticProperty()
|
D | CarCabinManagerTest.java | 128 public void onErrorEvent(@PropertyId int propertyId, int area) { in testError() 129 propertyIdReceived.value = propertyId; in testError() 233 public void onErrorEvent(final int propertyId, final int zone) { in onErrorEvent() argument 234 Log.d(TAG, "Error: propertyId=" + propertyId + " zone=" + zone); in onErrorEvent()
|
D | CarHvacManagerTest.java | 153 public void onErrorEvent(@PropertyId int propertyId, int area) { in testError() 154 propertyIdReceived.value = propertyId; in testError() 272 public void onErrorEvent(final int propertyId, final int zone) { in onErrorEvent() argument 273 Log.d(TAG, "Error: propertyId=" + propertyId + " zone=" + 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/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()
|
/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 | 111 for (int propertyId : REQUIRED_PROPERTIES) { in checkPropertySupport() 114 if (config.getPropertyId() == propertyId) { in checkPropertySupport() 120 Log.e(TAG, "Required property not supported: " + propertyId); in checkPropertySupport() 131 for (int propertyId : REQUIRED_PROPERTIES) { in subscribeToProperties() 132 mPropertyService.registerListener(propertyId, PROPERTY_UPDATE_RATE, in subscribeToProperties()
|
/packages/services/Car/evs/app/ |
D | evs_app.cpp | 44 VehicleProperty propertyId) { in subscribeToVHal() argument 52 .propId = static_cast<int32_t>(propertyId), in subscribeToVHal() 60 ALOGW("VHAL subscription for property 0x%08X failed with code %d.", propertyId, status); in subscribeToVHal()
|
/packages/services/Car/vehicle-hal-support-lib/src/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/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/ |
D | SensorsTestFragment.java | 256 int propertyId = property.getPropertyId(); in refreshSensorInfoText() local 257 CarPropertyValue value = mValueMap.get(propertyId); in refreshSensorInfoText() 258 switch (propertyId) { in refreshSensorInfoText() 362 Log.w(TAG, "Unrecognized event type: " + toHexString(propertyId)); in refreshSensorInfoText()
|