Searched refs:FUNCTION_PTP (Results 1 – 8 of 8) sorted by relevance
140 when(mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_PTP)).thenReturn(false); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()212 mDetailsFunctionsController.refresh(true, UsbManager.FUNCTION_PTP, POWER_ROLE_SINK, in onClickMtp_ptpEnabled_shouldEnableMtp()214 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in onClickMtp_ptpEnabled_shouldEnableMtp()225 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onClickMtp_ptpEnabled_shouldEnableMtp()293 mRadioButtonPreference.setKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()298 verify(mUsbBackend).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_functionOther_setCurrentFunctionInvoked()329 mRadioButtonPreference.setKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onRadioButtonClicked_clickSameButton_doNothing()330 doReturn(UsbManager.FUNCTION_PTP).when(mUsbBackend).getCurrentFunctions(); in onRadioButtonClicked_clickSameButton_doNothing()334 verify(mUsbBackend, never()).setCurrentFunctions(UsbManager.FUNCTION_PTP); in onRadioButtonClicked_clickSameButton_doNothing()343 mRadioButtonPreference.setKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onRadioButtonClicked_userAuthenticated()[all …]
86 when(mUsbBackend.getDefaultUsbFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in getDefaultKey_isPtp_shouldReturnPtp()88 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in getDefaultKey_isPtp_shouldReturnPtp()127 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in setDefaultKey_isPtp_shouldSetPtp()128 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in setDefaultKey_isPtp_shouldSetPtp()176 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in setDefaultKey_functionOther_setCurrentFunctionInvoked()178 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in setDefaultKey_functionOther_setCurrentFunctionInvoked()247 UsbManager.FUNCTION_PTP, POWER_ROLE_SINK, DATA_ROLE_DEVICE, in onPause_receivedPtp_shouldSetPtp()249 when(mUsbBackend.getCurrentFunctions()).thenReturn(UsbManager.FUNCTION_PTP); in onPause_receivedPtp_shouldSetPtp()253 verify(mUsbBackend).setDefaultUsbFunctions(UsbManager.FUNCTION_PTP); in onPause_receivedPtp_shouldSetPtp()254 assertThat(mFragment.mCurrentFunctions).isEqualTo(UsbManager.FUNCTION_PTP); in onPause_receivedPtp_shouldSetPtp()
67 if (mUsbBackend.areFunctionsSupported(UsbManager.FUNCTION_MTP | UsbManager.FUNCTION_PTP)) { in refresh()106 || (functions & UsbManager.FUNCTION_PTP) != 0); in isDeviceInFileTransferMode()
127 } else if (functions == UsbManager.FUNCTION_PTP) { in getSummary()141 } else if (functions == UsbManager.FUNCTION_PTP) { in getSummary()
210 || (functions & UsbManager.FUNCTION_PTP) != 0)) in areFunctionDisallowed()216 || (functions & UsbManager.FUNCTION_PTP) != 0)) in areFunctionsDisallowedBySystem()
76 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()