/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | ShortcutPromoter.java | 23 * A promoter limits the maximum number of shortcuts per source 40 void promoteShortcuts(SuggestionCursor shortcuts, int maxPromoted, argument 42 int shortcutCount = shortcuts == null ? 0 : shortcuts.getCount(); 46 shortcuts.moveTo(i); 47 Source source = shortcuts.getSuggestionSource(); 48 if (source != null && accept(shortcuts)) { 52 promoted.add(new SuggestionPosition(shortcuts));
|
H A D | WebPromoter.java | 35 // Add web shortcuts 36 SuggestionCursor shortcuts = suggestions.getShortcuts(); 37 int shortcutCount = shortcuts == null ? 0 : shortcuts.getCount(); 41 shortcuts.moveTo(i); 42 if (shortcuts.isWebSearchSuggestion()) { 44 promoted.add(new SuggestionPosition(shortcuts, i));
|
H A D | Suggestions.java | 136 * @param shortcuts The shortcuts. 138 public void setShortcuts(ShortcutCursor shortcuts) { argument 139 if (DBG) Log.d(TAG, "setShortcuts(" + shortcuts + ")"); 141 throw new IllegalStateException("Got duplicate shortcuts: old: " + mShortcuts 142 + ", new: " + shortcuts); 144 if (shortcuts == null) return; 146 shortcuts.close(); 149 if (!mQuery.equals(shortcuts.getUserQuery())) { 150 throw new IllegalArgumentException("Got shortcuts fo [all...] |
H A D | SingleCorpusPromoter.java | 22 * Promotes shortcuts and suggestions from a single corpus. 43 // Add shortcuts 44 SuggestionCursor shortcuts = suggestions.getShortcuts(); 45 promoteUntilFull(shortcuts, mMaxShortcuts, promoted);
|
H A D | DefaultCorpusRanker.java | 52 * @param shortcuts Shortcut repository for getting corpus scores. 54 public DefaultCorpusRanker(Corpora corpora, ShortcutRepository shortcuts) { argument 57 mShortcuts = shortcuts;
|
H A D | ShortcutCursor.java | 27 * A SuggestionCursor that allows shortcuts to be updated by overlaying 47 private ShortcutCursor(String query, SuggestionCursor shortcuts, Handler uiThread, argument 50 mShortcuts = shortcuts; 72 if (DBG) Log.d(TAG, "Total shortcuts: " + count); 86 // Needed to make refreshed shortcuts be treated as shortcuts
|
H A D | SearchActivity.java | 567 if (DBG) Log.d(TAG, "Removing suggestion " + position + " from shortcuts"); 648 public boolean consume(ShortcutCursor shortcuts) { 649 suggestions.setShortcuts(shortcuts);
|
H A D | ShortcutRepositoryImplLog.java | 274 ShortcutCursor shortcuts = getShortcutsForQuery(query, allowedCorpora, 276 Consumers.consumeCloseable(consumer, shortcuts); 438 // "Remove from history" UI, which is also shown for all shortcuts. 459 * shortcuts in the shortcuts table, which would mean parsing ALL the JSON contained 462 * - All shortcuts are put into a ListSuggestionCursor during the promotion process, so 464 * JSON for shortcuts that are actually displayed. 548 // shortcuts for custom suggestion views work properly. 688 * shortcuts table 710 static final String TABLE_NAME = "shortcuts"; [all...] |
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | SourceShortcutRefresherTest.java | 73 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); 74 mRefresher.refresh(shortcuts, mListener); 84 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); 85 mRefresher.refresh(shortcuts, mListener); 95 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); 96 mRefresher.refresh(shortcuts, mListener);
|
H A D | BlendingPromoterTest.java | 118 SuggestionCursor shortcuts = cursor(mS11, mS12, mS21, mS22, mWeb1, mWeb2); 119 ListSuggestionCursorNoDuplicates promoted = promote(config(), shortcuts, maxPromoted); 120 int expectedCount = Math.min(maxPromoted, shortcuts.getCount()); 122 int count = Math.min(maxPromoted, shortcuts.getCount()); 123 assertSameSuggestions(slice(promoted, 0, count), slice(shortcuts, 0, count)); 126 private SuggestionCursor limit(SuggestionCursor shortcuts, int maxShortcutsPerWebSource, argument 130 return promote(config, shortcuts, maxPromoted); 133 private ListSuggestionCursorNoDuplicates promote(Config config, SuggestionCursor shortcuts, argument 138 promoter.promoteShortcuts(shortcuts, maxPromoted, promoted);
|
H A D | RankAwarePromoterTest.java | 114 SuggestionCursor shortcuts = mShortcuts. 116 for (int i = 0; i < shortcuts.getCount(); ++i) { 117 promoted.add(new SuggestionPosition(shortcuts, 1));
|
H A D | ResultPromoterTest.java | 89 private ListSuggestionCursor promoteShortcuts(SuggestionCursor shortcuts) { argument 92 promoter.promoteShortcuts(shortcuts, MAX_PROMOTED_SUGGESTIONS, promoted);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/ |
H A D | ClearShortcutsController.java | 27 * Logic behind the 'clear shortcuts' preference. 42 public ClearShortcutsController(ShortcutRepository shortcuts) { argument 43 mShortcuts = shortcuts; 74 * Enables/disables the "Clear search shortcuts" preference depending 89 Log.i(TAG, "Clearing shortcuts...");
|
H A D | PreferenceControllerFactory.java | 54 ShortcutRepository shortcuts = QsbApplication.get(getContext()).getShortcutRepository(); 55 addController(new ClearShortcutsController(shortcuts), p);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
H A D | SubtypeSwitcher.java | 164 final Map<InputMethodInfo, List<InputMethodSubtype>> shortcuts = 168 for (final InputMethodInfo imi : shortcuts.keySet()) { 169 final List<InputMethodSubtype> subtypes = shortcuts.get(imi); 170 // TODO: Returns the first found IMI for now. Should handle all shortcuts as
|
/packages/inputmethods/LatinIME/tools/dicttool/src/android/inputmethod/latin/dicttool/ |
H A D | XmlDictInputOutput.java | 82 * @param shortcuts the shortcuts as a map. This may be empty, but may not be null. 84 public UnigramHandler(final HashMap<String, ArrayList<WeightedString>> shortcuts) { argument 86 mShortcutsMap = shortcuts; 273 * @param shortcuts the file to read the shortcuts & whitelist from, or null. 278 final InputStream shortcuts, final InputStream bigrams) 288 if (null != shortcuts) parser.parse(shortcuts, shortcutAndWhitelistHandler); 311 * which has no support for bigrams or shortcuts/whitelis 277 readDictionaryXml(final InputStream unigrams, final InputStream shortcuts, final InputStream bigrams) argument [all...] |
H A D | DictionaryMaker.java | 276 final FileInputStream shortcuts = null == shortcutXmlFilename ? null : 280 return XmlDictInputOutput.readDictionaryXml(unigrams, shortcuts, bigrams);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
H A D | BinaryDictIOTests.java | 159 final ArrayList<WeightedString> shortcuts = CollectionUtils.newArrayList(); 162 shortcuts.add(new WeightedString(shortcut, UNIGRAM_FREQ)); 165 dict.add(word, UNIGRAM_FREQ, (shortcutMap == null) ? null : shortcuts, 269 final SparseArray<List<Integer>> bigrams, final Map<String, List<String>> shortcuts, 282 addUnigrams(words.size(), dict, words, shortcuts); 284 checkDictionary(dict, words, bigrams, shortcuts); 287 final long read = timeReadingAndCheckDict(file, words, bigrams, shortcuts, bufferType); 295 results.add(runReadAndWrite(sWords, sEmptyBigrams, null /* shortcuts */, bufferType, 297 results.add(runReadAndWrite(sWords, sChainBigrams, null /* shortcuts */, bufferType, 299 results.add(runReadAndWrite(sWords, sStarBigrams, null /* shortcuts */, bufferTyp 268 runReadAndWrite(final List<String> words, final SparseArray<List<Integer>> bigrams, final Map<String, List<String>> shortcuts, final int bufferType, final FormatSpec.FormatOptions formatOptions, final String message) argument [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
H A D | SearchActivityViewTwoPane.java | 87 mResultsView = (ClusteredSuggestionsView) findViewById(R.id.shortcuts);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | AppsCustomizePagedView.java | 229 * The Apps/Customize page that displays all the applications, widgets, and shortcuts. 526 // Get the list of widgets and shortcuts 531 List<ResolveInfo> shortcuts = mPackageManager.queryIntentActivities(shortcutsIntent, 0); 551 mWidgets.addAll(shortcuts); 1436 // Fill in the shortcuts information 1529 // Fill in the shortcuts information
|
H A D | Workspace.java | 194 // Variables relating to the creation of user folders by hovering shortcuts over shortcuts 2208 // cell also contains a shortcut, then create a folder with the two shortcuts. 3071 // widgets/shortcuts/folders in a slightly different way 3743 ArrayList<ItemInfo> shortcuts; 3744 shortcuts = LauncherModel.getWorkspaceShortcutItemInfosWithIntent( 3746 for (ItemInfo info : shortcuts) { 3767 // return null for some shortcuts (for instance, for shortcuts to
|
H A D | Launcher.java | 585 * Returns whether we should delay spring loaded mode -- for shortcuts and widgets that have 3289 * Refreshes the shortcuts shown on the workspace. 3316 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end) { argument 3319 // Get the list of added shortcuts and intersect them with the set of shortcuts here 3325 final ItemInfo item = shortcuts.get(i);
|
H A D | LauncherModel.java | 120 // sBgItemsIdMap maps *all* the ItemInfos (shortcuts, folders, and widgets) created by 124 // sBgWorkspaceItems is passed to bindItems, which expects a list of all folders and shortcuts 126 // shortcuts within folders). 152 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end); argument 453 * Returns true if the shortcuts already exists in the database. 1310 // App shortcuts that used to be automatically added to Launcher 2078 * This is called from the code that adds shortcuts from the intent receiver. This
|