/aosp12/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
H A D | UsbDetailsPowerRoleController.java | 19 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE; 46 if (mNextPowerRole != POWER_ROLE_NONE) { 48 mNextPowerRole = POWER_ROLE_NONE; 55 mNextPowerRole = POWER_ROLE_NONE; in UsbDetailsPowerRoleController() 82 } else if (!connected || powerRole == POWER_ROLE_NONE) { in refresh() 84 if (mNextPowerRole == POWER_ROLE_NONE) { in refresh() 89 if (mNextPowerRole != POWER_ROLE_NONE in refresh() 90 && powerRole != POWER_ROLE_NONE) { in refresh() 98 mNextPowerRole = POWER_ROLE_NONE; in refresh() 107 if (mUsbBackend.getPowerRole() != newRole && mNextPowerRole == POWER_ROLE_NONE in onPreferenceClick()
|
H A D | UsbBackend.java | 19 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE; 110 return mPortStatus == null ? POWER_ROLE_NONE : mPortStatus.getCurrentPowerRole(); in getPowerRole() 148 newPowerRole = POWER_ROLE_NONE; in setDataRole()
|
H A D | UsbConnectionBroadcastReceiver.java | 52 mPowerRole = UsbPortStatus.POWER_ROLE_NONE; in UsbConnectionBroadcastReceiver()
|
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
H A D | UsbDetailsTranscodeMtpControllerTest.java | 20 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE; 90 mUnderTest.refresh(false /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_noUsbConnection_shouldDisablePrefCategory() 101 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_NONE, POWER_ROLE_NONE, in displayRefresh_noDataTransfer_shouldDisablePrefCategory() 112 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_noDataRole_shouldDisablePrefCategory() 123 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_fileTransfer_withAbsentProp_shouldCheck() 135 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_fileTransfer_withUnsetProp_shouldUncheck() 147 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_fileTransfer_withSetProp_shouldCheck()
|
H A D | UsbConnectionBroadcastReceiverTest.java | 22 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE; 72 POWER_ROLE_NONE, DATA_ROLE_NONE); in onReceive_usbConnected_invokeCallback() 84 POWER_ROLE_NONE, DATA_ROLE_NONE); in onReceive_usbDisconnected_invokeCallback() 98 POWER_ROLE_NONE, DATA_ROLE_NONE); in onReceive_usbConnectedMtpEnabled_invokeCallback() 112 POWER_ROLE_NONE, DATA_ROLE_NONE); in onReceive_usbConnectedNcmEnabled_invokesCallback()
|
H A D | UsbDetailsDataRoleControllerTest.java | 22 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE; 171 POWER_ROLE_NONE, DATA_ROLE_NONE); in onClickDeviceAndRefresh_success_shouldClearSubtext() 189 POWER_ROLE_NONE, DATA_ROLE_NONE); in onClickDeviceAndRefresh_failed_shouldShowFailureText() 210 POWER_ROLE_NONE, DATA_ROLE_NONE); in onClickDevice_timedOut_shouldShowFailureText()
|
H A D | UsbDetailsPowerRoleControllerTest.java | 22 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE; 187 POWER_ROLE_NONE, DATA_ROLE_NONE); in onClickDeviceAndRefresh_success_shouldClearSubtext() 205 POWER_ROLE_NONE, DATA_ROLE_NONE); in onClickDeviceAndRefresh_failed_shouldShowFailureText() 226 POWER_ROLE_NONE, DATA_ROLE_NONE); in onClickDevice_timedOut_shouldShowFailureText()
|
H A D | ConnectedUsbDeviceUpdaterTest.java | 20 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE; 109 UsbManager.FUNCTION_NONE, POWER_ROLE_NONE, DATA_ROLE_NONE); in initUsbPreference_usbDisconnected_preferenceRemoved()
|
/aosp12/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbPort.java | 32 import static android.hardware.usb.UsbPortStatus.POWER_ROLE_NONE; 235 case POWER_ROLE_NONE: in powerRoleToString() 321 Preconditions.checkArgumentInRange(powerRole, POWER_ROLE_NONE, POWER_ROLE_SINK, in checkRoles()
|
H A D | UsbPortStatus.java | 49 public static final int POWER_ROLE_NONE = Constants.PortPowerRole.NONE; field in UsbPortStatus 62 POWER_ROLE_NONE,
|
/aosp12/frameworks/base/core/proto/android/service/ |
H A D | usb.proto | 238 POWER_ROLE_NONE = 0; enumerator
|
/aosp12/frameworks/base/core/api/ |
H A D | system-current.txt | 4524 field public static final int POWER_ROLE_NONE = 0; // 0x0
|
/aosp12/frameworks/base/boot/hiddenapi/ |
H A D | hiddenapi-max-target-o.txt | 25343 Landroid/hardware/usb/UsbPort;->POWER_ROLE_NONE:I
|