Home
last modified time | relevance | path

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

12345

/packages/modules/adb/client/
Dusb_linux.cpp102 for (usb_handle* usb : g_usb_handles) { in is_known_device()
103 if (usb->path == dev_name) { in is_known_device()
105 usb->mark = true; in is_known_device()
115 for (usb_handle* usb : g_usb_handles) { in kick_disconnected_devices()
116 if (!usb->mark) { in kick_disconnected_devices()
117 usb_kick(usb); in kick_disconnected_devices()
119 usb->mark = false; in kick_disconnected_devices()
574 for (usb_handle* usb: g_usb_handles) { in register_device()
575 if (usb->path == dev_name) { in register_device()
582 std::unique_ptr<usb_handle> usb(new usb_handle); in register_device() local
[all …]
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;
27 import android.hardware.usb.UsbManager;
28 import android.hardware.usb.UsbPort;
29 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;
34 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;
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;
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;
/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;
DAoapSupportCheckService.java16 package com.google.android.car.usb.aoap.host;
19 import android.hardware.usb.UsbDevice;
/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/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DIncompatibleChargerDetectorTest.java24 import android.hardware.usb.UsbManager;
25 import android.hardware.usb.UsbPort;
26 import android.hardware.usb.UsbPortStatus;
/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;
/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/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;

12345