Lines Matching refs:intent

138     public synchronized void setForegroundDispatch(PendingIntent intent,
141 mOverrideIntent = intent;
154 public final Intent intent;
163 intent = new Intent();
164 intent.putExtra(NfcAdapter.EXTRA_TAG, tag);
165 intent.putExtra(NfcAdapter.EXTRA_ID, tag.getId());
167 intent.putExtra(NfcAdapter.EXTRA_NDEF_MESSAGES, new NdefMessage[] {message});
176 rootIntent.putExtra(NfcRootActivity.EXTRA_LAUNCH_INTENT, intent);
184 intent.setAction(NfcAdapter.ACTION_NDEF_DISCOVERED);
186 intent.setData(ndefUri);
187 return intent;
189 intent.setType(ndefMimeType);
190 return intent;
196 intent.setData(null);
197 intent.setType(null);
198 intent.setAction(NfcAdapter.ACTION_TECH_DISCOVERED);
199 return intent;
203 intent.setData(null);
204 intent.setType(null);
205 intent.setAction(NfcAdapter.ACTION_TAG_DISCOVERED);
206 return intent;
222 * start activity on the intent it is passed.
226 // NfcRootActivity was able to launch the intent, but startActivityForResult()
228 // to determine if there is an Activity to handle this intent, and base the
230 List<ResolveInfo> activities = packageManager.queryIntentActivitiesAsUser(intent, 0,
337 Log.e(TAG, "Dropping NFC intent in provisioning mode.");
438 Intent intent;
442 intent = dispatch.setNdefIntent();
443 if (intent != null &&
444 isFilterMatch(intent, overrideFilters, overrideTechLists != null)) {
446 overrideIntent.send(mContext, Activity.RESULT_OK, intent);
456 intent = dispatch.setTechIntent();
459 overrideIntent.send(mContext, Activity.RESULT_OK, intent);
468 intent = dispatch.setTagIntent();
469 if (isFilterMatch(intent, overrideFilters, overrideTechLists != null)) {
471 overrideIntent.send(mContext, Activity.RESULT_OK, intent);
481 boolean isFilterMatch(Intent intent, IntentFilter[] filters, boolean hasTechFilter) {
484 if (filter.match(mContentResolver, intent, false, TAG) >= 0) {
513 Intent intent = dispatch.setNdefIntent();
515 // Bail out if the intent does not contain filterable NDEF data
516 if (intent == null) return false;
521 dispatch.intent.setPackage(pkg);
554 dispatch.intent.setPackage(null);
615 dispatch.intent.setClassName(info.activityInfo.packageName, info.activityInfo.name);
620 dispatch.intent.setComponent(null);
623 Intent intent = new Intent(mContext, TechListChooserActivity.class);
624 intent.putExtra(Intent.EXTRA_INTENT, dispatch.intent);
625 intent.putParcelableArrayListExtra(TechListChooserActivity.EXTRA_RESOLVE_INFOS,
627 if (dispatch.tryStartActivity(intent)) {
649 Intent intent = new Intent(mContext, PeripheralHandoverService.class);
650 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_DEVICE, handover.device);
651 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_NAME, handover.name);
652 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_TRANSPORT, handover.transport);
654 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_OOB_DATA, handover.oobData);
657 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_UUIDS, handover.uuids);
660 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_CLASS, handover.btClass);
662 mContext.startServiceAsUser(intent, UserHandle.CURRENT);
703 * Returns an intent that can be used to find an application not currently