/hardware/interfaces/automotive/vehicle/2.0/default/impl/vhal_v2_0/ |
D | DefaultConfig.h | 149 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 …]
|
D | EmulatedVehicleHal.cpp | 41 toInt(Obd2FuelSystemStatus::CLOSED_LOOP)); in fillDefaultObd2Frame() 44 toInt(Obd2IgnitionMonitorKind::SPARK)); in fillDefaultObd2Frame() 52 toInt(Obd2SecondaryAirStatus::FROM_OUTSIDE_OR_OFF)); in fillDefaultObd2Frame() 65 toInt(Obd2FuelType::GASOLINE)); in fillDefaultObd2Frame() 142 toInt(VehicleProperty::HVAC_POWER_ON), in set() 162 case toInt(VehicleApPowerStateReport::DEEP_SLEEP_EXIT): in set() 163 case toInt(VehicleApPowerStateReport::SHUTDOWN_CANCELLED): in set() 164 case toInt(VehicleApPowerStateReport::WAIT_FOR_VHAL): in set() 168 case toInt(VehicleApPowerStateReport::DEEP_SLEEP_ENTRY): in set() 169 case toInt(VehicleApPowerStateReport::SHUTDOWN_START): in set() [all …]
|
D | VehicleEmulator.cpp | 221 protoCfg->set_access(toInt(cfg.access)); in populateProtoVehicleConfig() 222 protoCfg->set_change_mode(toInt(cfg.changeMode)); in populateProtoVehicleConfig() 223 protoCfg->set_value_type(toInt(getPropType(cfg.prop))); in populateProtoVehicleConfig() 266 ALOGW("%s: Unknown property type: 0x%x", __func__, toInt(getPropType(cfg.prop))); in populateProtoVehicleConfig() 277 protoVal->set_value_type(toInt(getPropType(val->prop))); in populateProtoVehiclePropValue()
|
/hardware/interfaces/automotive/vehicle/2.0/default/tests/ |
D | VmsUtils_test.cpp | 37 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 …]
|
D | VehicleHalTestUtils.h | 37 .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 …]
|
D | VehiclePropConfigIndex_test.cpp | 47 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()
|
D | VehicleHalManager_test.cpp | 82 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 …]
|
D | SubscriptionManager_test.cpp | 42 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/src/ |
D | VmsUtils.cpp | 28 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 …]
|
D | Obd2SensorStore.cpp | 58 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()
|
D | VehicleObjectPool.cpp | 40 if (src.prop == toInt(VehicleProperty::INVALID)) { in obtain()
|
/hardware/interfaces/automotive/vehicle/2.0/default/common/include/vhal_v2_0/ |
D | VehicleUtils.h | 37 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()
|