Home
last modified time | relevance | path

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

/hardware/interfaces/automotive/can/1.0/vts/functional/
DVtsHalCanControllerV1_0TargetTest.cpp33 using InterfaceType = ICanController::InterfaceType; typedef
42 hidl_vec<InterfaceType> getSupportedInterfaceTypes();
43 bool isSupported(InterfaceType iftype);
45 bool up(InterfaceType iftype, const std::string srvname, std::string ifname,
77 hidl_vec<InterfaceType> CanControllerHalTest::getSupportedInterfaceTypes() { in getSupportedInterfaceTypes()
78 hidl_vec<InterfaceType> iftypesResult; in getSupportedInterfaceTypes()
83 bool CanControllerHalTest::isSupported(InterfaceType iftype) { in isSupported()
88 bool CanControllerHalTest::up(InterfaceType iftype, std::string srvname, std::string ifname, in up()
94 if (iftype == InterfaceType::SOCKETCAN) { in up()
98 } else if (iftype == InterfaceType::SLCAN) { in up()
[all …]
DVtsHalCanBusVirtualV1_0TargetTest.cpp41 using InterfaceType = ICanController::InterfaceType; typedef
173 hidl_vec<InterfaceType> supported; in SetUp()
175 if (!supported.contains(InterfaceType::VIRTUAL)) GTEST_SKIP(); in SetUp()
/hardware/interfaces/automotive/can/1.0/tools/libcanhaltools/
Dlibcanhaltools.cpp42 bool isSupported(sp<ICanController> ctrl, ICanController::InterfaceType iftype) { in isSupported()
43 hidl_vec<ICanController::InterfaceType> supported; in isSupported()
48 ICanController::InterfaceType getIftype(ICanController::BusConfig can_config) { in getIftype()
51 return ICanController::InterfaceType::SOCKETCAN; in getIftype()
53 return ICanController::InterfaceType::SLCAN; in getIftype()
55 return ICanController::InterfaceType::VIRTUAL; in getIftype()
57 return ICanController::InterfaceType::INDEXED; in getIftype()
/hardware/interfaces/automotive/can/1.0/tools/
Dcanhalctrl.cpp46 static int up(const std::string& busName, ICanController::InterfaceType type, in up()
65 if (type == ICanController::InterfaceType::VIRTUAL) { in up()
67 } else if (type == ICanController::InterfaceType::SOCKETCAN) { in up()
71 } else if (type == ICanController::InterfaceType::SLCAN) { in up()
75 } else if (type == ICanController::InterfaceType::INDEXED) { in up()
111 static std::optional<ICanController::InterfaceType> parseInterfaceType(const std::string& str) { in parseInterfaceType()
112 if (str == "virtual") return ICanController::InterfaceType::VIRTUAL; in parseInterfaceType()
113 if (str == "socketcan") return ICanController::InterfaceType::SOCKETCAN; in parseInterfaceType()
114 if (str == "slcan") return ICanController::InterfaceType::SLCAN; in parseInterfaceType()
115 if (str == "indexed") return ICanController::InterfaceType::INDEXED; in parseInterfaceType()
/hardware/interfaces/automotive/can/1.0/tools/configurator/
Dcanprototools.cpp141 std::optional<ICanController::InterfaceType> getHalIftype(const Bus& pb_bus) { in getHalIftype()
144 return ICanController::InterfaceType::SOCKETCAN; in getHalIftype()
146 return ICanController::InterfaceType::SLCAN; in getHalIftype()
148 return ICanController::InterfaceType::VIRTUAL; in getHalIftype()
150 return ICanController::InterfaceType::INDEXED; in getHalIftype()
Dcanprototools.h47 std::optional<V1_0::ICanController::InterfaceType> getHalIftype(const Bus& pb_bus);
/hardware/interfaces/automotive/can/1.0/default/
DCanController.cpp55 ICanController::InterfaceType iftype;
60 _hidl_cb({ICanController::InterfaceType::VIRTUAL, ICanController::InterfaceType::SOCKETCAN, in getSupportedInterfaceTypes()
61 ICanController::InterfaceType::SLCAN}); in getSupportedInterfaceTypes()
120 return {{ICanController::InterfaceType::SOCKETCAN, netName}}; in getIfaceName()
123 return {{ICanController::InterfaceType::SLCAN, "/dev/" + currentDir}}; in getIfaceName()
242 selectedDevice->iftype != ICanController::InterfaceType::SOCKETCAN) { in upInterface()
264 selectedDevice->iftype != ICanController::InterfaceType::SLCAN) { in upInterface()
/hardware/interfaces/automotive/can/1.0/tools/libcanhaltools/include/libcanhaltools/
Dlibcanhaltools.h38 bool isSupported(sp<V1_0::ICanController> ctrl, V1_0::ICanController::InterfaceType iftype);
/hardware/interfaces/automotive/can/1.0/vts/utils/include/can-vts-utils/
Dcan-hal-printers.h39 DEFINE_CAN_HAL_PRINTER(ICanController::InterfaceType, toString)
/hardware/interfaces/automotive/can/1.0/
DICanController.hal34 enum InterfaceType : uint8_t {
104 * {@see InterfaceType} to express compatibility via
174 getSupportedInterfaceTypes() generates (vec<InterfaceType> iftypes);