Home
last modified time | relevance | path

Searched refs:propertyValue (Results 1 – 11 of 11) sorted by relevance

/packages/services/Car/car-lib/src/android/car/hardware/
DCarSensorManager.java502 CarPropertyValue propertyValue = mCarPropertyMgr.getProperty(type, 0); in getLatestSensorEvent() local
503 return createCarSensorEvent(propertyValue); in getLatestSensorEvent()
506 private CarSensorEvent createCarSensorEvent(CarPropertyValue propertyValue) { in createCarSensorEvent() argument
508 switch (propertyValue.getPropertyId() & VehiclePropertyType.MASK) { in createCarSensorEvent()
510 event = new CarSensorEvent(propertyValue.getPropertyId(), in createCarSensorEvent()
511 propertyValue.getTimestamp(), 1, 0, 0); in createCarSensorEvent()
512 event.floatValues[0] = (float) propertyValue.getValue(); in createCarSensorEvent()
515 event = new CarSensorEvent(propertyValue.getPropertyId(), in createCarSensorEvent()
516 propertyValue.getTimestamp(), 0, 1, 0); in createCarSensorEvent()
517 event.intValues[0] = (int) propertyValue.getValue(); in createCarSensorEvent()
[all …]
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DCarPropertyTest.java252 CarPropertyValue<Object[]> propertyValue = propertyManager.getProperty(Object[].class, in testMixedTypeProperty() local
254 assertArrayEquals(DEFAULT_VALUE, propertyValue.getValue()); in testMixedTypeProperty()
368 for (CarPropertyValue propertyValue : expectedEvents) { in injectEventFromVehicleSide()
372 if (propertyValue.getValue() instanceof Integer) { in injectEventFromVehicleSide()
374 values[0] = propertyValue.getPropertyId(); in injectEventFromVehicleSide()
375 values[1] = propertyValue.getValue(); in injectEventFromVehicleSide()
376 values[2] = propertyValue.getTimestamp() + SystemClock.elapsedRealtimeNanos(); in injectEventFromVehicleSide()
377 } else if (propertyValue.getValue() instanceof Float) { in injectEventFromVehicleSide()
378 values[0] = propertyValue.getPropertyId(); in injectEventFromVehicleSide()
379 values[1] = propertyValue.getTimestamp() + SystemClock.elapsedRealtimeNanos(); in injectEventFromVehicleSide()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarDrivingStateService.java491 CarPropertyValue propertyValue = mPropertyService.getPropertySafe( in updateVehiclePropertiesIfNeededLocked() local
494 if (propertyValue != null) { in updateVehiclePropertiesIfNeededLocked()
495 mLastGear = (Integer) propertyValue.getValue(); in updateVehiclePropertiesIfNeededLocked()
496 mLastGearTimestamp = propertyValue.getTimestamp(); in updateVehiclePropertiesIfNeededLocked()
504 CarPropertyValue propertyValue = mPropertyService.getPropertySafe( in updateVehiclePropertiesIfNeededLocked() local
507 if (propertyValue != null) { in updateVehiclePropertiesIfNeededLocked()
508 mLastParkingBrakeState = (boolean) propertyValue.getValue(); in updateVehiclePropertiesIfNeededLocked()
509 mLastParkingBrakeTimestamp = propertyValue.getTimestamp(); in updateVehiclePropertiesIfNeededLocked()
518 CarPropertyValue propertyValue = mPropertyService.getPropertySafe( in updateVehiclePropertiesIfNeededLocked() local
521 if (propertyValue != null) { in updateVehiclePropertiesIfNeededLocked()
[all …]
DCarNightService.java175 CarPropertyValue propertyValue = mCarPropertyService.getPropertySafe( in init() local
177 if (propertyValue != null && propertyValue.getTimestamp() != 0) { in init()
178 mLastSensorEventTime = propertyValue.getTimestamp(); in init()
179 setNightModeLocked((Boolean) propertyValue.getValue()); in init()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/sensor/
DSensorsTestFragment.java282 CarPropertyValue propertyValue = mValueMap.get(propertyId); in formSummary() local
283 if (propertyValue != null in formSummary()
284 && propertyValue.getStatus() != CarPropertyValue.STATUS_AVAILABLE) { in formSummary()
285 propertyValue = null; in formSummary()
290 if (propertyValue != null) { in formSummary()
291 Long[] wheelTickData = (Long[]) propertyValue.getValue(); in formSummary()
293 getTimestamp(propertyValue), in formSummary()
301 getTimestamp(propertyValue), in formSummary()
313 resourceId, getTimestamp(propertyValue), in formSummary()
314 getStringOfPropertyValue(propertyValue))); in formSummary()
/packages/services/Car/car-lib/src/android/car/hardware/property/
DCarPropertyManager.java689 private <T> T handleNullAndPropertyStatus(CarPropertyValue<T> propertyValue, int areaId, in handleNullAndPropertyStatus() argument
692 if (propertyValue == null) { in handleNullAndPropertyStatus()
698 return propertyValue.getStatus() == CarPropertyValue.STATUS_AVAILABLE in handleNullAndPropertyStatus()
699 ? propertyValue.getValue() : defaultValue; in handleNullAndPropertyStatus()
703 switch (propertyValue.getStatus()) { in handleNullAndPropertyStatus()
705 throw new CarInternalErrorException(propertyValue.getPropertyId(), areaId); in handleNullAndPropertyStatus()
707 throw new PropertyNotAvailableException(propertyValue.getPropertyId(), areaId); in handleNullAndPropertyStatus()
709 return propertyValue.getValue(); in handleNullAndPropertyStatus()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/hvac/toggle/
DHvacBooleanToggleButton.java54 protected boolean updateToggleState(Boolean propertyValue) { in updateToggleState() argument
55 mCurrentValue = propertyValue; in updateToggleState()
DHvacIntegerToggleButton.java81 protected boolean updateToggleState(Integer propertyValue) { in updateToggleState() argument
82 mCurrentValue = propertyValue; in updateToggleState()
DHvacToggleButton.java125 protected abstract boolean updateToggleState(PropertyType propertyValue); in updateToggleState() argument
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DBluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java129 final String propertyValue = mListValues[i].toString(); in updateState_NumberOfDevicesUpdated_shouldSetPreference() local
130 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, propertyValue); in updateState_NumberOfDevicesUpdated_shouldSetPreference()
138 .isEqualTo(propertyValue); in updateState_NumberOfDevicesUpdated_shouldSetPreference()
/packages/apps/Car/Hvac/src/com/android/car/hvac/
DHvacController.java237 public static <E> E getValue(CarPropertyValue propertyValue) { in getValue() argument
238 return (E) propertyValue.getValue(); in getValue()
241 public static boolean isAvailable(CarPropertyValue propertyValue) { in isAvailable() argument
242 return propertyValue.getStatus() == CarPropertyValue.STATUS_AVAILABLE; in isAvailable()