Lines Matching refs:intent

136  * This class collects all the logic for determining how an intent and flags should be turned into
256 int startActivityLocked(IApplicationThread caller, Intent intent, Intent ephemeralIntent,
272 mLastStartActivityResult = startActivity(caller, intent, ephemeralIntent, resolvedType,
286 private int startActivity(IApplicationThread caller, Intent intent, Intent ephemeralIntent,
308 + intent.toString());
316 Slog.i(TAG, "START u" + userId + " {" + intent.toShortString(true, true, true, false)
333 final int launchFlags = intent.getFlags();
360 // deals with the case of an intent picker/chooser being launched in the app
367 if (err == ActivityManager.START_SUCCESS && intent.getComponent() == null) {
388 intent.addCategory(Intent.CATEGORY_VOICE);
390 intent.getComponent(), intent, resolvedType)) {
393 + intent);
407 if (!AppGlobals.getPackageManager().activitySupportsIntent(intent.getComponent(),
408 intent, resolvedType)) {
411 + intent);
431 boolean abort = !mSupervisor.checkStartAnyActivityPermission(intent, aInfo, resultWho,
434 abort |= !mService.mIntentFirewall.checkStartActivity(intent, callingUid,
441 Intent watchIntent = intent.cloneFilter();
450 mInterceptor.intercept(intent, rInfo, aInfo, resolvedType, inTask, callingPid, callingUid,
452 intent = mInterceptor.mIntent;
472 // launch the review activity and pass a pending intent to start the activity
479 callingUid, userId, null, null, 0, new Intent[]{intent},
483 final int flags = intent.getFlags();
492 intent = newIntent;
498 rInfo = mSupervisor.resolveIntent(intent, resolvedType, userId);
499 aInfo = mSupervisor.resolveActivity(intent, rInfo, startFlags,
503 Slog.i(TAG, "START u" + userId + " {" + intent.toShortString(true, true,
513 // If we have an ephemeral app, abort the process of launching the resolved intent.
515 // starts either the intent we resolved here [on install error] or the ephemeral
518 intent = createLaunchIntent(rInfo.auxiliaryInfo, ephemeralIntent,
524 aInfo = mSupervisor.resolveActivity(intent, rInfo, startFlags, null /*profilerInfo*/);
528 callingPackage, intent, resolvedType, aInfo, mService.getGlobalConfiguration(),
572 * Creates a launch intent for the given auxiliary resolution data.
632 // brought to the front or the new intent was delivered to it since it was already in
640 void startHomeActivityLocked(Intent intent, ActivityInfo aInfo, String reason) {
642 mLastHomeActivityStartResult = startActivityLocked(null /*caller*/, intent,
658 void startConfirmCredentialIntent(Intent intent, Bundle optionsBundle) {
659 intent.addFlags(FLAG_ACTIVITY_NEW_TASK |
665 mService.mContext.startActivityAsUser(intent, options.toBundle(), UserHandle.CURRENT);
669 String callingPackage, Intent intent, String resolvedType,
676 if (intent != null && intent.hasFileDescriptors()) {
680 boolean componentSpecified = intent.getComponent() != null;
683 final Intent ephemeralIntent = new Intent(intent);
685 intent = new Intent(intent);
687 && intent.getData() != null
688 && Intent.ACTION_VIEW.equals(intent.getAction())
690 .isInstantAppInstallerComponent(intent.getComponent())) {
693 // adjust the intent so it looks like a "normal" instant app launch
694 intent.setComponent(null /*component*/);
698 ResolveInfo rInfo = mSupervisor.resolveIntent(intent, resolvedType, userId);
717 rInfo = mSupervisor.resolveIntent(intent, resolvedType, userId,
724 ActivityInfo aInfo = mSupervisor.resolveActivity(intent, rInfo, startFlags, profilerInfo);
777 + intent.toString());
785 appCallingUid, userId, null, null, 0, new Intent[] { intent },
805 newIntent.setFlags(intent.getFlags());
808 intent = newIntent;
814 rInfo = mSupervisor.resolveIntent(intent, null /*resolvedType*/, userId);
824 int res = startActivityLocked(caller, intent, ephemeralIntent, resolvedType,
920 Intent intent = intents[i];
921 if (intent == null) {
926 if (intent != null && intent.hasFileDescriptors()) {
930 boolean componentSpecified = intent.getComponent() != null;
933 intent = new Intent(intent);
936 ActivityInfo aInfo = mSupervisor.resolveActivity(intent, resolvedTypes[i], 0,
950 int res = startActivityLocked(caller, intent, null /*ephemeralIntent*/,
1058 if (reusedActivity.getTask().intent == null) {
1060 // Now that we are actually launching it, we can assign the base intent.
1064 // This code path leads to delivering a new intent, we want to make sure we schedule it
1089 // so make sure the task now has the identity of the new intent.
1093 top.deliverNewIntentLocked(mCallingUid, mStartActivity.intent,
1122 // intent!) And for paranoia, make sure we have correctly resumed the top activity.
1168 mCallingUid, mStartActivity.intent, mStartActivity.launchedFromPackage);
1267 mIntent = r.intent;
1388 throw new IllegalArgumentException("Launching into task without base intent: "
1395 if (!baseIntent.getComponent().equals(mStartActivity.intent.getComponent())) {
1407 // If task is empty, then adopt the interesting intent launch flags in to the
1420 // bring the task to the front, and possibly give it a new intent.
1489 mNewTaskIntent = sourceTask != null ? sourceTask.intent : null;
1585 mStartActivity.intent.addFlags(Intent.FLAG_ACTIVITY_BROUGHT_TO_FRONT);
1738 // activity in the task is the root activity, deliver this new intent to it if it
1747 intentActivity.deliverNewIntentLocked(mCallingUid, mStartActivity.intent,
1751 // different intent. We should start a new instance on top.
1872 top.deliverNewIntentLocked(mCallingUid, mStartActivity.intent, mStartActivity.launchedFromPackage);
1891 top.deliverNewIntentLocked(mCallingUid, mStartActivity.intent, mStartActivity.launchedFromPackage);
1933 top.deliverNewIntentLocked(mCallingUid, mStartActivity.intent,
1943 // stop here but still tell the caller that we consumed the intent.
2212 // existing focused task to adjacent stack, just deliver new intent in this case.