Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/
DDefaultConfig.h149 toInt(VehicleProperty::HVAC_FAN_SPEED),
150 toInt(VehicleProperty::HVAC_FAN_DIRECTION),
167 .prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY),
176 .prop = toInt(VehicleProperty::INFO_FUEL_TYPE),
184 .prop = toInt(VehicleProperty::INFO_EV_BATTERY_CAPACITY),
193 .prop = toInt(VehicleProperty::INFO_EV_CONNECTOR_TYPE),
201 .prop = toInt(VehicleProperty::INFO_DRIVER_SEAT),
210 .prop = toInt(VehicleProperty::INFO_FUEL_DOOR_LOCATION),
219 .prop = toInt(VehicleProperty::INFO_EV_PORT_LOCATION),
228 .prop = toInt(VehicleProperty::INFO_MAKE),
[all …]
DEmulatedVehicleHal.cpp40 toInt(Obd2FuelSystemStatus::CLOSED_LOOP)); in fillDefaultObd2Frame()
43 toInt(Obd2IgnitionMonitorKind::SPARK)); in fillDefaultObd2Frame()
51 toInt(Obd2SecondaryAirStatus::FROM_OUTSIDE_OR_OFF)); in fillDefaultObd2Frame()
64 toInt(Obd2FuelType::GASOLINE)); in fillDefaultObd2Frame()
141 toInt(VehicleProperty::HVAC_POWER_ON), in set()
161 case toInt(VehicleApPowerStateReport::DEEP_SLEEP_EXIT): in set()
162 case toInt(VehicleApPowerStateReport::SHUTDOWN_CANCELLED): in set()
163 case toInt(VehicleApPowerStateReport::WAIT_FOR_VHAL): in set()
167 case toInt(VehicleApPowerStateReport::DEEP_SLEEP_ENTRY): in set()
168 case toInt(VehicleApPowerStateReport::SHUTDOWN_START): in set()
[all …]
DVehicleEmulator.cpp218 protoCfg->set_access(toInt(cfg.access)); in populateProtoVehicleConfig()
219 protoCfg->set_change_mode(toInt(cfg.changeMode)); in populateProtoVehicleConfig()
220 protoCfg->set_value_type(toInt(getPropType(cfg.prop))); in populateProtoVehicleConfig()
263 ALOGW("%s: Unknown property type: 0x%x", __func__, toInt(getPropType(cfg.prop))); in populateProtoVehicleConfig()
274 protoVal->set_value_type(toInt(getPropType(val->prop))); in populateProtoVehiclePropValue()
/hardware/interfaces/automotive/vehicle/2.0/default/common/src/
DVmsUtils.cpp28 static constexpr int kMessageIndex = toInt(VmsBaseMessageIntegerValuesIndex::MESSAGE_TYPE);
36 toInt(VmsPublisherInformationIntegerValuesIndex::PUBLISHER_ID);
38 toInt(VmsSubscriptionsStateIntegerValuesIndex::SEQUENCE_NUMBER);
40 toInt(VmsAvailabilityStateIntegerValuesIndex::SEQUENCE_NUMBER);
46 static constexpr int kFirstMessageType = toInt(VmsMessageType::SUBSCRIBE);
47 static constexpr int kLastMessageType = toInt(VmsMessageType::START_SESSION);
51 result->prop = toInt(VehicleProperty::VEHICLE_MAP_SERVICE); in createBaseVmsMessage()
52 result->areaId = toInt(VehicleArea::GLOBAL); in createBaseVmsMessage()
58 result->value.int32Values = hidl_vec<int32_t>{toInt(VmsMessageType::SUBSCRIBE), layer.type, in createSubscribeMessage()
67 toInt(VmsMessageType::SUBSCRIBE_TO_PUBLISHER), layer_publisher.layer.type, in createSubscribeToPublisherMessage()
[all …]
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()
/hardware/interfaces/automotive/vehicle/2.0/default/tests/
DVmsUtils_test.cpp37 EXPECT_EQ(message->prop, toInt(VehicleProperty::VEHICLE_MAP_SERVICE)); in TEST()
52 EXPECT_EQ(message->prop, toInt(VehicleProperty::VEHICLE_MAP_SERVICE)); in TEST()
67 EXPECT_EQ(message->prop, toInt(VehicleProperty::VEHICLE_MAP_SERVICE)); in TEST()
94 EXPECT_EQ(message->prop, toInt(VehicleProperty::VEHICLE_MAP_SERVICE)); in TEST()
127 EXPECT_EQ(message->prop, toInt(VehicleProperty::VEHICLE_MAP_SERVICE)); in TEST()
136 EXPECT_EQ(message->prop, toInt(VehicleProperty::VEHICLE_MAP_SERVICE)); in TEST()
147 EXPECT_EQ(message->prop, toInt(VehicleProperty::VEHICLE_MAP_SERVICE)); in TEST()
149 EXPECT_EQ(message->value.int32Values[0], toInt(VmsMessageType::DATA)); in TEST()
198 EXPECT_EQ(message->prop, toInt(VehicleProperty::VEHICLE_MAP_SERVICE)); in TEST()
208 hidl_vec<int32_t>{toInt(VmsMessageType::PUBLISHER_ID_RESPONSE), 1234}; in TEST()
[all …]
DVehicleHalTestUtils.h37 .prop = toInt(VehicleProperty::INFO_MAKE),
43 {.prop = toInt(VehicleProperty::HVAC_FAN_SPEED),
48 .areaId = toInt(VehicleAreaSeat::ROW_1_LEFT), .minInt32Value = 1, .maxInt32Value = 7},
50 .areaId = toInt(VehicleAreaSeat::ROW_1_RIGHT), .minInt32Value = 1, .maxInt32Value = 5,
54 {.prop = toInt(VehicleProperty::HVAC_SEAT_TEMPERATURE),
57 .areaConfigs = {VehicleAreaConfig{.areaId = toInt(VehicleAreaSeat::ROW_1_LEFT),
61 .areaId = toInt(VehicleAreaSeat::ROW_1_RIGHT),
66 {.prop = toInt(VehicleProperty::INFO_FUEL_CAPACITY),
71 {.prop = toInt(VehicleProperty::DISPLAY_BRIGHTNESS),
77 .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()
195 { toInt(VehicleProperty::HVAC_FAN_SPEED), in TEST_F()
196 toInt(VehicleProperty::INFO_MAKE) }; in TEST_F()
210 manager->getPropConfigs({ toInt(VehicleProperty::HVAC_FAN_SPEED) }, in TEST_F()
239 const auto PROP = toInt(VehicleProperty::DISPLAY_BRIGHTNESS); in TEST_F()
254 const auto PROP = toInt(VehicleProperty::DISPLAY_BRIGHTNESS); in TEST_F()
265 unsubscribedValue->prop = toInt(VehicleProperty::HVAC_FAN_SPEED); in TEST_F()
291 const auto PROP = toInt(VehicleProperty::HVAC_SEAT_TEMPERATURE); in TEST_F()
[all …]
DSubscriptionManager_test.cpp42 static constexpr int32_t PROP1 = toInt(VehicleProperty::HVAC_FAN_SPEED);
43 static constexpr int32_t PROP2 = toInt(VehicleProperty::DISPLAY_BRIGHTNESS);
121 auto clients = manager.getSubscribedClients(toInt(VehicleProperty::AP_POWER_BOOTUP_REASON), in TEST_F()
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/
DVehicleUtils.h37 inline constexpr U toInt(ENUM const value) { in toInt() function
43 prop & toInt(VehiclePropertyType::MASK)); in getPropType()
48 prop & toInt(VehiclePropertyGroup::MASK)); in getPropGroup()
52 return static_cast<VehicleArea>(prop & toInt(VehicleArea::MASK)); in getPropArea()