Home
last modified time | relevance | path

Searched refs:propertyId (Results 1 – 25 of 40) sorted by relevance

12

/packages/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java254 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/
DCarCabinManager.java416 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/
DCarPropertyManagerPublicPermissionTest.java213 for (int propertyId : mProps) { in testCarPropertyManagerGetter()
215 switch (propertyId & VehiclePropertyType.MASK) { in testCarPropertyManagerGetter()
219 mPropertyManager.getBooleanProperty(propertyId, PLACEHOLDER_AREA_ID); in testCarPropertyManagerGetter()
222 mPropertyManager.getFloatProperty(propertyId, PLACEHOLDER_AREA_ID); in testCarPropertyManagerGetter()
225 mPropertyManager.getIntArrayProperty(propertyId, PLACEHOLDER_AREA_ID); in testCarPropertyManagerGetter()
228 mPropertyManager.getIntProperty(propertyId, PLACEHOLDER_AREA_ID); in testCarPropertyManagerGetter()
231 mPropertyManager.getProperty(propertyId, PLACEHOLDER_AREA_ID); in testCarPropertyManagerGetter()
234 assertWithMessage("Get property: 0x" + Integer.toHexString(propertyId) in testCarPropertyManagerGetter()
239 assertPropertyNotImplementedInVhal(propertyId); in testCarPropertyManagerGetter()
243 private void assertPropertyNotImplementedInVhal(int propertyId) { in assertPropertyNotImplementedInVhal() argument
[all …]
/packages/services/Car/service/src/com/android/car/hal/
DCarPropertyUtils.java67 VehiclePropValue halValue, int propertyId) { in toCarPropertyValue() argument
76 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue()
79 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue()
82 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue()
85 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, in toCarPropertyValue()
92 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue()
98 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue()
104 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, values); in toCarPropertyValue()
106 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, v.stringValue); in toCarPropertyValue()
109 return new CarPropertyValue<>(propertyId, areaId, status, timestamp, halData); in toCarPropertyValue()
[all …]
DVehicleHal.java425 public boolean isPropertySupported(int propertyId) { in isPropertySupported() argument
427 return mAllProperties.containsKey(propertyId); in isPropertySupported()
438 public @Nullable VehiclePropValue getIfAvailableOrFail(int propertyId, int numberOfRetries) { in getIfAvailableOrFail() argument
439 if (!isPropertySupported(propertyId)) { in getIfAvailableOrFail()
445 return get(propertyId); in getIfAvailableOrFail()
447 Slog.e(CarLog.TAG_HAL, "Cannot get " + toCarPropertyLog(propertyId), e); in getIfAvailableOrFail()
450 throw new IllegalStateException("Cannot get property: 0x" + toHexString(propertyId) in getIfAvailableOrFail()
462 public @Nullable VehiclePropValue getIfAvailableOrFailForEarlyStage(int propertyId, in getIfAvailableOrFailForEarlyStage() argument
465 return getIfAvailableOrFail(propertyId, numberOfRetries); in getIfAvailableOrFailForEarlyStage()
472 public VehiclePropValue get(int propertyId) { in get() argument
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowCarUnitsManager.java50 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/
DCarUnitsManager.java74 protected boolean isPropertyAvailable(int propertyId) { in isPropertyAvailable() argument
78 intProperty = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in isPropertyAvailable()
86 protected Unit[] getUnitsSupportedByProperty(int propertyId) { in getUnitsSupportedByProperty() argument
88 propertyIdSet.add(propertyId); in getUnitsSupportedByProperty()
116 protected Unit getUnitUsedByProperty(int propertyId) { in getUnitUsedByProperty() argument
118 int unitId = mCarPropertyManager.getIntProperty(propertyId, AREA_ID); in getUnitUsedByProperty()
130 protected void setUnitUsedByProperty(int propertyId, int unitId) { in setUnitUsedByProperty() argument
132 mCarPropertyManager.setIntProperty(propertyId, AREA_ID, unitId); in setUnitUsedByProperty()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java238 int propertyId, @FloatRange(from = 0.0, to = 100.0) float rate) { in registerCallback() argument
243 CarPropertyConfig config = getCarPropertyConfig(propertyId); in registerCallback()
245 Log.e(TAG, "registerListener: propId is not in config list: " + propertyId); in registerCallback()
253 listeners = mActivePropertyListener.get(propertyId); in registerCallback()
256 mActivePropertyListener.put(propertyId, listeners); in registerCallback()
263 if (!registerOrUpdatePropertyListener(propertyId, rate)) { in registerCallback()
271 private boolean registerOrUpdatePropertyListener(int propertyId, float rate) { in registerOrUpdatePropertyListener() argument
273 mService.registerListener(propertyId, rate, mCarPropertyEventToService); in registerOrUpdatePropertyListener()
326 public void unregisterCallback(@NonNull CarPropertyEventCallback callback, int propertyId) { in unregisterCallback() argument
328 doUnregisterListenerLocked(callback, propertyId); in unregisterCallback()
[all …]
/packages/services/Car/car-lib/src/android/car/hardware/
DCarVendorExtensionManager.java69 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()
DCarPropertyConfig.java59 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;
DCarPropertyValue.java81 public CarPropertyValue(int propertyId, int areaId, T value) { in CarPropertyValue() argument
82 this(propertyId, areaId, 0, 0, value); in CarPropertyValue()
98 public CarPropertyValue(int propertyId, int areaId, int status, long timestamp, T value) { in CarPropertyValue() argument
99 mPropertyId = propertyId; in CarPropertyValue()
/packages/services/Car/service/src/com/android/car/telemetry/publisher/
DVehiclePropertyPublisher.java81 int propertyId = publisherParam.getVehicleProperty().getVehiclePropertyId(); in onDataSubscriberAdded() local
82 CarPropertyConfig config = mCarPropertyList.get(propertyId); in onDataSubscriberAdded()
85 "Vehicle property " + VehiclePropertyIds.toString(propertyId) + " not found."); in onDataSubscriberAdded()
90 "No access. Cannot read " + VehiclePropertyIds.toString(propertyId) + "."); in onDataSubscriberAdded()
92 propertyId, in onDataSubscriberAdded()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DMockedCarTestBase.java293 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId, in addProperty() argument
295 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty()
300 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId) { in addProperty() argument
301 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty()
306 protected synchronized VehiclePropConfigBuilder addProperty(int propertyId, in addProperty() argument
308 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId); in addProperty()
313 protected synchronized VehiclePropConfigBuilder addStaticProperty(int propertyId, in addStaticProperty() argument
315 VehiclePropConfigBuilder builder = VehiclePropConfigBuilder.newBuilder(propertyId) in addStaticProperty()
DCarCabinManagerTest.java129 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()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DUtils.java72 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/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/sensors/
DSensors.java94 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()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/sensors/
DSensors.java92 private static <T> Sensor<T> registerSensor(String propertyName, int propertyId, int areaId, in registerSensor() argument
94 Sensor<T> sensor = new Sensor<>(propertyName, propertyId, areaId, expectedPropertyType, in registerSensor()
130 public Sensor<?> getSensorForPropertyId(int propertyId) { in getSensorForPropertyId() argument
131 return mSensorByPropertyId.get(propertyId); in getSensorForPropertyId()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/
DDiagnosticEventBuilder.java105 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/sensor/
DSensorsTestFragment.java272 int propertyId = propertyConfig.getPropertyId(); in formSummary() local
273 CarPropertyValue propertyValue = mValueMap.get(propertyId); in formSummary()
274 int resourceId = PROPERTY_TO_RESOURCE.get(propertyId); in formSummary()
276 if (propertyId == VehiclePropertyIds.WHEEL_TICK) { in formSummary()
330 private boolean isArrayType(int propertyId) { in isArrayType() argument
331 int mask = propertyId & VehiclePropertyType.MASK; in isArrayType()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hvac/
DHvacTestFragment.java186 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/
DCarDrivingStateService.java148 for (int propertyId : REQUIRED_PROPERTIES) { in checkPropertySupport()
151 if (config.getPropertyId() == propertyId) { in checkPropertySupport()
157 Slog.e(TAG, "Required property not supported: " + propertyId); in checkPropertySupport()
168 for (int propertyId : REQUIRED_PROPERTIES) { in subscribeToProperties()
169 mPropertyService.registerListener(propertyId, PROPERTY_UPDATE_RATE, in subscribeToProperties()
/packages/apps/Car/Cluster/DirectRenderingCluster/src/android/car/cluster/
DClusterViewModel.java112 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/test/com/android/car/vehiclehal/test/
DMockedVehicleHal.java123 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/ClusterOsDouble/src/com/android/car/cluster/view/
DClusterViewModel.java109 for (int propertyId : sensors.getPropertyIds()) { in registerCarPropertiesListener()
112 propertyId, PROPERTIES_REFRESH_RATE_UI); in registerCarPropertiesListener()
114 Log.e(TAG, "onServiceConnected: Unable to listen to car property: " + propertyId in registerCarPropertiesListener()
115 + " sensors: " + sensors.getSensorForPropertyId(propertyId), ex); in registerCarPropertiesListener()
/packages/services/Car/cpp/evs/apps/default/
Devs_app.cpp81 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()

12