Home
last modified time | relevance | path

Searched refs:FUNCTION_MTP (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/
DUsbDetailsFunctionsControllerTest.java132 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()
148 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_MTP, POWER_ROLE_SINK, in displayRefresh_mtpEnabled_shouldCheckSwitches()
153 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in displayRefresh_mtpEnabled_shouldCheckSwitches()
166 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in displayRefresh_accessoryEnabled_shouldCheckSwitches()
194 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in onClickMtp_noneEnabled_shouldEnableMtp()
195 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_noneEnabled_shouldEnableMtp()
196 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_MTP, POWER_ROLE_SINK, in onClickMtp_noneEnabled_shouldEnableMtp()
212 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in onClickMtp_ptpEnabled_shouldEnableMtp()
213 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_ptpEnabled_shouldEnableMtp()
214 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_MTP, POWER_ROLE_SINK, in onClickMtp_ptpEnabled_shouldEnableMtp()
[all …]
DUsbDefaultFragmentTest.java80 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_MTP); in getDefaultKey_isMtp_shouldReturnMtp()
82 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in getDefaultKey_isMtp_shouldReturnMtp()
122 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in setDefaultKey_isMtp_shouldSetMtp()
123 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MTP); in setDefaultKey_isMtp_shouldSetMtp()
142 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in setDefaultKey_isMonkey_shouldDoNothing()
149 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionRndis_startTetheringInvoked()
157 UsbManager.FUNCTION_MTP); in setDefaultKey_functionRndis_startTetheringInvoked()
162 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionNcm_invokesStartTethering()
170 UsbManager.FUNCTION_MTP); in setDefaultKey_functionNcm_invokesStartTethering()
175 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionOther_setCurrentFunctionInvoked()
[all …]
DUsbDetailsTranscodeMtpControllerTest.java90 mUnderTest.refresh(false /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_noUsbConnection_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()
DUsbBackendTest.java169 assertThat(usbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).isFalse(); in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse()
182 assertThat(usbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).isTrue(); in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
DUsbConnectionBroadcastReceiverTest.java97 verify(mListener).onUsbConnectionChanged(true /* connected */, UsbManager.FUNCTION_MTP, in onReceive_usbConnectedMtpEnabled_invokeCallback()
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbDetailsFunctionsController.java51 FUNCTIONS_MAP.put(UsbManager.FUNCTION_MTP, R.string.usb_use_file_transfers); in FUNCTIONS_MAP.put() argument
118 pref.setChecked(UsbManager.FUNCTION_MTP == option); in refresh()
166 return isAccessoryMode(previousFunction) && function == UsbManager.FUNCTION_MTP; in isClickEventIgnored()
DUsbDetailsTranscodeMtpController.java64 if (mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP)) { in refresh()
94 return dataRole == DATA_ROLE_DEVICE && ((functions & UsbManager.FUNCTION_MTP) != 0 in isDeviceInFileTransferMode()
DConnectedUsbDeviceUpdater.java124 if (functions == UsbManager.FUNCTION_MTP) { in getSummary()
136 if (functions == UsbManager.FUNCTION_MTP) { in getSummary()
DUsbBackend.java201 return (mFileTransferRestricted && ((functions & UsbManager.FUNCTION_MTP) != 0 in areFunctionDisallowed()
207 return (mFileTransferRestrictedBySystem && ((functions & UsbManager.FUNCTION_MTP) != 0 in areFunctionsDisallowedBySystem()
DUsbConnectionBroadcastReceiver.java63 functions |= UsbManager.FUNCTION_MTP; in onReceive()
/packages/services/Mtp/src/com/android/mtp/
DMtpService.java187 mPtpMode ? UsbManager.FUNCTION_PTP : UsbManager.FUNCTION_MTP); in startServer()