Searched defs:usb (Results 1 - 6 of 6) sorted by relevance

/system/core/fastboot/
H A Dusbtest.cpp36 #include "usb.h"
89 int test_null(Transport* usb) argument
98 if (usb->Write(buf, arg_size) != static_cast<int>(arg_size)) {
108 int test_zero(Transport* usb) argument
116 if (usb->Read(buf, arg_size) != static_cast<int>(arg_size)) {
130 int (*test)(Transport* usb);
180 Transport* usb; local
193 usb = usb_open(tests[i].match);
195 if(usb == 0) {
200 if(tests[i].test(usb)) {
[all...]
H A Dusb_linux.cpp44 #include <linux/usb/ch9.h>
51 #include "usb.h"
110 /* True if name isn't a valid name for a USB device in /sys/bus/usb/devices.
172 snprintf(info.device_path, sizeof(info.device_path), "usb:%s", sysfs_name);
186 "/sys/bus/usb/devices/%s/serial", sysfs_name);
281 "/sys/bus/usb/devices/%s/%s", sysfs_name, sysfs_node);
329 snprintf(devname, devname_size, "/dev/bus/usb/%03d/%03d", busnum, devnum);
335 std::unique_ptr<usb_handle> usb; local
347 while ((de = readdir(busdir.get())) && (usb == nullptr)) {
366 usb
[all...]
/system/core/adb/client/
H A Dusb_windows.cpp41 /** Structure usb_handle describes our connection to the usb device via
50 /// Previous entry in the list of opened usb handles
53 /// Next entry in the list of opened usb handles
75 /// List of opened usb handles
81 /// Locker for the list of opened usb handles
84 /// Checks if there is opened usb handle in handle_list for this device.
87 /// Checks if there is opened usb handle in handle_list for this device.
91 /// Registers opened usb handle (adds it to handle_list).
98 /// registers usb transport for them.
104 /// Entry point for thread that polls (every second) for new usb interface
130 usb_handle* usb; local
[all...]
/system/core/adb/
H A Dtransport.h89 usb_handle* usb = nullptr; member in class:atransport
205 void unregister_usb_transport(usb_handle* usb);
H A Dtransport.cpp178 // read_transport thread reads data from a transport (representing a usb/tcp connection),
239 // and writes to a transport (representing a usb/tcp connection).
968 void register_usb_transport(usb_handle* usb, const char* serial, const char* devpath, argument
972 D("transport: %p init'ing for usb_handle %p (sn='%s')", t, usb, serial ? serial : "");
973 init_usb_transport(t, usb, (writeable ? kCsOffline : kCsNoPerm));
991 void unregister_usb_transport(usb_handle* usb) { argument
994 [usb](atransport* t) { return t->usb == usb && t->connection_state == kCsNoPerm; });
/system/core/adb/daemon/
H A Dusb.cpp23 #include <linux/usb/ch9.h>
24 #include <linux/usb/functionfs.h>
43 #include "daemon/usb.h"
287 android::base::SetProperty("sys.usb.ffs.ready", "1");
344 struct usb_handle* usb = (struct usb_handle*)x; local
346 adb_thread_setname("usb ffs open");
350 std::unique_lock<std::mutex> lock(usb->lock);
351 while (!usb->open_new_connection) {
352 usb->notify.wait(lock);
354 usb
[all...]

Completed in 112 milliseconds