Searched refs:usbFunctionsToString (Results 1 – 5 of 5) sorted by relevance
75 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in getDefaultKey_isNone_shouldReturnNone()82 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in getDefaultKey_isMtp_shouldReturnMtp()89 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in getDefaultKey_isPtp_shouldReturnPtp()96 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in getDefaultKey_isRndis_shouldReturnRndis()103 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in getDefaultKey_isMidi_shouldReturnMidi()111 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in getDefaultKey_isNcm_returnsRndis()116 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in setDefaultKey_isNone_shouldSetNone()122 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in setDefaultKey_isMtp_shouldSetMtp()128 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in setDefaultKey_isPtp_shouldSetPtp()134 mFragment.setDefaultKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in setDefaultKey_isMidi_shouldSetMidi()[all …]
116 assertThat(pref.getKey()).isEqualTo(UsbBackend.usbFunctionsToString(iter.next())); in displayRefresh_allAllowed_shouldCreatePrefs()141 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MIDI)); in displayRefresh_onlyMidiAllowed_shouldCreateOnlyMidiPref()153 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in displayRefresh_mtpEnabled_shouldCheckSwitches()166 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in displayRefresh_accessoryEnabled_shouldCheckSwitches()179 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in displayRefresh_ncmEnabled_checksSwitches()194 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in onClickMtp_noneEnabled_shouldEnableMtp()212 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_MTP)); in onClickMtp_ptpEnabled_shouldEnableMtp()218 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_PTP)); in onClickMtp_ptpEnabled_shouldEnableMtp()233 .isEqualTo(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_NONE)); in onClickNone_mtpEnabled_shouldDisableMtp()257 mRadioButtonPreference.setKey(UsbBackend.usbFunctionsToString(UsbManager.FUNCTION_RNDIS)); in onRadioButtonClicked_functionRndis_startTetheringInvoked()[all …]
114 pref = getProfilePreference(UsbBackend.usbFunctionsToString(option), title); in refresh()136 + UsbManager.usbFunctionsToString(function) + ", previousFunction : " in onRadioButtonClicked()138 + UsbManager.usbFunctionsToString(previousFunction)); in onRadioButtonClicked()147 UsbBackend.usbFunctionsToString(mPreviousFunction)); in onRadioButtonClicked()
128 final String key = UsbBackend.usbFunctionsToString(option); in getCandidates()158 return UsbBackend.usbFunctionsToString(defaultUsbFunctions == UsbManager.FUNCTION_NCM in getDefaultKey()218 screen.findPreference(UsbBackend.usbFunctionsToString(option)); in refresh()
164 public static String usbFunctionsToString(long functions) { in usbFunctionsToString() method in UsbBackend