Home
last modified time | relevance | path

Searched refs:toInt (Results 1 – 10 of 10) sorted by relevance

/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DDefaultConfig.h63 toInt(VehicleProperty::HVAC_FAN_SPEED),
64 toInt(VehicleProperty::HVAC_FAN_DIRECTION),
81 .prop = toInt(VehicleProperty::INFO_MAKE),
88 .prop = toInt(VehicleProperty::PERF_VEHICLE_SPEED),
98 .prop = toInt(VehicleProperty::PERF_ODOMETER),
107 .prop = toInt(VehicleProperty::ENGINE_RPM),
118 .prop = toInt(VehicleProperty::CURRENT_GEAR),
122 .initialValue = {.int32Values = {toInt(VehicleGear::GEAR_PARK)}}},
126 .prop = toInt(VehicleProperty::PARKING_BRAKE_ON),
134 .prop = toInt(VehicleProperty::FUEL_LEVEL_LOW),
[all …]
DVehicleEmulator.cpp233 protoCfg->set_access(toInt(cfg.access)); in populateProtoVehicleConfig()
234 protoCfg->set_change_mode(toInt(cfg.changeMode)); in populateProtoVehicleConfig()
235 protoCfg->set_value_type(toInt(getPropType(cfg.prop))); in populateProtoVehicleConfig()
281 ALOGW("%s: Unknown property type: 0x%x", __func__, toInt(getPropType(cfg.prop))); in populateProtoVehicleConfig()
292 protoVal->set_value_type(toInt(getPropType(val->prop))); in populateProtoVehiclePropValue()
DEmulatedVehicleHal.cpp38 toInt(Obd2FuelSystemStatus::CLOSED_LOOP)); in fillDefaultObd2Frame()
41 toInt(Obd2IgnitionMonitorKind::SPARK)); in fillDefaultObd2Frame()
49 toInt(Obd2SecondaryAirStatus::FROM_OUTSIDE_OR_OFF)); in fillDefaultObd2Frame()
62 toInt(Obd2FuelType::GASOLINE)); in fillDefaultObd2Frame()
141 auto hvacPowerOn = mPropStore->readValueOrNull(toInt(VehicleProperty::HVAC_POWER_ON), in set()
142 toInt(VehicleAreaZone::ROW_1)); in set()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DSubscriptionManager_test.cpp42 static constexpr int32_t PROP1 = toInt(VehicleProperty::HVAC_FAN_SPEED);
43 static constexpr int32_t PROP2 = toInt(VehicleProperty::DISPLAY_BRIGHTNESS);
56 .vehicleAreas = toInt(VehicleAreaZone::ROW_1_LEFT),
71 .vehicleAreas = toInt(VehicleAreaZone::ROW_1_LEFT),
91 toInt(VehicleAreaZone::ROW_1_LEFT), in clientsToProp1()
129 toInt(VehicleAreaZone::ROW_1_LEFT), in TEST_F()
143 toInt(VehicleAreaZone::ROW_2_LEFT), in TEST_F()
149 toInt(VehicleProperty::AP_POWER_BOOTUP_REASON), in TEST_F()
150 toInt(VehicleAreaZone::ROW_1_LEFT), in TEST_F()
157 toInt(VehicleAreaZone::ROW_1_LEFT), in TEST_F()
[all …]
DVehicleHalTestUtils.h39 .prop = toInt(VehicleProperty::INFO_MAKE),
46 .prop = toInt(VehicleProperty::HVAC_FAN_SPEED),
53 .areaId = toInt(VehicleAreaZone::ROW_1_LEFT),
57 .areaId = toInt(VehicleAreaZone::ROW_1_RIGHT),
66 .prop = toInt(VehicleProperty::HVAC_SEAT_TEMPERATURE),
73 .areaId = toInt(VehicleAreaZone::ROW_1_LEFT),
77 .areaId = toInt(VehicleAreaZone::ROW_1_RIGHT),
85 .prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY),
97 .prop = toInt(VehicleProperty::DISPLAY_BRIGHTNESS),
109 .prop = toInt(VehicleProperty::MIRROR_FOLD),
[all …]
DVehiclePropConfigIndex_test.cpp47 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::HVAC_FAN_SPEED))); in TEST_F()
48 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::INFO_MAKE))); in TEST_F()
49 ASSERT_TRUE(index.hasConfig(toInt(VehicleProperty::INFO_FUEL_CAPACITY))); in TEST_F()
51 ASSERT_FALSE(index.hasConfig(toInt(VehicleProperty::INVALID))); in TEST_F()
67 auto actualConfig = index.getConfig(toInt(VehicleProperty::HVAC_FAN_SPEED)); in TEST_F()
DVehicleHalManager_test.cpp82 auto key = makeKey(toInt(property), areaId); in get()
90 pValue->prop = toInt(property); in get()
99 if (toInt(VehicleProperty::MIRROR_FOLD) == propValue.prop in set()
196 { toInt(VehicleProperty::HVAC_FAN_SPEED), in TEST_F()
197 toInt(VehicleProperty::INFO_MAKE) }; in TEST_F()
211 manager->getPropConfigs({ toInt(VehicleProperty::HVAC_FAN_SPEED) }, in TEST_F()
240 const auto PROP = toInt(VehicleProperty::DISPLAY_BRIGHTNESS); in TEST_F()
258 const auto PROP = toInt(VehicleProperty::DISPLAY_BRIGHTNESS); in TEST_F()
273 unsubscribedValue->prop = toInt(VehicleProperty::HVAC_FAN_SPEED); in TEST_F()
299 const auto PROP = toInt(VehicleProperty::HVAC_SEAT_TEMPERATURE); in TEST_F()
[all …]
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehicleUtils.h37 inline constexpr typename std::underlying_type<ENUM>::type toInt( in toInt() function
44 prop & toInt(VehiclePropertyType::MASK)); in getPropType()
49 prop & toInt(VehiclePropertyGroup::MASK)); in getPropGroup()
53 return static_cast<VehicleArea>(prop & toInt(VehicleArea::MASK)); in getPropArea()
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DObd2SensorStore.cpp58 toInt(DiagnosticIntegerSensorIndex::LAST_SYSTEM_INDEX) + 1; in Obd2SensorStore()
59 const size_t numSystemFloatSensors = toInt(DiagnosticFloatSensorIndex::LAST_SYSTEM_INDEX) + 1; in Obd2SensorStore()
66 return setIntegerSensor(toInt(index), value); in setIntegerSensor()
69 return setFloatSensor(toInt(index), value); in setFloatSensor()
DVehicleObjectPool.cpp40 if (src.prop == toInt(VehicleProperty::INVALID)) { in obtain()