/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 | 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 | CanBusSlcan.h | 31 virtual ICanController::Result preUp() override; 35 ICanController::Result updateIfaceName(base::unique_fd& uartFd);
|
D | CanBus.h | 43 ICanController::Result up(); 64 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; 39 Bus(sp<ICanController> controller, const ICanController::BusConfig& config) in Bus() 56 sp<ICanController> mController; 72 ICanController::Result expected); 76 sp<ICanController> mCanController; 89 mCanController = ICanController::getService(GetParam()); in SetUp() 116 ICanController::Result expected) { in up() 117 ICanController::BusConfig config = {}; in up() 139 EXPECT_EQ(ICanController::Result::NOT_SUPPORTED, upresult); in up() [all …]
|
D | VtsHalCanBusV1_0TargetTest.cpp | 31 using InterfaceType = ICanController::InterfaceType; 32 using IfId = ICanController::BusConfig::InterfaceId; 54 sp<ICanController> mCanController; 60 const auto controllers = getAllHalInstanceNames(ICanController::descriptor); in SetUp() 63 mCanController = ICanController::getService(controllers[0]); in SetUp() 76 ICanController::BusConfig config = {}; in up() 95 if (upresult != ICanController::Result::OK) { in up() 97 EXPECT_EQ(ICanController::Result::INVALID_STATE, upresult) in up()
|
/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/aidl/vts/functional/ |
D | CanControllerAidlTest.cpp | 37 using aidl::android::hardware::automotive::can::ICanController; 47 const auto instance = ICanController::descriptor + "/default"s; in SetUp() 48 mCanControllerService = ICanController::fromBinder( in SetUp() 56 std::shared_ptr<ICanController> mCanControllerService; 95 testing::ValuesIn(android::getAidlHalInstanceNames(ICanController::descriptor)),
|
/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/aidl/default/tools/configurator/ |
D | canhalconfigurator.cpp | 30 using ::aidl::android::hardware::automotive::can::ICanController; 53 const auto instance = ICanController::descriptor + "/default"s; in processPbCfg() 54 const auto service = ICanController::fromBinder( in processPbCfg()
|
/hardware/interfaces/automotive/can/1.0/default/tests/fuzzer/ |
D | AutomotiveCanV1_0Fuzzer.h | 59 Bus(sp<ICanController> controller, const ICanController::BusConfig& config) in Bus() 103 sp<ICanController> mController;
|
/hardware/interfaces/automotive/can/aidl/aidl_api/android.hardware.automotive.can/current/android/hardware/automotive/can/ |
D | ICanController.aidl | 36 interface ICanController { interface
|
/hardware/interfaces/automotive/can/aidl/aidl_api/android.hardware.automotive.can/1/android/hardware/automotive/can/ |
D | ICanController.aidl | 36 interface ICanController { interface
|
/hardware/interfaces/automotive/can/aidl/android/hardware/automotive/can/ |
D | ICanController.aidl | 32 interface ICanController { interface
|