Home
last modified time | relevance | path

Searched refs:shortcuts (Results 1 – 25 of 28) sorted by relevance

12

/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DBlendingPromoterTest.java118 SuggestionCursor shortcuts = cursor(mS11, mS12, mS21, mS22, mWeb1, mWeb2); in maxPromotedTest() local
119 ListSuggestionCursorNoDuplicates promoted = promote(config(), shortcuts, maxPromoted); in maxPromotedTest()
120 int expectedCount = Math.min(maxPromoted, shortcuts.getCount()); in maxPromotedTest()
122 int count = Math.min(maxPromoted, shortcuts.getCount()); in maxPromotedTest()
123 assertSameSuggestions(slice(promoted, 0, count), slice(shortcuts, 0, count)); in maxPromotedTest()
126 private SuggestionCursor limit(SuggestionCursor shortcuts, int maxShortcutsPerWebSource, in limit() argument
130 return promote(config, shortcuts, maxPromoted); in limit()
133 private ListSuggestionCursorNoDuplicates promote(Config config, SuggestionCursor shortcuts, in promote() argument
138 promoter.promoteShortcuts(shortcuts, maxPromoted, promoted); in promote()
DSourceShortcutRefresherTest.java73 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); in testRefreshNull() local
74 mRefresher.refresh(shortcuts, mListener); in testRefreshNull()
84 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); in testRefreshEmpty() local
85 mRefresher.refresh(shortcuts, mListener); in testRefreshEmpty()
95 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); in testRefreshSuccess() local
96 mRefresher.refresh(shortcuts, mListener); in testRefreshSuccess()
DRankAwarePromoterTest.java114 SuggestionCursor shortcuts = mShortcuts. in testPromotesRightNumberOfSuggestions() local
116 for (int i = 0; i < shortcuts.getCount(); ++i) { in testPromotesRightNumberOfSuggestions()
117 promoted.add(new SuggestionPosition(shortcuts, 1)); in testPromotesRightNumberOfSuggestions()
DResultPromoterTest.java89 private ListSuggestionCursor promoteShortcuts(SuggestionCursor shortcuts) { in promoteShortcuts() argument
92 promoter.promoteShortcuts(shortcuts, MAX_PROMOTED_SUGGESTIONS, promoted); in promoteShortcuts()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DSuggestions.java138 public void setShortcuts(ShortcutCursor shortcuts) { in setShortcuts() argument
139 if (DBG) Log.d(TAG, "setShortcuts(" + shortcuts + ")"); in setShortcuts()
142 + ", new: " + shortcuts); in setShortcuts()
144 if (shortcuts == null) return; in setShortcuts()
146 shortcuts.close(); in setShortcuts()
149 if (!mQuery.equals(shortcuts.getUserQuery())) { in setShortcuts()
151 + mQuery + " != " + shortcuts.getUserQuery()); in setShortcuts()
153 mShortcuts = shortcuts; in setShortcuts()
154 if (shortcuts != null) { in setShortcuts()
DShortcutPromoter.java40 void promoteShortcuts(SuggestionCursor shortcuts, int maxPromoted, in promoteShortcuts() argument
42 int shortcutCount = shortcuts == null ? 0 : shortcuts.getCount(); in promoteShortcuts()
46 shortcuts.moveTo(i); in promoteShortcuts()
47 Source source = shortcuts.getSuggestionSource(); in promoteShortcuts()
48 if (source != null && accept(shortcuts)) { in promoteShortcuts()
52 promoted.add(new SuggestionPosition(shortcuts)); in promoteShortcuts()
DWebPromoter.java36 SuggestionCursor shortcuts = suggestions.getShortcuts(); in pickPromoted() local
37 int shortcutCount = shortcuts == null ? 0 : shortcuts.getCount(); in pickPromoted()
41 shortcuts.moveTo(i); in pickPromoted()
42 if (shortcuts.isWebSearchSuggestion()) { in pickPromoted()
44 promoted.add(new SuggestionPosition(shortcuts, i)); in pickPromoted()
DSingleCorpusPromoter.java44 SuggestionCursor shortcuts = suggestions.getShortcuts(); in pickPromoted() local
45 promoteUntilFull(shortcuts, mMaxShortcuts, promoted); in pickPromoted()
DDefaultCorpusRanker.java54 public DefaultCorpusRanker(Corpora corpora, ShortcutRepository shortcuts) { in DefaultCorpusRanker() argument
57 mShortcuts = shortcuts; in DefaultCorpusRanker()
DShortcutCursor.java47 private ShortcutCursor(String query, SuggestionCursor shortcuts, Handler uiThread, in ShortcutCursor() argument
50 mShortcuts = shortcuts; in ShortcutCursor()
DSearchActivity.java648 public boolean consume(ShortcutCursor shortcuts) { in getShortcutsForQuery()
649 suggestions.setShortcuts(shortcuts); in getShortcutsForQuery()
DShortcutRepositoryImplLog.java274 ShortcutCursor shortcuts = getShortcutsForQuery(query, allowedCorpora, in getShortcutsForQuery()
276 Consumers.consumeCloseable(consumer, shortcuts); in getShortcutsForQuery()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DCombinedInputOutput.java128 ArrayList<WeightedString> shortcuts = new ArrayList<WeightedString>(); in readDictionaryCombined() local
134 dict.add(word, freq, shortcuts.isEmpty() ? null : shortcuts, isNotAWord); in readDictionaryCombined()
139 if (!shortcuts.isEmpty()) shortcuts = new ArrayList<WeightedString>(); in readDictionaryCombined()
168 shortcuts.add(new WeightedString(shortcut, shortcutFreq)); in readDictionaryCombined()
192 dict.add(word, freq, shortcuts.isEmpty() ? null : shortcuts, isNotAWord); in readDictionaryCombined()
DXmlDictInputOutput.java83 public UnigramHandler(final HashMap<String, ArrayList<WeightedString>> shortcuts) { in UnigramHandler() argument
85 mShortcutsMap = shortcuts; in UnigramHandler()
306 final InputStream shortcuts, final InputStream bigrams) in readDictionaryXml() argument
316 if (null != shortcuts) parser.parse(shortcuts, shortcutAndWhitelistHandler); in readDictionaryXml()
DDictionaryMaker.java330 final FileInputStream shortcuts = null == shortcutXmlFilename ? null : in readXmlFile() local
334 return XmlDictInputOutput.readDictionaryXml(unigrams, shortcuts, bigrams); in readXmlFile()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOTests.java165 final ArrayList<WeightedString> shortcuts = CollectionUtils.newArrayList(); in addUnigrams() local
168 shortcuts.add(new WeightedString(shortcut, UNIGRAM_FREQ)); in addUnigrams()
171 dict.add(word, UNIGRAM_FREQ, (shortcutMap == null) ? null : shortcuts, in addUnigrams()
275 final SparseArray<List<Integer>> bigrams, final Map<String, List<String>> shortcuts, in runReadAndWrite() argument
288 addUnigrams(words.size(), dict, words, shortcuts); in runReadAndWrite() local
290 checkDictionary(dict, words, bigrams, shortcuts); in runReadAndWrite()
293 final long read = timeReadingAndCheckDict(file, words, bigrams, shortcuts, bufferType); in runReadAndWrite()
DBinaryDictIOUtilsTests.java177 final ArrayList<WeightedString> shortcuts) { in insertAndCheckWord() argument
192 BinaryDictIOUtils.insertWord(buffer, outStream, word, frequency, bigrams, shortcuts, in insertAndCheckWord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DBinaryDictIOUtils.java722 final ArrayList<WeightedString> shortcuts, final boolean isNotAWord, in insertWord() argument
739 final boolean hasShortcuts = shortcuts != null && !shortcuts.isEmpty(); in insertWord()
783 frequency, nodeParentAddress, shortcuts, bigrams, destination, in insertWord()
858 FormatSpec.NO_CHILDREN_ADDRESS, shortcuts, bigrams); in insertWord()
878 nodeParentAddress, currentInfo.mChildrenAddress, shortcuts, in insertWord()
909 shortcuts, bigrams); in insertWord()
953 FormatSpec.NO_CHILDREN_ADDRESS, shortcuts, bigrams); in insertWord()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DSubtypeSwitcher.java132 final Map<InputMethodInfo, List<InputMethodSubtype>> shortcuts = in updateShortcutIME() local
136 for (final InputMethodInfo imi : shortcuts.keySet()) { in updateShortcutIME()
137 final List<InputMethodSubtype> subtypes = shortcuts.get(imi); in updateShortcutIME()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/
DClearShortcutsController.java42 public ClearShortcutsController(ShortcutRepository shortcuts) { in ClearShortcutsController() argument
43 mShortcuts = shortcuts; in ClearShortcutsController()
DPreferenceControllerFactory.java54 ShortcutRepository shortcuts = QsbApplication.get(getContext()).getShortcutRepository(); in handlePreference() local
55 addController(new ClearShortcutsController(shortcuts), p); in handlePreference()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DSearchActivityViewTwoPane.java87 mResultsView = (ClusteredSuggestionsView) findViewById(R.id.shortcuts); in onFinishInflate()
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncher.java3406 public void bindItems(final ArrayList<ItemInfo> shortcuts, final int start, final int end) { in bindItems() argument
3409 bindItems(shortcuts, start, end); in bindItems()
3421 final ItemInfo item = shortcuts.get(i); in bindItems()
DWorkspace.java3805 ArrayList<ItemInfo> shortcuts;
3806 shortcuts = LauncherModel.getWorkspaceShortcutItemInfosWithIntent(
3808 for (ItemInfo info : shortcuts) {
DLauncherModel.java154 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end); in bindItems() argument

12