Lines Matching refs:intent

143     public synchronized void setForegroundDispatch(PendingIntent intent,  in setForegroundDispatch()  argument
146 mOverrideIntent = intent; in setForegroundDispatch()
159 public final Intent intent; field in NfcDispatcher.DispatchInfo
168 intent = new Intent(); in DispatchInfo()
169 intent.putExtra(NfcAdapter.EXTRA_TAG, tag); in DispatchInfo()
170 intent.putExtra(NfcAdapter.EXTRA_ID, tag.getId()); in DispatchInfo()
172 intent.putExtra(NfcAdapter.EXTRA_NDEF_MESSAGES, new NdefMessage[] {message}); in DispatchInfo()
181 rootIntent.putExtra(NfcRootActivity.EXTRA_LAUNCH_INTENT, intent); in DispatchInfo()
189 intent.setAction(NfcAdapter.ACTION_NDEF_DISCOVERED); in setNdefIntent()
191 intent.setData(ndefUri); in setNdefIntent()
192 return intent; in setNdefIntent()
194 intent.setType(ndefMimeType); in setNdefIntent()
195 return intent; in setNdefIntent()
201 intent.setData(null); in setTechIntent()
202 intent.setType(null); in setTechIntent()
203 intent.setAction(NfcAdapter.ACTION_TECH_DISCOVERED); in setTechIntent()
204 return intent; in setTechIntent()
208 intent.setData(null); in setTagIntent()
209 intent.setType(null); in setTagIntent()
210 intent.setAction(NfcAdapter.ACTION_TAG_DISCOVERED); in setTagIntent()
211 return intent; in setTagIntent()
215 return packageManager.queryIntentActivitiesAsUser(intent, 0, in hasIntentReceiver()
241 List<ResolveInfo> activities = packageManager.queryIntentActivitiesAsUser(intent, 0, in tryStartActivity()
447 Intent intent; in tryOverrides() local
451 intent = dispatch.setNdefIntent(); in tryOverrides()
452 if (intent != null && in tryOverrides()
453 isFilterMatch(intent, overrideFilters, overrideTechLists != null)) { in tryOverrides()
455 overrideIntent.send(mContext, Activity.RESULT_OK, intent); in tryOverrides()
465 intent = dispatch.setTechIntent(); in tryOverrides()
468 overrideIntent.send(mContext, Activity.RESULT_OK, intent); in tryOverrides()
477 intent = dispatch.setTagIntent(); in tryOverrides()
478 if (isFilterMatch(intent, overrideFilters, overrideTechLists != null)) { in tryOverrides()
480 overrideIntent.send(mContext, Activity.RESULT_OK, intent); in tryOverrides()
490 boolean isFilterMatch(Intent intent, IntentFilter[] filters, boolean hasTechFilter) { in isFilterMatch() argument
493 if (filter.match(mContentResolver, intent, false, TAG) >= 0) { in isFilterMatch()
522 Intent intent = dispatch.setNdefIntent(); in tryNdef() local
525 if (intent == null) return false; in tryNdef()
530 dispatch.intent.setPackage(pkg); in tryNdef()
567 dispatch.intent.setPackage(null); in tryNdef()
581 ResolveInfo ri = pm.resolveActivity(intent, 0); in tryNdef()
641 dispatch.intent.setClassName(info.activityInfo.packageName, info.activityInfo.name); in tryTech()
646 dispatch.intent.setComponent(null); in tryTech()
649 Intent intent = new Intent(mContext, TechListChooserActivity.class); in tryTech() local
650 intent.putExtra(Intent.EXTRA_INTENT, dispatch.intent); in tryTech()
651 intent.putParcelableArrayListExtra(TechListChooserActivity.EXTRA_RESOLVE_INFOS, in tryTech()
653 if (dispatch.tryStartActivity(intent)) { in tryTech()
675 Intent intent = new Intent(mContext, PeripheralHandoverService.class); in tryPeripheralHandover() local
676 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_DEVICE, handover.device); in tryPeripheralHandover()
677 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_NAME, handover.name); in tryPeripheralHandover()
678 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_TRANSPORT, handover.transport); in tryPeripheralHandover()
680 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_OOB_DATA, handover.oobData); in tryPeripheralHandover()
683 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_UUIDS, handover.uuids); in tryPeripheralHandover()
686 intent.putExtra(PeripheralHandoverService.EXTRA_PERIPHERAL_CLASS, handover.btClass); in tryPeripheralHandover()
688 intent.putExtra(PeripheralHandoverService.EXTRA_BT_ENABLED, mBluetoothEnabledByNfc.get()); in tryPeripheralHandover()
689 intent.putExtra(PeripheralHandoverService.EXTRA_CLIENT, mMessenger); in tryPeripheralHandover()
690 mContext.startServiceAsUser(intent, UserHandle.CURRENT); in tryPeripheralHandover()
837 public void onReceive(Context context, Intent intent) {
838 String action = intent.getAction();
840 handleBluetoothStateChanged(intent);
844 private void handleBluetoothStateChanged(Intent intent) {
845 int state = intent.getIntExtra(BluetoothAdapter.EXTRA_STATE,