Home
last modified time | relevance | path

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

/system/core/init/
Ddevices.cpp344 void DeviceHandler::HandleDevice(const std::string& action, const std::string& devpath, bool block, in HandleDevice() argument
347 MakeDevice(devpath, block, major, minor, links); in HandleDevice()
353 if (symlink(devpath.c_str(), link.c_str())) { in HandleDevice()
355 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link; in HandleDevice()
357 Readlink(link, &link_path) && link_path != devpath) { in HandleDevice()
358 PLOG(ERROR) << "Failed to symlink " << devpath << " to " << link in HandleDevice()
368 if (Readlink(link, &link_path) && link_path == devpath) { in HandleDevice()
372 unlink(devpath.c_str()); in HandleDevice()
384 std::string devpath; in HandleDeviceEvent() local
390 devpath = "/dev/block/" + Basename(uevent.path); in HandleDeviceEvent()
[all …]
Ddevices.h122 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.cpp219 char *devpath = nullptr; in find_usb_device() local
282 devpath = pathbuf; in find_usb_device()
287 register_device_callback(dev_name.c_str(), devpath, local_ep_in, in find_usb_device()
/system/core/adb/
Dtransport_test.cpp131 std::string devpath = "/path/to/bar"; in TEST() local
138 t.devpath = &devpath[0]; in TEST()
148 EXPECT_TRUE(t.MatchesTarget(devpath)); in TEST()
Dtransport.h144 char* devpath = nullptr; variable
236 const char* devpath, unsigned writeable);
Dtransport.cpp595 if (t->devpath) free(t->devpath); in transport_registration_func()
961 return (devpath && target == devpath) || in MatchesTarget()
1001 append_transport_info(result, "", t->devpath, false); in append_transport()
1120 void register_usb_transport(usb_handle* usb, const char* serial, const char* devpath, in register_usb_transport() argument
1130 if (devpath) { in register_usb_transport()
1131 t->devpath = strdup(devpath); in register_usb_transport()
Dadb.cpp1188 return SendOkay(reply_fd, t->devpath ? t->devpath : "unknown"); in handle_host_request()
DSERVICES.TXT93 <host-prefix>:get-devpath