/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
DefaultSuggestionView.java | 21 import com.android.quicksearchbox.Suggestion; 87 public void bindAsSuggestion(Suggestion suggestion, String userQuery) { 88 super.bindAsSuggestion(suggestion, userQuery); 90 CharSequence text1 = formatText(suggestion.getSuggestionText1(), suggestion); 91 CharSequence text2 = suggestion.getSuggestionText2Url(); 95 text2 = formatText(suggestion.getSuggestionText2(), suggestion); 109 mAsyncIcon1.set(suggestion.getSuggestionSource(), suggestion.getSuggestionIcon1()) [all...] |
WebSearchSuggestionView.java | 21 import com.android.quicksearchbox.Suggestion; 58 public void bindAsSuggestion(Suggestion suggestion, String userQuery) { 59 super.bindAsSuggestion(suggestion, userQuery); 62 suggestion.getSuggestionText1()); 64 setIsHistorySuggestion(suggestion.isHistorySuggestion()); 97 public boolean canCreateView(Suggestion suggestion) { 98 return suggestion.isWebSearchSuggestion();
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionUtils.java | 34 public static Intent getSuggestionIntent(SuggestionCursor suggestion, Bundle appSearchData) { 35 String action = suggestion.getSuggestionIntentAction(); 37 String data = suggestion.getSuggestionIntentDataString(); 38 String query = suggestion.getSuggestionQuery(); 39 String userQuery = suggestion.getUserQuery(); 40 String extraData = suggestion.getSuggestionIntentExtraData(); 62 intent.setComponent(suggestion.getSuggestionIntentComponent()); 67 * Gets a unique key that identifies a suggestion. This is used to avoid 70 public static String getSuggestionKey(Suggestion suggestion) { [all...] |
ShortcutRepositoryImplLog.java | 310 private boolean shouldRefresh(Suggestion suggestion) { 311 return mRefresher.shouldRefresh(suggestion.getSuggestionSource(), 312 suggestion.getShortcutId()); 416 // original suggestion. 528 private ContentValues makeShortcutRow(Suggestion suggestion) { 529 String intentAction = suggestion.getSuggestionIntentAction(); 530 String intentComponent = componentNameToString(suggestion.getSuggestionIntentComponent()); 531 String intentData = suggestion.getSuggestionIntentDataString() [all...] |
ShortcutsProvider.java | 175 SuggestionData suggestion = new SuggestionData(source); local 176 suggestion.setFormat(format); 177 suggestion.setText1(text1); 178 suggestion.setText2(text2); 179 suggestion.setText2Url(text2Url); 180 suggestion.setIcon1(icon1); 181 suggestion.setIcon2(icon2); 182 suggestion.setShortcutId(shortcutId); 183 suggestion.setSpinnerWhileRefreshing(spinnerWhileRefreshing); 184 suggestion.setIntentAction(intentAction) [all...] |
SearchActivity.java | 339 // Close all open suggestion cursors. The query will be redone in onResume() 473 Log.w(TAG, "Invalid suggestion position " + position + ", count = " + count); 493 // Since the intents for suggestions specified by suggestion providers, 500 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); local 501 if (suggestion == null) return false; 503 if (DBG) Log.d(TAG, "Launching suggestion " + id); 506 // Log suggestion click 507 getLogger().logSuggestionClick(id, suggestion.getCursor(), getCurrentIncludedCorpora(), 511 getShortcutRepository().reportClick(suggestion.getCursor(), suggestion.getPosition()) 527 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); local 546 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); local 573 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); local 589 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); local [all...] |
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
GlobalSearchSupport.java | 334 SearchSuggestion suggestion = new SearchSuggestion(); local 335 suggestion.filter = filter; 338 suggestion.contactId = c.getLong(0); 339 suggestion.lookupKey = c.getString(1); 340 suggestion.photoUri = c.getString(2); 341 suggestion.text1 = c.getString(3); 342 suggestion.presence = c.isNull(4) ? -1 : c.getInt(4); 343 suggestion.lastAccessTime = c.getString(5); 345 suggestion.text2 = shortenSnippet(c.getString(6)); 347 cursor.addRow(suggestion.asList(projection)) [all...] |
/external/chromium/chrome/browser/autocomplete/ |
keyword_provider.cc | 462 // It's possible to change the default suggestion while not in an editing 493 const ExtensionOmniboxSuggestion& suggestion = local 497 // and subtract 1 for each subsequent suggestion from the extension. 504 suggestion.content, first_relevance - (i + 1))); 507 match->contents.assign(suggestion.description); 508 match->contents_class = suggestion.description_styles;
|
autocomplete_edit.cc | 197 const string16 suggestion = view_->GetInstantSuggestion(); local 198 if (suggestion.empty()) 201 FinalizeInstantQuery(view_->GetText(), suggestion, skip_inline_autocomplete); 285 // autocomplete suggestion of "foo.net". He now presses ctrl-a (e.g. to 811 // Return true if the suggestion type warrants a TCP/IP preconnection. [all...] |
autocomplete_edit_view_gtk.cc | 361 // Setup for the Instant suggestion text view. 765 void AutocompleteEditViewGtk::SetInstantSuggestion(const string16& suggestion, 767 std::string suggestion_utf8 = UTF16ToUTF8(suggestion); 773 if (suggestion.empty()) { 792 const gchar* suggestion = gtk_label_get_text(GTK_LABEL(instant_view_)); local 793 return suggestion ? UTF8ToUTF16(suggestion) : string16(); 816 // Use the real end iterator here to take the width of instant suggestion [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_omnibox_api.cc | 27 "Suggestion descriptionStyles must be in increasing non-overlapping order."; 29 "Suggestion descriptionStyles contains an offset longer than the" 46 // Returns the suggestion object set by the extension via the 118 ExtensionOmniboxSuggestion& suggestion = suggestions.suggestions[i]; local 123 kSuggestionContent, &suggestion.content)); 125 kSuggestionDescription, &suggestion.description)); 131 EXTENSION_FUNCTION_VALIDATE(suggestion.ReadStylesFromValue(*styles)); 133 suggestion.description_styles.clear(); 134 suggestion.description_styles.push_back( 148 ExtensionOmniboxSuggestion suggestion; local 238 const ExtensionOmniboxSuggestion* suggestion = local [all...] |
/development/samples/SoftKeyboard/src/com/example/android/softkeyboard/ |
CandidateView.java | 182 String suggestion = mSuggestions.get(i); local 183 float textWidth = paint.measureText(suggestion); 206 canvas.drawText(suggestion, x + X_GAP, y, paint);
|
/frameworks/base/core/java/android/webkit/ |
SearchBoxImpl.java | 280 final JSONObject suggestion = suggestionsArray.getJSONObject(i); local 281 final String value = suggestion.getString("value"); 285 // We currently ignore the "type" of the suggestion. This isn't
|
/external/chromium/chrome/browser/instant/ |
instant_loader.cc | 641 // If state hasn't changed, reuse the last suggestion. There are two cases: 856 string16 suggestion = complete_suggested_text_.substr(user_text_.size()); local 858 delegate_->SetSuggestedTextFor(this, suggestion, behavior); [all...] |
/external/oprofile/libpp/ |
arrange_profiles.cpp | 105 string suggestion; member in struct:__anon9128::axis_t 205 str += "Suggestion: "; 206 str += axes[classes.axis].suggestion;
|
/packages/apps/Contacts/src/com/android/contacts/editor/ |
AggregationSuggestionEngine.java | 70 public static final class Suggestion { 373 public List<Suggestion> getSuggestions() { 374 ArrayList<Suggestion> list = Lists.newArrayList(); 376 Suggestion suggestion = null; local 382 suggestion = new Suggestion(); 383 suggestion.contactId = contactId; 384 suggestion.name = mDataCursor.getString(DataQuery.DISPLAY_NAME); 385 suggestion.lookupKey = mDataCursor.getString(DataQuery.LOOKUP_KEY) [all...] |
ContactEditorFragment.java | 26 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion; 184 * - After the user has accepted an edit suggestion 245 private final List<Suggestion> mSuggestions; 248 AggregationSuggestionView.Listener listener, List<Suggestion> suggestions) { 257 Suggestion suggestion = (Suggestion) getItem(position); local 264 suggestionView.bindSuggestion(suggestion); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/voice/ |
VoiceInput.java | 76 // Dummy word suggestion which means "delete current word" 451 public void logTextModifiedByChooseSuggestion(String suggestion, int index, 455 // in suggestion and wordToBeReplaced. 456 mLogger.textModifiedByChooseSuggestion(suggestion.length(), wordToBeReplaced.length(), 457 index, wordToBeReplaced, suggestion); local
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/deprecated/ |
VoiceProxy.java | 174 public void flushAndLogAllTextModificationCounters(int index, CharSequence suggestion, 182 mVoiceInput.logTextModifiedByChooseSuggestion(suggestion.toString(), index, 413 public void rememberReplacedWord(CharSequence suggestion,String wordSeparators) { 426 if (suggestions.contains(suggestion)) { 427 suggestions.remove(suggestion); 431 mWordToSuggestions.put(suggestion.toString(), suggestions); [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
LatinIME.java | 1901 TextEntryState.acceptedSuggestion(mComposingStringBuilder.toString(), suggestion); local [all...] |
/frameworks/base/core/java/android/widget/ |
TextView.java | 9962 final String suggestion = suggestionInfo.text.subSequence( local [all...] |