Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsPowerRoleControllerTest.java110 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_sink_shouldUncheck()
123 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, in displayRefresh_source_shouldCheck()
135 mDetailsPowerRoleController.refresh(false, UsbManager.FUNCTION_NONE, in displayRefresh_disconnected_shouldDisable()
148 mDetailsPowerRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_notSupported_shouldRemove()
196 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext()
198 mDetailsPowerRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext()
215 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText()
217 mDetailsPowerRoleController.refresh(true /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_failed_shouldShowFailureText()
237 mDetailsPowerRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDevice_timedOut_shouldShowFailureText()
DUsbDetailsDataRoleControllerTest.java108 mDetailsDataRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_deviceRole_shouldCheckDevice()
119 mDetailsDataRoleController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_hostRole_shouldCheckHost()
130 mDetailsDataRoleController.refresh(false, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_disconnected_shouldDisable()
171 mDetailsDataRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDeviceAndRefresh_success_shouldClearSubtext()
173 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()
208 mDetailsDataRoleController.refresh(false /* connected */, UsbManager.FUNCTION_NONE, in onClickDevice_timedOut_shouldShowFailureText()
DUsbDefaultFragmentTest.java72 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in getDefaultKey_isNone_shouldReturnNone()
74 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in getDefaultKey_isNone_shouldReturnNone()
115 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in setDefaultKey_isNone_shouldSetNone()
116 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in setDefaultKey_isNone_shouldSetNone()
220 UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, DATA_ROLE_DEVICE, in onPause_receivedNone_shouldSetNone()
225 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_NONE); in onPause_receivedNone_shouldSetNone()
226 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_NONE); in onPause_receivedNone_shouldSetNone()
349 mFragment.mCurrentFunctions = UsbManager.FUNCTION_NONE; in onUsbConnectionChanged_usbConfiguredIsTrue_updatesCurrentFunctions()
358 mFragment.mCurrentFunctions = UsbManager.FUNCTION_NONE; in onUsbConnectionChanged_usbConfiguredIsFalse_doesNotUpdateCurrentFunctions()
362 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_NONE); in onUsbConnectionChanged_usbConfiguredIsFalse_doesNotUpdateCurrentFunctions()
DUsbDetailsFunctionsControllerTest.java117 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_allAllowed_shouldCreatePrefs()
131 mDetailsFunctionsController.refresh(false, UsbManager.FUNCTION_NONE, in displayRefresh_disconnected_shouldDisable()
143 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
194 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in onClickMtp_noneEnabled_shouldEnableMtp()
196 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_NONE); in onClickMtp_noneEnabled_shouldEnableMtp()
241 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in onClickNone_mtpEnabled_shouldDisableMtp()
242 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_NONE); in onClickNone_mtpEnabled_shouldDisableMtp()
243 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in onClickNone_mtpEnabled_shouldDisableMtp()
DUsbConnectionBroadcastReceiverTest.java72 verify(mListener).onUsbConnectionChanged(true /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbConnected_invokeCallback()
85 verify(mListener).onUsbConnectionChanged(false /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbDisconnected_invokeCallback()
131 verify(mListener).onUsbConnectionChanged(false /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbPortStatus_invokesCallback()
144 verify(mListener).onUsbConnectionChanged(true /* connected */, UsbManager.FUNCTION_NONE, in onReceive_usbConfiguredIsFalse_invokesCallback()
DConnectedUsbDeviceUpdaterTest.java99 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()
DUsbDetailsHeaderControllerTest.java110 mDetailsHeaderController.refresh(true, UsbManager.FUNCTION_NONE, POWER_ROLE_SINK, in displayRefresh_charging_shouldSetHeader()
DUsbDetailsTranscodeMtpControllerTest.java110 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_NONE, POWER_ROLE_NONE, in displayRefresh_noDataTransfer_shouldDisablePrefCategory()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbConnectionBroadcastReceiver.java54 mFunctions = UsbManager.FUNCTION_NONE; in UsbConnectionBroadcastReceiver()
69 long functions = UsbManager.FUNCTION_NONE; in onReceive()
DConnectedUsbDeviceUpdater.java61 ? functions : UsbManager.FUNCTION_NONE, powerRole));
DUsbDetailsFunctionsController.java56 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/
DTetheringTest.java2152 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testUntetherUsbWhenRestrictionIsOn()
2404 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in runStopUSBTethering()
2591 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()
2603 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()
2608 verify(mUsbManager, times(0)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testDataSaverChanged()
2659 verify(mUsbManager, never()).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testMultipleStartTethering()
2669 verify(mUsbManager, times(1)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testMultipleStartTethering()
2928 inOrder.verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testHandleIpConflict()
2975 verify(mUsbManager).setCurrentFunctions(UsbManager.FUNCTION_NONE); in testNoAddressAvailable()
3463 verify(mUsbManager, times(2)).setCurrentFunctions(UsbManager.FUNCTION_NONE); in verifyUsbTetheringStopDueToSettingChange()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DTethering.java1600 usbManager.setCurrentFunctions(enable ? usbFunction : UsbManager.FUNCTION_NONE); in setUsbTethering()
1613 usbManager.setCurrentFunctions(enable ? UsbManager.FUNCTION_NCM : UsbManager.FUNCTION_NONE); in setNcmTethering()