Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java42 import android.hardware.usb.UsbPort;
100 UsbPort.combineRolesAsBit(POWER_ROLE_SOURCE, DATA_ROLE_HOST);
101 private static final int COMBO_SOURCE_DEVICE = UsbPort.combineRolesAsBit(
104 UsbPort.combineRolesAsBit(POWER_ROLE_SINK, DATA_ROLE_HOST);
105 private static final int COMBO_SINK_DEVICE = UsbPort.combineRolesAsBit(
289 public UsbPort[] getPorts() { in getPorts()
292 final UsbPort[] result = new UsbPort[count]; in getPorts()
362 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()
363 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles()
399 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()
[all …]
DUsbService.java42 import android.hardware.usb.UsbPort;
511 final UsbPort[] ports = mPortManager.getPorts(); in getPorts()
543 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
DUsbDeviceManager.java52 import android.hardware.usb.UsbPort;
586 public void updateHostState(UsbPort port, UsbPortStatus status) { in updateHostState()
830 UsbPort port = (UsbPort) args.arg1; in handleMessage()
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java297 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
328 + ", currentMode=" + UsbPort.modeToString(mCurrentMode) in toString()
329 + ", currentPowerRole=" + UsbPort.powerRoleToString(mCurrentPowerRole) in toString()
330 + ", currentDataRole=" + UsbPort.dataRoleToString(mCurrentDataRole) in toString()
332 + UsbPort.roleCombinationsToString(mSupportedRoleCombinations) in toString()
DParcelableUsbPort.java58 public static @NonNull ParcelableUsbPort of(@NonNull UsbPort port) { in of()
72 public @NonNull UsbPort getUsbPort(@NonNull UsbManager usbManager) { in getUsbPort()
73 return new UsbPort(usbManager, mId, mSupportedModes, mSupportedContaminantProtectionModes, in getUsbPort()
DUsbManager.java803 public @NonNull List<UsbPort> getPorts() { in getPorts()
820 ArrayList<UsbPort> ports = new ArrayList<>(numPorts); in getPorts()
834 UsbPortStatus getPortStatus(UsbPort port) { in getPortStatus()
847 void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles()
862 void enableContaminantDetection(@NonNull UsbPort port, boolean enable) { in enableContaminantDetection()
DUsbPort.java51 public final class UsbPort { class
66 public UsbPort(@NonNull UsbManager usbManager, @NonNull String id, int supportedModes, in UsbPort() method in UsbPort
172 UsbPort.checkRoles(powerRole, dataRole); in setRoles()
/frameworks/base/core/java/com/android/internal/usb/
DDumpUtils.java34 import android.hardware.usb.UsbPort;
144 long id, @NonNull UsbPort port) { in writePort()
175 dump.write("supported_modes", UsbPortProto.SUPPORTED_MODES, UsbPort.modeToString(mode)); in writePort()
186 dump.write(idName, id, UsbPort.powerRoleToString(powerRole)); in writePowerRole()
195 dump.write(idName, id, UsbPort.dataRoleToString(dataRole)); in writeDataRole()
205 UsbPort.contaminantPresenceStatusToString(contaminantPresenceStatus)); in writeContaminantPresenceStatus()
219 UsbPort.modeToString(status.getCurrentMode())); in writePortStatus()
/frameworks/base/packages/SystemUI/src/com/android/systemui/usb/
DUsbContaminantActivity.java23 import android.hardware.usb.UsbPort;
40 private UsbPort mUsbPort;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt26903 Landroid/hardware/usb/IUsbManager$Stub$Proxy;->getPorts()[Landroid/hardware/usb/UsbPort;
26964 Landroid/hardware/usb/IUsbManager;->getPorts()[Landroid/hardware/usb/UsbPort;
27099 Landroid/hardware/usb/UsbPort;
27100 Landroid/hardware/usb/UsbPort;-><init>(Ljava/lang/String;I)V
27101 Landroid/hardware/usb/UsbPort;->checkDataRole(I)V
27102 Landroid/hardware/usb/UsbPort;->checkMode(I)V
27103 Landroid/hardware/usb/UsbPort;->checkPowerRole(I)V
27104 Landroid/hardware/usb/UsbPort;->checkRoles(II)V
27105 Landroid/hardware/usb/UsbPort;->combineRolesAsBit(II)I
27106 Landroid/hardware/usb/UsbPort;->CREATOR:Landroid/os/Parcelable$Creator;
[all …]
Dpreloaded-classes1673 android.hardware.usb.UsbPort
Dboot-image-profile.txt7607 …usb/ParcelableUsbPort;->getUsbPort(Landroid/hardware/usb/UsbManager;)Landroid/hardware/usb/UsbPort;
7608 HSPLandroid/hardware/usb/ParcelableUsbPort;->of(Landroid/hardware/usb/UsbPort;)Landroid/hardware/us…
7614 HSPLandroid/hardware/usb/UsbPort;-><init>(Landroid/hardware/usb/UsbManager;Ljava/lang/String;IIZZ)V
7615 HSPLandroid/hardware/usb/UsbPort;->combineRolesAsBit(II)I
7616 HSPLandroid/hardware/usb/UsbPort;->modeToString(I)Ljava/lang/String;
7617 HSPLandroid/hardware/usb/UsbPort;->roleCombinationsToString(I)Ljava/lang/String;
7618 HSPLandroid/hardware/usb/UsbPort;->toString()Ljava/lang/String;
33951 Landroid/hardware/usb/UsbPort;
/frameworks/base/api/
Dsystem-current.txt3030 …oid.Manifest.permission.MANAGE_USB) public java.util.List<android.hardware.usb.UsbPort> getPorts();
3035 public final class UsbPort {
/frameworks/base/services/
Dart-profile13922 …/usb/UsbDeviceManager$UsbHandler;->updateHostState(Landroid/hardware/usb/UsbPort;Landroid/hardware…
13978 HSPLcom/android/server/usb/UsbPortManager;->getPorts()[Landroid/hardware/usb/UsbPort;