Searched defs:shortcuts (Results 1 - 9 of 9) sorted by relevance
/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 | 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 | 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...] |
/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...");
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
H A D | ResultPromoterTest.java | 89 private ListSuggestionCursor promoteShortcuts(SuggestionCursor shortcuts) { argument 92 promoter.promoteShortcuts(shortcuts, MAX_PROMOTED_SUGGESTIONS, promoted);
|
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);
|
/packages/apps/Launcher2/src/com/android/launcher2/ |
H A D | LauncherModel.java | 98 // sItemsIdMap maps *all* the ItemInfos (shortcuts, folders, and widgets) created by 102 // sItems is passed to bindItems, which expects a list of all folders and shortcuts created by 103 // LauncherModel that are directly on the home screen (however, no widgets or shortcuts 131 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end); argument 308 * Returns true if the shortcuts already exists in the database. 1614 * This is called from the code that adds shortcuts from the intent receiver. This
|
H A D | Launcher.java | 475 * Returns whether we should delay spring loaded mode -- for shortcuts and widgets that have 2905 * Refreshes the shortcuts shown on the workspace. 2930 public void bindItems(ArrayList<ItemInfo> shortcuts, int start, int end) { argument 2935 final ItemInfo item = shortcuts.get(i);
|
Completed in 1754 milliseconds