/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));
|
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...] |
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);
|
ShortcutRepository.java | 25 * Holds information about shortcuts (results the user has clicked on before), and returns 26 * appropriate shortcuts for a given query. 62 * Gets shortcuts for a query. 65 * @param allowedCorpora The corpora to get shortcuts for. 66 * @param allowWebSearchShortcuts Whether to include web search shortcuts. 67 * @param consumer Consumer that the shortcuts cursor will be passed to. 68 * The shortcut cursor passed to the consumer may be null if there are no shortcuts.
|
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...] |
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
|
AbstractInternalSource.java | 71 * Shortcuts from previous version are compatible with shortcuts from this version, so we just 72 * return true. If shortcuts become incompatible during an upgrade, some examination of the
|
SingleCorpusResultsPromoter.java | 19 * Promotes non-web-search shortcuts and suggestions from a single corpus.
|
ShortcutRefresher.java | 20 * Fires off tasks to validate shortcuts, and reports the results back to a 57 * Resets internal state. This results in all shortcuts requiring refreshing.
|
DefaultCorpusRanker.java | 52 * @param shortcuts Shortcut repository for getting corpus scores. 54 public DefaultCorpusRanker(Corpora corpora, ShortcutRepository shortcuts) { 57 mShortcuts = shortcuts;
|
/external/iptables/include/linux/netfilter/ |
xt_time.h | 18 /* Shortcuts */
|
/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...");
|
SearchSettingsActivity.java | 59 * Get the name of the fragment that contains only a 'clear shortcuts' preference, and hence 60 * can be removed if zero-query shortcuts are disabled. Returns null if no such fragment exists. 71 // remove 'clear shortcuts'
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
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);
|
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);
|
/external/chromium/chrome/browser/ui/web_applications/ |
web_app_ui.h | 22 // updates web app icon and shortcuts if needed. For icon, the check is based 23 // on MD5 hash of icon image. For shortcuts, it checks the desktop, start menu
|
web_app_ui.cc | 33 // It schedules a pre-update check to find all shortcuts that needs to be 34 // updated. If there are such shortcuts, it schedules icon download and 55 // Checks if shortcuts exists on desktop, start menu and quick launch. 62 // Callback after shortcuts are updated. 71 // Underlying TabContentsWrapper whose shortcuts will be updated. 86 // Existing shortcuts. 236 // Update existing shortcuts' description, icon and app id.
|
/packages/apps/QuickSearchBox/res/values/ |
strings.xml | 61 <string name="device_settings_category_title">Clear shortcuts</string> 70 <!-- Title and summary used for the option to clear search shortcuts from the system 72 <string name="clear_shortcuts">Clear shortcuts</string> 73 <string name="clear_shortcuts_summary">Clear shortcuts to recently chosen search suggestions</string> 75 <!--[CHAR LIMIT=200] Title used in the dialog shown after choosing the 'clear search shortcuts' setting. --> 76 <string name="clear_shortcuts_prompt">"Do you want to clear all shortcuts to recently chosen search suggestions?"\n\n"To clear your Browser history, use the Browser's settings."</string> 77 <!--[CHAR LIMIT=30] Text used on the button to clear shortcuts in the dialog shown after choosing the 'clear search shortcuts' setting. --> 78 <string name="clear_shortcuts_agree">Clear shortcuts</string> 79 <!--[CHAR LIMIT=30] Text used on the button to cancel in the dialog shown after choosing the 'clear search shortcuts' setting. -- [all...] |
/external/chromium/chrome/browser/ |
global_keyboard_shortcuts_mac.h | 34 // this. Hence, we need three types of keyboard shortcuts: shortcuts that are 35 // intercepted before the Omnibox handles events, shortcuts that are 37 // shortcuts that are only handled when tab contents is focused. 44 // This returns shortcuts that should work no matter what component of the 52 // This returns shortcuts that should work no matter what component of the 59 // This returns shortcuts that should work only if the tab contents have focus
|
/packages/apps/QuickSearchBox/res/values-en-rGB/ |
strings.xml | 33 <string name="device_settings_category_title" msgid="2378889894648580869">"Clear shortcuts"</string> 38 <string name="clear_shortcuts_summary" msgid="7407553488405249541">"Clear shortcuts to recently chosen search suggestions"</string> 39 <string name="clear_shortcuts_prompt" msgid="6487883523491520343">"Do you want to clear all shortcuts to recently chosen search suggestions?"\n\n"To clear your Browser history, use the Browser\'s settings."</string> 40 <string name="clear_shortcuts_agree" msgid="5623666487205882033">"Clear shortcuts"</string> 41 <string name="clear_shortcuts_disagree" msgid="3667707814933648461">"Don\'t clear shortcuts"</string>
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
CombinedInputOutput.java | 128 ArrayList<WeightedString> shortcuts = new ArrayList<WeightedString>(); local 134 dict.add(word, freq, shortcuts.isEmpty() ? null : shortcuts, isNotAWord); 139 if (!shortcuts.isEmpty()) shortcuts = new ArrayList<WeightedString>(); 168 shortcuts.add(new WeightedString(shortcut, shortcutFreq)); 192 dict.add(word, freq, shortcuts.isEmpty() ? null : shortcuts, isNotAWord);
|
/packages/apps/Launcher2/res/values-en-rGB/ |
strings.xml | 42 <string name="group_shortcuts" msgid="9133529424900391877">"Shortcuts"</string> 79 <string name="permlab_install_shortcut" msgid="1201690825493376489">"install shortcuts"</string> 80 <string name="permdesc_install_shortcut" msgid="8634424803272077038">"Allows an app to add shortcuts without user intervention."</string> 81 <string name="permlab_uninstall_shortcut" msgid="7696645932555926449">"uninstall shortcuts"</string> 82 <string name="permdesc_uninstall_shortcut" msgid="274355570620220977">"Allows the app to remove shortcuts without user intervention."</string> 83 <string name="permlab_read_settings" msgid="3452408290738106747">"read Home settings and shortcuts"</string> 84 <string name="permdesc_read_settings" msgid="5788109303585403679">"Allows an app to read the settings and shortcuts in Home."</string> 85 <string name="permlab_write_settings" msgid="1360567537236705628">"write Home settings and shortcuts"</string> 86 <string name="permdesc_write_settings" msgid="8530105489115785531">"Allows the app to change the settings and shortcuts in Home."</string>
|
/external/chromium/chrome/browser/ui/views/ |
create_application_shortcut_view.h | 32 // Shortcuts that load a URL in an app-like window, and shortcuts that load 69 // Profile in which the shortcuts will be created.
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
ShortcutManager.java | 33 * Manages quick launch shortcuts by: 75 Log.e(TAG, "ShortcutObserver could not re-query shortcuts."); 97 * strip whatever modifier is used for invoking shortcuts (for example,
|