/hardware/interfaces/automotive/can/1.0/vts/functional/ |
D | VtsHalCanControllerV1_0TargetTest.cpp | 33 using InterfaceType = ICanController::InterfaceType; typedef 68 hidl_vec<InterfaceType> getSupportedInterfaceTypes(); 69 bool isSupported(InterfaceType iftype); 71 bool up(InterfaceType iftype, const std::string srvname, std::string ifname, 104 hidl_vec<InterfaceType> CanControllerHalTest::getSupportedInterfaceTypes() { in getSupportedInterfaceTypes() 105 hidl_vec<InterfaceType> iftypesResult; in getSupportedInterfaceTypes() 110 bool CanControllerHalTest::isSupported(InterfaceType iftype) { in isSupported() 115 bool CanControllerHalTest::up(InterfaceType iftype, std::string srvname, std::string ifname, in up() 121 if (iftype == InterfaceType::SOCKETCAN) { in up() 125 } else if (iftype == InterfaceType::SLCAN) { in up() [all …]
|
D | VtsHalCanBusV1_0TargetTest.cpp | 31 using InterfaceType = ICanController::InterfaceType; typedef 47 bool up(InterfaceType iftype, const std::string& srvname, const std::string& ifname); 67 up(InterfaceType::VIRTUAL, GetParam(), "vcan0"); in SetUp() 74 bool CanBusHalTest::up(InterfaceType iftype, const std::string& srvname, in up() 80 if (iftype == InterfaceType::SOCKETCAN) { in up() 84 } else if (iftype == InterfaceType::SLCAN) { in up() 88 } else if (iftype == InterfaceType::VIRTUAL) { in up()
|
D | VtsHalCanBusVirtualV1_0TargetTest.cpp | 41 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/ |
D | libcanhaltools.cpp | 42 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/ |
D | canhalctrl.cpp | 46 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/default/tests/fuzzer/ |
D | AutomotiveCanV1_0Fuzzer.cpp | 21 constexpr CanController::InterfaceType kInterfaceType[] = { 22 CanController::InterfaceType::VIRTUAL, CanController::InterfaceType::SOCKETCAN, 23 CanController::InterfaceType::SLCAN, CanController::InterfaceType::INDEXED}; 46 hidl_vec<CanController::InterfaceType> iftypesResult; in getSupportedInterfaceTypes() 59 CanController::InterfaceType controller; in invokeUpInterface() 61 controller = (CanController::InterfaceType)mFuzzedDataProvider->ConsumeIntegral<uint8_t>(); in invokeUpInterface() 80 if (controller == CanController::InterfaceType::SOCKETCAN) { in invokeUpInterface() 90 } else if (controller == CanController::InterfaceType::SLCAN) { in invokeUpInterface() 100 } else if (controller == CanController::InterfaceType::VIRTUAL) { in invokeUpInterface() 102 } else if (controller == CanController::InterfaceType::INDEXED) { in invokeUpInterface()
|
/hardware/interfaces/automotive/can/aidl/default/ |
D | CanController.cpp | 55 InterfaceType iftype; 132 return {{InterfaceType::NATIVE, netName}}; in getIfaceName() 135 return {{InterfaceType::SLCAN, "/dev/" + currentDir}}; in getIfaceName() 229 std::vector<InterfaceType>* supportedTypes) { in getSupportedInterfaceTypes() 230 *supportedTypes = {InterfaceType::VIRTUAL, InterfaceType::NATIVE, InterfaceType::SLCAN}; in getSupportedInterfaceTypes() 268 if (!selectedDevice.has_value() || selectedDevice->iftype != InterfaceType::NATIVE) { in upBus() 288 if (!selectedDevice.has_value() || selectedDevice->iftype != InterfaceType::SLCAN) { in upBus()
|
D | CanController.h | 33 std::vector<InterfaceType>* supportedTypes) override;
|
/hardware/interfaces/automotive/can/1.0/tools/configurator/ |
D | canprototools.cpp | 141 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()
|
D | canprototools.h | 47 std::optional<V1_0::ICanController::InterfaceType> getHalIftype(const Bus& pb_bus);
|
/hardware/interfaces/automotive/can/1.0/default/ |
D | CanController.cpp | 55 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/aidl/default/tools/configurator/ |
D | canprototools.cpp | 33 using ::aidl::android::hardware::automotive::can::InterfaceType; 161 std::optional<InterfaceType> getHalIftype(const Bus& pb_bus) { in getHalIftype() 164 return InterfaceType::NATIVE; in getHalIftype() 166 return InterfaceType::SLCAN; in getHalIftype() 168 return InterfaceType::VIRTUAL; in getHalIftype() 170 return InterfaceType::INDEXED; in getHalIftype()
|
D | canprototools.h | 49 std::optional<::aidl::android::hardware::automotive::can::InterfaceType> getHalIftype(
|
/hardware/interfaces/automotive/can/aidl/android/hardware/automotive/can/ |
D | ICanController.aidl | 19 import android.hardware.automotive.can.InterfaceType; 38 InterfaceType[] getSupportedInterfaceTypes(); in getSupportedInterfaceTypes()
|
D | InterfaceType.aidl | 25 enum InterfaceType { enum
|
/hardware/interfaces/automotive/can/aidl/aidl_api/android.hardware.automotive.can/current/android/hardware/automotive/can/ |
D | InterfaceType.aidl | 36 enum InterfaceType { enum
|
D | ICanController.aidl | 37 android.hardware.automotive.can.InterfaceType[] getSupportedInterfaceTypes(); in getSupportedInterfaceTypes()
|
/hardware/interfaces/automotive/can/aidl/aidl_api/android.hardware.automotive.can/1/android/hardware/automotive/can/ |
D | InterfaceType.aidl | 36 enum InterfaceType { enum
|
D | ICanController.aidl | 37 android.hardware.automotive.can.InterfaceType[] getSupportedInterfaceTypes(); in getSupportedInterfaceTypes()
|
/hardware/interfaces/automotive/can/1.0/tools/libcanhaltools/include/libcanhaltools/ |
D | libcanhaltools.h | 38 bool isSupported(sp<V1_0::ICanController> ctrl, V1_0::ICanController::InterfaceType iftype);
|
/hardware/interfaces/automotive/can/1.0/vts/utils/include/can-vts-utils/ |
D | can-hal-printers.h | 39 DEFINE_CAN_HAL_PRINTER(ICanController::InterfaceType, toString)
|
/hardware/interfaces/automotive/can/1.0/ |
D | ICanController.hal | 34 enum InterfaceType : uint8_t { 104 * {@see InterfaceType} to express compatibility via 174 getSupportedInterfaceTypes() generates (vec<InterfaceType> iftypes);
|
/hardware/interfaces/automotive/can/aidl/vts/functional/ |
D | CanControllerAidlTest.cpp | 86 std::vector<::aidl::android::hardware::automotive::can::InterfaceType> supportedTypes; in TEST_P()
|