/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
H A D | UsbDetailsDataRoleControllerTest.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 101 DATA_ROLE_DEVICE); in displayRefresh_deviceRole_shouldCheckDevice() 103 final RadioButtonPreference devicePref = getRadioPreference(DATA_ROLE_DEVICE); in displayRefresh_deviceRole_shouldCheckDevice() 116 final RadioButtonPreference devicePref = getRadioPreference(DATA_ROLE_DEVICE); in displayRefresh_hostRole_shouldCheckHost() 127 DATA_ROLE_DEVICE); in displayRefresh_disconnected_shouldDisable() 140 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDevice_hostEnabled_shouldSetDevice() 156 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDeviceTwice_hostEnabled_shouldSetDeviceOnce() 167 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDeviceAndRefresh_success_shouldClearSubtext() 173 POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onClickDeviceAndRefresh_success_shouldClearSubtext() 185 verify(mUsbBackend).setDataRole(DATA_ROLE_DEVICE); in onClickDeviceAndRefresh_failed_shouldShowFailureText() [all …]
|
H A D | UsbBackendTest.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 84 .isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_DEVICE)) in setDataRole_allRolesSupported_shouldSetDataRole() 90 .isRoleCombinationSupported(POWER_ROLE_SOURCE, DATA_ROLE_DEVICE)) in setDataRole_allRolesSupported_shouldSetDataRole() 107 .isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_DEVICE)) in setDataRole_notAllRolesSupported_shouldSetDataAndPowerRole() 124 .isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_DEVICE)) in setPowerRole_allRolesSupported_shouldSetPowerRole() 130 .isRoleCombinationSupported(POWER_ROLE_SOURCE, DATA_ROLE_DEVICE)) in setPowerRole_allRolesSupported_shouldSetPowerRole() 135 when(mUsbPortStatus.getCurrentDataRole()).thenReturn(DATA_ROLE_DEVICE); in setPowerRole_allRolesSupported_shouldSetPowerRole() 139 verify(mUsbPort).setRoles(POWER_ROLE_SOURCE, DATA_ROLE_DEVICE); in setPowerRole_allRolesSupported_shouldSetPowerRole() 147 .isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_DEVICE)) in setPowerRole_notAllRolesSupported_shouldSetDataAndPowerRole() 152 when(mUsbPortStatus.getCurrentDataRole()).thenReturn(DATA_ROLE_DEVICE); in setPowerRole_notAllRolesSupported_shouldSetDataAndPowerRole()
|
H A D | UsbDefaultFragmentTest.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 207 UsbManager.FUNCTION_RNDIS, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedRndis_shouldSetRndis() 219 UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedNone_shouldSetNone() 231 UsbManager.FUNCTION_MTP, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedMtp_shouldSetMtp() 243 UsbManager.FUNCTION_PTP, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedPtp_shouldSetPtp() 255 UsbManager.FUNCTION_MIDI, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedMidi_shouldSetMidi() 267 UsbManager.FUNCTION_NCM, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedNcm_setsNcm() 280 UsbManager.FUNCTION_RNDIS, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in usbIsPluginAndUsbTetheringIsOn_startTetheringIsInvoked() 282 UsbManager.FUNCTION_RNDIS, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in usbIsPluginAndUsbTetheringIsOn_startTetheringIsInvoked() 294 UsbManager.FUNCTION_NCM, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in usbIsPluginAndUsbTetheringIsOn_receivedNcm_startsTethering() [all …]
|
H A D | UsbDetailsFunctionsControllerTest.java | 111 DATA_ROLE_DEVICE); in displayRefresh_allAllowed_shouldCreatePrefs() 137 DATA_ROLE_DEVICE); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() 149 DATA_ROLE_DEVICE); in displayRefresh_mtpEnabled_shouldCheckSwitches() 162 DATA_ROLE_DEVICE); in displayRefresh_accessoryEnabled_shouldCheckSwitches() 175 DATA_ROLE_DEVICE); in displayRefresh_ncmEnabled_checksSwitches() 188 DATA_ROLE_DEVICE); in onClickMtp_noneEnabled_shouldEnableMtp() 197 DATA_ROLE_DEVICE); in onClickMtp_noneEnabled_shouldEnableMtp() 206 DATA_ROLE_DEVICE); in onClickMtp_ptpEnabled_shouldEnableMtp() 215 DATA_ROLE_DEVICE); in onClickMtp_ptpEnabled_shouldEnableMtp() 227 DATA_ROLE_DEVICE); in onClickNone_mtpEnabled_shouldDisableMtp() [all …]
|
H A D | UsbDetailsPowerRoleControllerTest.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 105 DATA_ROLE_DEVICE); in displayRefresh_sink_shouldUncheck() 129 POWER_ROLE_SINK, DATA_ROLE_DEVICE); in displayRefresh_disconnected_shouldDisable() 142 DATA_ROLE_DEVICE); in displayRefresh_notSupported_shouldRemove() 189 POWER_ROLE_SOURCE, DATA_ROLE_DEVICE); in onClickDeviceAndRefresh_success_shouldClearSubtext() 207 POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onClickDeviceAndRefresh_failed_shouldShowFailureText()
|
H A D | UsbConnectionBroadcastReceiverTest.java | 20 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 120 DATA_ROLE_DEVICE, 0, CONTAMINANT_PROTECTION_NONE, in onReceive_usbPortStatus_invokeCallback() 127 POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onReceive_usbPortStatus_invokeCallback()
|
H A D | ConnectedUsbDeviceUpdaterTest.java | 18 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 100 UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in initUsbPreference_usbConnected_preferenceAdded()
|
H A D | UsbDetailsHeaderControllerTest.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 108 DATA_ROLE_DEVICE); in displayRefresh_charging_shouldSetHeader()
|
/aosp12/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
H A D | UsbBackend.java | 18 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 123 newDataRole = DATA_ROLE_DEVICE; in setPowerRole() 141 case DATA_ROLE_DEVICE: in setDataRole() 158 && mPortStatus.isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_DEVICE) in areAllRolesSupported() 160 && mPortStatus.isRoleCombinationSupported(POWER_ROLE_SOURCE, DATA_ROLE_DEVICE) in areAllRolesSupported()
|
H A D | UsbDetailsDataRoleController.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 63 mDevicePref = makeRadioPreference(UsbBackend.dataRoleToString(DATA_ROLE_DEVICE), in displayPreference() 69 if (dataRole == DATA_ROLE_DEVICE) { in refresh()
|
H A D | UsbDetailsTranscodeMtpController.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 94 return dataRole == DATA_ROLE_DEVICE && ((functions & UsbManager.FUNCTION_MTP) != 0 in isDeviceInFileTransferMode()
|
H A D | ConnectedUsbDeviceUpdater.java | 18 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 60 mUsbPreference.setSummary(getSummary(dataRole == DATA_ROLE_DEVICE
|
H A D | UsbDetailsFunctionsController.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 105 if (!connected || dataRole != DATA_ROLE_DEVICE) { in refresh()
|
/aosp12/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbPort.java | 23 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 253 case DATA_ROLE_DEVICE: in dataRoleToString() 323 Preconditions.checkArgumentInRange(dataRole, DATA_ROLE_NONE, DATA_ROLE_DEVICE, "dataRole"); in checkRoles()
|
H A D | UsbPortStatus.java | 82 public static final int DATA_ROLE_DEVICE = Constants.PortDataRole.DEVICE; field in UsbPortStatus 87 DATA_ROLE_DEVICE
|
/aosp12/frameworks/base/services/usb/java/com/android/server/usb/ |
H A D | UsbPortManager.java | 21 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 103 POWER_ROLE_SOURCE, DATA_ROLE_DEVICE); 107 POWER_ROLE_SINK, DATA_ROLE_DEVICE); 447 && newDataRole == DATA_ROLE_DEVICE) { in setPortRoles() 958 currentPowerRole, DATA_ROLE_DEVICE); in addOrUpdatePortLocked()
|
H A D | UsbService.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 859 dataRole = DATA_ROLE_DEVICE; in dump() 940 dataRole = DATA_ROLE_DEVICE; in dump()
|
H A D | UsbDeviceManager.java | 19 import static android.hardware.usb.UsbPortStatus.DATA_ROLE_DEVICE; 931 DATA_ROLE_DEVICE) in handleMessage() 932 … && status.isRoleCombinationSupported(POWER_ROLE_SINK, DATA_ROLE_DEVICE); in handleMessage()
|
/aosp12/frameworks/base/core/proto/android/service/ |
H A D | usb.proto | 247 DATA_ROLE_DEVICE = 2; enumerator
|
/aosp12/frameworks/base/core/api/ |
H A D | system-current.txt | 4516 field public static final int DATA_ROLE_DEVICE = 2; // 0x2
|
/aosp12/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 25326 Landroid/hardware/usb/UsbPort;->DATA_ROLE_DEVICE:I
|