Home
last modified time | relevance | path

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

/frameworks/base/services/usb/java/com/android/server/usb/
DUsbPortManager.java26 import android.hardware.usb.UsbPort;
78 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_HOST);
80 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_DEVICE);
82 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SINK, UsbPort.DATA_ROLE_HOST);
84 UsbPort.combineRolesAsBit(UsbPort.POWER_ROLE_SINK, UsbPort.DATA_ROLE_DEVICE);
152 public UsbPort[] getPorts() { in getPorts()
155 final UsbPort[] result = new UsbPort[count]; in getPorts()
185 + ", newPowerRole=" + UsbPort.powerRoleToString(newPowerRole) in setPortRoles()
186 + ", newDataRole=" + UsbPort.dataRoleToString(newDataRole)); in setPortRoles()
213 if (canChangeMode && newPowerRole == UsbPort.POWER_ROLE_SOURCE in setPortRoles()
[all …]
DUsbService.java33 import android.hardware.usb.UsbPort;
457 public UsbPort[] getPorts() { in getPorts()
484 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
556 powerRole = UsbPort.POWER_ROLE_SOURCE; in dump()
559 powerRole = UsbPort.POWER_ROLE_SINK; in dump()
571 dataRole = UsbPort.DATA_ROLE_HOST; in dump()
574 dataRole = UsbPort.DATA_ROLE_DEVICE; in dump()
599 supportedModes = UsbPort.MODE_UFP; in dump()
602 supportedModes = UsbPort.MODE_DFP; in dump()
605 supportedModes = UsbPort.MODE_DUAL; in dump()
[all …]
DUsbDeviceManager.java45 import android.hardware.usb.UsbPort;
315 UsbPort port = intent.getParcelableExtra(UsbManager.EXTRA_PORT); in UsbDeviceManager()
611 public void updateHostState(UsbPort port, UsbPortStatus status) { in updateHostState()
837 UsbPort port = (UsbPort) args.arg1; in handleMessage()
839 mHostConnected = status.getCurrentDataRole() == UsbPort.DATA_ROLE_HOST; in handleMessage()
840 mSourcePower = status.getCurrentPowerRole() == UsbPort.POWER_ROLE_SOURCE; in handleMessage()
841 mSinkPower = status.getCurrentPowerRole() == UsbPort.POWER_ROLE_SINK; in handleMessage()
843 (status.getCurrentMode() == UsbPort.MODE_AUDIO_ACCESSORY); in handleMessage()
844 mAudioAccessorySupported = port.isModeSupported(UsbPort.MODE_AUDIO_ACCESSORY); in handleMessage()
849 UsbPort.POWER_ROLE_SOURCE, UsbPort.DATA_ROLE_HOST) in handleMessage()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbPortStatus.java95 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0; in isRoleCombinationSupported()
106 + ", currentMode=" + UsbPort.modeToString(mCurrentMode) in toString()
107 + ", currentPowerRole=" + UsbPort.powerRoleToString(mCurrentPowerRole) in toString()
108 + ", currentDataRole=" + UsbPort.dataRoleToString(mCurrentDataRole) in toString()
110 + UsbPort.roleCombinationsToString(mSupportedRoleCombinations) in toString()
DUsbPort.java33 public final class UsbPort implements Parcelable { class
116 public UsbPort(String id, int supportedModes) { in UsbPort() method in UsbPort
291 public static final Parcelable.Creator<UsbPort> CREATOR =
292 new Parcelable.Creator<UsbPort>() {
294 public UsbPort createFromParcel(Parcel in) {
297 return new UsbPort(id, supportedModes);
301 public UsbPort[] newArray(int size) {
302 return new UsbPort[size];
DIUsbManager.aidl23 import android.hardware.usb.UsbPort;
126 UsbPort[] getPorts(); in getPorts()
DUsbPort.aidl19 parcelable UsbPort;
DUsbManager.java777 public UsbPort[] getPorts() { in getPorts()
796 public UsbPortStatus getPortStatus(UsbPort port) { in getPortStatus()
825 public void setPortRoles(UsbPort port, int powerRole, int dataRole) { in setPortRoles()
827 UsbPort.checkRoles(powerRole, dataRole); in setPortRoles()
/frameworks/base/core/java/com/android/internal/usb/
DDumpUtils.java19 import static android.hardware.usb.UsbPort.MODE_AUDIO_ACCESSORY;
20 import static android.hardware.usb.UsbPort.MODE_DEBUG_ACCESSORY;
21 import static android.hardware.usb.UsbPort.MODE_DFP;
22 import static android.hardware.usb.UsbPort.MODE_DUAL;
23 import static android.hardware.usb.UsbPort.MODE_NONE;
24 import static android.hardware.usb.UsbPort.MODE_UFP;
34 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()
[all …]
/frameworks/base/config/
Dhiddenapi-light-greylist.txt2641 Landroid/hardware/usb/UsbManager;->getPorts()[Landroid/hardware/usb/UsbPort;
2642 Landroid/hardware/usb/UsbManager;->getPortStatus(Landroid/hardware/usb/UsbPort;)Landroid/hardware/u…
2645 Landroid/hardware/usb/UsbManager;->setPortRoles(Landroid/hardware/usb/UsbPort;II)V
Dboot-image-profile.txt2849 HPLandroid/hardware/usb/IUsbManager$Stub$Proxy;->getPorts()[Landroid/hardware/usb/UsbPort;
2856 HPLandroid/hardware/usb/UsbManager;->getPortStatus(Landroid/hardware/usb/UsbPort;)Landroid/hardware…
2857 HPLandroid/hardware/usb/UsbManager;->getPorts()[Landroid/hardware/usb/UsbPort;
2858 HPLandroid/hardware/usb/UsbPort$1;->createFromParcel(Landroid/os/Parcel;)Landroid/hardware/usb/UsbP…
2859 HPLandroid/hardware/usb/UsbPort$1;->createFromParcel(Landroid/os/Parcel;)Ljava/lang/Object;
2860 HPLandroid/hardware/usb/UsbPort$1;->newArray(I)[Landroid/hardware/usb/UsbPort;
2861 HPLandroid/hardware/usb/UsbPort$1;->newArray(I)[Ljava/lang/Object;
2862 HPLandroid/hardware/usb/UsbPort;->writeToParcel(Landroid/os/Parcel;I)V
22354 HSPLandroid/hardware/usb/IUsbManager;->getPorts()[Landroid/hardware/usb/UsbPort;
22378 HSPLandroid/hardware/usb/UsbPort$1;-><init>()V
[all …]