Home
last modified time | relevance | path

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

123

/frameworks/base/core/tests/coretests/src/android/view/textclassifier/intent/
DTemplateIntentFactoryTest.java88 List<LabeledIntent> intents = in create_full() local
91 assertThat(intents).hasSize(1); in create_full()
92 LabeledIntent labeledIntent = intents.get(0); in create_full()
126 List<LabeledIntent> intents = in normalizesScheme() local
129 String data = intents.get(0).intent.getData().toString(); in normalizesScheme()
150 List<LabeledIntent> intents = in create_minimal() local
153 assertThat(intents).hasSize(1); in create_minimal()
154 LabeledIntent labeledIntent = intents.get(0); in create_minimal()
173 List<LabeledIntent> intents = in invalidTemplate_nullTemplate() local
176 assertThat(intents).isEmpty(); in invalidTemplate_nullTemplate()
[all …]
DLegacyIntentClassificationFactoryTest.java71 List<LabeledIntent> intents = mLegacyIntentClassificationFactory.create( in create_typeDictionary() local
78 assertThat(intents).hasSize(1); in create_typeDictionary()
79 LabeledIntent labeledIntent = intents.get(0); in create_typeDictionary()
107 List<LabeledIntent> intents = mLegacyIntentClassificationFactory.create( in create_translateAndDictionary() local
114 assertThat(intents).hasSize(2); in create_translateAndDictionary()
115 assertThat(intents.get(0).intent.getAction()).isEqualTo(Intent.ACTION_DEFINE); in create_translateAndDictionary()
116 assertThat(intents.get(1).intent.getAction()).isEqualTo(Intent.ACTION_TRANSLATE); in create_translateAndDictionary()
DTemplateClassificationIntentFactoryTest.java90 List<LabeledIntent> intents = in create_foreignText() local
98 assertThat(intents).hasSize(2); in create_foreignText()
99 LabeledIntent labeledIntent = intents.get(0); in create_foreignText()
104 labeledIntent = intents.get(1); in create_foreignText()
131 List<LabeledIntent> intents = in create_notForeignText() local
139 assertThat(intents).hasSize(1); in create_notForeignText()
140 LabeledIntent labeledIntent = intents.get(0); in create_notForeignText()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DClientModeManagerTest.java103 List<Intent> intents = intentCaptor.getAllValues(); in startClientModeAndVerifyEnabled() local
104 assertEquals(2, intents.size()); in startClientModeAndVerifyEnabled()
105 Log.d(TAG, "captured intents: " + intents); in startClientModeAndVerifyEnabled()
106 checkWifiStateChangedBroadcast(intents.get(0), WIFI_STATE_ENABLING, WIFI_STATE_DISABLED); in startClientModeAndVerifyEnabled()
107 checkWifiStateChangedBroadcast(intents.get(1), WIFI_STATE_ENABLED, WIFI_STATE_ENABLING); in startClientModeAndVerifyEnabled()
141 List<Intent> intents = intentCaptor.getAllValues(); in verifyNotificationsForCleanShutdown() local
142 assertEquals(2, intents.size()); in verifyNotificationsForCleanShutdown()
143 checkWifiStateChangedBroadcast(intents.get(0), WIFI_STATE_DISABLING, fromState); in verifyNotificationsForCleanShutdown()
144 checkWifiStateChangedBroadcast(intents.get(1), WIFI_STATE_DISABLED, WIFI_STATE_DISABLING); in verifyNotificationsForCleanShutdown()
152 List<Intent> intents = intentCaptor.getAllValues(); in verifyNotificationsForFailure() local
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DPendingIntentController.java92 int userId, IBinder token, String resultWho, int requestCode, Intent[] intents, in getIntentSender() argument
99 if (intents != null) { in getIntentSender()
100 for (int i = 0; i < intents.length; i++) { in getIntentSender()
101 intents[i].setDefusable(true); in getIntentSender()
113 resultWho, requestCode, intents, resolvedTypes, flags, in getIntentSender()
122 rec.key.requestIntent.replaceExtras(intents != null ? in getIntentSender()
123 intents[intents.length - 1] : null); in getIntentSender()
125 if (intents != null) { in getIntentSender()
126 intents[intents.length - 1] = rec.key.requestIntent; in getIntentSender()
127 rec.key.allIntents = intents; in getIntentSender()
[all …]
/frameworks/base/core/java/android/app/
DTaskStackBuilder.java301 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()
DPendingIntent.java434 @NonNull Intent[] intents, @Flags int flags) { in getActivities() argument
435 return getActivities(context, requestCode, intents, flags, null); in getActivities()
484 @NonNull Intent[] intents, @Flags int flags, @Nullable Bundle options) { in getActivities() argument
486 String[] resolvedTypes = new String[intents.length]; in getActivities()
487 for (int i=0; i<intents.length; i++) { in getActivities()
488 intents[i].migrateExtraStreamToClipData(); in getActivities()
489 intents[i].prepareToLeaveProcess(context); in getActivities()
490 resolvedTypes[i] = intents[i].resolveTypeIfNeeded(context.getContentResolver()); in getActivities()
496 null, null, requestCode, intents, resolvedTypes, flags, options, in getActivities()
510 @NonNull Intent[] intents, int flags, Bundle options, UserHandle user) { in getActivitiesAsUser() argument
[all …]
DInstrumentation.java1733 IBinder token, Activity target, Intent[] intents, Bundle options) { in execStartActivities() argument
1734 execStartActivitiesAsUser(who, contextThread, token, target, intents, options, in execStartActivities()
1752 IBinder token, Activity target, Intent[] intents, Bundle options, in execStartActivitiesAsUser() argument
1762 result = am.onStartActivity(intents[0]); in execStartActivitiesAsUser()
1767 } else if (am.match(who, null, intents[0])) { in execStartActivitiesAsUser()
1778 String[] resolvedTypes = new String[intents.length]; in execStartActivitiesAsUser()
1779 for (int i=0; i<intents.length; i++) { in execStartActivitiesAsUser()
1780 intents[i].migrateExtraStreamToClipData(); in execStartActivitiesAsUser()
1781 intents[i].prepareToLeaveProcess(who); in execStartActivitiesAsUser()
1782 resolvedTypes[i] = intents[i].resolveTypeIfNeeded(who.getContentResolver()); in execStartActivitiesAsUser()
[all …]
DLocalActivityManager.java339 ArrayList<ReferrerIntent> intents = new ArrayList<>(1); in startActivity() local
340 intents.add(new ReferrerIntent(intent, mParent.getPackageName())); in startActivity()
342 mActivityThread.handleNewIntent(r, intents); in startActivity()
DClientTransactionHandler.java155 public abstract void handleNewIntent(IBinder token, List<ReferrerIntent> intents); in handleNewIntent() argument
/frameworks/base/services/core/java/com/android/server/wm/
DActivityStartController.java305 final int startActivitiesInPackage(int uid, String callingPackage, Intent[] intents, in startActivitiesInPackage() argument
310 callingPackage, intents, resolvedTypes, resultTo, options, userId, validateIncomingUser, in startActivitiesInPackage()
328 String callingPackage, Intent[] intents, String[] resolvedTypes, IBinder resultTo, in startActivitiesInPackage() argument
339 return startActivities(null, uid, realCallingPid, realCallingUid, callingPackage, intents, in startActivitiesInPackage()
345 int incomingRealCallingUid, String callingPackage, Intent[] intents, in startActivities() argument
349 if (intents == null) { in startActivities()
355 if (intents.length != resolvedTypes.length) { in startActivities()
377 intents = ArrayUtils.filterNotNull(intents, Intent[]::new); in startActivities()
378 final ActivityStarter[] starters = new ActivityStarter[intents.length]; in startActivities()
381 for (int i = 0; i < intents.length; i++) { in startActivities()
[all …]
DActivityTaskManagerInternal.java206 int userId, Intent[] intents, Bundle bOptions); in startActivitiesAsPackage() argument
224 String callingPackage, Intent[] intents, String[] resolvedTypes, IBinder resultTo, in startActivitiesInPackage() argument
405 int requestCode, Intent[] intents, String[] resolvedTypes, int flags, in getIntentSender() argument
/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()
DComponentResolver.java857 final List<ActivityIntentInfo> intentListCopy = new ArrayList<>(foundActivity.intents); in adjustPriority()
1110 intentFilters = packageActivities.get(i).intents; in queryIntentForPackage()
1133 final int intentsSize = a.intents.size(); in addActivity()
1135 PackageParser.ActivityIntentInfo intent = a.intents.get(j); in addActivity()
1158 final int intentsSize = a.intents.size(); in removeActivity()
1160 PackageParser.ActivityIntentInfo intent = a.intents.get(j); in removeActivity()
1391 intentFilters = packageProviders.get(i).intents; in queryIntentForPackage()
1417 final int intentsSize = p.intents.size(); in addProvider()
1420 PackageParser.ProviderIntentInfo intent = p.intents.get(j); in addProvider()
1440 final int intentsSize = p.intents.size(); in removeProvider()
[all …]
DLauncherAppsService.java733 final Intent[] intents = mShortcutServiceInternal.createShortcutIntents( in startShortcut() local
736 if (intents == null || intents.length == 0) { in startShortcut()
741 intents[0].addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); in startShortcut()
742 intents[0].setSourceBounds(sourceBounds); in startShortcut()
745 intents, packageName, startActivityOptions, targetUserId); in startShortcut()
748 private boolean startShortcutIntentsAsPublisher(@NonNull Intent[] intents, in startShortcutIntentsAsPublisher() argument
753 userId, intents, startActivityOptions); in startShortcutIntentsAsPublisher()
/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/core/java/android/content/pm/
DShortcutInfo.java474 private static Intent[] cloneIntents(Intent[] intents) { in cloneIntents() argument
475 if (intents == null) { in cloneIntents()
478 final Intent[] ret = new Intent[intents.length]; in cloneIntents()
480 if (intents[i] != null) { in cloneIntents()
481 ret[i] = new Intent(intents[i]); in cloneIntents()
1231 public Builder setIntents(@NonNull Intent[] intents) { in setIntents() argument
1232 Preconditions.checkNotNull(intents, "intents cannot be null"); in setIntents()
1233 Preconditions.checkNotNull(intents.length, "intents cannot be empty"); in setIntents()
1234 for (Intent intent : intents) { in setIntents()
1239 mIntents = cloneIntents(intents); in setIntents()
[all …]
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java61 List<Intent> intents = mBroadcastIntents; in getAndClearBroadcastIntents() local
63 return intents; in getAndClearBroadcastIntents()
/frameworks/base/core/java/android/app/servertransaction/
DNewIntentItem.java63 public static NewIntentItem obtain(List<ReferrerIntent> intents, boolean resume) { in obtain() argument
68 instance.mIntents = intents; in obtain()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageParserTest.java313 if (a.intents != null && b.intents != null) { in assertComponentsEqual()
314 assertEquals(a.intents.size(), b.intents.size()); in assertComponentsEqual()
315 } else if (a.intents == null || b.intents == null) { in assertComponentsEqual()
319 for (int i = 0; i < a.intents.size(); ++i) { in assertComponentsEqual()
320 PackageParser.IntentInfo aIntent = a.intents.get(i); in assertComponentsEqual()
321 PackageParser.IntentInfo bIntent = b.intents.get(i); in assertComponentsEqual()
DBaseShortcutManagerTest.java1540 protected ShortcutInfo makeShortcutWithIntents(String id, Intent... intents) { in makeShortcutWithIntents() argument
1543 intents, /* rank =*/ 0); in makeShortcutWithIntents()
1550 Icon icon, Intent[] intents, int rank) { in makeShortcut() argument
1555 .setIntents(intents); in makeShortcut()
1704 final Intent[] intents = launchShortcutAndGetIntents(packageName, shortcutId, userId); in launchShortcutAndGetIntent() local
1705 assertEquals(1, intents.length); in launchShortcutAndGetIntent()
1706 return intents[0]; in launchShortcutAndGetIntent()
1721 final Intent[] intents = launchShortcutAndGetIntents_withShortcutInfo(
1723 assertEquals(1, intents.length);
1724 return intents[0];
/frameworks/base/core/java/com/android/internal/app/
DResolverListController.java106 List<Intent> intents) { in getResolversForIntent() argument
108 for (int i = 0, N = intents.size(); i < N; i++) { in getResolversForIntent()
109 final Intent intent = intents.get(i); in getResolversForIntent()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DLocaleTrackerTest.java125 List<Intent> intents = intentArgumentCaptor.getAllValues(); in verifyCountryCodeNotified() local
129 intents.get(i).getAction()); in verifyCountryCodeNotified()
130 assertEquals(countryCodes[i], intents.get(i).getStringExtra( in verifyCountryCodeNotified()
/frameworks/base/core/java/android/content/
DContextWrapper.java418 public void startActivities(Intent[] intents) { in startActivities() argument
419 mBase.startActivities(intents); in startActivities()
423 public void startActivities(Intent[] intents, Bundle options) { in startActivities() argument
424 mBase.startActivities(intents, options); in startActivities()
429 public int startActivitiesAsUser(Intent[] intents, Bundle options, UserHandle userHandle) { in startActivitiesAsUser() argument
430 return mBase.startActivitiesAsUser(intents, options, userHandle); in startActivitiesAsUser()
/frameworks/base/test-mock/src/android/test/mock/
DMockContext.java327 public void startActivities(Intent[] intents) { in startActivities() argument
332 public void startActivities(Intent[] intents, Bundle options) { in startActivities() argument
333 startActivities(intents); in startActivities()

123