Home
last modified time | relevance | path

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

1234

/packages/modules/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()
561 for (usb_handle* usb: g_usb_handles) { in register_device()
562 if (usb->path == dev_name) { in register_device()
569 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.cpp80 for (auto& usb : g_usb_handles) { in IsKnownDevice() local
81 if (usb->devpath == devpath) { in IsKnownDevice()
83 usb->mark = true; in IsKnownDevice()
94 for (auto& usb : g_usb_handles) { in KickDisconnectedDevices() local
95 if (!usb->mark) { in KickDisconnectedDevices()
96 usb_kick_locked(usb.get()); in KickDisconnectedDevices()
98 usb->mark = false; in KickDisconnectedDevices()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbBackend.java16 package com.android.settings.connecteddevice.usb;
18 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
19 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE;
20 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SOURCE;
21 import static android.service.usb.UsbPortStatusProto.DATA_ROLE_HOST;
22 import static android.service.usb.UsbPortStatusProto.DATA_ROLE_NONE;
23 import static android.service.usb.UsbPortStatusProto.POWER_ROLE_SINK;
28 import android.hardware.usb.UsbManager;
29 import android.hardware.usb.UsbPort;
30 import android.hardware.usb.UsbPortStatus;
DConnectedUsbDeviceUpdater.java16 package com.android.settings.connecteddevice.usb;
18 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
19 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
20 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SOURCE;
25 import android.hardware.usb.UsbManager;
DUsbDetailsPowerRoleController.java17 package com.android.settings.connecteddevice.usb;
19 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE;
20 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
21 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SOURCE;
DUsbDetailsDataRoleController.java17 package com.android.settings.connecteddevice.usb;
19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
20 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_HOST;
21 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_NONE;
DUsbDetailsTranscodeMtpController.java17 package com.android.settings.connecteddevice.usb;
19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
22 import android.hardware.usb.UsbManager;
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbConnectionBroadcastReceiverTest.java16 package com.android.settings.connecteddevice.usb;
18 import static android.hardware.usb.UsbPortStatus.CONTAMINANT_DETECTION_NOT_SUPPORTED;
19 import static android.hardware.usb.UsbPortStatus.CONTAMINANT_PROTECTION_NONE;
20 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
21 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_NONE;
22 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE;
23 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
31 import android.hardware.usb.UsbManager;
32 import android.hardware.usb.UsbPortStatus;
DUsbBackendTest.java17 package com.android.settings.connecteddevice.usb;
19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
20 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_HOST;
21 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
22 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SOURCE;
34 import android.hardware.usb.UsbManager;
35 import android.hardware.usb.UsbPort;
36 import android.hardware.usb.UsbPortStatus;
DConnectedUsbDeviceUpdaterTest.java16 package com.android.settings.connecteddevice.usb;
18 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_NONE;
20 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE;
21 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
34 import android.hardware.usb.UsbManager;
DUsbDetailsPowerRoleControllerTest.java17 package com.android.settings.connecteddevice.usb;
19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
20 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_HOST;
21 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_NONE;
22 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE;
23 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
24 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SOURCE;
34 import android.hardware.usb.UsbManager;
DUsbDetailsDataRoleControllerTest.java17 package com.android.settings.connecteddevice.usb;
19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
20 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_HOST;
21 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_NONE;
22 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE;
23 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
32 import android.hardware.usb.UsbManager;
DUsbDetailsHeaderControllerTest.java17 package com.android.settings.connecteddevice.usb;
19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE;
20 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_SINK;
28 import android.hardware.usb.UsbManager;
29 import android.hardware.usb.UsbPort;
DUsbDetailsTranscodeMtpControllerTest.java17 package com.android.settings.connecteddevice.usb;
19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_NONE;
20 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE;
27 import android.hardware.usb.UsbManager;
/packages/services/Car/tests/usb/AoapHostApp/src/com/google/android/car/usb/aoap/host/
DSpeedMeasurementController.java16 package com.google.android.car.usb.aoap.host;
19 import android.hardware.usb.UsbConstants;
20 import android.hardware.usb.UsbDevice;
21 import android.hardware.usb.UsbDeviceConnection;
22 import android.hardware.usb.UsbEndpoint;
23 import android.hardware.usb.UsbInterface;
24 import android.hardware.usb.UsbRequest;
DUsbAoapHostActivity.java16 package com.google.android.car.usb.aoap.host;
23 import android.hardware.usb.UsbDevice;
24 import android.hardware.usb.UsbDeviceConnection;
25 import android.hardware.usb.UsbManager;
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DMtpClient.java25 import android.hardware.usb.UsbConstants;
26 import android.hardware.usb.UsbDevice;
27 import android.hardware.usb.UsbDeviceConnection;
28 import android.hardware.usb.UsbInterface;
29 import android.hardware.usb.UsbManager;
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/
DUsbUtil.java16 package android.car.usb.handler;
20 import android.hardware.usb.UsbDevice;
21 import android.hardware.usb.UsbDeviceConnection;
22 import android.hardware.usb.UsbManager;
DBootUsbScanner.java1 package android.car.usb.handler;
6 import android.hardware.usb.UsbDevice;
7 import android.hardware.usb.UsbManager;
DAoapInterface.java14 package android.car.usb.handler;
17 import android.hardware.usb.UsbConstants;
18 import android.hardware.usb.UsbDevice;
19 import android.hardware.usb.UsbDeviceConnection;
DBootUsbService.java16 package android.car.usb.handler;
24 import android.hardware.usb.UsbDevice;
25 import android.hardware.usb.UsbManager;
/packages/apps/Gallery2/src/com/android/gallery3d/data/
DMtpClient.java25 import android.hardware.usb.UsbConstants;
26 import android.hardware.usb.UsbDevice;
27 import android.hardware.usb.UsbDeviceConnection;
28 import android.hardware.usb.UsbInterface;
29 import android.hardware.usb.UsbManager;
/packages/services/Mtp/src/com/android/mtp/
DMtpManager.java21 import android.hardware.usb.UsbConstants;
22 import android.hardware.usb.UsbDevice;
23 import android.hardware.usb.UsbDeviceConnection;
24 import android.hardware.usb.UsbInterface;
25 import android.hardware.usb.UsbManager;
/packages/services/Mtp/tests/src/com/android/mtp/
DTestUtil.java19 import android.hardware.usb.UsbDevice;
20 import android.hardware.usb.UsbDeviceConnection;
21 import android.hardware.usb.UsbManager;

1234