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 | 132 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 …]
|
D | UsbDefaultFragmentTest.java | 80 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 …]
|
D | UsbDetailsTranscodeMtpControllerTest.java | 90 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()
|
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 | 97 verify(mListener).onUsbConnectionChanged(true /* connected */, UsbManager.FUNCTION_MTP, in onReceive_usbConnectedMtpEnabled_invokeCallback()
|
/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/ |
D | UsbDetailsFunctionsController.java | 51 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()
|
D | UsbDetailsTranscodeMtpController.java | 64 if (mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP)) { in refresh() 94 return dataRole == DATA_ROLE_DEVICE && ((functions & UsbManager.FUNCTION_MTP) != 0 in isDeviceInFileTransferMode()
|
D | ConnectedUsbDeviceUpdater.java | 124 if (functions == UsbManager.FUNCTION_MTP) { in getSummary() 136 if (functions == UsbManager.FUNCTION_MTP) { in getSummary()
|
D | UsbBackend.java | 201 return (mFileTransferRestricted && ((functions & UsbManager.FUNCTION_MTP) != 0 in areFunctionDisallowed() 207 return (mFileTransferRestrictedBySystem && ((functions & UsbManager.FUNCTION_MTP) != 0 in areFunctionsDisallowedBySystem()
|
D | UsbConnectionBroadcastReceiver.java | 63 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()
|