/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);
|
DefaultSuggestionView.java | 74 public void bindAsSuggestion(SuggestionCursor suggestion) { 75 String format = suggestion.getSuggestionFormat(); 76 CharSequence text1 = formatText(suggestion.getSuggestionText1(), format); 77 CharSequence text2 = suggestion.getSuggestionText2Url(); 81 text2 = formatText(suggestion.getSuggestionText2(), format); 83 Drawable icon1 = getSuggestionDrawableIcon1(suggestion); 84 Drawable icon2 = getSuggestionDrawableIcon2(suggestion); 104 public Drawable getSuggestionDrawableIcon1(SuggestionCursor suggestion) { 105 Source source = suggestion.getSuggestionSource(); 106 String icon1Id = suggestion.getSuggestionIcon1() [all...] |
SuggestionViewInflater.java | 29 * Inflates suggestion views. 33 // The suggestion view classes that may be returned by this factory. 41 R.layout.suggestion, 62 public int getSuggestionViewType(SuggestionCursor suggestion) { 63 return isContactSuggestion(suggestion) ? 1 : 0; 76 private boolean isContactSuggestion(SuggestionCursor suggestion) { 77 String intentData = suggestion.getSuggestionIntentDataString();
|
ContactSuggestionView.java | 52 public void bindAsSuggestion(SuggestionCursor suggestion) { 53 super.bindAsSuggestion(suggestion); 54 mQuickContact.assignContactUri(Uri.parse(suggestion.getSuggestionIntentDataString()));
|
SuggestionViewFactory.java | 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(SuggestionCursor suggestion); 40 * Gets a suggestion view, possibly recycling convertView.
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
DataSuggestionCursor.java | 46 for (SuggestionData suggestion : suggestions) { 47 mSuggestions.add(suggestion); 52 * Adds a suggestion. 54 * @param suggestion 57 public boolean add(SuggestionData suggestion) { 58 mSuggestions.add(suggestion);
|
ShortcutRepositoryImplLog.java | 242 private boolean shouldRefresh(SuggestionCursor suggestion) { 243 return mRefresher.shouldRefresh(suggestion.getSuggestionSource(), 244 suggestion.getShortcutId()); 425 private ContentValues makeShortcutRow(SuggestionCursor suggestion) { 426 String intentAction = suggestion.getSuggestionIntentAction(); 427 String intentData = suggestion.getSuggestionIntentDataString(); 428 String intentQuery = suggestion.getSuggestionQuery(); 429 String intentExtraData = suggestion.getSuggestionIntentExtraData(); 431 Source source = suggestion.getSuggestionSource(); 447 // for use as a unique identifier of a suggestion [all...] |
/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 | 233 CharSequence suggestion = mSuggestions.get(i); local 234 if (suggestion == null) continue; 247 float textWidth = paint.measureText(suggestion, 0, suggestion.length()); 263 mSelectedString = suggestion; 268 canvas.drawText(suggestion, 0, suggestion.length(), x + wordWidth / 2, y, paint);
|
LatinIME.java | 209 // Indicates whether the suggestion strip is to be on in landscape 1537 TextEntryState.acceptedSuggestion(mComposing.toString(), suggestion); local [all...] |
Suggest.java | 135 private boolean haveSufficientCommonality(String original, CharSequence suggestion) { 137 final int suggestionLength = suggestion.length(); 145 if (origChar == ExpandableDictionary.toLowerCase(suggestion.charAt(i))) { 149 && origChar == ExpandableDictionary.toLowerCase(suggestion.charAt(i + 1))) { 211 // 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 | 519 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 DataSuggestionCursor(query, suggestion), 0); 707 protected void reportClick(String query, SuggestionData suggestion, long now) { 708 reportClickAtTime(new DataSuggestionCursor(query, suggestion), 0, now); 724 protected void refreshShortcut(Source source, String shortcutId, SuggestionData suggestion) { 726 suggestion == null ? null : new DataSuggestionCursor(null, suggestion); [all...] |
/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...] |