Searched refs:FUNCTION_PTP (Results 1 – 8 of 8) sorted by relevance
133 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_PTP)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()205 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_PTP, POWER_ROLE_SINK, in onClickMtp_ptpEnabled_shouldEnableMtp()207 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in onClickMtp_ptpEnabled_shouldEnableMtp()218 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onClickMtp_ptpEnabled_shouldEnableMtp()285 mRadioButtonPreference.setKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()290 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()321 mRadioButtonPreference.setKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onRadioButtonClicked_clickSameButton_doNothing()322 doReturn(UsbManager.FUNCTION_PTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_clickSameButton_doNothing()326 verify(mUsbBackend, never()).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_clickSameButton_doNothing()334 mDetailsFunctionsController.mPreviousFunction = UsbManager.FUNCTION_PTP; in onTetheringFailed_resetPreviousFunctions()[all …]
87 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in getDefaultKey_isPtp_shouldReturnPtp()89 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in getDefaultKey_isPtp_shouldReturnPtp()128 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in setDefaultKey_isPtp_shouldSetPtp()129 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in setDefaultKey_isPtp_shouldSetPtp()177 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in setDefaultKey_functionOther_setCurrentFunctionInvoked()179 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in setDefaultKey_functionOther_setCurrentFunctionInvoked()243 UsbManager.FUNCTION_PTP, POWER_ROLE_SINK, DATA_ROLE_DEVICE); in onPause_receivedPtp_shouldSetPtp()247 verify(mUsbBackend, times(2)).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in onPause_receivedPtp_shouldSetPtp()248 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_PTP); in onPause_receivedPtp_shouldSetPtp()
64 if (mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP)) { in refresh()95 || (functions & UsbManager.FUNCTION_PTP) != 0); in isDeviceInFileTransferMode()
128 } else if (functions == UsbManager.FUNCTION_PTP) { in getSummary()140 } else if (functions == UsbManager.FUNCTION_PTP) { in getSummary()
202 || (functions & UsbManager.FUNCTION_PTP) != 0)) in areFunctionDisallowed()208 || (functions & UsbManager.FUNCTION_PTP) != 0)) in areFunctionsDisallowedBySystem()
67 functions |= UsbManager.FUNCTION_PTP; in onReceive()
54 FUNCTIONS_MAP.put(UsbManager.FUNCTION_PTP, R.string.usb_use_photo_transfers); in FUNCTIONS_MAP.put() argument
187 mPtpMode ? UsbManager.FUNCTION_PTP : UsbManager.FUNCTION_MTP); in startServer()