Home
last modified time | relevance | path

Searched refs:intents (Results 1 – 25 of 72) sorted by relevance

123

/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/parsing/
DPackageParsingDeferErrorTest.kt67 val intents = first.intents in <lambda>() constant
68 assertThat(intents).hasSize(1) in <lambda>()
69 val intentFilter = intents.first().intentFilter in <lambda>()
89 val intents = first.intents in <lambda>() constant
90 assertThat(intents).hasSize(1) in <lambda>()
91 val intentFilter = intents.first().intentFilter in <lambda>()
/frameworks/base/core/java/android/app/
DTaskStackBuilder.java303 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()
DPendingIntent.java637 @NonNull Intent[] intents, @Flags int flags) { in getActivities() argument
638 return getActivities(context, requestCode, intents, flags, null); in getActivities()
688 @NonNull Intent[] intents, @Flags int flags, @Nullable Bundle options) { in getActivities() argument
691 return getActivitiesAsUser(context, requestCode, intents, flags, options, in getActivities()
701 @NonNull Intent[] intents, int flags, Bundle options, UserHandle user) { in getActivitiesAsUser() argument
703 String[] resolvedTypes = new String[intents.length]; in getActivitiesAsUser()
704 for (int i=0; i<intents.length; i++) { in getActivitiesAsUser()
705 intents[i].migrateExtraStreamToClipData(context); in getActivitiesAsUser()
706 intents[i].prepareToLeaveProcess(context); in getActivitiesAsUser()
707 resolvedTypes[i] = intents[i].resolveTypeIfNeeded(context.getContentResolver()); in getActivitiesAsUser()
[all …]
DInstrumentation.java2022 IBinder token, Activity target, Intent[] intents, Bundle options) { in execStartActivities() argument
2023 execStartActivitiesAsUser(who, contextThread, token, target, intents, options, in execStartActivities()
2041 IBinder token, Activity target, Intent[] intents, Bundle options, in execStartActivitiesAsUser() argument
2045 for (Intent i : intents) { in execStartActivitiesAsUser()
2051 Objects.requireNonNull(intents); in execStartActivitiesAsUser()
2052 for (int i = intents.length - 1; i >= 0; i--) { in execStartActivitiesAsUser()
2053 Objects.requireNonNull(intents[i]); in execStartActivitiesAsUser()
2057 for (Intent intent : intents) { in execStartActivitiesAsUser()
2071 result = am.onStartActivity(who, intents[0], options); in execStartActivitiesAsUser()
2076 } else if (am.match(who, null, intents[0])) { in execStartActivitiesAsUser()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentController.java122 int requestCode, Intent[] intents, String[] resolvedTypes, int flags, Bundle bOptions) { in getIntentSender() argument
128 if (intents != null) { in getIntentSender()
129 for (int i = 0; i < intents.length; i++) { in getIntentSender()
130 intents[i].setDefusable(true); in getIntentSender()
174 token, resultWho, requestCode, intents, resolvedTypes, flags, in getIntentSender()
183 rec.key.requestIntent.replaceExtras(intents != null ? in getIntentSender()
184 intents[intents.length - 1] : null); in getIntentSender()
186 if (intents != null) { in getIntentSender()
187 intents[intents.length - 1] = rec.key.requestIntent; in getIntentSender()
188 rec.key.allIntents = intents; in getIntentSender()
[all …]
DBroadcastQueue.md3 Broadcast intents are one of the major building blocks of the Android platform,
5 flavors of intents that can be broadcast:
7 * **Normal** broadcast intents are dispatched to relevant receivers.
8 * **Ordered** broadcast intents are dispatched in a specific order to
11 * **Sticky** broadcast intents are dispatched to relevant receivers, and are
16 And there are there two ways to receive these intents:
19 dynamically requested by a running app to receive intents. These requests are
23 statically requested by an app to receive intents. These requests are delivered
/frameworks/base/services/core/java/com/android/server/pm/verify/domain/
DDomainVerificationCollector.java185 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);
248 List<ParsedIntentInfo> intents = activity.getIntents();
249 int intentsSize = intents.size();
251 ParsedIntentInfo intent = intents.get(intentIndex);
/frameworks/base/core/java/com/android/internal/pm/pkg/component/
DParsedComponentImpl.java74 private List<ParsedIntentInfoImpl> intents = Collections.emptyList(); field in ParsedComponentImpl
101 this.intents = new ArrayList<>(((ParsedComponentImpl) other).intents); in ParsedComponentImpl()
107 this.intents = CollectionUtils.add(this.intents, intent); in addIntent()
150 return new ArrayList<>(intents); in getIntents()
169 dest.writeTypedList(this.intents); in writeToParcel()
188 this.intents = ParsingUtils.createTypedInterfaceList(in, ParsedIntentInfoImpl.CREATOR); in ParsedComponentImpl()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DResolverListControllerTest.java173 List<Intent> intents = new ArrayList<>(); in getResolversForIntent_usesResultsFromPackageManager() local
174 intents.add(createActionMainIntent()); in getResolversForIntent_usesResultsFromPackageManager()
181 intents); in getResolversForIntent_usesResultsFromPackageManager()
198 List<Intent> intents = new ArrayList<>(); in getResolversForIntent_shouldGetOnlyDefaultActivitiesTrue_addsFlag() local
199 intents.add(createActionMainIntent()); in getResolversForIntent_shouldGetOnlyDefaultActivitiesTrue_addsFlag()
206 intents); in getResolversForIntent_shouldGetOnlyDefaultActivitiesTrue_addsFlag()
223 List<Intent> intents = new ArrayList<>(); in getResolversForIntent_shouldGetOnlyDefaultActivitiesFalse_doesNotAddFlag() local
224 intents.add(createActionMainIntent()); in getResolversForIntent_shouldGetOnlyDefaultActivitiesFalse_doesNotAddFlag()
231 intents); in getResolversForIntent_shouldGetOnlyDefaultActivitiesFalse_doesNotAddFlag()
250 List<Intent> intents = new ArrayList<>(); in testResolveInfoWithNoUserHandle_isNotAddedToResults() local
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartController.java333 @Nullable String callingFeatureId, Intent[] intents, String[] resolvedTypes, in startActivitiesInPackage() argument
338 callingPackage, callingFeatureId, intents, resolvedTypes, resultTo, options, userId, in startActivitiesInPackage()
359 String callingPackage, @Nullable String callingFeatureId, Intent[] intents, in startActivitiesInPackage() argument
371 callingFeatureId, intents, resolvedTypes, resultTo, options, userId, reason, in startActivitiesInPackage()
377 Intent[] intents, String[] resolvedTypes, IBinder resultTo, SafeActivityOptions options, in startActivities() argument
380 if (intents == null) { in startActivities()
386 if (intents.length != resolvedTypes.length) { in startActivities()
419 intents = ArrayUtils.filterNotNull(intents, Intent[]::new); in startActivities()
420 final ActivityStarter[] starters = new ActivityStarter[intents.length]; in startActivities()
423 for (int i = 0; i < intents.length; i++) { in startActivities()
[all …]
/frameworks/base/core/java/android/content/pm/
DAppSearchShortcutInfo.java381 final Intent[] intents = intentsStrings == null in toShortcutInfo() local
397 if (intents != null) { in toShortcutInfo()
398 for (int i = 0; i < intents.length; i++) { in toShortcutInfo()
399 final Intent intent = intents[i]; in toShortcutInfo()
425 0, null, categoriesSet, intents, in toShortcutInfo()
538 public Builder setIntents(@Nullable final Intent[] intents) { in setIntents() argument
539 if (intents == null || intents.length == 0) { in setIntents()
542 for (Intent intent : intents) { in setIntents()
546 final byte[][] intentExtrases = new byte[intents.length][]; in setIntents()
547 for (int i = 0; i < intents.length; i++) { in setIntents()
[all …]
DShortcutInfo.java551 private static Intent[] cloneIntents(Intent[] intents) { in cloneIntents() argument
552 if (intents == null) { in cloneIntents()
555 final Intent[] ret = new Intent[intents.length]; in cloneIntents()
557 if (intents[i] != null) { in cloneIntents()
558 ret[i] = new Intent(intents[i]); in cloneIntents()
1374 public Builder setIntents(@NonNull Intent[] intents) { in setIntents() argument
1375 Objects.requireNonNull(intents, "intents cannot be null"); in setIntents()
1376 if (intents.length == 0) { in setIntents()
1379 for (Intent intent : intents) { in setIntents()
1384 mIntents = cloneIntents(intents); in setIntents()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutParser.java144 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()
DAppsFilterUtils.java177 List<ParsedIntentInfo> intents = component.getIntents(); in matchesAnyFilter() local
178 for (int i = ArrayUtils.size(intents) - 1; i >= 0; i--) { in matchesAnyFilter()
179 IntentFilter intentFilter = intents.get(i).getIntentFilter(); in matchesAnyFilter()
DLauncherAppsService.java1088 Intent[] intents; in getShortcutIntent() local
1093 intents = ret.get(); in getShortcutIntent()
1097 if (intents == null || intents.length == 0) { in getShortcutIntent()
1102 return injectCreatePendingIntent(0 /* requestCode */, intents, in getShortcutIntent()
1232 PendingIntent injectCreatePendingIntent(int requestCode, @NonNull Intent[] intents, in injectCreatePendingIntent() argument
1234 return mActivityManagerInternal.getPendingIntentActivityAsApp(requestCode, intents, in injectCreatePendingIntent()
1516 Intent[] intents; in startShortcutInner() local
1521 intents = ret.get(); in startShortcutInner()
1525 if (intents == null || intents.length == 0) { in startShortcutInner()
1535 intents[0].addFlags(FLAG_ACTIVITY_NEW_DOCUMENT); in startShortcutInner()
[all …]
/frameworks/base/core/java/com/android/internal/app/
DResolverListController.java125 List<Intent> intents) { in getResolversForIntent() argument
127 shouldGetOnlyDefaultActivities, intents, mQueryIntentsAsUser); in getResolversForIntent()
134 List<Intent> intents, in getResolversForIntentAsUser() argument
142 return getResolversForIntentAsUserInternal(intents, userHandle, baseFlags); in getResolversForIntentAsUser()
146 List<Intent> intents, in getResolversForIntentAsUserInternal() argument
150 for (int i = 0, N = intents.size(); i < N; i++) { in getResolversForIntentAsUserInternal()
151 Intent intent = intents.get(i); in getResolversForIntentAsUserInternal()
/frameworks/base/errorprone/tests/res/android/app/
DPendingIntent.java41 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/security/
Dresponsible_apis_flags.aconfig38 description: "Make delivered intents match components' intent filters"
45 description: "Do not allow intents without an action to match any intent filters"
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationProxyTest.kt239 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/SystemUI/src/com/android/systemui/qs/tiles/base/actions/
DQSTileIntentUserInputHandler.kt100 val intents = in handle() constant
106 intents in handle()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DAbstractConnectivityPreferenceController.java70 final String[] intents = getConnectivityIntents(); in onStart() local
71 for (String intent : intents) { in onStart()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java63 List<Intent> intents = mBroadcastIntents; in getAndClearBroadcastIntents() local
65 return intents; in getAndClearBroadcastIntents()
/frameworks/base/core/java/android/app/servertransaction/
DNewIntentItem.java69 @NonNull List<ReferrerIntent> intents, boolean resume) { in obtain() argument
75 instance.mIntents = new ArrayList<>(intents); in obtain()
/frameworks/base/core/java/android/view/translation/
DTranslationManager.java375 final ArrayList<PendingIntent> intents = in removeOnDeviceTranslationCapabilityUpdateListener() local
377 if (intents.contains(pendingIntent)) { in removeOnDeviceTranslationCapabilityUpdateListener()
378 intents.remove(pendingIntent); in removeOnDeviceTranslationCapabilityUpdateListener()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DLocaleTrackerTest.java138 List<Intent> intents = intentArgumentCaptor.getAllValues(); in verifyCountryCodeNotified() local
142 intents.get(i).getAction()); in verifyCountryCodeNotified()
143 assertEquals(countryCodes[i], intents.get(i).getStringExtra( in verifyCountryCodeNotified()

123