Home
last modified time | relevance | path

Searched refs:UsbPort (Results 1 – 25 of 27) sorted by relevance

12

/frameworks/base/core/java/android/hardware/usb/
DUsbOperationInternal.java21 import android.hardware.usb.UsbPort;
116 mResult = UsbPort.RESET_USB_PORT_SUCCESS; in onOperationComplete()
119 mResult = UsbPort.RESET_USB_PORT_ERROR_INTERNAL; in onOperationComplete()
122 mResult = UsbPort.RESET_USB_PORT_ERROR_NOT_SUPPORTED; in onOperationComplete()
125 mResult = UsbPort.RESET_USB_PORT_ERROR_PORT_MISMATCH; in onOperationComplete()
128 mResult = UsbPort.RESET_USB_PORT_ERROR_OTHER; in onOperationComplete()
DUsbPortStatus.java576 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
692 + ", currentMode=" + UsbPort.modeToString(mCurrentMode) in toString()
693 + ", currentPowerRole=" + UsbPort.powerRoleToString(mCurrentPowerRole) in toString()
694 + ", currentDataRole=" + UsbPort.dataRoleToString(mCurrentDataRole) in toString()
696 + UsbPort.roleCombinationsToString(mSupportedRoleCombinations) in toString()
702 + UsbPort.usbDataStatusToString(getUsbDataStatus()) in toString()
706 + UsbPort in toString()
709 + UsbPort.complianceWarningsToString(getComplianceWarnings()) in toString()
DParcelableUsbPort.java65 public static @NonNull ParcelableUsbPort of(@NonNull UsbPort port) { in of()
81 public @NonNull UsbPort getUsbPort(@NonNull UsbManager usbManager) { in getUsbPort()
82 return new UsbPort(usbManager, mId, mSupportedModes, mSupportedContaminantProtectionModes, in getUsbPort()
DUsbPort.java96 public final class UsbPort { class
281 public UsbPort(@NonNull UsbManager usbManager, @NonNull String id, int supportedModes, in UsbPort() method in UsbPort
292 public UsbPort(@NonNull UsbManager usbManager, @NonNull String id, int supportedModes, in UsbPort() method in UsbPort
451 UsbPort.checkRoles(powerRole, dataRole); in setRoles()
/frameworks/base/tests/UsbManagerTests/src/android/hardware/usb/
DUsbPortStatusTest.java82 int result = UsbPort.combineRolesAsBit(POWER_ROLE_NONE, DATA_ROLE_NONE); in getSupportedRoleCombinations()
85 result |= UsbPort.combineRolesAsBit(POWER_ROLE_SINK, DATA_ROLE_DEVICE); in getSupportedRoleCombinations()
88 result |= UsbPort.combineRolesAsBit(POWER_ROLE_SINK, DATA_ROLE_HOST); in getSupportedRoleCombinations()
91 result |= UsbPort.combineRolesAsBit(POWER_ROLE_SOURCE, DATA_ROLE_DEVICE); in getSupportedRoleCombinations()
94 result |= UsbPort.combineRolesAsBit(POWER_ROLE_SOURCE, DATA_ROLE_HOST); in getSupportedRoleCombinations()
DUsbPortTest.java66 UsbPort usbPort = new UsbPort( in testIsModeSupported()
/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java53 import android.hardware.usb.UsbPort;
122 UsbPort.combineRolesAsBit(POWER_ROLE_SOURCE, DATA_ROLE_HOST);
123 private static final int COMBO_SOURCE_DEVICE = UsbPort.combineRolesAsBit(
126 UsbPort.combineRolesAsBit(POWER_ROLE_SINK, DATA_ROLE_HOST);
127 private static final int COMBO_SINK_DEVICE = UsbPort.combineRolesAsBit(
303 public UsbPort[] getPorts() { in getPorts()
306 final UsbPort[] result = new UsbPort[count]; in getPorts()
586 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()
587 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles()
623 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()
[all …]
DUsbService.java47 import android.hardware.usb.UsbPort;
790 final UsbPort[] ports = mPortManager.getPorts(); in getPorts()
836 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
1337 for (UsbPort p : mPortManager.getPorts()) { in dump()
1493 for (UsbPort port: mPortManager.getPorts()) { in onStrongAuthRequiredChanged()
DUsbDeviceManager.java55 import android.hardware.usb.UsbPort;
765 public void updateHostState(UsbPort port, UsbPortStatus status) { in updateHostState()
1151 UsbPort port = (UsbPort) args.arg1; in handleMessage()
/frameworks/base/core/java/com/android/internal/usb/
DDumpUtils.java19 import static android.hardware.usb.UsbPort.FLAG_ALT_MODE_TYPE_DISPLAYPORT;
36 import android.hardware.usb.UsbPort;
146 long id, @NonNull UsbPort port) { in writePort()
177 dump.write("supported_modes", UsbPortProto.SUPPORTED_MODES, UsbPort.modeToString(mode)); in writePort()
195 dump.write(idName, id, UsbPort.powerRoleToString(powerRole)); in writePowerRole()
204 dump.write(idName, id, UsbPort.dataRoleToString(dataRole)); in writeDataRole()
214 UsbPort.contaminantPresenceStatusToString(contaminantPresenceStatus)); in writeContaminantPresenceStatus()
228 UsbPort.modeToString(status.getCurrentMode())); in writePortStatus()
257 UsbPort.usbDataStatusToString(status.getUsbDataStatus())); in writePortStatus()
261 UsbPort.powerBrickConnectionStatusToString(status.getPowerBrickConnectionStatus())); in writePortStatus()
[all …]
/frameworks/base/cmds/svc/src/com/android/commands/svc/
DUsbCommand.java23 import android.hardware.usb.UsbPort;
171 UsbPort port = null; in run()
173 List<UsbPort> ports = usbManager.getPorts(); in run()
/frameworks/base/services/usb/java/com/android/server/usb/hal/port/
DRawPortInfo.java18 import android.hardware.usb.UsbPort;
159 if ((supportedAltModes & UsbPort.FLAG_ALT_MODE_TYPE_DISPLAYPORT) != 0) { in writeToParcel()
190 if ((supportedAltModes & UsbPort.FLAG_ALT_MODE_TYPE_DISPLAYPORT) != 0) {
DUsbPortHidl.java47 import android.hardware.usb.UsbPort;
253 + ", newMode=" + UsbPort.modeToString(newRole.role), e); in switchMode()
274 + ", newPowerRole=" + UsbPort.powerRoleToString(newRole.role), e); in switchPowerRole()
316 + ", newDataRole=" + UsbPort.dataRoleToString(newRole.role), e); in switchDataRole()
DUsbPortAidl.java30 import android.hardware.usb.UsbPort;
244 + ", newMode=" + UsbPort.modeToString(newMode) in switchMode()
266 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in switchPowerRole()
287 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole) in switchDataRole()
623 supportedAltModesInt |= UsbPort.FLAG_ALT_MODE_TYPE_DISPLAYPORT; in toSupportedAltModesInt()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbContaminantActivity.java23 import android.hardware.usb.UsbPort;
40 private UsbPort mUsbPort;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DBatteryControllerTest.java33 import android.hardware.usb.UsbPort;
76 @Mock private UsbPort mUsbPort;
312 final List<UsbPort> usbPorts = new ArrayList<>(); in setupIncompatibleCharging()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DUtilsTest.java32 import android.hardware.usb.UsbPort;
81 @Mock private UsbPort mUsbPort;
456 final List<UsbPort> usbPorts = new ArrayList<>(); in containsIncompatibleChargers_nullPortStatus_returnFalse()
549 final List<UsbPort> usbPorts = new ArrayList<>(); in setupIncompatibleCharging()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DUtils.java27 import android.hardware.usb.UsbPort;
772 final List<UsbPort> usbPortList = usbManager.getPorts(); in containsIncompatibleChargers()
776 for (UsbPort usbPort : usbPortList) { in containsIncompatibleChargers()
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DKeyguardUpdateMonitorTest.java93 import android.hardware.usb.UsbPort;
267 private UsbPort mUsbPort;
2378 final List<UsbPort> usbPorts = new ArrayList<>(); in setupIncompatibleCharging()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt22246 Landroid/hardware/usb/IUsbManager$Stub$Proxy;->getPorts()[Landroid/hardware/usb/UsbPort;
22305 Landroid/hardware/usb/IUsbManager;->getPorts()[Landroid/hardware/usb/UsbPort;
22440 Landroid/hardware/usb/UsbPort;-><init>(Ljava/lang/String;I)V
22441 Landroid/hardware/usb/UsbPort;->checkDataRole(I)V
22442 Landroid/hardware/usb/UsbPort;->checkMode(I)V
22443 Landroid/hardware/usb/UsbPort;->checkPowerRole(I)V
22444 Landroid/hardware/usb/UsbPort;->checkRoles(II)V
22445 Landroid/hardware/usb/UsbPort;->combineRolesAsBit(II)I
22446 Landroid/hardware/usb/UsbPort;->CREATOR:Landroid/os/Parcelable$Creator;
22447 Landroid/hardware/usb/UsbPort;->dataRoleToString(I)Ljava/lang/String;
[all …]
/frameworks/base/core/api/
Dtest-current.txt1895 public final class UsbPort {
Dsystem-current.txt6792 …oid.Manifest.permission.MANAGE_USB) public java.util.List<android.hardware.usb.UsbPort> getPorts();
6827 public final class UsbPort {
/frameworks/base/boot/
Dpreloaded-classes3397 android.hardware.usb.UsbPort
Dboot-image-profile.txt8387 …usb/ParcelableUsbPort;->getUsbPort(Landroid/hardware/usb/UsbManager;)Landroid/hardware/usb/UsbPort;
8390 HSPLandroid/hardware/usb/UsbPort;->getId()Ljava/lang/String;
25784 Landroid/hardware/usb/UsbPort;
/frameworks/base/config/
Dpreloaded-classes3401 android.hardware.usb.UsbPort

12