Home
last modified time | relevance | path

Searched refs:devpath (Results 1 – 13 of 13) sorted by relevance

/system/core/init/
Ddevices.cpp379 static void RemoveDeviceMapperLinks(const std::string& devpath) { in RemoveDeviceMapperLinks() argument
399 if (Readlink(path, &link_path) && link_path == devpath) { in RemoveDeviceMapperLinks()
406 void DeviceHandler::HandleDevice(const std::string& action, const std::string& devpath, bool block, in HandleDevice() argument
409 MakeDevice(devpath, block, major, minor, links); in HandleDevice()
413 if (action == "add" || (action == "change" && StartsWith(devpath, "/dev/block/dm-"))) { in HandleDevice()
419 if (symlink(devpath.c_str(), link.c_str())) { in HandleDevice()
421 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link; in HandleDevice()
423 Readlink(link, &link_path) && link_path != devpath) { in HandleDevice()
424 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link in HandleDevice()
432 if (StartsWith(devpath, "/dev/block/dm-")) { in HandleDevice()
[all …]
Dfirmware_handler.h32 ExternalFirmwareHandler(std::string devpath, uid_t uid, std::string handler_path) in ExternalFirmwareHandler()
33 : devpath(std::move(devpath)), uid(uid), handler_path(std::move(handler_path)) {} in ExternalFirmwareHandler()
34 std::string devpath; member
Ddevices.h130 void HandleDevice(const std::string& action, const std::string& devpath, bool block, int major,
Dfirmware_handler.cpp161 if (external_handler.devpath == uevent.path) { in GetFirmwarePath()
Dueventd_parser.cpp99 [&args](const auto& other) { return other.devpath == args[2]; }) != in ParseExternalFirmwareHandlerLine()
DREADME.ueventd.md106 external_firmware_handler <devpath> <user name to run as> <path to external program>
/system/core/adb/client/
Dusb_osx.cpp61 std::string devpath; member
79 static bool IsKnownDevice(const std::string& devpath) { in IsKnownDevice() argument
82 if (usb->devpath == devpath) { in IsKnownDevice()
151 std::string devpath; in AndroidInterfaceAdded() local
229 devpath = android::base::StringPrintf("usb:%" PRIu32 "X", locationId); in AndroidInterfaceAdded()
230 if (IsKnownDevice(devpath)) { in AndroidInterfaceAdded()
291 if (devpath.empty()) { in AndroidInterfaceAdded()
292 devpath = serial; in AndroidInterfaceAdded()
294 if (IsKnownDevice(devpath)) { in AndroidInterfaceAdded()
307 handle->devpath = devpath; in AndroidInterfaceAdded()
[all …]
Dusb_linux.cpp222 char *devpath = nullptr; in find_usb_device() local
285 devpath = pathbuf; in find_usb_device()
290 register_device_callback(dev_name.c_str(), devpath, local_ep_in, in find_usb_device()
/system/core/adb/
Dtransport_test.cpp133 std::string devpath = "/path/to/bar"; in TEST_F() local
140 t.devpath = &devpath[0]; in TEST_F()
150 EXPECT_TRUE(t.MatchesTarget(devpath)); in TEST_F()
Dtransport.cpp1280 return (target == devpath) || qual_match(target, "product:", product, false) || in MatchesTarget()
1326 append_transport_info(result, "", t->devpath, false); in append_transport()
1468 void register_usb_transport(usb_handle* usb, const char* serial, const char* devpath, in register_usb_transport() argument
1478 if (devpath) { in register_usb_transport()
1479 t->devpath = devpath; in register_usb_transport()
Dtransport.h312 std::string devpath; variable
465 void register_usb_transport(usb_handle* h, const char* serial, const char* devpath,
Dadb.cpp1284 SendOkay(reply_fd, !t->devpath.empty() ? t->devpath : "unknown"); in handle_host_request()
DSERVICES.TXT89 <host-prefix>:get-devpath