Searched refs:devpath (Results 1 – 13 of 13) sorted by relevance
/system/core/init/ |
D | devices.cpp | 379 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 …]
|
D | firmware_handler.h | 32 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
|
D | devices.h | 130 void HandleDevice(const std::string& action, const std::string& devpath, bool block, int major,
|
D | firmware_handler.cpp | 161 if (external_handler.devpath == uevent.path) { in GetFirmwarePath()
|
D | ueventd_parser.cpp | 99 [&args](const auto& other) { return other.devpath == args[2]; }) != in ParseExternalFirmwareHandlerLine()
|
D | README.ueventd.md | 106 external_firmware_handler <devpath> <user name to run as> <path to external program>
|
/system/core/adb/client/ |
D | usb_osx.cpp | 61 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 …]
|
D | usb_linux.cpp | 222 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/ |
D | transport_test.cpp | 133 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()
|
D | transport.cpp | 1280 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()
|
D | transport.h | 312 std::string devpath; variable 465 void register_usb_transport(usb_handle* h, const char* serial, const char* devpath,
|
D | adb.cpp | 1284 SendOkay(reply_fd, !t->devpath.empty() ? t->devpath : "unknown"); in handle_host_request()
|
D | SERVICES.TXT | 89 <host-prefix>:get-devpath
|