Home
last modified time | relevance | path

Searched refs:ICanController (Results 1 – 23 of 23) sorted by relevance

/hardware/interfaces/automotive/can/1.0/tools/libcanhaltools/
Dlibcanhaltools.cpp30 using ICanController = V1_0::ICanController; typedef
31 using IfIdDisc = ICanController::BusConfig::InterfaceId::hidl_discriminator;
36 manager->listManifestByInterface(ICanController::descriptor, hidl_utils::fill(&services)); in getControlServices()
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()
[all …]
/hardware/interfaces/automotive/can/1.0/tools/
Dcanhalctrl.cpp29 using ICanController = V1_0::ICanController; typedef
46 static int up(const std::string& busName, ICanController::InterfaceType type, in up()
50 auto ctrl = ICanController::getService(service); in up()
59 ICanController::BusConfig config = {}; in up()
64 using IfCfg = ICanController::BusConfig::InterfaceId; 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()
87 if (upresult == ICanController::Result::OK) return 0; in up()
[all …]
/hardware/interfaces/automotive/can/1.0/default/
DCanBusSlcan.cpp51 ICanController::Result CanBusSlcan::updateIfaceName(base::unique_fd& uartFd) { in updateIfaceName()
60 return ICanController::Result::UNKNOWN_ERROR; in updateIfaceName()
65 return ICanController::Result::OK; in updateIfaceName()
68 ICanController::Result CanBusSlcan::preUp() { in preUp()
74 return ICanController::Result::BAD_BITRATE; in preUp()
84 return ICanController::Result::BAD_INTERFACE_ID; in preUp()
96 return ICanController::Result::UNKNOWN_ERROR; in preUp()
111 return ICanController::Result::UNKNOWN_ERROR; in preUp()
118 return ICanController::Result::UNKNOWN_ERROR; in preUp()
125 return ICanController::Result::UNKNOWN_ERROR; in preUp()
[all …]
DCanBusNative.cpp28 ICanController::Result CanBusNative::preUp() { in preUp()
31 return ICanController::Result::BAD_INTERFACE_ID; in preUp()
36 return ICanController::Result::OK; in preUp()
41 return ICanController::Result::UNKNOWN_ERROR; in preUp()
46 return ICanController::Result::BAD_BITRATE; in preUp()
49 return ICanController::Result::OK; in preUp()
DCanController.cpp32 using IfId = ICanController::BusConfig::InterfaceId;
33 using IfIdDisc = ICanController::BusConfig::InterfaceId::hidl_discriminator;
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()
216 Return<ICanController::Result> CanController::upInterface(const ICanController::BusConfig& config) { in upInterface()
223 return ICanController::Result::BAD_SERVICE_NAME; in upInterface()
228 return ICanController::Result::INVALID_STATE; in upInterface()
[all …]
DCanBusVirtual.cpp26 ICanController::Result CanBusVirtual::preUp() { in preUp()
27 if (netdevice::exists(mIfname)) return ICanController::Result::OK; in preUp()
33 return ICanController::Result::UNKNOWN_ERROR; in preUp()
36 return ICanController::Result::OK; in preUp()
DCanController.h25 struct CanController : public ICanController {
28 Return<ICanController::Result> upInterface(const ICanController::BusConfig& config) override;
DCanBusSlcan.h31 virtual ICanController::Result preUp() override;
35 ICanController::Result updateIfaceName(base::unique_fd& uartFd);
DCanBus.cpp104 ICanController::Result CanBus::preUp() { in preUp()
105 return ICanController::Result::OK; in preUp()
112 ICanController::Result CanBus::up() { in up()
117 return ICanController::Result::INVALID_STATE; in up()
121 if (preResult != ICanController::Result::OK) return preResult; in up()
127 return ICanController::Result::BAD_INTERFACE_ID; in up()
132 return ICanController::Result::UNKNOWN_ERROR; in up()
142 return ICanController::Result::UNKNOWN_ERROR; in up()
146 return ICanController::Result::OK; in up()
DCanBus.h42 ICanController::Result up();
63 virtual ICanController::Result preUp();
DCanBusNative.h27 virtual ICanController::Result preUp() override;
DCanBusVirtual.h27 virtual ICanController::Result preUp() override;
/hardware/interfaces/automotive/can/1.0/vts/functional/
DVtsHalCanControllerV1_0TargetTest.cpp33 using InterfaceType = ICanController::InterfaceType;
34 using IfId = ICanController::BusConfig::InterfaceId;
46 ICanController::Result expected);
49 sp<ICanController> mCanController;
62 mCanController = ICanController::getService(GetParam()); in SetUp()
89 ICanController::Result expected) { in up()
90 ICanController::BusConfig config = {}; in up()
112 EXPECT_EQ(ICanController::Result::NOT_SUPPORTED, upresult); in up()
139 if (!up(InterfaceType::VIRTUAL, name, "vcan57", ICanController::Result::OK)) GTEST_SKIP(); in TEST_P()
157 if (!up(InterfaceType::VIRTUAL, name, "vcan72", ICanController::Result::OK)) GTEST_SKIP(); in TEST_P()
[all …]
DVtsHalCanBusVirtualV1_0TargetTest.cpp41 using InterfaceType = ICanController::InterfaceType;
83 Bus(sp<ICanController> controller, const ICanController::BusConfig& config) in Bus()
86 EXPECT_EQ(ICanController::Result::OK, result); in Bus()
131 sp<ICanController> mController;
148 sp<ICanController> mCanController = nullptr;
170 mCanController = ICanController::getService(GetParam()); in SetUp()
193 ICanController::BusConfig config = {}; in makeBus()
873 testing::ValuesIn(getAllHalInstanceNames(ICanController::descriptor)),
/hardware/interfaces/automotive/can/1.0/tools/configurator/
Dcanprototools.cpp28 using ICanController = V1_0::ICanController; typedef
81 std::optional<ICanController::BusConfig> fromPbBus(const Bus& pb_bus) { in fromPbBus()
82 ICanController::BusConfig bus_cfg = {}; in fromPbBus()
95 ICanController::BusConfig::InterfaceId::Socketcan socketcan = {}; in fromPbBus()
109 ICanController::BusConfig::InterfaceId::Slcan slcan = {}; in fromPbBus()
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()
Dcanhalconfigurator.cpp29 using ICanController = V1_0::ICanController; typedef
52 if (libcanhaltools::configureIface(*bus_cfg) != ICanController::Result::OK) { in processPbCfg()
Dcanprototools.h39 std::optional<V1_0::ICanController::BusConfig> fromPbBus(const Bus& pb_bus);
47 std::optional<V1_0::ICanController::InterfaceType> getHalIftype(const Bus& pb_bus);
/hardware/interfaces/automotive/can/1.0/tools/libcanhaltools/include/libcanhaltools/
Dlibcanhaltools.h38 bool isSupported(sp<V1_0::ICanController> ctrl, V1_0::ICanController::InterfaceType iftype);
46 V1_0::ICanController::Result configureIface(V1_0::ICanController::BusConfig can_config);
/hardware/interfaces/automotive/can/1.0/vts/utils/include/can-vts-utils/
Dcan-hal-printers.h38 DEFINE_CAN_HAL_PRINTER(ICanController::BusConfig::InterfaceId, toString);
39 DEFINE_CAN_HAL_PRINTER(ICanController::InterfaceType, toString)
40 DEFINE_CAN_HAL_PRINTER(ICanController::Result, toString)
/hardware/interfaces/automotive/can/1.0/
DAndroid.bp19 "ICanController.hal",
DICanController.hal24 * Providing an ICanController interface to configure CAN buses is optional.
28 interface ICanController {
DICanBus.hal25 * Configuration part is done in ICanController.
/hardware/interfaces/
Dcurrent.txt651 …ced68946884416ea25ab14ae2df4709357528b2bedba84c android.hardware.automotive.can@1.0::ICanController