Searched refs:getCurrentDataRole (Results 1 – 8 of 8) sorted by relevance
135 when(mUsbPortStatus.getCurrentDataRole()).thenReturn(DATA_ROLE_DEVICE); in setPowerRole_allRolesSupported_shouldSetPowerRole()152 when(mUsbPortStatus.getCurrentDataRole()).thenReturn(DATA_ROLE_DEVICE); in setPowerRole_notAllRolesSupported_shouldSetDataAndPowerRole()
88 mDataRole = portStatus.getCurrentDataRole(); in onReceive()
115 return mPortStatus == null ? DATA_ROLE_NONE : mPortStatus.getCurrentDataRole(); in getDataRole()
282 public @UsbDataRole int getCurrentDataRole() { in getCurrentDataRole() method in UsbPortStatus
224 writeDataRole(dump, "data_role", UsbPortStatusProto.DATA_ROLE, status.getCurrentDataRole()); in writePortStatus()
421 final int currentDataRole = portInfo.mUsbPortStatus.getCurrentDataRole(); in setPortRoles()1222 || mUsbPortStatus.getCurrentDataRole() != currentDataRole in setStatus()1255 || mUsbPortStatus.getCurrentDataRole() != currentDataRole in setStatus()
919 mHostConnected = status.getCurrentDataRole() == DATA_ROLE_HOST; in handleMessage()
4508 method public int getCurrentDataRole();