Home
last modified time | relevance | path

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

12345

/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 # Set default value on sys.usb.configfs early in boot sequence. It will be
25 setprop sys.usb.configfs 0
28 on property:sys.usb.config=none && property:sys.usb.configfs=0
32 setprop sys.usb.state ${sys.usb.config}
37 on property:sys.usb.config=adb && property:sys.usb.configfs=0
41 write /sys/class/android_usb/android0/functions ${sys.usb.config}
44 setprop sys.usb.state ${sys.usb.config}
47 on property:sys.usb.config=accessory && property:sys.usb.configfs=0
51 write /sys/class/android_usb/android0/functions ${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.cpp97 for (usb_handle* usb : g_usb_handles) { in is_known_device()
98 if (usb->path == dev_name) { in is_known_device()
100 usb->mark = true; in is_known_device()
110 for (usb_handle* usb : g_usb_handles) { in kick_disconnected_devices()
111 if (!usb->mark) { in kick_disconnected_devices()
112 usb_kick(usb); in kick_disconnected_devices()
114 usb->mark = false; in kick_disconnected_devices()
546 for (usb_handle* usb: g_usb_handles) { in register_device()
547 if (usb->path == dev_name) { in register_device()
554 std::unique_ptr<usb_handle> usb(new usb_handle); in register_device() local
[all …]
Dtransport_usb.cpp100 static int remote_read(apacket* p, usb_handle* usb) { in remote_read() argument
101 int n = UsbReadMessage(usb, &p->msg); in remote_read()
111 n = UsbReadPayload(usb, p); in remote_read()
129 static int remote_read(apacket* p, usb_handle* usb) { in remote_read() argument
130 if (usb_read(usb, &p->msg, sizeof(amessage)) != sizeof(amessage)) { in remote_read()
142 if (usb_read(usb, &p->payload[0], p->payload.size()) != in remote_read()
Dusb_osx.cpp81 for (auto& usb : g_usb_handles) { in IsKnownDevice() local
82 if (usb->devpath == devpath) { in IsKnownDevice()
84 usb->mark = true; in IsKnownDevice()
95 for (auto& usb : g_usb_handles) { in KickDisconnectedDevices() local
96 if (!usb->mark) { in KickDisconnectedDevices()
97 usb_kick_locked(usb.get()); in KickDisconnectedDevices()
99 usb->mark = false; in KickDisconnectedDevices()
/system/sepolicy/prebuilts/api/30.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/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/private/
Dusbd.te5 # Access usb gadget hal
8 # Access persist.sys.usb.config
Drecovery.te12 # Set sys.usb.ffs.ready when starting minadbd for sideload.
16 # Set sys.usb.config when switching into fastboot.
Dmediaprovider.te37 # MtpServer uses /dev/usb-ffs/mtp
42 # MtpServer sets sys.usb.ffs.mtp.ready
/system/core/fastboot/
Dusb_linux.cpp347 std::unique_ptr<usb_handle> usb; in find_usb_device() local
359 while ((de = readdir(busdir.get())) && (usb == nullptr)) { in find_usb_device()
378 usb.reset(new usb_handle()); in find_usb_device()
379 strcpy(usb->fname, devname); in find_usb_device()
380 usb->ep_in = in; in find_usb_device()
381 usb->ep_out = out; in find_usb_device()
382 usb->desc = fd; in find_usb_device()
387 usb.reset(); in find_usb_device()
396 return usb; in find_usb_device()
/system/core/usbd/
Dusbd.cpp30 using android::hardware::usb::gadget::V1_0::GadgetFunction;
31 using android::hardware::usb::gadget::V1_0::IUsbGadget;
Dusbd.rc5 group root usb system
DAndroid.bp11 "android.hardware.usb.gadget@1.0",
/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp131 std::unique_ptr<UsbTransport> usb(usb_open(matcher, USB_TIMEOUT)); in SetUp() local
132 if (usb) in SetUp()
134 new TransportSniffer(std::move(usb), serial_port)); in SetUp()
215 std::unique_ptr<UsbTransport> usb(usb_open(matcher, USB_TIMEOUT)); in ReconnectFastbootDevice() local
216 if (usb) { in ReconnectFastbootDevice()
218 new TransportSniffer(std::move(usb), serial_port)); in ReconnectFastbootDevice()
/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/30.0/public/
Dhal_usb_gadget.te7 # Configuring usb gadget functions
/system/sepolicy/public/
Dhal_usb_gadget.te7 # Configuring usb gadget functions
/system/sepolicy/prebuilts/api/29.0/public/
Dhal_usb_gadget.te7 # Configuring usb gadget functions
/system/sepolicy/prebuilts/api/28.0/public/
Dhal_usb_gadget.te8 # Configuring usb gadget functions

12345