Home
last modified time | relevance | path

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

/system/core/init/
Ddevices.cpp386 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 …]
Ddevices.h130 void HandleDevice(const std::string& action, const std::string& devpath, bool block, int major,
/system/core/adb/client/
Dusb_osx.cpp59 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 …]
Dusb_linux.cpp221 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/
Dtransport_test.cpp132 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()
Dtransport.cpp1135 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()
Dtransport.h275 std::string devpath; variable
398 const char* devpath, unsigned writeable);
Dadb.cpp1205 SendOkay(reply_fd, !t->devpath.empty() ? t->devpath : "unknown"); in handle_host_request()
DSERVICES.TXT89 <host-prefix>:get-devpath