Home
last modified time | relevance | path

Searched refs:POWER_ROLE_NONE (Results 1 – 13 of 13) sorted by relevance

/aosp12/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
H A DUsbDetailsPowerRoleController.java19 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 DUsbBackend.java19 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 DUsbConnectionBroadcastReceiver.java52 mPowerRole = UsbPortStatus.POWER_ROLE_NONE; in UsbConnectionBroadcastReceiver()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
H A DUsbDetailsTranscodeMtpControllerTest.java20 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 DUsbConnectionBroadcastReceiverTest.java22 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 DUsbDetailsDataRoleControllerTest.java22 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 DUsbDetailsPowerRoleControllerTest.java22 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 DConnectedUsbDeviceUpdaterTest.java20 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 DUsbPort.java32 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 DUsbPortStatus.java49 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 Dusb.proto238 POWER_ROLE_NONE = 0; enumerator
/aosp12/frameworks/base/core/api/
H A Dsystem-current.txt4524 field public static final int POWER_ROLE_NONE = 0; // 0x0
/aosp12/frameworks/base/boot/hiddenapi/
H A Dhiddenapi-max-target-o.txt25343 Landroid/hardware/usb/UsbPort;->POWER_ROLE_NONE:I