Searched refs:propertyValue (Results 1 – 5 of 5) sorted by relevance
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarSensorManager.java | 455 CarPropertyValue propertyValue = mCarPropertyMgr.getProperty(type, 0); in getLatestSensorEvent() local 456 return createCarSensorEvent(propertyValue); in getLatestSensorEvent() 459 private CarSensorEvent createCarSensorEvent(CarPropertyValue propertyValue) { in createCarSensorEvent() argument 461 switch (propertyValue.getPropertyId() & VehiclePropertyType.MASK) { in createCarSensorEvent() 463 event = new CarSensorEvent(propertyValue.getPropertyId(), in createCarSensorEvent() 464 propertyValue.getTimestamp(), 1, 0, 0); in createCarSensorEvent() 465 event.floatValues[0] = (float) propertyValue.getValue(); in createCarSensorEvent() 468 event = new CarSensorEvent(propertyValue.getPropertyId(), in createCarSensorEvent() 469 propertyValue.getTimestamp(), 0, 1, 0); in createCarSensorEvent() 470 event.intValues[0] = (int) propertyValue.getValue(); in createCarSensorEvent() [all …]
|
/packages/services/Car/service/src/com/android/car/ |
D | CarDrivingStateService.java | 513 CarPropertyValue propertyValue = mPropertyService.getProperty( in updateVehiclePropertiesIfNeeded() local 516 if (propertyValue != null) { in updateVehiclePropertiesIfNeeded() 517 mLastGear = (Integer) propertyValue.getValue(); in updateVehiclePropertiesIfNeeded() 518 mLastGearTimestamp = propertyValue.getTimestamp(); in updateVehiclePropertiesIfNeeded() 526 CarPropertyValue propertyValue = mPropertyService.getProperty( in updateVehiclePropertiesIfNeeded() local 529 if (propertyValue != null) { in updateVehiclePropertiesIfNeeded() 530 mLastParkingBrakeState = (boolean) propertyValue.getValue(); in updateVehiclePropertiesIfNeeded() 531 mLastParkingBrakeTimestamp = propertyValue.getTimestamp(); in updateVehiclePropertiesIfNeeded() 539 CarPropertyValue propertyValue = mPropertyService.getProperty( in updateVehiclePropertiesIfNeeded() local 542 if (propertyValue != null) { in updateVehiclePropertiesIfNeeded() [all …]
|
D | CarNightService.java | 138 CarPropertyValue propertyValue = mCarPropertyService.getProperty( in init() local 140 if (propertyValue != null && propertyValue.getTimestamp() != 0) { in init() 141 setNightMode((Boolean) propertyValue.getValue()); in init()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/ |
D | BluetoothMaxConnectedAudioDevicesPreferenceControllerTest.java | 124 final String propertyValue = mListValues[i].toString(); in updateState_NumberOfDevicesUpdated_shouldSetPreference() local 125 SystemProperties.set(MAX_CONNECTED_AUDIO_DEVICES_PROPERTY, propertyValue); in updateState_NumberOfDevicesUpdated_shouldSetPreference() 133 .isEqualTo(propertyValue); in updateState_NumberOfDevicesUpdated_shouldSetPreference()
|
/packages/apps/Car/Hvac/src/com/android/car/hvac/ |
D | HvacController.java | 237 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()
|