/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsPowerRoleControllerTest.java | 104 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_sink_shouldUncheck() 116 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, in displayRefresh_source_shouldCheck() 128 mDetailsPowerRoleController.refresh(false, UsbManager.FUNCTION_NONE, in displayRefresh_disconnected_shouldDisable() 141 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_notSupported_shouldRemove() 186 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext() 188 mDetailsPowerRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext() 204 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText() 206 mDetailsPowerRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText() 225 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDevice_timedOut_shouldShowFailureText()
|
D | UsbDetailsDataRoleControllerTest.java | 100 mDetailsDataRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_deviceRole_shouldCheckDevice() 113 mDetailsDataRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_hostRole_shouldCheckHost() 126 mDetailsDataRoleController.refresh(false, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_disconnected_shouldDisable() 170 mDetailsDataRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext() 172 mDetailsDataRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext() 188 mDetailsDataRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText() 190 mDetailsDataRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText() 209 mDetailsDataRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDevice_timedOut_shouldShowFailureText()
|
D | UsbDetailsFunctionsControllerTest.java | 110 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_allAllowed_shouldCreatePrefs() 124 mDetailsFunctionsController.refresh(false, UsbManager.FUNCTION_NONE, in displayRefresh_disconnected_shouldDisable() 136 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() 187 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in onClickMtp_noneEnabled_shouldEnableMtp() 189 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in onClickMtp_noneEnabled_shouldEnableMtp() 233 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in onClickNone_mtpEnabled_shouldDisableMtp() 234 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_NONE); in onClickNone_mtpEnabled_shouldDisableMtp() 235 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in onClickNone_mtpEnabled_shouldDisableMtp()
|
D | UsbDefaultFragmentTest.java | 73 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in getDefaultKey_isNone_shouldReturnNone() 75 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in getDefaultKey_isNone_shouldReturnNone() 116 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in setDefaultKey_isNone_shouldSetNone() 117 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in setDefaultKey_isNone_shouldSetNone() 219 UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedNone_shouldSetNone() 223 verify(mUsbBackend, times(2)).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in onPause_receivedNone_shouldSetNone() 224 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_NONE); in onPause_receivedNone_shouldSetNone()
|
D | UsbConnectionBroadcastReceiverTest.java | 71 verify(mListener).onUsbConnectionChanged(true /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbConnected_invokeCallback() 83 verify(mListener).onUsbConnectionChanged(false /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbDisconnected_invokeCallback() 126 verify(mListener).onUsbConnectionChanged(false /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbPortStatus_invokeCallback()
|
D | ConnectedUsbDeviceUpdaterTest.java | 100 UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in initUsbPreference_usbConnected_preferenceAdded() 109 UsbManager.FUNCTION_NONE, POWER_ROLE_NONE, DATA_ROLE_NONE); in initUsbPreference_usbDisconnected_preferenceRemoved()
|
D | UsbDetailsHeaderControllerTest.java | 107 mDetailsHeaderController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_charging_shouldSetHeader()
|
D | UsbDetailsTranscodeMtpControllerTest.java | 101 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_NONE, POWER_ROLE_NONE, in displayRefresh_noDataTransfer_shouldDisablePrefCategory()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
D | UsbConnectionBroadcastReceiver.java | 50 mFunctions = UsbManager.FUNCTION_NONE; in UsbConnectionBroadcastReceiver() 60 long functions = UsbManager.FUNCTION_NONE; in onReceive()
|
D | ConnectedUsbDeviceUpdater.java | 61 ? functions : UsbManager.FUNCTION_NONE, powerRole));
|
D | UsbDetailsFunctionsController.java | 55 FUNCTIONS_MAP.put(UsbManager.FUNCTION_NONE, R.string.usb_use_charging_only); in FUNCTIONS_MAP.put() argument
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringTest.java | 1667 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testUntetherUsbWhenRestrictionIsOn() 1917 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in runStopUSBTethering() 2097 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged() 2109 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged() 2114 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged() 2162 verify(mUsbManager, never()).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testMultipleStartTethering() 2171 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testMultipleStartTethering() 2367 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testHandleIpConflict() 2406 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testNoAddressAvailable() 2649 verify(mUsbManager, times(2)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in verifyUsbTetheringStopDueToSettingChange()
|
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/ |
D | Tethering.java | 1433 usbManager.setCurrentFunctions(enable ? usbFunction : UsbManager.FUNCTION_NONE); in setUsbTethering() 1446 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_NONE); in setNcmTethering()
|