Home | History | Annotate | Download | only in nfc

Lines Matching refs:dispatch

74  * Dispatch of NFC events to start activities
157 if (DBG) Log.d(TAG, "Set Foreground Dispatch");
168 * Helper for re-used objects and methods during a single tag dispatch.
272 * <li /> DISPATCH_FAIL if no activities were found to dispatch to,
325 if (DBG) Log.d(TAG, "dispatch tag: " + tag.toString() + " message: " + message);
327 DispatchInfo dispatch = new DispatchInfo(mContext, tag, message);
331 if (tryOverrides(dispatch, tag, message, overrideIntent, overrideFilters,
348 // We only allow NDEF-message dispatch in provisioning mode
360 if (tryNdef(dispatch, message)) {
370 if (tryTech(dispatch, tag)) {
374 dispatch.setTagIntent();
375 if (dispatch.tryStartActivity()) {
451 boolean tryOverrides(DispatchInfo dispatch, Tag tag, NdefMessage message, PendingIntent overrideIntent,
460 intent = dispatch.setNdefIntent();
474 intent = dispatch.setTechIntent();
486 intent = dispatch.setTagIntent();
527 boolean tryNdef(DispatchInfo dispatch, NdefMessage message) {
531 Intent intent = dispatch.setNdefIntent();
539 dispatch.intent.setPackage(pkg);
540 if (dispatch.tryStartActivity()) {
562 dispatch.tryStartActivity(appLaunchIntent)) {
569 if (marketIntent != null && dispatch.tryStartActivity(marketIntent)) {
576 dispatch.intent.setPackage(null);
578 if (dispatch.isWebIntent()) {
580 showWebLinkConfirmation(dispatch);
590 if (ri != null && ri.activityInfo != null && ri.activityInfo.exported && dispatch.tryStartActivity()) {
612 boolean tryTech(DispatchInfo dispatch, Tag tag) {
613 dispatch.setTechIntent();
618 // Standard tech dispatch path
648 dispatch.intent.setClassName(info.activityInfo.packageName, info.activityInfo.name);
649 if (dispatch.tryStartActivity()) {
653 dispatch.intent.setComponent(null);
657 intent.putExtra(Intent.EXTRA_INTENT, dispatch.intent);
660 if (dispatch.tryStartActivity(intent)) {
767 void showWebLinkConfirmation(DispatchInfo dispatch) {
769 dispatch.tryStartActivity();
781 url.setText(dispatch.getUri());
787 dispatch.tryStartActivity();