Searched refs:devpath (Results 1 – 9 of 9) sorted by relevance
/system/core/init/ |
D | devices.cpp | 386 void DeviceHandler::HandleDevice(const std::string& action, const std::string& devpath, bool block, in HandleDevice() argument 389 MakeDevice(devpath, block, major, minor, links); in HandleDevice() 395 if (symlink(devpath.c_str(), link.c_str())) { in HandleDevice() 397 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link; in HandleDevice() 399 Readlink(link, &link_path) && link_path != devpath) { in HandleDevice() 400 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link in HandleDevice() 410 if (Readlink(link, &link_path) && link_path == devpath) { in HandleDevice() 414 unlink(devpath.c_str()); in HandleDevice() 426 std::string devpath; in HandleUevent() local 432 devpath = "/dev/block/" + Basename(uevent.path); in HandleUevent() [all …]
|
D | devices.h | 130 void HandleDevice(const std::string& action, const std::string& devpath, bool block, int major,
|
/system/core/adb/client/ |
D | usb_osx.cpp | 59 std::string devpath; member 77 static bool IsKnownDevice(const std::string& devpath) { in IsKnownDevice() argument 80 if (usb->devpath == devpath) { in IsKnownDevice() 149 std::string devpath; in AndroidInterfaceAdded() local 227 devpath = android::base::StringPrintf("usb:%" PRIu32 "X", locationId); in AndroidInterfaceAdded() 228 if (IsKnownDevice(devpath)) { in AndroidInterfaceAdded() 289 if (devpath.empty()) { in AndroidInterfaceAdded() 290 devpath = serial; in AndroidInterfaceAdded() 292 if (IsKnownDevice(devpath)) { in AndroidInterfaceAdded() 305 handle->devpath = devpath; in AndroidInterfaceAdded() [all …]
|
D | usb_linux.cpp | 221 char *devpath = nullptr; in find_usb_device() local 284 devpath = pathbuf; in find_usb_device() 289 register_device_callback(dev_name.c_str(), devpath, local_ep_in, in find_usb_device()
|
/system/core/adb/ |
D | transport_test.cpp | 132 std::string devpath = "/path/to/bar"; in TEST_F() local 139 t.devpath = &devpath[0]; in TEST_F() 149 EXPECT_TRUE(t.MatchesTarget(devpath)); in TEST_F()
|
D | transport.cpp | 1135 return (target == devpath) || qual_match(target, "product:", product, false) || in MatchesTarget() 1183 append_transport_info(result, "", t->devpath, false); in append_transport() 1324 void register_usb_transport(usb_handle* usb, const char* serial, const char* devpath, in register_usb_transport() argument 1334 if (devpath) { in register_usb_transport() 1335 t->devpath = devpath; in register_usb_transport()
|
D | transport.h | 275 std::string devpath; variable 398 const char* devpath, unsigned writeable);
|
D | adb.cpp | 1205 SendOkay(reply_fd, !t->devpath.empty() ? t->devpath : "unknown"); in handle_host_request()
|
D | SERVICES.TXT | 89 <host-prefix>:get-devpath
|