Lines Matching refs:intent
105 public void onReceive(Context context, Intent intent) {
106 if (intent.getAction().equals(Intent.ACTION_CONFIGURATION_CHANGED)) {
127 // Save voice intent for later queries/launching
535 Intent intent = createIntent(action, null, null, query, actionKey, actionMsg);
536 launchIntent(intent);
540 * Launches an intent, including any special intent handling.
542 private void launchIntent(Intent intent) {
543 if (intent == null) {
546 Log.d(LOG_TAG, "launching " + intent);
548 // If the intent was created from a suggestion, it will always have an explicit
550 getContext().startActivity(intent);
557 Log.e(LOG_TAG, "Failed launch activity: " + intent, ex);
569 * Constructs an intent from the given information and the search dialog state.
581 * @return The intent.
586 Intent intent = new Intent(action);
587 intent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
592 intent.setData(data);
594 intent.putExtra(SearchManager.USER_QUERY, mUserQuery);
596 intent.putExtra(SearchManager.QUERY, query);
599 intent.putExtra(SearchManager.EXTRA_DATA_KEY, extraData);
602 intent.putExtra(SearchManager.APP_DATA, mAppSearchData);
605 intent.putExtra(SearchManager.ACTION_KEY, actionKey);
606 intent.putExtra(SearchManager.ACTION_MSG, actionMsg);
608 intent.setComponent(mSearchable.getSearchActivity());
609 return intent;