Home
last modified time | relevance | path

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

1234

/system/core/rootdir/
Dinit.usb.configfs.rc1 on property:sys.usb.config=none && property:sys.usb.configfs=1
4 setprop sys.usb.ffs.ready 0
12 setprop sys.usb.state ${sys.usb.config}
15 setprop sys.usb.ffs.ready 0
17 on property:sys.usb.config=adb && property:sys.usb.configfs=1
20 on property:sys.usb.ffs.ready=1 && property:sys.usb.config=adb && property:sys.usb.configfs=1
23 write /config/usb_gadget/g1/UDC ${sys.usb.controller}
24 setprop sys.usb.state ${sys.usb.config}
26 on property:sys.usb.config=mtp && property:sys.usb.configfs=1
29 write /config/usb_gadget/g1/UDC ${sys.usb.controller}
[all …]
Dinit.usb.rc14 # adbd is controlled via property triggers in init.<platform>.usb.rc
22 setprop sys.usb.configfs 0
25 on property:sys.usb.config=none && property:sys.usb.configfs=0
29 setprop sys.usb.state ${sys.usb.config}
34 on property:sys.usb.config=adb && property:sys.usb.configfs=0
38 write /sys/class/android_usb/android0/functions ${sys.usb.config}
41 setprop sys.usb.state ${sys.usb.config}
44 on property:sys.usb.config=accessory && property:sys.usb.configfs=0
48 write /sys/class/android_usb/android0/functions ${sys.usb.config}
50 setprop sys.usb.state ${sys.usb.config}
[all …]
Dueventd.rc55 /dev/bus/usb/* 0660 root usb
57 /dev/usb_accessory 0660 root usb
/system/core/adb/client/
Dusb_linux.cpp96 for (usb_handle* usb : g_usb_handles) { in is_known_device()
97 if (usb->path == dev_name) { in is_known_device()
99 usb->mark = true; in is_known_device()
109 for (usb_handle* usb : g_usb_handles) { in kick_disconnected_devices()
110 if (!usb->mark) { in kick_disconnected_devices()
111 usb_kick(usb); in kick_disconnected_devices()
113 usb->mark = false; in kick_disconnected_devices()
526 for (usb_handle* usb: g_usb_handles) { in register_device()
527 if (usb->path == dev_name) { in register_device()
534 std::unique_ptr<usb_handle> usb(new usb_handle); in register_device() local
[all …]
Dusb_osx.cpp79 for (auto& usb : g_usb_handles) { in IsKnownDevice() local
80 if (usb->devpath == devpath) { in IsKnownDevice()
82 usb->mark = true; in IsKnownDevice()
93 for (auto& usb : g_usb_handles) { in KickDisconnectedDevices() local
94 if (!usb->mark) { in KickDisconnectedDevices()
95 usb_kick_locked(usb.get()); in KickDisconnectedDevices()
97 usb->mark = false; in KickDisconnectedDevices()
Dusb_windows.cpp131 for (usb_handle* usb : handle_list) { in known_device_locked()
133 if ((nullptr != usb->interface_name) && (0 == wcsicmp(usb->interface_name, dev_name))) { in known_device_locked()
613 for (usb_handle* usb : handle_list) { in kick_devices()
614 usb_kick_locked(usb); in kick_devices()
/system/core/adb/
Dtransport_usb.cpp96 static int remote_read(apacket* p, usb_handle* usb) { in remote_read() argument
97 int n = UsbReadMessage(usb, &p->msg); in remote_read()
107 n = UsbReadPayload(usb, p); in remote_read()
125 static int remote_read(apacket* p, usb_handle* usb) { in remote_read() argument
126 if (usb_read(usb, &p->msg, sizeof(amessage)) != sizeof(amessage)) { in remote_read()
138 if (usb_read(usb, &p->payload[0], p->payload.size()) in remote_read()
/system/sepolicy/prebuilts/api/29.0/private/
Dusbd.te5 # Access usb gadget hal
8 # Access persist.sys.usb.config
Dmediaprovider.te37 # MtpServer uses /dev/usb-ffs/mtp
42 # MtpServer sets sys.usb.ffs.mtp.ready
/system/sepolicy/prebuilts/api/28.0/private/
Dusbd.te5 # Access usb gadget hal
8 # Access persist.sys.usb.config
Dmediaprovider.te37 # MtpServer uses /dev/usb-ffs/mtp
41 # MtpServer sets sys.usb.ffs.mtp.ready
/system/sepolicy/private/
Dusbd.te5 # Access usb gadget hal
8 # Access persist.sys.usb.config
Dmediaprovider.te37 # MtpServer uses /dev/usb-ffs/mtp
42 # MtpServer sets sys.usb.ffs.mtp.ready
/system/core/fastboot/
Dusb_linux.cpp338 std::unique_ptr<usb_handle> usb; in find_usb_device() local
350 while ((de = readdir(busdir.get())) && (usb == nullptr)) { in find_usb_device()
369 usb.reset(new usb_handle()); in find_usb_device()
370 strcpy(usb->fname, devname); in find_usb_device()
371 usb->ep_in = in; in find_usb_device()
372 usb->ep_out = out; in find_usb_device()
373 usb->desc = fd; in find_usb_device()
378 usb.reset(); in find_usb_device()
387 return usb; in find_usb_device()
/system/core/adb/daemon/
Dusb_legacy.cpp97 static void usb_legacy_ffs_open_thread(usb_handle* usb) { in usb_legacy_ffs_open_thread() argument
102 std::unique_lock<std::mutex> lock(usb->lock); in usb_legacy_ffs_open_thread()
103 while (!usb->open_new_connection) { in usb_legacy_ffs_open_thread()
104 usb->notify.wait(lock); in usb_legacy_ffs_open_thread()
106 usb->open_new_connection = false; in usb_legacy_ffs_open_thread()
110 if (init_functionfs(usb)) { in usb_legacy_ffs_open_thread()
118 register_usb_transport(usb, nullptr, nullptr, 1); in usb_legacy_ffs_open_thread()
/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp120 std::unique_ptr<UsbTransport> usb(usb_open(matcher, USB_TIMEOUT)); in SetUp() local
121 if (usb) in SetUp()
123 new UsbTransportSniffer(std::move(usb), serial_port)); in SetUp()
181 std::unique_ptr<UsbTransport> usb(usb_open(matcher, USB_TIMEOUT)); in ReconnectFastbootDevice() local
182 if (usb) { in ReconnectFastbootDevice()
184 new UsbTransportSniffer(std::move(usb), serial_port)); in ReconnectFastbootDevice()
/system/core/usbd/
Dusbd.cpp32 using android::hardware::usb::gadget::V1_0::GadgetFunction;
33 using android::hardware::usb::gadget::V1_0::IUsbGadget;
Dusbd.rc5 group root usb system
DAndroid.bp12 "android.hardware.usb.gadget@1.0",
/system/sepolicy/prebuilts/api/27.0/private/
Dmediaprovider.te30 # MtpServer uses /dev/usb-ffs/mtp
34 # MtpServer sets sys.usb.ffs.mtp.ready
/system/sepolicy/prebuilts/api/29.0/public/
Dhal_usb_gadget.te7 # Configuring usb gadget functions
Drecovery.te76 # Access /dev/usb-ffs/adb/ep0
117 # Set sys.usb.ffs.ready when starting minadbd for sideload.
121 # Set sys.usb.config when switching into fastboot.
/system/sepolicy/public/
Dhal_usb_gadget.te7 # Configuring usb gadget functions
Drecovery.te76 # Access /dev/usb-ffs/adb/ep0
117 # Set sys.usb.ffs.ready when starting minadbd for sideload.
121 # Set sys.usb.config when switching into fastboot.
/system/sepolicy/prebuilts/api/28.0/public/
Dhal_usb_gadget.te8 # Configuring usb gadget functions

1234