/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SuggestionNonFormatter.java | 30 public CharSequence formatSuggestion(String query, String suggestion) { 31 return suggestion;
|
ListSuggestionCursorNoDuplicates.java | 40 public boolean add(Suggestion suggestion) { 41 String key = getSuggestionKey(suggestion); 43 return super.add(suggestion); 51 * Gets a unique key that identifies a suggestion. This is used to avoid 54 private String getSuggestionKey(Suggestion suggestion) { 55 String action = makeKeyComponent(suggestion.getSuggestionIntentAction()); 56 String data = makeKeyComponent(normalizeUrl(suggestion.getSuggestionIntentDataString())); 57 String query = makeKeyComponent(normalizeUrl(suggestion.getSuggestionQuery())) [all...] |
SuggestionUtils.java | 32 public static Intent getSuggestionIntent(SuggestionCursor suggestion, Bundle appSearchData) { 33 Source source = suggestion.getSuggestionSource(); 34 String action = suggestion.getSuggestionIntentAction(); 36 String data = suggestion.getSuggestionIntentDataString(); 37 String query = suggestion.getSuggestionQuery(); 38 String userQuery = suggestion.getUserQuery(); 39 String extraData = suggestion.getSuggestionIntentExtraData();
|
ListSuggestionCursor.java | 35 private final ArrayList<Suggestion> mSuggestions; 44 public ListSuggestionCursor(String userQuery, Suggestion...suggestions) { 46 for (Suggestion suggestion : suggestions) { 47 mSuggestions.add(suggestion); 53 mSuggestions = new ArrayList<Suggestion>(capacity); 57 * Adds a suggestion from another suggestion cursor. 59 * @return {@code true} if the suggestion was added. 61 public boolean add(Suggestion suggestion) [all...] |
ShortcutsProvider.java | 164 SuggestionData suggestion = new SuggestionData(source); local 165 suggestion.setFormat(format); 166 suggestion.setText1(text1); 167 suggestion.setText2(text2); 168 suggestion.setText2Url(text2Url); 169 suggestion.setIcon1(icon1); 170 suggestion.setIcon2(icon2); 171 suggestion.setShortcutId(shortcutId); 172 suggestion.setSpinnerWhileRefreshing(spinnerWhileRefreshing); 173 suggestion.setIntentAction(intentAction) [all...] |
LevenshteinSuggestionFormatter.java | 28 * Suggestion formatter using the Levenshtein distance (minumum edit distance) to calculate the 40 public Spanned formatSuggestion(String query, String suggestion) { 41 if (DBG) Log.d(TAG, "formatSuggestion('" + query + "', '" + suggestion + "')"); 44 final Token[] suggestionTokens = tokenize(suggestion); 51 final SpannableString str = new SpannableString(suggestion); 76 * @param target List of target tokens (i.e. suggestion)
|
ShortcutRepositoryImplLog.java | 269 private boolean shouldRefresh(Suggestion suggestion) { 270 return mRefresher.shouldRefresh(suggestion.getSuggestionSource(), 271 suggestion.getShortcutId()); 441 private ContentValues makeShortcutRow(Suggestion suggestion) { 442 String intentAction = suggestion.getSuggestionIntentAction(); 443 String intentData = suggestion.getSuggestionIntentDataString(); 444 String intentQuery = suggestion.getSuggestionQuery(); 445 String intentExtraData = suggestion.getSuggestionIntentExtraData() [all...] |
SuggestionFormatter.java | 22 * Suggestion formatter interface. This is used to bold (or otherwise highlight) portions of a 23 * suggestion which were not a part of the query. 34 * Formats a suggestion for display in the UI. 37 * @param suggestion the suggestion 38 * @return Formatted suggestion text. 40 public abstract CharSequence formatSuggestion(String query, String suggestion);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
SuggestionView.java | 26 * Set the view's contents based on the given suggestion. 28 void bindAsSuggestion(SuggestionCursor suggestion, SuggestionClickListener clickListener);
|
SuggestionViewInflater.java | 20 import com.android.quicksearchbox.Suggestion; 29 * Inflates suggestion views. 33 // The suggestion view classes that may be returned by this factory. 41 R.layout.suggestion, 62 public int getSuggestionViewType(Suggestion suggestion) { 63 return isContactSuggestion(suggestion) ? 1 : 0; 76 private boolean isContactSuggestion(Suggestion suggestion) { 77 String intentData = suggestion.getSuggestionIntentDataString() [all...] |
DefaultSuggestionView.java | 22 import com.android.quicksearchbox.Suggestion; 90 public void bindAsSuggestion(SuggestionCursor suggestion, SuggestionClickListener onClick) { 93 mPosition = suggestion.getPosition(); 96 CharSequence text1 = formatText(suggestion.getSuggestionText1(), suggestion, true); 97 CharSequence text2 = suggestion.getSuggestionText2Url(); 101 text2 = formatText(suggestion.getSuggestionText2(), suggestion, false); 103 Drawable icon1 = getSuggestionDrawableIcon1(suggestion); 104 Drawable icon2 = getSuggestionDrawableIcon2(suggestion); [all...] |
SuggestionViewFactory.java | 19 import com.android.quicksearchbox.Suggestion; 25 * Creates suggestion views. 30 * Gets the number of distinct suggestion view types created by this factory. 35 * Gets the view type associated with a given suggestion. 37 int getSuggestionViewType(Suggestion suggestion); 40 * Gets a suggestion view, possibly recycling convertView.
|
ContactSuggestionView.java | 53 public void bindAsSuggestion(SuggestionCursor suggestion, SuggestionClickListener onClick) { 54 super.bindAsSuggestion(suggestion, onClick); 55 mQuickContact.assignContactUri(Uri.parse(suggestion.getSuggestionIntentDataString()));
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
GlobalSearchSupport.java | 383 SearchSuggestion suggestion = suggestionMap.get(contactId); local 384 if (suggestion == null) { 385 suggestion = new SearchSuggestion(contactId); 386 suggestionList.add(suggestion); 387 suggestionMap.put(contactId, suggestion); 391 suggestion.text1 = c.getString(SearchSuggestionQuery.DISPLAY_NAME); 394 suggestion.presence = c.getInt(SearchSuggestionQuery.PRESENCE_STATUS); 399 suggestion.titleIsName = true; 401 if (isSuperPrimary || suggestion.organization == null) { 402 suggestion.organization = c.getString(SearchSuggestionQuery.ORGANIZATION) [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
CandidateView.java | 138 // Slightly reluctant to scroll to be able to easily choose the suggestion 236 CharSequence suggestion = mSuggestions.get(i); local 237 if (suggestion == null) continue; 238 final int wordLength = suggestion.length(); 247 // HACK: even if i == 0, we use mColorOther when this suggestion's length is 1 and 253 float textWidth = paint.measureText(suggestion, 0, wordLength); 268 mSelectedString = suggestion; 273 canvas.drawText(suggestion, 0, wordLength, x + wordWidth / 2, y, paint); 321 for (CharSequence suggestion : suggestions) { 322 mSuggestions.add(suggestion); [all...] |
LatinIME.java | 195 // Bigram Suggestion is disabled in this version. 223 // Indicates whether the suggestion strip is to be on in landscape 1923 TextEntryState.acceptedSuggestion(mComposing.toString(), suggestion); local [all...] |
Suggest.java | 186 private boolean haveSufficientCommonality(String original, CharSequence suggestion) { 188 final int suggestionLength = suggestion.length(); 196 if (origChar == ExpandableDictionary.toLowerCase(suggestion.charAt(i))) { 200 && origChar == ExpandableDictionary.toLowerCase(suggestion.charAt(i + 1))) { 237 // Treating USER_TYPED as UNIGRAM suggestion for logging now. 312 // Check if the first suggestion has a minimum number of characters in common
|
/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);
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
ShortcutRepositoryTest.java | 530 assertNoShortcuts("never-shortcutted suggestion should not be there.", "unshortcuttable"); 697 for (SuggestionData suggestion : suggestions) { 698 cursor.add(suggestion); 703 protected void reportClick(String query, SuggestionData suggestion) { 704 reportClick(new ListSuggestionCursor(query, suggestion), 0); 707 protected void reportClick(String query, SuggestionData suggestion, long now) { 708 reportClickAtTime(new ListSuggestionCursor(query, suggestion), 0, now); 724 protected void refreshShortcut(Source source, String shortcutId, SuggestionData suggestion) { 726 suggestion == null ? null : new ListSuggestionCursor(null, suggestion); [all...] |
LevenshteinFormatterTest.java | 151 private void verifyFormatSuggestion(String query, String suggestion, SpanFormat... spans) { 152 Spanned s = mFormatter.formatSuggestion(query, suggestion); 163 verifyFormatSuggestion("", "suggestion", 164 new SpanFormat(0, "suggestion", mSuggestedStyle));
|
/external/webkit/JavaScriptCore/bytecompiler/ |
BytecodeGenerator.h | 125 // The same as newTemporary(), but this function returns "suggestion" if 126 // "suggestion" is a temporary. This function is helpful in situations 127 // where you've put "suggestion" in a RefPtr, but you'd like to allow 129 RegisterID* newTemporaryOr(RegisterID* suggestion) { return suggestion->isTemporary() ? suggestion : newTemporary(); }
|
/external/dropbear/libtomcrypt/ |
crypt.tex | 653 fact used for the purposes of encryption. My suggestion is just to use random 8/24 byte keys instead of trying to make a 8/24 [all...] |