Home | History | Annotate | Download | only in app

Lines Matching defs:intent

24 import android.content.Intent;
47 * and the {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH}
48 * {@link android.content.Intent Intent}.
83 * Intent extra data key: Use this key with
84 * {@link android.content.Intent#getStringExtra
85 * content.Intent.getStringExtra()}
86 * to obtain the query string from Intent.ACTION_SEARCH.
91 * Intent extra data key: Use this key with
92 * {@link android.content.Intent#getStringExtra
93 * content.Intent.getStringExtra()}
96 * if the intent is the result of selecting a suggestion.
105 * Intent extra data key: Use this key with Intent.ACTION_SEARCH and
106 * {@link android.content.Intent#getBundleExtra
107 * content.Intent.getBundleExtra()}
114 * Intent extra data key: Use {@link android.content.Intent#getBundleExtra
115 * content.Intent.getBundleExtra(SEARCH_MODE)} to get the search mode used
116 * to launch the intent.
124 * Intent extra data key: Use this key with Intent.ACTION_SEARCH and
125 * {@link android.content.Intent#getIntExtra content.Intent.getIntExtra()}
134 * Intent extra data key: This key will be used for the extra populated by the
147 * Boolean extra data key for {@link Intent#ACTION_WEB_SEARCH} intents. If {@code true},
153 * Extra data key for {@link Intent#ACTION_WEB_SEARCH}. If set, the value must be a
154 * {@link PendingIntent}. The search activity handling the {@link Intent#ACTION_WEB_SEARCH}
155 * intent will fill in and launch the pending intent. The data URI will be filled in with an
169 * Intent extra data key: Use this key with Intent.ACTION_SEARCH and
170 * {@link android.content.Intent#getStringExtra content.Intent.getStringExtra()}
277 * forming the suggestion's intent. If the element is not provided, the action will be taken
279 * these must be present for the suggestion to generate an intent.</i> Note: If your action is
287 * forming the suggestion's intent. If the element is not provided, the data will be taken
289 * is provided, the Intent's data field will be null. Note: If your data is
297 * forming the suggestion's intent. If not provided, the Intent's extra data field will be null.
305 * field in the Intent. This should only be used if the data field has already been set to an
311 * {@link android.content.Intent#ACTION_SEARCH ACTION_SEARCH}, optional otherwise.</i> If this
366 * Intent action for starting the global search activity.
367 * The global search provider should handle this intent.
377 * Intent action for starting the global search settings activity.
378 * The global search provider should handle this intent.
384 * Intent action for starting a web search provider's settings activity.
385 * Web search providers should handle this intent if they have provider-specific
392 * Intent action broadcasted to inform that the searchables list or default have changed.
393 * Components should handle this intent if they cache any searchable data and wish to stay
400 * Intent action to be broadcast to inform that the global search provider
407 * Intent action broadcasted to inform that the search settings have changed in some way.
465 * a search intent.</li>
487 * searches. This data will be returned with SEARCH intent(s). Null if
508 * source bounds for the global search intent.
546 Intent intent = new Intent(INTENT_ACTION_GLOBAL_SEARCH);
547 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
548 intent.setComponent(globalSearchActivity);
559 intent.putExtra(APP_DATA, appSearchData);
561 intent.putExtra(QUERY, initialQuery);
564 intent.putExtra(EXTRA_SELECT_QUERY, selectInitialQuery);
566 intent.setSourceBounds(sourceBounds);
568 if (DBG) Log.d(TAG, "Starting global search: " + intent.toUri(0));
569 mContext.startActivity(intent);
577 * intent.
628 * searches. This data will be returned with SEARCH intent(s). Null if
844 * Gets an intent for launching installed assistant activity, or null if not available.
845 * @return The assist intent.
849 public Intent getAssistIntent(Context context, boolean inclContext) {
854 * Gets an intent for launching installed assistant activity, or null if not available.
855 * @return The assist intent.
859 public Intent getAssistIntent(Context context, boolean inclContext, int userHandle) {
868 Intent intent = new Intent(Intent.ACTION_ASSIST);
869 intent.setComponent(comp);
874 intent.replaceExtras(extras);
877 return intent;