Home
last modified time | relevance | path

Searched refs:dataRole (Results 1 – 10 of 10) sorted by relevance

/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDetailsDataRoleController.java68 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
69 if (dataRole == DATA_ROLE_DEVICE) { in refresh()
73 } else if (dataRole == DATA_ROLE_HOST) { in refresh()
77 } else if (!connected || dataRole == DATA_ROLE_NONE) { in refresh()
86 if (mNextRolePref != null && dataRole != DATA_ROLE_NONE) { in refresh()
87 if (UsbBackend.dataRoleFromString(mNextRolePref.getKey()) == dataRole) { in refresh()
DUsbDetailsTranscodeMtpController.java63 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
73 connected && isDeviceInFileTransferMode(functions, dataRole)); in refresh()
93 private static boolean isDeviceInFileTransferMode(long functions, int dataRole) { in isDeviceInFileTransferMode() argument
94 return dataRole == DATA_ROLE_DEVICE && ((functions & UsbManager.FUNCTION_MTP) != 0 in isDeviceInFileTransferMode()
DUsbDetailsFunctionsController.java100 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
103 + ", powerRole : " + powerRole + ", dataRole : " + dataRole); in refresh()
105 if (!connected || dataRole != DATA_ROLE_DEVICE) { in refresh()
DUsbDetailsFragment.java53 (connected, functions, powerRole, dataRole) -> {
55 controller.refresh(connected, functions, powerRole, dataRole);
DConnectedUsbDeviceUpdater.java58 (connected, functions, powerRole, dataRole) -> {
60 mUsbPreference.setSummary(getSummary(dataRole == DATA_ROLE_DEVICE
DUsbDetailsController.java63 protected abstract void refresh(boolean connected, long functions, int powerRole, int dataRole); in refresh() argument
DUsbDetailsHeaderController.java50 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
DUsbDetailsPowerRoleController.java69 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
DUsbConnectionBroadcastReceiver.java138 void onUsbConnectionChanged(boolean connected, long functions, int powerRole, int dataRole); in onUsbConnectionChanged() argument
DUsbDefaultFragment.java72 (connected, functions, powerRole, dataRole) -> {