Home
last modified time | relevance | path

Searched refs:busService (Results 1 – 2 of 2) sorted by relevance

/hardware/interfaces/automotive/can/1.0/default/
DCanController.cpp231 sp<CanBus> busService; in upInterface() local
250 busService = new CanBusNative(ifaceName, config.bitrate); in upInterface()
254 busService = new CanBusVirtual(config.interfaceId.virtualif().ifname); in upInterface()
272 busService = new CanBusSlcan(ttyName, config.bitrate); in upInterface()
277 busService->setErrorCallback([this, name = config.name]() { downInterface(name); }); in upInterface()
279 const auto result = busService->up(); in upInterface()
282 if (busService->registerAsService(config.name) != OK) { in upInterface()
284 if (!busService->down()) { in upInterface()
290 mCanBuses[config.name] = busService; in upInterface()
295 static bool unregisterCanBusService(const hidl_string& name, sp<CanBus> busService) { in unregisterCanBusService() argument
[all …]
/hardware/interfaces/automotive/can/1.0/vts/functional/
DVtsHalCanControllerV1_0TargetTest.cpp124 auto busService = manager->get(ICanBus::descriptor, srvname); in assertRegistered() local
125 ASSERT_EQ(expectRegistered, busService.withDefault(nullptr) != nullptr) in assertRegistered()