Home
last modified time | relevance | path

Searched refs:usb (Results 1 – 25 of 28) sorted by relevance

12

/system/core/rootdir/
Dinit.usb.rc14 # adbd is controlled via property triggers in init.<platform>.usb.rc
26 setprop sys.usb.configfs 0
29 on property:sys.usb.config=none && property:sys.usb.configfs=0
33 setprop sys.usb.state ${sys.usb.config}
38 on property:sys.usb.config=adb && property:sys.usb.configfs=0
42 write /sys/class/android_usb/android0/functions ${sys.usb.config}
45 setprop sys.usb.state ${sys.usb.config}
48 on property:sys.usb.config=accessory && property:sys.usb.configfs=0
52 write /sys/class/android_usb/android0/functions ${sys.usb.config}
54 setprop sys.usb.state ${sys.usb.config}
[all …]
Dinit.usb.configfs.rc1 on property:sys.usb.config=none && property:sys.usb.configfs=1
7 setprop sys.usb.state ${sys.usb.config}
9 on property:sys.usb.config=adb && property:sys.usb.configfs=1
12 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb && property:sys.usb.configfs=1
18 write /config/usb_gadget/g1/UDC ${sys.usb.controller}
19 setprop sys.usb.state ${sys.usb.config}
21 on property:sys.usb.config=mtp && property:sys.usb.configfs=1
27 write /config/usb_gadget/g1/UDC ${sys.usb.controller}
28 setprop sys.usb.state ${sys.usb.config}
30 on property:sys.usb.config=mtp,adb && property:sys.usb.configfs=1
[all …]
Dueventd.rc89 /dev/bus/usb/* 0660 root usb
91 /dev/usb_accessory 0660 root usb
Dinit.rc8 import /init.usb.rc
10 import /init.usb.configfs.rc
/system/core/adb/
Dtransport_usb.cpp30 if(usb_read(t->usb, &p->msg, sizeof(amessage))){ in remote_read()
41 if(usb_read(t->usb, p->data, p->msg.data_length)){ in remote_read()
59 if(usb_write(t->usb, &p->msg, sizeof(amessage))) { in remote_write()
64 if(usb_write(t->usb, &p->data, size)) { in remote_write()
74 usb_close(t->usb); in remote_close()
75 t->usb = 0; in remote_close()
80 usb_kick(t->usb); in remote_kick()
93 t->usb = h; in init_usb_transport()
Dusb_linux.cpp89 for (usb_handle* usb : g_usb_handles) { in is_known_device()
90 if (usb->path == dev_name) { in is_known_device()
92 usb->mark = true; in is_known_device()
102 for (usb_handle* usb : g_usb_handles) { in kick_disconnected_devices()
103 if (!usb->mark) { in kick_disconnected_devices()
104 usb_kick(usb); in kick_disconnected_devices()
106 usb->mark = false; in kick_disconnected_devices()
514 for (usb_handle* usb: g_usb_handles) { in register_device()
515 if (usb->path == dev_name) { in register_device()
522 std::unique_ptr<usb_handle> usb(new usb_handle); in register_device() local
[all …]
Dusb_linux_client.cpp244 struct usb_handle *usb = (struct usb_handle *)x; in usb_adb_open_thread() local
251 adb_mutex_lock(&usb->lock); in usb_adb_open_thread()
252 while (!usb->open_new_connection) { in usb_adb_open_thread()
253 adb_cond_wait(&usb->notify, &usb->lock); in usb_adb_open_thread()
255 usb->open_new_connection = false; in usb_adb_open_thread()
256 adb_mutex_unlock(&usb->lock); in usb_adb_open_thread()
273 usb->fd = fd; in usb_adb_open_thread()
276 register_usb_transport(usb, 0, 0, 1); in usb_adb_open_thread()
465 struct usb_handle *usb = (struct usb_handle *)x; in usb_ffs_open_thread() local
471 adb_mutex_lock(&usb->lock); in usb_ffs_open_thread()
[all …]
Dusb_windows.cpp124 usb_handle* usb; in known_device_locked() local
128 for(usb = handle_list.next; usb != &handle_list; usb = usb->next) { in known_device_locked()
130 if((NULL != usb->interface_name) && in known_device_locked()
131 (0 == wcsicmp(usb->interface_name, dev_name))) { in known_device_locked()
655 for (usb_handle* usb = handle_list.next; usb != &handle_list; usb = usb->next) { in kick_devices() local
656 usb_kick_locked(usb); in kick_devices()
Dusb_osx.cpp67 for (auto& usb : g_usb_handles) { in IsKnownDevice() local
68 if (usb->devpath == devpath) { in IsKnownDevice()
70 usb->mark = true; in IsKnownDevice()
81 for (auto& usb : g_usb_handles) { in KickDisconnectedDevices() local
82 if (!usb->mark) { in KickDisconnectedDevices()
83 usb_kick_locked(usb.get()); in KickDisconnectedDevices()
85 usb->mark = false; in KickDisconnectedDevices()
Dtransport.h81 usb_handle* usb = nullptr; variable
170 void unregister_usb_transport(usb_handle* usb);
Dtransport.cpp1007 void register_usb_transport(usb_handle* usb, const char* serial, in register_usb_transport() argument
1011 D("transport: %p init'ing for usb_handle %p (sn='%s')", t, usb, in register_usb_transport()
1013 init_usb_transport(t, usb, (writeable ? kCsOffline : kCsNoPerm)); in register_usb_transport()
1030 void unregister_usb_transport(usb_handle *usb) { in unregister_usb_transport() argument
1032 transport_list.remove_if([usb](atransport* t) { in unregister_usb_transport()
1033 return t->usb == usb && t->connection_state == kCsNoPerm; in unregister_usb_transport()
Dadb.h161 void init_usb_transport(atransport *t, usb_handle *usb, ConnectionState state);
DSERVICES.TXT51 host:transport-usb
73 host-usb:<request>
104 host-serial/host-usb/host-local/host prefixes as described previously
DAndroid.mk138 LOCAL_C_INCLUDES_windows := development/host/windows/usb/api/
Dprotocol.txt207 threadpair. The reason for this is that for usb connections, the
/system/core/fastboot/
Dusbtest.cpp89 int test_null(Transport* usb) in test_null() argument
98 if (usb->Write(buf, arg_size) != static_cast<int>(arg_size)) { in test_null()
108 int test_zero(Transport* usb) in test_zero() argument
116 if (usb->Read(buf, arg_size) != static_cast<int>(arg_size)) { in test_zero()
130 int (*test)(Transport* usb);
180 Transport* usb; in main() local
193 usb = usb_open(tests[i].match); in main()
195 if(usb == 0) { in main()
200 if(tests[i].test(usb)) { in main()
Dusb_linux.cpp331 std::unique_ptr<usb_handle> usb; in find_usb_device() local
344 while ((de = readdir(busdir)) && (usb == nullptr)) { in find_usb_device()
363 usb.reset(new usb_handle()); in find_usb_device()
364 strcpy(usb->fname, devname); in find_usb_device()
365 usb->ep_in = in; in find_usb_device()
366 usb->ep_out = out; in find_usb_device()
367 usb->desc = fd; in find_usb_device()
372 usb.reset(); in find_usb_device()
382 return usb; in find_usb_device()
DAndroid.mk58 LOCAL_C_INCLUDES_windows := development/host/windows/usb/api
/system/connectivity/shill/udev/
D86-reload_network_device.rules3 SUBSYSTEM=="net", ACTION=="change", ENV{ID_BUS}=="usb", ENV{EVENT}=="device_hang", RUN+="/usr/sbin/…
/system/sepolicy/
Dproperty_contexts12 sys.usb.config u:object_r:system_radio_prop:s0
26 sys.usb.ffs. u:object_r:ffs_prop:s0
Dadbd.te25 # Access /dev/android_adb or /dev/usb-ffs/adb/ep0
52 # Set service.adb.*, sys.powerctl, and sys.usb.ffs.ready properties.
Drecovery.te61 # Access /dev/android_adb or /dev/usb-ffs/adb/ep0
Dservice_contexts137 usb u:object_r:usb_service:s0
Dinit.te49 # Mount on /dev/usb-ffs/adb.
/system/extras/tests/workloads/
Dpwrtest.sh119 echo Setting usb pass-thru to $state

12