HomeSort by relevance Sort by last modified time
    Searched refs:dataRole (Results 1 - 7 of 7) sorted by null

  /frameworks/base/core/java/android/hardware/usb/
UsbPort.java 123 * @param dataRole The desired data role: {@link UsbPort#DATA_ROLE_HOST}
127 public static int combineRolesAsBit(int powerRole, int dataRole) {
128 checkRoles(powerRole, dataRole);
129 final int index = powerRole * NUM_DATA_ROLES + dataRole;
187 final int dataRole = index % NUM_DATA_ROLES;
195 result.append(dataRoleToString(dataRole));
203 public static void checkRoles(int powerRole, int dataRole) {
205 Preconditions.checkArgumentInRange(dataRole, 0, DATA_ROLE_DEVICE, "dataRole");
UsbPortStatus.java 90 * @param dataRole The data role to check: either {@link UsbPort#DATA_ROLE_HOST}
93 public boolean isRoleCombinationSupported(int powerRole, int dataRole) {
95 UsbPort.combineRolesAsBit(powerRole, dataRole)) != 0;
IUsbManager.aidl 118 void setPortRoles(in String portId, int powerRole, int dataRole);
UsbManager.java 618 * @param dataRole The desired data role: {@link UsbPort#DATA_ROLE_HOST}
623 public void setPortRoles(UsbPort port, int powerRole, int dataRole) {
625 UsbPort.checkRoles(powerRole, dataRole);
628 mService.setPortRoles(port.getId(), powerRole, dataRole);
  /frameworks/base/services/usb/java/com/android/server/usb/
UsbService.java 372 public void setPortRoles(String portId, int powerRole, int dataRole) {
374 UsbPort.checkRoles(powerRole, dataRole);
380 mPortManager.setPortRoles(portId, powerRole, dataRole, null);
435 final int dataRole;
438 dataRole = UsbPort.DATA_ROLE_HOST;
441 dataRole = UsbPort.DATA_ROLE_DEVICE;
444 dataRole = 0;
451 mPortManager.setPortRoles(portId, powerRole, dataRole, pw);
513 final int dataRole;
517 dataRole = UsbPort.DATA_ROLE_HOST
    [all...]
UsbPortManager.java 299 int dataRole, boolean canChangeDataRole, IndentingPrintWriter pw) {
307 if (mode == 0 || powerRole == 0 || dataRole == 0) {
323 + ", dataRole=" + UsbPort.dataRoleToString(dataRole)
329 portInfo.mCurrentDataRole = dataRole;
    [all...]
  /packages/apps/Settings/src/com/android/settings/deviceinfo/
UsbBackend.java 128 int dataRole = (mode & MODE_DATA_MASK) == MODE_DATA_NONE
131 mUsbManager.setPortRoles(mPort, powerRole, dataRole);

Completed in 172 milliseconds