HomeSort by relevance Sort by last modified time
    Searched defs:suggestion (Results 1 - 25 of 155) sorted by null

1 2 3 4 5 6 7

  /packages/apps/Settings/src/com/android/settings/dashboard/suggestions/
SuggestionAdapter.java 68 final Tile suggestion = (Tile) mSuggestions.get(position); local
70 mContext, suggestion);
71 // This is for cases when a suggestion is dismissed and the next one comes to view
78 if (suggestion.remoteViews != null) {
81 itemView.addView(suggestion.remoteViews.apply(itemView.getContext(), itemView));
83 holder.icon.setImageDrawable(mCache.getIcon(suggestion.icon));
84 holder.title.setText(suggestion.title);
85 if (!TextUtils.isEmpty(suggestion.summary)) {
86 holder.summary.setText(suggestion.summary);
108 ((SettingsActivity) mContext).startSuggestion(suggestion.intent)
119 Tile suggestion = getSuggestion(position); local
    [all...]
SuggestionDismissController.java 33 * Returns suggestion tile data from the callback
38 * Called when a suggestion is dismissed.
40 void onSuggestionDismissed(Tile suggestion);
71 // Only return swipe direction for suggestion tiles. All other types are not swipeable.
82 final Tile suggestion = mCallback.getSuggestionForPosition(viewHolder.getAdapterPosition()); local
83 mSuggestionFeatureProvider.dismissSuggestion(mContext, mSuggestionParser, suggestion);
84 mCallback.onSuggestionDismissed(suggestion);
  /external/autotest/client/profilers/powertop/src/
suggestions.c 40 struct suggestion;
42 struct suggestion { struct
43 struct suggestion *next;
55 static struct suggestion *suggestions;
63 struct suggestion *ptr;
66 struct suggestion *next;
82 struct suggestion *new;
87 new = malloc(sizeof(struct suggestion));
90 memset(new, 0, sizeof(struct suggestion));
105 struct suggestion *ptr
    [all...]
  /frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
SuggestionList.java 32 // Category -> list of suggestion map
86 final Tile suggestion = suggestions.get(i); local
87 final String intentUri = suggestion.intent.toUri(Intent.URI_INTENT_SCHEME);
  /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/providers/ContactsProvider/src/com/android/providers/contacts/
GlobalSearchSupport.java 255 SearchSuggestion suggestion = new SearchSuggestion(); local
256 suggestion.filter = filter;
259 suggestion.contactId = c.getLong(0);
260 suggestion.lookupKey = c.getString(1);
261 suggestion.photoUri = c.getString(2);
262 suggestion.text1 = c.getString(3);
263 suggestion.presence = c.isNull(4) ? -1 : c.getInt(4);
264 suggestion.lastAccessTime = c.getString(5);
266 suggestion.text2 = shortenSnippet(c.getString(6));
268 cursor.addRow(suggestion.asList(projection))
    [all...]
  /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...]
SearchActivity.java 269 // Close all open suggestion cursors. The query will be redone in onResume()
389 Log.w(TAG, "Invalid suggestion position " + position + ", count = " + count);
404 // Since the intents for suggestions specified by suggestion providers,
411 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); local
412 if (suggestion == null) return false;
414 if (DBG) Log.d(TAG, "Launching suggestion " + id);
417 // Log suggestion click
418 getLogger().logSuggestionClick(id, suggestion.getCursor(),
422 launchSuggestion(suggestion.getCursor(), suggestion.getPosition())
435 SuggestionPosition suggestion = getCurrentSuggestions(adapter, id); local
    [all...]
  /frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/suggestions/
SuggestionParserTest.java 189 final Tile suggestion = new Tile(); local
190 suggestion.metaData = new Bundle();
191 suggestion.metaData.putString(SuggestionParser.META_DATA_DISMISS_CONTROL, "1,2,3");
192 suggestion.intent = new Intent().setComponent(new ComponentName("pkg", "cls"));
194 // Dismiss suggestion when smart suggestion is not enabled.
195 mSuggestionParser.dismissSuggestion(suggestion);
197 assertThat(mSuggestionParser.isDismissed(suggestion, true /* isSmartSuggestionEnabled */))
207 final Tile suggestion = mSuggestionsBeforeDismiss.get(0); local
208 if (mSuggestionParser.dismissSuggestion(suggestion)) {
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/suggestions/
SuggestionAdapterTest.java 84 mSuggestion1.title = "Test Suggestion 1";
86 mSuggestion2.title = "Test Suggestion 2";
198 Tile suggestion = new Tile(); local
199 suggestion.intent = new Intent("action");
200 suggestion.intent.setComponent(new ComponentName(pkgName, "cls"));
201 suggestions.add(suggestion);
202 suggestion.icon = mock(Icon.class);
SuggestionFeatureProviderImplTest.java 303 final Tile suggestion = new Tile(); local
304 suggestion.intent = new Intent()
306 assertThat(mProvider.getSuggestionIdentifier(RuntimeEnvironment.application, suggestion))
312 final Tile suggestion = new Tile(); local
313 suggestion.intent = new Intent()
315 assertThat(mProvider.getSuggestionIdentifier(mContext, suggestion))
321 final Tile suggestion = new Tile(); local
322 suggestion.intent = new Intent();
323 assertThat(mProvider.getSuggestionIdentifier(mContext, suggestion))
329 final Tile suggestion = new Tile() local
    [all...]
  /packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/
DashboardAdapterTest.java 593 Tile suggestion = new Tile(); local
594 suggestion.intent = new Intent("action");
595 suggestion.intent.setComponent(new ComponentName(pkgName, "cls"));
596 suggestions.add(suggestion);
  /packages/apps/UnifiedEmail/src/com/android/mail/ui/
MaterialSearchSuggestionsList.java 105 mController.onSearchPerformed(mSuggestions.get(position).suggestion);
132 final String suggestion = c.getString(textIndex); local
134 result.add(new SuggestionItem(suggestion, iconUri));
160 final String suggestion; field in class:MaterialSearchSuggestionsList.SuggestionItem
164 suggestion = s;
212 text.setText(item.suggestion);
214 item.suggestion));
  /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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/spellcheck/
AndroidWordLevelSpellCheckerSession.java 296 for (String suggestion : result.mSuggestions) {
298 builder.append(suggestion);
347 final String suggestion; local
349 suggestion = suggestedWordInfo.mWord.toUpperCase(locale);
351 suggestion = StringUtils.capitalizeFirstCodePoint(
354 suggestion = suggestedWordInfo.mWord;
356 suggestions.add(suggestion);
  /packages/apps/Contacts/src/com/android/contacts/editor/
AggregationSuggestionEngine.java 60 public static final class Suggestion {
72 return MoreObjects.toStringHelper(Suggestion.class)
378 public List<Suggestion> getSuggestions() {
379 final ArrayList<Suggestion> list = Lists.newArrayList();
382 Suggestion suggestion = null; local
388 suggestion = new Suggestion();
389 suggestion.rawContactId = rawContactId;
390 suggestion.contactId = mDataCursor.getLong(DataQuery.CONTACT_ID)
    [all...]
ContactEditorFragment.java 67 import com.android.contacts.editor.AggregationSuggestionEngine.Suggestion;
247 * User switched to editing a different raw contact (a suggestion from the
266 private final List<AggregationSuggestionEngine.Suggestion> mSuggestions;
269 AggregationSuggestionView.Listener listener, List<Suggestion> suggestions) {
277 final Suggestion suggestion = (Suggestion) getItem(position); local
282 suggestionView.bindSuggestion(suggestion);
    [all...]
  /packages/apps/Settings/src/com/android/settings/dashboard/
DashboardSummary.java 216 Log.d(TAG, "Suggestion feature is disabled, skipping suggestion entirely");
265 public void onSuggestionDismissed(Tile suggestion) {
266 mAdapter.onSuggestionDismissed(suggestion);
280 for (Tile suggestion : suggestions) {
282 context, suggestion));
284 // TODO: create a Suggestion class to maintain the id and other info
288 Tile suggestion = suggestions.get(i); local
289 if (mSuggestionsChecks.isSuggestionComplete(suggestion)) {
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/
InputLogic.java 115 * @param suggestionStripViewAccessor an object to access the suggestion strip view.
264 * A suggestion was picked from the suggestion strip.
266 * @param suggestionInfo the suggestion info.
277 final String suggestion = suggestionInfo.mWord; local
278 // If this is a punctuation picked from the suggestion strip, pass it to onCodeInput
279 if (suggestion.length() == 1 && suggestedWords.isPunctuationSuggestions()) {
280 // We still want to log a suggestion click.
297 if (SpaceState.PHANTOM == mSpaceState && suggestion.length() > 0
301 final int firstChar = Character.codePointAt(suggestion, 0)
    [all...]
  /prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.7.0/
javapoet-1.7.0.jar 
  /prebuilts/tools/common/m2/repository/com/squareup/javapoet/1.8.0/
javapoet-1.8.0.jar 
  /frameworks/base/core/java/android/widget/
Editor.java 2750 final String suggestion = suggestionInfo.mText.subSequence( local
3346 final String suggestion = suggestions[suggestionIndex]; local
    [all...]
  /prebuilts/tools/common/m2/repository/com/amazonaws/aws-java-sdk-cloudsearch/1.11.18/
aws-java-sdk-cloudsearch-1.11.18.jar 
  /prebuilts/devtools/tools/lib/
lint-checks.jar 

Completed in 484 milliseconds

1 2 3 4 5 6 7