Home
last modified time | relevance | path

Searched refs:UsbPort (Results 1 – 15 of 15) 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;
514 final UsbPort[] ports = mPortManager.getPorts(); in getPorts()
546 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
DUsbDeviceManager.java53 import android.hardware.usb.UsbPort;
587 public void updateHostState(UsbPort port, UsbPortStatus status) { in updateHostState()
833 UsbPort port = (UsbPort) args.arg1; in handleMessage()
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java298 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
330 + ", currentMode=" + UsbPort.modeToString(mCurrentMode) in toString()
331 + ", currentPowerRole=" + UsbPort.powerRoleToString(mCurrentPowerRole) in toString()
332 + ", currentDataRole=" + UsbPort.dataRoleToString(mCurrentDataRole) in toString()
334 + 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()
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()
DUsbManager.java849 public @NonNull List<UsbPort> getPorts() { in getPorts()
866 ArrayList<UsbPort> ports = new ArrayList<>(numPorts); in getPorts()
880 UsbPortStatus getPortStatus(UsbPort port) { in getPortStatus()
893 void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles()
908 void enableContaminantDetection(@NonNull UsbPort port, boolean enable) { in enableContaminantDetection()
/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.txt25133 Landroid/hardware/usb/IUsbManager$Stub$Proxy;->getPorts()[Landroid/hardware/usb/UsbPort;
25192 Landroid/hardware/usb/IUsbManager;->getPorts()[Landroid/hardware/usb/UsbPort;
25327 Landroid/hardware/usb/UsbPort;-><init>(Ljava/lang/String;I)V
25328 Landroid/hardware/usb/UsbPort;->checkDataRole(I)V
25329 Landroid/hardware/usb/UsbPort;->checkMode(I)V
25330 Landroid/hardware/usb/UsbPort;->checkPowerRole(I)V
25331 Landroid/hardware/usb/UsbPort;->checkRoles(II)V
25332 Landroid/hardware/usb/UsbPort;->combineRolesAsBit(II)I
25333 Landroid/hardware/usb/UsbPort;->CREATOR:Landroid/os/Parcelable$Creator;
25334 Landroid/hardware/usb/UsbPort;->dataRoleToString(I)Ljava/lang/String;
[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;
33950 Landroid/hardware/usb/UsbPort;
/frameworks/base/api/
Dsystem-current.txt3269 …oid.Manifest.permission.MANAGE_USB) public java.util.List<android.hardware.usb.UsbPort> getPorts();
3289 public final class UsbPort {
/frameworks/base/non-updatable-api/
Dsystem-current.txt3269 …oid.Manifest.permission.MANAGE_USB) public java.util.List<android.hardware.usb.UsbPort> getPorts();
3289 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;