/frameworks/support/core-utils/java/android/support/v4/app/ |
D | TaskStackBuilder.java | 77 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent() argument 79 intents[0] = new Intent(intents[0]).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in getPendingIntent() 81 return PendingIntent.getActivities(context, requestCode, intents, flags); in getPendingIntent() 88 public PendingIntent getPendingIntent(Context context, Intent[] intents, int requestCode, in getPendingIntent() argument 90 intents[0] = new Intent(intents[0]).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in getPendingIntent() 92 return PendingIntent.getActivities(context, requestCode, intents, flags, options); in getPendingIntent() 309 Intent[] intents = mIntents.toArray(new Intent[mIntents.size()]); in startActivities() local 310 intents[0] = new Intent(intents[0]).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK in startActivities() 312 if (!ContextCompat.startActivities(mSourceContext, intents, options)) { in startActivities() 313 Intent topIntent = new Intent(intents[intents.length - 1]); in startActivities() [all …]
|
/frameworks/base/core/java/android/app/ |
D | TaskStackBuilder.java | 301 Intent[] intents = new Intent[mIntents.size()]; in getIntents() local 302 if (intents.length == 0) return intents; in getIntents() 304 intents[0] = new Intent(mIntents.get(0)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | in getIntents() 307 for (int i = 1; i < intents.length; i++) { in getIntents() 308 intents[i] = new Intent(mIntents.get(i)); in getIntents() 310 return intents; in getIntents()
|
D | PendingIntent.java | 426 @NonNull Intent[] intents, @Flags int flags) { in getActivities() argument 427 return getActivities(context, requestCode, intents, flags, null); in getActivities() 476 @NonNull Intent[] intents, @Flags int flags, @Nullable Bundle options) { in getActivities() argument 478 String[] resolvedTypes = new String[intents.length]; in getActivities() 479 for (int i=0; i<intents.length; i++) { in getActivities() 480 intents[i].migrateExtraStreamToClipData(); in getActivities() 481 intents[i].prepareToLeaveProcess(context); in getActivities() 482 resolvedTypes[i] = intents[i].resolveTypeIfNeeded(context.getContentResolver()); in getActivities() 488 null, null, requestCode, intents, resolvedTypes, flags, options, in getActivities() 502 @NonNull Intent[] intents, int flags, Bundle options, UserHandle user) { in getActivitiesAsUser() argument [all …]
|
D | Instrumentation.java | 1632 IBinder token, Activity target, Intent[] intents, Bundle options) { in execStartActivities() argument 1633 execStartActivitiesAsUser(who, contextThread, token, target, intents, options, in execStartActivities() 1646 IBinder token, Activity target, Intent[] intents, Bundle options, in execStartActivitiesAsUser() argument 1656 result = am.onStartActivity(intents[0]); in execStartActivitiesAsUser() 1661 } else if (am.match(who, null, intents[0])) { in execStartActivitiesAsUser() 1672 String[] resolvedTypes = new String[intents.length]; in execStartActivitiesAsUser() 1673 for (int i=0; i<intents.length; i++) { in execStartActivitiesAsUser() 1674 intents[i].migrateExtraStreamToClipData(); in execStartActivitiesAsUser() 1675 intents[i].prepareToLeaveProcess(who); in execStartActivitiesAsUser() 1676 resolvedTypes[i] = intents[i].resolveTypeIfNeeded(who.getContentResolver()); in execStartActivitiesAsUser() [all …]
|
D | LocalActivityManager.java | 314 ArrayList<ReferrerIntent> intents = new ArrayList<>(1); in startActivity() local 315 intents.add(new ReferrerIntent(intent, mParent.getPackageName())); in startActivity() 317 mActivityThread.performNewIntents(r, intents, false /* andPause */); in startActivity()
|
D | ActivityManagerInternal.java | 203 int userId, Intent[] intents, Bundle bOptions); in startActivitiesAsPackage() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutParser.java | 130 final ArrayList<Intent> intents = new ArrayList<>(); in parseShortcutsOneFile() local 148 if (intents.size() == 0) { in parseShortcutsOneFile() 154 intents.clear(); in parseShortcutsOneFile() 155 intents.add(new Intent(Intent.ACTION_VIEW)); in parseShortcutsOneFile() 165 intents.get(0).addFlags( in parseShortcutsOneFile() 170 si.setIntents(intents.toArray(new Intent[intents.size()])); in parseShortcutsOneFile() 178 intents.clear(); in parseShortcutsOneFile() 241 intents.add(intent); in parseShortcutsOneFile()
|
D | LauncherAppsService.java | 538 final Intent[] intents = mShortcutServiceInternal.createShortcutIntents( in startShortcut() local 540 if (intents == null || intents.length == 0) { in startShortcut() 545 intents[0].addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startShortcut() 546 intents[0].setSourceBounds(sourceBounds); in startShortcut() 549 intents, packageName, startActivityOptions, targetUserId); in startShortcut() 552 private boolean startShortcutIntentsAsPublisher(@NonNull Intent[] intents, in startShortcutIntentsAsPublisher() argument 558 userId, intents, startActivityOptions); in startShortcutIntentsAsPublisher()
|
D | ShortcutPackage.java | 1405 ArrayList<Intent> intents = new ArrayList<>(); in parseShortcut() local 1455 intents.add(parseIntent(parser)); in parseShortcut() 1481 intents.clear(); in parseShortcut() 1482 intents.add(intentLegacy); in parseShortcut() 1490 intents.toArray(new Intent[intents.size()]), in parseShortcut()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/ |
D | SuggestionList.java | 84 final Set<String> intents = new ArraySet<>(); in dedupeSuggestions() local 88 if (intents.contains(intentUri)) { in dedupeSuggestions() 91 intents.add(intentUri); in dedupeSuggestions()
|
/frameworks/support/compat/java/android/support/v4/content/ |
D | ContextCompat.java | 82 public static boolean startActivities(Context context, Intent[] intents) { in startActivities() argument 83 return startActivities(context, intents, null); in startActivities() 113 public static boolean startActivities(Context context, Intent[] intents, Bundle options) { in startActivities() argument 115 context.startActivities(intents, options); in startActivities() 117 context.startActivities(intents); in startActivities()
|
/frameworks/base/core/java/android/content/pm/ |
D | ShortcutInfo.java | 302 private static Intent[] cloneIntents(Intent[] intents) { in cloneIntents() argument 303 if (intents == null) { in cloneIntents() 306 final Intent[] ret = new Intent[intents.length]; in cloneIntents() 308 if (intents[i] != null) { in cloneIntents() 309 ret[i] = new Intent(intents[i]); in cloneIntents() 1004 public Builder setIntents(@NonNull Intent[] intents) { in setIntents() argument 1005 Preconditions.checkNotNull(intents, "intents cannot be null"); in setIntents() 1006 Preconditions.checkNotNull(intents.length, "intents cannot be empty"); in setIntents() 1007 for (Intent intent : intents) { in setIntents() 1012 mIntents = cloneIntents(intents); in setIntents() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | PackageParserTest.java | 295 if (a.intents != null && b.intents != null) { in assertComponentsEqual() 296 assertEquals(a.intents.size(), b.intents.size()); in assertComponentsEqual() 297 } else if (a.intents == null || b.intents == null) { in assertComponentsEqual() 301 for (int i = 0; i < a.intents.size(); ++i) { in assertComponentsEqual() 302 PackageParser.IntentInfo aIntent = a.intents.get(i); in assertComponentsEqual() 303 PackageParser.IntentInfo bIntent = b.intents.get(i); in assertComponentsEqual()
|
D | BaseShortcutManagerTest.java | 1477 protected ShortcutInfo makeShortcutWithIntents(String id, Intent... intents) { in makeShortcutWithIntents() argument 1480 intents, /* rank =*/ 0); in makeShortcutWithIntents() 1487 Icon icon, Intent[] intents, int rank) { in makeShortcut() argument 1492 .setIntents(intents); in makeShortcut() 1617 final Intent[] intents = launchShortcutAndGetIntents(packageName, shortcutId, userId); in launchShortcutAndGetIntent() local 1618 assertEquals(1, intents.length); in launchShortcutAndGetIntent() 1619 return intents[0]; in launchShortcutAndGetIntent() 1634 final Intent[] intents = launchShortcutAndGetIntents_withShortcutInfo( 1636 assertEquals(1, intents.length); 1637 return intents[0];
|
D | ShortcutManagerTest2.java | 1227 private void checkShortcutInfoSaveAndLoad_intents(Intent... intents) { 1229 makeShortcutWithIntents("s1", intents)))); 1238 assertEquals(intents.length, actual.length); 1240 for (int i = 0; i < intents.length; i++) { 1241 assertEquals(intents[i].getAction(), actual[i].getAction()); 1242 assertEquals(intents[i].getData(), actual[i].getData()); 1243 assertEquals(intents[i].getComponent(), actual[i].getComponent()); 1244 assertEquals(intents[i].getFlags(), actual[i].getFlags()); 1245 assertBundlesEqual(intents[i].getExtras(), actual[i].getExtras());
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/car/ |
D | CarNavigationBarController.java | 147 TypedArray intents = res.obtainTypedArray(R.array.car_facet_intent_uris); in bind() local 153 if (icons.length() != intents.length() in bind() 163 initClickListeners(button, i, intents.getString(i), longPressIntents.getString(i)); in bind() 175 intents.recycle(); in bind()
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 68 List<Intent> intents = mBroadcastIntents; in getAndClearBroadcastIntents() local 70 return intents; in getAndClearBroadcastIntents()
|
/frameworks/support/compat/java/android/support/v4/content/pm/ |
D | ShortcutInfoCompat.java | 234 public Builder setIntents(@NonNull Intent[] intents) { in setIntents() argument 235 mInfo.mIntents = intents; in setIntents()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverListController.java | 102 List<Intent> intents) { in getResolversForIntent() argument 104 for (int i = 0, N = intents.size(); i < N; i++) { in getResolversForIntent() 105 final Intent intent = intents.get(i); in getResolversForIntent()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 404 public void startActivities(Intent[] intents) { in startActivities() argument 405 mBase.startActivities(intents); in startActivities() 409 public void startActivities(Intent[] intents, Bundle options) { in startActivities() argument 410 mBase.startActivities(intents, options); in startActivities() 415 public void startActivitiesAsUser(Intent[] intents, Bundle options, UserHandle userHandle) { in startActivitiesAsUser() argument 416 mBase.startActivitiesAsUser(intents, options, userHandle); in startActivitiesAsUser()
|
/frameworks/base/test-runner/src/android/test/mock/ |
D | MockContext.java | 322 public void startActivities(Intent[] intents) { in startActivities() argument 327 public void startActivities(Intent[] intents, Bundle options) { in startActivities() argument 328 startActivities(intents); in startActivities()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | UiccSmsController.java | 394 private void sendErrorInPendingIntents(List<PendingIntent> intents, int errorCode) { in sendErrorInPendingIntents() argument 395 for (PendingIntent intent : intents) { in sendErrorInPendingIntents()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ActivityStarter.java | 906 Intent[] intents, String[] resolvedTypes, IBinder resultTo, in startActivities() argument 909 intents, resolvedTypes, resultTo, bOptions, userId, reason); in startActivities() 914 Intent[] intents, String[] resolvedTypes, IBinder resultTo, in startActivities() argument 916 if (intents == null) { in startActivities() 922 if (intents.length != resolvedTypes.length) { in startActivities() 949 for (int i=0; i<intents.length; i++) { in startActivities() 950 Intent intent = intents[i]; in startActivities() 982 i == intents.length - 1 ? bOptions : null); in startActivities()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTrackerTest.java | 260 List<Intent> intents = intentArgumentCaptor.getAllValues(); in testSpnUpdateShowPlmnOnly() local 261 logd("Total " + intents.size() + " intents"); in testSpnUpdateShowPlmnOnly() 262 for (Intent intent : intents) { in testSpnUpdateShowPlmnOnly() 265 Intent intent = intents.get(2); in testSpnUpdateShowPlmnOnly()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 311 private static List<String> getActions(List<Intent> intents) { in getActions() argument 313 for (Intent intent : intents) { in getActions()
|