HomeSort by relevance Sort by last modified time
    Searched refs:shortcuts (Results 1 - 25 of 28) sorted by null

1 2

  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
ShortcutPromoter.java 23 * A promoter limits the maximum number of shortcuts per source
40 void promoteShortcuts(SuggestionCursor shortcuts, int maxPromoted,
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));
WebPromoter.java 35 // Add web shortcuts
36 SuggestionCursor shortcuts = suggestions.getShortcuts(); local
37 int shortcutCount = shortcuts == null ? 0 : shortcuts.getCount();
41 shortcuts.moveTo(i);
42 if (shortcuts.isWebSearchSuggestion()) {
44 promoted.add(new SuggestionPosition(shortcuts, i));
Suggestions.java 136 * @param shortcuts The shortcuts.
138 public void setShortcuts(ShortcutCursor shortcuts) {
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 for wrong query:
    [all...]
SingleCorpusPromoter.java 22 * Promotes shortcuts and suggestions from a single corpus.
43 // Add shortcuts
44 SuggestionCursor shortcuts = suggestions.getShortcuts(); local
45 promoteUntilFull(shortcuts, mMaxShortcuts, promoted);
DefaultCorpusRanker.java 52 * @param shortcuts Shortcut repository for getting corpus scores.
54 public DefaultCorpusRanker(Corpora corpora, ShortcutRepository shortcuts) {
57 mShortcuts = shortcuts;
ShortcutCursor.java 27 * A SuggestionCursor that allows shortcuts to be updated by overlaying
47 private ShortcutCursor(String query, SuggestionCursor shortcuts, Handler uiThread,
50 mShortcuts = shortcuts;
72 if (DBG) Log.d(TAG, "Total shortcuts: " + count);
86 // Needed to make refreshed shortcuts be treated as shortcuts
SearchActivity.java 567 if (DBG) Log.d(TAG, "Removing suggestion " + position + " from shortcuts");
648 public boolean consume(ShortcutCursor shortcuts) {
649 suggestions.setShortcuts(shortcuts);
ShortcutRepositoryImplLog.java 65 "SELECT " + Shortcuts.intent_key.fullName + " FROM " + Shortcuts.TABLE_NAME;
70 Shortcuts.shortcut_id.name() + "=? AND " + Shortcuts.source.name() + "=?";
115 Shortcuts.TABLE_NAME + " ON " + ClickLog.intent_key.fullName + " = " +
116 Shortcuts.intent_key.fullName;
121 Shortcuts.intent_key.fullName,
122 Shortcuts.source.fullName,
123 Shortcuts.source_version_code.fullName,
124 Shortcuts.format.fullName + AS + SearchManager.SUGGEST_COLUMN_FORMAT
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
SourceShortcutRefresherTest.java 73 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); local
74 mRefresher.refresh(shortcuts, mListener);
84 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); local
85 mRefresher.refresh(shortcuts, mListener);
95 ListSuggestionCursor shortcuts = new ListSuggestionCursor(mQuery, shortcut1); local
96 mRefresher.refresh(shortcuts, mListener);
BlendingPromoterTest.java 118 SuggestionCursor shortcuts = cursor(mS11, mS12, mS21, mS22, mWeb1, mWeb2); local
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,
130 return promote(config, shortcuts, maxPromoted);
133 private ListSuggestionCursorNoDuplicates promote(Config config, SuggestionCursor shortcuts,
138 promoter.promoteShortcuts(shortcuts, maxPromoted, promoted);
RankAwarePromoterTest.java 114 SuggestionCursor shortcuts = mShortcuts. local
116 for (int i = 0; i < shortcuts.getCount(); ++i) {
117 promoted.add(new SuggestionPosition(shortcuts, 1));
142 Source mockSource = new MockSource("Shortcuts");
ResultPromoterTest.java 89 private ListSuggestionCursor promoteShortcuts(SuggestionCursor shortcuts) {
92 promoter.promoteShortcuts(shortcuts, MAX_PROMOTED_SUGGESTIONS, promoted);
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/
ClearShortcutsController.java 27 * Logic behind the 'clear shortcuts' preference.
42 public ClearShortcutsController(ShortcutRepository shortcuts) {
43 mShortcuts = shortcuts;
74 * Enables/disables the "Clear search shortcuts" preference depending
89 Log.i(TAG, "Clearing shortcuts...");
PreferenceControllerFactory.java 54 ShortcutRepository shortcuts = QsbApplication.get(getContext()).getShortcutRepository(); local
55 addController(new ClearShortcutsController(shortcuts), p);
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
SubtypeSwitcher.java 175 final Map<InputMethodInfoCompatWrapper, List<InputMethodSubtypeCompatWrapper>> shortcuts = local
179 for (InputMethodInfoCompatWrapper imi : shortcuts.keySet()) {
180 List<InputMethodSubtypeCompatWrapper> subtypes = shortcuts.get(imi);
181 // TODO: Returns the first found IMI for now. Should handle all shortcuts as
  /development/samples/ApiDemos/src/com/example/android/apis/app/
MenuInflateFromXml.java 44 R.menu.checkable, R.menu.shortcuts, R.menu.order, R.menu.category_order,
53 "Checkable", "Shortcuts", "Order", "Category and Order",
  /external/libvpx/examples/includes/PHP-SmartyPants-1.5.1e/
smartypants.php 87 # 2 : set all, using old school en- and em- dash shortcuts
88 # 3 : set all, using inverted old school en and em- dash shortcuts
333 # use old smart dash shortcuts, "--" for en, "---" for em
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
SearchActivityViewTwoPane.java 87 mResultsView = (ClusteredSuggestionsView) findViewById(R.id.shortcuts);
  /dalvik/docs/
prettify.js 538 * order if the shortcut ones fail. May have shortcuts.
545 var shortcuts = {};
553 shortcuts[shortcutChars.charAt(c)] = patternParts;
574 var patternParts = shortcuts[tail.charAt(0)];
    [all...]
  /system/core/libpixelflinger/
scanline.cpp 166 static shortcut_t shortcuts[] = { member in namespace:android
344 const int numFilters = sizeof(shortcuts)/sizeof(shortcut_t);
346 if (c->state.needs.match(shortcuts[i].filter)) {
347 c->scanline = shortcuts[i].scanline;
348 c->init_y = shortcuts[i].init_y;
    [all...]
  /packages/apps/Launcher2/src/com/android/launcher2/
AppsCustomizePagedView.java 167 * The Apps/Customize page that displays all the applications, widgets, and shortcuts.
459 // Get the list of widgets and shortcuts
465 List<ResolveInfo> shortcuts = mPackageManager.queryIntentActivities(shortcutsIntent, 0); local
474 mWidgets.addAll(shortcuts);
    [all...]
Launcher.java 475 * Returns whether we should delay spring loaded mode -- for shortcuts and widgets that have
    [all...]
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);
308 * Returns true if the shortcuts already exists in the database.
    [all...]
  /external/libvpx/examples/includes/PHP-Markdown-Extra-1.2.3/
markdown.php 669 # Turn Markdown link shortcuts into XHTML <a> tags.
721 # Last, handle reference-style shortcuts: [link text]
794 # Turn Markdown image shortcuts into <img> tags.
    [all...]
  /external/chromium/chrome/browser/resources/bookmark_manager/js/
main.js     [all...]

Completed in 1414 milliseconds

1 2