/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
D | CarHvacManager.java | 246 void onErrorEvent(@PropertyId int propertyId, int zone); in onErrorEvent() argument 265 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument 268 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent() 285 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument 292 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent() 362 public boolean isPropertyAvailable(@PropertyId int propertyId, int area) { in isPropertyAvailable() argument 363 return mCarPropertyMgr.isPropertyAvailable(propertyId, area); in isPropertyAvailable() 372 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument 373 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty() 382 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 | 413 void onErrorEvent(@PropertyId int propertyId, int zone); in onErrorEvent() argument 432 public void onErrorEvent(int propertyId, int zone) { in onErrorEvent() argument 435 manager.handleOnErrorEvent(propertyId, zone); in onErrorEvent() 450 private void handleOnErrorEvent(int propertyId, int zone) { in handleOnErrorEvent() argument 457 l.onErrorEvent(propertyId, zone); in handleOnErrorEvent() 482 public static boolean isZonedProperty(@PropertyId int propertyId) { in isZonedProperty() argument 533 public boolean getBooleanProperty(@PropertyId int propertyId, int area) { in getBooleanProperty() argument 534 return mCarPropertyMgr.getBooleanProperty(propertyId, area); in getBooleanProperty() 543 public float getFloatProperty(@PropertyId int propertyId, int area) { in getFloatProperty() argument 544 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 | 307 public boolean isPropertySupported(int propertyId) { in isPropertySupported() argument 308 return mAllProperties.containsKey(propertyId); in isPropertySupported() 315 public VehiclePropValue get(int propertyId) throws PropertyTimeoutException { in get() argument 316 return get(propertyId, NO_AREA); in get() 319 public VehiclePropValue get(int propertyId, int areaId) throws PropertyTimeoutException { in get() argument 321 Log.i(CarLog.TAG_HAL, "get, property: 0x" + toHexString(propertyId) in get() 325 propValue.prop = propertyId; in get() 330 public <T> T get(Class clazz, int propertyId) throws PropertyTimeoutException { in get() argument 331 return get(clazz, createPropValue(propertyId, NO_AREA)); in get() 334 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 | 175 int propertyId, @FloatRange(from = 0.0, to = 100.0) float rate) { in registerCallback() argument 180 CarPropertyConfig config = mConfigMap.get(propertyId); in registerCallback() 182 Log.e(TAG, "registerListener: propId is not in config list: " + propertyId); in registerCallback() 190 listeners = mActivePropertyListener.get(propertyId); in registerCallback() 193 mActivePropertyListener.put(propertyId, listeners); in registerCallback() 200 if (!registerOrUpdatePropertyListener(propertyId, rate)) { in registerCallback() 208 private boolean registerOrUpdatePropertyListener(int propertyId, float rate) { in registerOrUpdatePropertyListener() argument 210 mService.registerListener(propertyId, rate, mCarPropertyEventToService); in registerOrUpdatePropertyListener() 263 public void unregisterCallback(@NonNull CarPropertyEventCallback callback, int propertyId) { in unregisterCallback() argument 265 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 | 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 | 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 | 214 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId, in addProperty() argument 216 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 221 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId) { in addProperty() argument 222 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 227 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId, in addProperty() argument 229 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty() 234 protected synchronized VehiclePropConfigBuilder addStaticProperty(int propertyId, in addStaticProperty() argument 236 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 | 120 for (int propertyId : REQUIRED_PROPERTIES) { in checkPropertySupport() 123 if (config.getPropertyId() == propertyId) { in checkPropertySupport() 129 Log.e(TAG, "Required property not supported: " + propertyId); in checkPropertySupport() 140 for (int propertyId : REQUIRED_PROPERTIES) { in subscribeToProperties() 141 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/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/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/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()
|