Searched refs:FUNCTION_MTP (Results 1 – 11 of 11) sorted by relevance
/packages/apps/Settings/tests/robotests/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsFunctionsControllerTest.java | 139 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref() 155 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_MTP, POWER_ROLE_SINK, in displayRefresh_mtpEnabled_shouldCheckSwitches() 160 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in displayRefresh_mtpEnabled_shouldCheckSwitches() 173 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in displayRefresh_accessoryEnabled_shouldCheckSwitches() 201 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in onClickMtp_noneEnabled_shouldEnableMtp() 202 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_noneEnabled_shouldEnableMtp() 203 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_MTP, POWER_ROLE_SINK, in onClickMtp_noneEnabled_shouldEnableMtp() 219 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in onClickMtp_ptpEnabled_shouldEnableMtp() 220 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_MTP); in onClickMtp_ptpEnabled_shouldEnableMtp() 221 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_MTP, POWER_ROLE_SINK, in onClickMtp_ptpEnabled_shouldEnableMtp() [all …]
|
D | UsbDefaultFragmentTest.java | 79 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_MTP); in getDefaultKey_isMtp_shouldReturnMtp() 81 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in getDefaultKey_isMtp_shouldReturnMtp() 121 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in setDefaultKey_isMtp_shouldSetMtp() 122 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_MTP); in setDefaultKey_isMtp_shouldSetMtp() 141 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in setDefaultKey_isMonkey_shouldDoNothing() 148 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionRndis_startTetheringInvoked() 156 UsbManager.FUNCTION_MTP); in setDefaultKey_functionRndis_startTetheringInvoked() 161 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionNcm_invokesStartTethering() 169 UsbManager.FUNCTION_MTP); in setDefaultKey_functionNcm_invokesStartTethering() 174 doReturn(UsbManager.FUNCTION_MTP).when(mUsbBackend).getCurrentFunctions(); in setDefaultKey_functionOther_setCurrentFunctionInvoked() [all …]
|
D | UsbDetailsTranscodeMtpControllerTest.java | 100 mUnderTest.refresh(false /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_noUsbConnection_shouldDisablePrefCategory() 120 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_noDataRole_shouldDisablePrefCategory() 131 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_fileTransfer_withAbsentProp_shouldCheck() 143 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_fileTransfer_withUnsetProp_shouldUncheck() 155 mUnderTest.refresh(true /* connected */, UsbManager.FUNCTION_MTP, POWER_ROLE_NONE, in displayRefresh_fileTransfer_withSetProp_shouldCheck()
|
D | UsbBackendTest.java | 169 assertThat(usbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).isFalse(); in areFunctionsSupported_fileTransferDisallowed_shouldReturnFalse() 182 assertThat(usbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP)).isTrue(); in areFunctionsSupported_fileTransferAllowed_shouldReturnTrue()
|
D | UsbConnectionBroadcastReceiverTest.java | 100 verify(mListener).onUsbConnectionChanged(true /* connected */, UsbManager.FUNCTION_MTP, in onReceive_usbConnectedMtpEnabled_invokeCallback()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsTranscodeMtpController.java | 67 if (mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP)) { in refresh() 87 mUsbBackend.setCurrentFunctions(previousFunctions & ~UsbManager.FUNCTION_MTP); in onPreferenceClick() 105 return dataRole == DATA_ROLE_DEVICE && ((functions & UsbManager.FUNCTION_MTP) != 0 in isDeviceInFileTransferMode()
|
D | UsbDetailsFunctionsController.java | 51 FUNCTIONS_MAP.put(UsbManager.FUNCTION_MTP, R.string.usb_use_file_transfers); in FUNCTIONS_MAP.put() argument 119 pref.setChecked(UsbManager.FUNCTION_MTP == option); in refresh() 169 return isAccessoryMode(previousFunction) && function == UsbManager.FUNCTION_MTP; in isClickEventIgnored()
|
D | ConnectedUsbDeviceUpdater.java | 123 if (functions == UsbManager.FUNCTION_MTP) { in getSummary() 137 if (functions == UsbManager.FUNCTION_MTP) { in getSummary()
|
D | UsbBackend.java | 209 return (mFileTransferRestricted && ((functions & UsbManager.FUNCTION_MTP) != 0 in areFunctionDisallowed() 215 return (mFileTransferRestrictedBySystem && ((functions & UsbManager.FUNCTION_MTP) != 0 in areFunctionsDisallowedBySystem()
|
D | UsbConnectionBroadcastReceiver.java | 72 functions |= UsbManager.FUNCTION_MTP; in onReceive()
|
/packages/services/Mtp/src/com/android/mtp/ |
D | MtpService.java | 187 mPtpMode ? UsbManager.FUNCTION_PTP : UsbManager.FUNCTION_MTP); in startServer()
|