/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | BlendingPromoterTest.java | 118 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()
|
D | SourceShortcutRefresherTest.java | 73 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()
|
D | RankAwarePromoterTest.java | 114 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()
|
D | ResultPromoterTest.java | 89 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/ |
D | Suggestions.java | 138 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()
|
D | ShortcutPromoter.java | 40 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()
|
D | WebPromoter.java | 36 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()
|
D | SingleCorpusPromoter.java | 44 SuggestionCursor shortcuts = suggestions.getShortcuts(); in pickPromoted() local 45 promoteUntilFull(shortcuts, mMaxShortcuts, promoted); in pickPromoted()
|
D | DefaultCorpusRanker.java | 54 public DefaultCorpusRanker(Corpora corpora, ShortcutRepository shortcuts) { in DefaultCorpusRanker() argument 57 mShortcuts = shortcuts; in DefaultCorpusRanker()
|
D | ShortcutCursor.java | 47 private ShortcutCursor(String query, SuggestionCursor shortcuts, Handler uiThread, in ShortcutCursor() argument 50 mShortcuts = shortcuts; in ShortcutCursor()
|
D | SearchActivity.java | 648 public boolean consume(ShortcutCursor shortcuts) { in getShortcutsForQuery() 649 suggestions.setShortcuts(shortcuts); in getShortcutsForQuery()
|
D | ShortcutRepositoryImplLog.java | 274 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/ |
D | CombinedInputOutput.java | 128 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()
|
D | XmlDictInputOutput.java | 83 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()
|
D | DictionaryMaker.java | 330 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/ |
D | BinaryDictIOTests.java | 165 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()
|
D | BinaryDictIOUtilsTests.java | 177 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/ |
D | BinaryDictIOUtils.java | 722 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/ |
D | SubtypeSwitcher.java | 132 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/ |
D | ClearShortcutsController.java | 42 public ClearShortcutsController(ShortcutRepository shortcuts) { in ClearShortcutsController() argument 43 mShortcuts = shortcuts; in ClearShortcutsController()
|
D | PreferenceControllerFactory.java | 54 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/ |
D | SearchActivityViewTwoPane.java | 87 mResultsView = (ClusteredSuggestionsView) findViewById(R.id.shortcuts); in onFinishInflate()
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
D | Launcher.java | 3406 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()
|
D | Workspace.java | 3805 ArrayList<ItemInfo> shortcuts; 3806 shortcuts = LauncherModel.getWorkspaceShortcutItemInfosWithIntent( 3808 for (ItemInfo info : shortcuts) {
|
D | LauncherModel.java | 154 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end); in bindItems() argument
|