/frameworks/base/services/tests/servicestests/src/com/android/server/pm/parsing/ |
D | PackageParsingDeferErrorTest.kt | 77 val intents = first.intents in <lambda>() constant 78 assertThat(intents).hasSize(1) in <lambda>() 79 assertThat(intents.first().hasCategory(TEST_CATEGORY)).isTrue() in <lambda>() 80 assertThat(intents.first().hasAction(TEST_ACTION)).isTrue() in <lambda>() 98 val intents = first.intents in <lambda>() constant 99 assertThat(intents).hasSize(1) in <lambda>() 100 assertThat(intents.first().hasAction(TEST_ACTION)).isTrue() in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | PendingIntentController.java | 115 int requestCode, Intent[] intents, String[] resolvedTypes, int flags, Bundle bOptions) { in getIntentSender() argument 121 if (intents != null) { in getIntentSender() 122 for (int i = 0; i < intents.length; i++) { in getIntentSender() 123 intents[i].setDefusable(true); in getIntentSender() 135 token, resultWho, requestCode, intents, resolvedTypes, flags, in getIntentSender() 144 rec.key.requestIntent.replaceExtras(intents != null ? in getIntentSender() 145 intents[intents.length - 1] : null); in getIntentSender() 147 if (intents != null) { in getIntentSender() 148 intents[intents.length - 1] = rec.key.requestIntent; in getIntentSender() 149 rec.key.allIntents = intents; in getIntentSender() [all …]
|
/frameworks/base/core/java/android/app/ |
D | TaskStackBuilder.java | 303 Intent[] intents = new Intent[mIntents.size()]; in getIntents() local 304 if (intents.length == 0) return intents; in getIntents() 306 intents[0] = new Intent(mIntents.get(0)).addFlags(Intent.FLAG_ACTIVITY_NEW_TASK | in getIntents() 309 for (int i = 1; i < intents.length; i++) { in getIntents() 310 intents[i] = new Intent(mIntents.get(i)); in getIntents() 312 return intents; in getIntents()
|
D | PendingIntent.java | 521 @NonNull Intent[] intents, @Flags int flags) { in getActivities() argument 522 return getActivities(context, requestCode, intents, flags, null); in getActivities() 572 @NonNull Intent[] intents, @Flags int flags, @Nullable Bundle options) { in getActivities() argument 575 return getActivitiesAsUser(context, requestCode, intents, flags, options, in getActivities() 585 @NonNull Intent[] intents, int flags, Bundle options, UserHandle user) { in getActivitiesAsUser() argument 587 String[] resolvedTypes = new String[intents.length]; in getActivitiesAsUser() 588 for (int i=0; i<intents.length; i++) { in getActivitiesAsUser() 589 intents[i].migrateExtraStreamToClipData(context); in getActivitiesAsUser() 590 intents[i].prepareToLeaveProcess(context); in getActivitiesAsUser() 591 resolvedTypes[i] = intents[i].resolveTypeIfNeeded(context.getContentResolver()); in getActivitiesAsUser() [all …]
|
D | Instrumentation.java | 1764 IBinder token, Activity target, Intent[] intents, Bundle options) { in execStartActivities() argument 1765 execStartActivitiesAsUser(who, contextThread, token, target, intents, options, in execStartActivities() 1783 IBinder token, Activity target, Intent[] intents, Bundle options, in execStartActivitiesAsUser() argument 1793 result = am.onStartActivity(intents[0]); in execStartActivitiesAsUser() 1798 } else if (am.match(who, null, intents[0])) { in execStartActivitiesAsUser() 1809 String[] resolvedTypes = new String[intents.length]; in execStartActivitiesAsUser() 1810 for (int i=0; i<intents.length; i++) { in execStartActivitiesAsUser() 1811 intents[i].migrateExtraStreamToClipData(who); in execStartActivitiesAsUser() 1812 intents[i].prepareToLeaveProcess(who); in execStartActivitiesAsUser() 1813 resolvedTypes[i] = intents[i].resolveTypeIfNeeded(who.getContentResolver()); in execStartActivitiesAsUser() [all …]
|
D | LocalActivityManager.java | 363 ArrayList<ReferrerIntent> intents = new ArrayList<>(1); in startActivity() local 364 intents.add(new ReferrerIntent(intent, mParent.getPackageName())); in startActivity() 367 mActivityThread.handleNewIntent(clientRecord, intents); in startActivity()
|
/frameworks/base/core/java/android/content/pm/parsing/component/ |
D | ParsedComponent.java | 70 private List<ParsedIntentInfo> intents; field in ParsedComponent 98 this.intents = new ArrayList<>(other.getIntents()); in ParsedComponent() 102 this.intents = CollectionUtils.add(this.intents, intent); in addIntent() 112 return intents != null ? intents : Collections.emptyList(); in getIntents() 173 this.intents = sForIntentInfos.unparcel(in); in ParsedComponent()
|
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
D | DomainVerificationCollector.java | 185 List<ParsedIntentInfo> intents = activity.getIntents(); 186 int intentsSize = intents.size(); 189 ParsedIntentInfo intent = intents.get(intentIndex); 204 List<ParsedIntentInfo> intents = activity.getIntents(); 205 int intentsSize = intents.size(); 207 ParsedIntentInfo intent = intents.get(intentIndex); 247 List<ParsedIntentInfo> intents = activity.getIntents(); 248 int intentsSize = intents.size(); 250 ParsedIntentInfo intent = intents.get(intentIndex);
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityStartController.java | 297 @Nullable String callingFeatureId, Intent[] intents, String[] resolvedTypes, in startActivitiesInPackage() argument 301 callingPackage, callingFeatureId, intents, resolvedTypes, resultTo, options, userId, in startActivitiesInPackage() 319 String callingPackage, @Nullable String callingFeatureId, Intent[] intents, in startActivitiesInPackage() argument 331 callingFeatureId, intents, resolvedTypes, resultTo, options, userId, reason, in startActivitiesInPackage() 337 Intent[] intents, String[] resolvedTypes, IBinder resultTo, SafeActivityOptions options, in startActivities() argument 340 if (intents == null) { in startActivities() 346 if (intents.length != resolvedTypes.length) { in startActivities() 371 intents = ArrayUtils.filterNotNull(intents, Intent[]::new); in startActivities() 372 final ActivityStarter[] starters = new ActivityStarter[intents.length]; in startActivities() 375 for (int i = 0; i < intents.length; i++) { in startActivities() [all …]
|
D | ActivityTaskManagerInternal.java | 186 int userId, Intent[] intents, Bundle bOptions); in startActivitiesAsPackage() argument 205 String callingPackage, @Nullable String callingFeatureId, Intent[] intents, in startActivitiesInPackage() argument 411 int requestCode, Intent[] intents, String[] resolvedTypes, int flags, in getIntentSender() argument
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverListController.java | 113 List<Intent> intents) { in getResolversForIntent() argument 115 intents, mUserHandle); in getResolversForIntent() 121 List<Intent> intents, in getResolversForIntentAsUser() argument 128 return getResolversForIntentAsUserInternal(intents, userHandle, baseFlags); in getResolversForIntentAsUser() 132 List<Intent> intents, in getResolversForIntentAsUserInternal() argument 136 for (int i = 0, N = intents.size(); i < N; i++) { in getResolversForIntentAsUserInternal() 137 final Intent intent = intents.get(i); in getResolversForIntentAsUserInternal()
|
D | AbstractMultiProfilePagerAdapter.java | 83 public boolean hasCrossProfileIntents(List<Intent> intents, int sourceUserId, in AbstractMultiProfilePagerAdapter() 86 .hasCrossProfileIntents(intents, sourceUserId, targetUserId); in AbstractMultiProfilePagerAdapter() 560 private boolean hasCrossProfileIntents(List<Intent> intents, int source, int target) { in hasCrossProfileIntents() argument 563 for (Intent intent : intents) { in hasCrossProfileIntents() 648 boolean hasCrossProfileIntents(List<Intent> intents, int sourceUserId, int targetUserId); in hasCrossProfileIntents() argument
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutParser.java | 144 final ArrayList<Intent> intents = new ArrayList<>(); in parseShortcutsOneFile() local 165 if (intents.size() == 0) { in parseShortcutsOneFile() 171 intents.clear(); in parseShortcutsOneFile() 172 intents.add(new Intent(Intent.ACTION_VIEW)); in parseShortcutsOneFile() 182 intents.get(0).addFlags( in parseShortcutsOneFile() 187 si.setIntents(intents.toArray(new Intent[intents.size()])); in parseShortcutsOneFile() 195 intents.clear(); in parseShortcutsOneFile() 295 intents.add(intent); in parseShortcutsOneFile()
|
D | LauncherAppsService.java | 693 final Intent[] intents = mShortcutServiceInternal.createShortcutIntents( in getShortcutIntent() local 696 if (intents == null || intents.length == 0) { in getShortcutIntent() 701 return injectCreatePendingIntent(0 /* requestCode */, intents, in getShortcutIntent() 815 PendingIntent injectCreatePendingIntent(int requestCode, @NonNull Intent[] intents, in injectCreatePendingIntent() argument 817 return mActivityManagerInternal.getPendingIntentActivityAsApp(requestCode, intents, in injectCreatePendingIntent() 984 final Intent[] intents = mShortcutServiceInternal.createShortcutIntents( in startShortcut() local 987 if (intents == null || intents.length == 0) { in startShortcut() 996 intents[0].addFlags(FLAG_ACTIVITY_NEW_DOCUMENT); in startShortcut() 997 intents[0].addFlags(FLAG_ACTIVITY_MULTIPLE_TASK); in startShortcut() 1000 intents[0].addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startShortcut() [all …]
|
/frameworks/base/errorprone/tests/res/android/app/ |
D | PendingIntent.java | 41 Intent[] intents, int flags, Bundle options) { in getActivities() argument 46 Intent[] intents, int flags, Bundle options, UserHandle user) { in getActivitiesAsUser() argument
|
/frameworks/base/core/java/android/content/pm/ |
D | AppSearchShortcutInfo.java | 382 final Intent[] intents = intentsStrings == null in toShortcutInfo() local 398 if (intents != null) { in toShortcutInfo() 399 for (int i = 0; i < intents.length; i++) { in toShortcutInfo() 400 final Intent intent = intents[i]; in toShortcutInfo() 424 disabledMessageResId, disabledMessageResName, categoriesSet, intents, rank, extras, in toShortcutInfo() 608 public Builder setIntents(@Nullable final Intent[] intents) { in setIntents() argument 609 if (intents == null || intents.length == 0) { in setIntents() 612 for (Intent intent : intents) { in setIntents() 616 final byte[][] intentExtrases = new byte[intents.length][]; in setIntents() 617 for (int i = 0; i < intents.length; i++) { in setIntents() [all …]
|
D | ShortcutInfo.java | 521 private static Intent[] cloneIntents(Intent[] intents) { in cloneIntents() argument 522 if (intents == null) { in cloneIntents() 525 final Intent[] ret = new Intent[intents.length]; in cloneIntents() 527 if (intents[i] != null) { in cloneIntents() 528 ret[i] = new Intent(intents[i]); in cloneIntents() 1302 public Builder setIntents(@NonNull Intent[] intents) { in setIntents() argument 1303 Objects.requireNonNull(intents, "intents cannot be null"); in setIntents() 1304 Objects.requireNonNull(intents.length, "intents cannot be empty"); in setIntents() 1305 for (Intent intent : intents) { in setIntents() 1310 mIntents = cloneIntents(intents); in setIntents() [all …]
|
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/ |
D | DomainVerificationProxyTest.kt | 239 val intents = intentCaptor.allValues in <lambda>() constant 240 assertThat(intents).hasSize(2) in <lambda>() 241 intents.forEach { in <lambda>() 249 intents[0].apply { in <lambda>() 256 intents[1].apply { in <lambda>() 456 val intents = intentCaptor.allValues in <lambda>() constant 457 assertThat(intents).hasSize(1) in <lambda>() 458 intents.single().apply { in <lambda>()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | AbstractConnectivityPreferenceController.java | 70 final String[] intents = getConnectivityIntents(); in onStart() local 71 for (String intent : intents) { in onStart()
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 61 List<Intent> intents = mBroadcastIntents; in getAndClearBroadcastIntents() local 63 return intents; in getAndClearBroadcastIntents()
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | NewIntentItem.java | 66 public static NewIntentItem obtain(List<ReferrerIntent> intents, boolean resume) { in obtain() argument 71 instance.mIntents = intents; in obtain()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | LocaleTrackerTest.java | 126 List<Intent> intents = intentArgumentCaptor.getAllValues(); in verifyCountryCodeNotified() local 130 intents.get(i).getAction()); in verifyCountryCodeNotified() 131 assertEquals(countryCodes[i], intents.get(i).getStringExtra( in verifyCountryCodeNotified()
|
/frameworks/base/core/java/android/view/translation/ |
D | TranslationManager.java | 403 final ArrayList<PendingIntent> intents = in removeOnDeviceTranslationCapabilityUpdateListener() local 405 if (intents.contains(pendingIntent)) { in removeOnDeviceTranslationCapabilityUpdateListener() 406 intents.remove(pendingIntent); in removeOnDeviceTranslationCapabilityUpdateListener()
|
/frameworks/base/core/java/android/content/ |
D | ContextWrapper.java | 443 public void startActivities(Intent[] intents) { in startActivities() argument 444 mBase.startActivities(intents); in startActivities() 448 public void startActivities(Intent[] intents, @Nullable Bundle options) { in startActivities() argument 449 mBase.startActivities(intents, options); in startActivities() 454 public int startActivitiesAsUser(Intent[] intents, @Nullable Bundle options, in startActivitiesAsUser() argument 456 return mBase.startActivitiesAsUser(intents, options, userHandle); in startActivitiesAsUser()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverWrapperActivity.java | 151 public boolean hasCrossProfileIntents(List<Intent> intents, int sourceUserId, in reset()
|