/aosp12/hardware/interfaces/automotive/can/1.0/vts/functional/ |
H A D | VtsHalCanControllerV1_0TargetTest.cpp | 33 using InterfaceType = ICanController::InterfaceType; typedef 42 hidl_vec<InterfaceType> getSupportedInterfaceTypes(); 43 bool isSupported(InterfaceType iftype); 78 hidl_vec<InterfaceType> iftypesResult; in getSupportedInterfaceTypes() 94 if (iftype == InterfaceType::SOCKETCAN) { in up() 98 } else if (iftype == InterfaceType::SLCAN) { in up() 102 } else if (iftype == InterfaceType::VIRTUAL) { in up() 199 {InterfaceType::VIRTUAL, virtualCfg}, in TEST_P() 202 {InterfaceType::SLCAN, slcanTtynameCfg}, in TEST_P() 203 {InterfaceType::SLCAN, slcanSerialCfg}, in TEST_P() [all …]
|
H A 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()
|
/aosp12/hardware/interfaces/automotive/can/1.0/tools/libcanhaltools/ |
H A 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()
|
/aosp12/hardware/interfaces/automotive/can/1.0/tools/ |
H A 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()
|
/aosp12/art/test/968-default-partial-compile-gen/util-src/ |
H A D | generate_smali.py | 320 class InterfaceType(Enum): class 333 if self == InterfaceType.default: 335 elif self == InterfaceType.abstract: 337 elif self == InterfaceType.empty: 453 return self.iface_type == InterfaceType.abstract 460 return self.iface_type == InterfaceType.empty 467 return self.iface_type == InterfaceType.default 563 for iftype in InterfaceType: 570 yield TestInterface(tuple(), InterfaceType.default) 572 for iftype in InterfaceType: [all …]
|
H A D | generate_java.py | 83 JavaConverter(f.get_specific_version(base.InterfaceType.default)).dump(self.temp_dir) 102 out = JavaConverter(overridden.get_specific_version(base.InterfaceType.empty))
|
/aosp12/hardware/interfaces/automotive/can/1.0/default/ |
H A 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()
|
/aosp12/art/test/971-iface-super/util-src/ |
H A D | generate_smali.py | 374 class InterfaceType(Enum): class 387 if self == InterfaceType.default: 389 elif self == InterfaceType.abstract: 391 elif self == InterfaceType.empty: 515 return self.iface_type == InterfaceType.abstract 522 return self.iface_type == InterfaceType.empty 529 return self.iface_type == InterfaceType.default 651 for iftype in InterfaceType: 659 for iftype in InterfaceType:
|
H A D | generate_java.py | 83 JavaConverter(f.get_specific_version(base.InterfaceType.default)).dump(self.temp_dir) 91 converters = (lambda a: JavaConverter(a.get_specific_version(base.InterfaceType.default)), 92 lambda a: JavaConverter(a.get_specific_version(base.InterfaceType.empty)))
|
/aosp12/hardware/interfaces/automotive/can/1.0/tools/configurator/ |
H A 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()
|
H A D | canprototools.h | 47 std::optional<V1_0::ICanController::InterfaceType> getHalIftype(const Bus& pb_bus);
|
/aosp12/hardware/interfaces/automotive/can/1.0/tools/libcanhaltools/include/libcanhaltools/ |
H A D | libcanhaltools.h | 38 bool isSupported(sp<V1_0::ICanController> ctrl, V1_0::ICanController::InterfaceType iftype);
|
/aosp12/hardware/interfaces/automotive/can/1.0/ |
H A D | ICanController.hal | 34 enum InterfaceType : uint8_t { 104 * {@see InterfaceType} to express compatibility via 174 getSupportedInterfaceTypes() generates (vec<InterfaceType> iftypes);
|
/aosp12/hardware/interfaces/automotive/can/1.0/vts/utils/include/can-vts-utils/ |
H A D | can-hal-printers.h | 39 DEFINE_CAN_HAL_PRINTER(ICanController::InterfaceType, toString)
|
/aosp12/build/blueprint/bootstrap/bpdoc/ |
H A D | properties.go | 246 case *ast.InterfaceType:
|