/hardware/interfaces/automotive/can/1.0/tools/libcanhaltools/ |
D | libcanhaltools.cpp | 30 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/ |
D | canhalctrl.cpp | 29 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/ |
D | CanBusSlcan.cpp | 51 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 …]
|
D | CanBusNative.cpp | 28 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()
|
D | CanController.cpp | 32 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 …]
|
D | CanBusVirtual.cpp | 26 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()
|
D | CanController.h | 25 struct CanController : public ICanController { 28 Return<ICanController::Result> upInterface(const ICanController::BusConfig& config) override;
|
D | CanBusSlcan.h | 31 virtual ICanController::Result preUp() override; 35 ICanController::Result updateIfaceName(base::unique_fd& uartFd);
|
D | CanBus.cpp | 104 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()
|
D | CanBus.h | 42 ICanController::Result up(); 63 virtual ICanController::Result preUp();
|
D | CanBusNative.h | 27 virtual ICanController::Result preUp() override;
|
D | CanBusVirtual.h | 27 virtual ICanController::Result preUp() override;
|
/hardware/interfaces/automotive/can/1.0/vts/functional/ |
D | VtsHalCanControllerV1_0TargetTest.cpp | 33 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 …]
|
D | VtsHalCanBusVirtualV1_0TargetTest.cpp | 41 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/ |
D | canprototools.cpp | 28 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()
|
D | canhalconfigurator.cpp | 29 using ICanController = V1_0::ICanController; typedef 52 if (libcanhaltools::configureIface(*bus_cfg) != ICanController::Result::OK) { in processPbCfg()
|
D | canprototools.h | 39 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/ |
D | libcanhaltools.h | 38 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/ |
D | can-hal-printers.h | 38 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/ |
D | Android.bp | 19 "ICanController.hal",
|
D | ICanController.hal | 24 * Providing an ICanController interface to configure CAN buses is optional. 28 interface ICanController {
|
D | ICanBus.hal | 25 * Configuration part is done in ICanController.
|
/hardware/interfaces/ |
D | current.txt | 651 …ced68946884416ea25ab14ae2df4709357528b2bedba84c android.hardware.automotive.can@1.0::ICanController
|