Home
last modified time | relevance | path

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

123

/packages/apps/Contacts/tests/src/com/android/contacts/
DContactsUtilsTests.java89 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntentCustom() local
90 final Intent imIntent = intents.first; in testImIntentCustom()
99 assertNull(intents.second); in testImIntentCustom()
111 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntent() local
112 final Intent imIntent = intents.first; in testImIntent()
117 assertNull(intents.second); in testImIntent()
130 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntentWithAudio() local
131 final Intent imIntent = intents.first; in testImIntentWithAudio()
136 final Intent secondaryIntent = intents.second; in testImIntentWithAudio()
152 final Pair<Intent, Intent> intents = ContactsUtils.buildImIntent(getContext(), im); in testImIntentWithVideo() local
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DConcreteClientModeManagerTest.java312 List<Intent> intents = intentCaptor.getAllValues(); in startClientInConnectModeAndVerifyEnabled() local
313 assertEquals(2, intents.size()); in startClientInConnectModeAndVerifyEnabled()
314 Log.d(TAG, "captured intents: " + intents); in startClientInConnectModeAndVerifyEnabled()
315 checkWifiConnectModeStateChangedBroadcast(intents.get(0), WIFI_STATE_ENABLING, in startClientInConnectModeAndVerifyEnabled()
317 checkWifiConnectModeStateChangedBroadcast(intents.get(1), WIFI_STATE_ENABLED, in startClientInConnectModeAndVerifyEnabled()
339 List<Intent> intents = intentCaptor.getAllValues(); in verifyConnectModeNotificationsForCleanShutdown() local
340 assertTrue(intents.size() >= 2); in verifyConnectModeNotificationsForCleanShutdown()
341 checkWifiConnectModeStateChangedBroadcast(intents.get(intents.size() - 2), in verifyConnectModeNotificationsForCleanShutdown()
343 checkWifiConnectModeStateChangedBroadcast(intents.get(intents.size() - 1), in verifyConnectModeNotificationsForCleanShutdown()
353 List<Intent> intents = intentCaptor.getAllValues(); in verifyConnectModeNotificationsForFailure() local
[all …]
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/applications/
DInstalledAppCountItemManagerTest.java71 List<ResolveInfo> intents = new ArrayList<>(); in isSystemApp_userCanOpen_isCounted() local
72 intents.add(new ResolveInfo()); in isSystemApp_userCanOpen_isCounted()
74 when(mMockPm.queryIntentActivitiesAsUser(any(), anyInt(), anyInt())).thenReturn(intents); in isSystemApp_userCanOpen_isCounted()
82 List<ResolveInfo> intents = new ArrayList<>(); in isSystemApp_userCannotOpen_isNotCounted() local
84 when(mMockPm.queryIntentActivitiesAsUser(any(), anyInt(), anyInt())).thenReturn(intents); in isSystemApp_userCannotOpen_isNotCounted()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DEnterpriseSetDefaultAppsPreferenceControllerTest.java76 private void setEnterpriseSetDefaultApps(Intent[] intents, int number) { in setEnterpriseSetDefaultApps() argument
83 argThat(matchesIntents(intents)))).thenReturn(apps); in setEnterpriseSetDefaultApps()
137 private ArgumentMatcher<Intent[]> matchesIntents(Intent[] intents) { in matchesIntents() argument
142 if (actualIntents.length != intents.length) { in matchesIntents()
145 for (int i = 0; i < intents.length; i++) { in matchesIntents()
146 if (!intents[i].filterEquals(actualIntents[i])) { in matchesIntents()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DImageActionUtils.java180 Intent[] intents = uriToIntentMap.apply(getImageUri(bitmap, crop, context, tag), intent); in persistBitmapAndStartActivity() local
184 if (intents.length == 1) { in persistBitmapAndStartActivity()
185 context.startActivity(intents[0]); in persistBitmapAndStartActivity()
187 context.startActivities(intents); in persistBitmapAndStartActivity()
204 Intent[] intents = uriToIntentMap.apply(getImageUri(bitmap, crop, context, tag), intent); in persistBitmapAndStartActivity() local
207 if (intents.length == 1) { in persistBitmapAndStartActivity()
208 MAIN_EXECUTOR.execute(() -> context.startActivity(intents[0], in persistBitmapAndStartActivity()
213 MAIN_EXECUTOR.execute(() -> context.startActivities(intents, in persistBitmapAndStartActivity()
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/
DChooserRefinementManagerTest.kt42 val intents = listOf(Intent(Intent.ACTION_VIEW), Intent(Intent.ACTION_EDIT)) in testMaybeHandleSelection() constant
44 whenever(allSourceIntents).thenReturn(intents) in testMaybeHandleSelection()
54 assertEquals(intents[0], intent.getParcelableExtra(Intent.EXTRA_INTENT, Intent::class.java)) in testMaybeHandleSelection()
59 assertEquals(intents[1], alternates?.get(0)) in testMaybeHandleSelection()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/wifi/
DNetworkNamePreferenceControllerTest.java86 List<Intent> intents = ShadowLocalBroadcastManager.getSentBroadcastIntents(); in handlePreferenceChanged_broadcastIsSent() local
87 assertThat(intents).hasSize(1); in handlePreferenceChanged_broadcastIsSent()
88 assertThat(intents.get(0).getAction()).isEqualTo( in handlePreferenceChanged_broadcastIsSent()
90 assertThat(intents.get(0).getStringExtra( in handlePreferenceChanged_broadcastIsSent()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/wifi/
DNetworkSecurityPreferenceControllerTest.java121 List<Intent> intents = argumentCaptor.getAllValues(); in handlePreferenceChanged_broadcastIsSent() local
122 assertThat(intents).hasSize(1); in handlePreferenceChanged_broadcastIsSent()
123 assertThat(intents.get(0).getAction()).isEqualTo( in handlePreferenceChanged_broadcastIsSent()
125 assertThat(intents.get(0).getIntExtra(NetworkSecurityPreferenceController.KEY_SECURITY_TYPE, in handlePreferenceChanged_broadcastIsSent()
/packages/apps/Settings/src/com/android/settings/applications/
DInstalledAppCounter.java63 List<ResolveInfo> intents = pm.queryIntentActivitiesAsUser( in includeInCount() local
69 return intents != null && intents.size() != 0; in includeInCount()
DEnterpriseDefaultApps.java44 EnterpriseDefaultApps(Intent[] intents) { in EnterpriseDefaultApps() argument
45 mIntents = intents; in EnterpriseDefaultApps()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/apps/
DInstalledAppCounter.java69 List<ResolveInfo> intents = pm.queryIntentActivitiesAsUser( in includeInCount() local
75 return intents != null && intents.size() != 0; in includeInCount()
DEnterpriseDefaultApps.java46 EnterpriseDefaultApps(Intent[] intents) { in EnterpriseDefaultApps() argument
47 mIntents = intents; in EnterpriseDefaultApps()
/packages/apps/Car/Settings/src/com/android/car/settingslib/applications/
DInstalledAppCounter.java72 List<ResolveInfo> intents = pm.queryIntentActivitiesAsUser( in includeInCount() local
78 return intents != null && intents.size() != 0; in includeInCount()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DInstalledAppCountItemManager.java90 List<ResolveInfo> intents = mContext.getPackageManager().queryIntentActivitiesAsUser( in shouldCountApp() local
96 return intents != null && !intents.isEmpty(); in shouldCountApp()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DBaseEnterprisePrivacyPreferenceControllerTestCase.java81 protected ArgumentMatcher<Intent[]> matchesIntents(Intent[] intents) { in matchesIntents() argument
86 if (actualIntents.length != intents.length) { in matchesIntents()
89 for (int i = 0; i < intents.length; i++) { in matchesIntents()
90 if (!intents[i].filterEquals(actualIntents[i])) { in matchesIntents()
DEnterpriseSetDefaultAppsPreferenceControllerTest.java119 Intent[] intents = typeOfDefault.getIntents(); in setEnterpriseSetDefaultApps() local
126 argThat(matchesIntents(intents)))).thenReturn(apps); in setEnterpriseSetDefaultApps()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DResolverListController.java115 List<Intent> intents, in getResolversForIntentAsUser() argument
122 return getResolversForIntentAsUserInternal(intents, userHandle, baseFlags); in getResolversForIntentAsUser()
126 List<Intent> intents, UserHandle userHandle, int baseFlags) { in getResolversForIntentAsUserInternal() argument
128 for (int i = 0, N = intents.size(); i < N; i++) { in getResolversForIntentAsUserInternal()
129 Intent intent = intents.get(i); in getResolversForIntentAsUserInternal()
DChooserRequestParameters.java377 Stream<Intent> intents = in intentsWithModifiedLaunchFlagsFromExtraIfPresent() local
379 if (intents == null) { in intentsWithModifiedLaunchFlagsFromExtraIfPresent()
382 return intents in intentsWithModifiedLaunchFlagsFromExtraIfPresent()
/packages/services/Telephony/testapps/SmsManagerTestApp/src/com/android/phone/testapps/smsmanagertestapp/
DSmsManagerTestService.java38 protected Void doInBackground(Intent... intents) { in doInBackground() argument
39 Intent intent = intents[0]; in doInBackground()
/packages/apps/Car/Settings/src/com/android/car/settingslib/enterprise/
DEnterpriseDefaultApps.java46 EnterpriseDefaultApps(Intent[] intents) { in EnterpriseDefaultApps() argument
47 mIntents = intents; in EnterpriseDefaultApps()
/packages/apps/ManagedProvisioning/tests/instrumentation/
DAndroid.bp24 "androidx.test.espresso.intents",
52 "androidx.test.espresso.intents",
/packages/apps/Messaging/tests/src/com/android/messaging/
DFakeContext.java58 final ArrayList<Intent> intents = mStartedIntents; in extractIntents() local
60 return intents; in extractIntents()
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/provisioning/
DProvisioningActivityRoboTest.java136 final List<Intent> intents = shadowOf(mContext).getBroadcastIntents(); in error_noFactoryReset_doesNotReset() local
137 assertThat(intentsContainsAction(intents, Intent.ACTION_FACTORY_RESET)).isFalse(); in error_noFactoryReset_doesNotReset()
409 private static boolean intentsContainsAction(List<Intent> intents, String action) { in intentsContainsAction() argument
410 return intents.stream().anyMatch(intent -> intent.getAction().equals(action)); in intentsContainsAction()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DControllerTest.java220 private void verifyGarageModeBroadcast(List<Intent> intents, int times, String action) { in verifyGarageModeBroadcast() argument
222 assertWithMessage("no of intents").that(intents.size()).isAtLeast(times); in verifyGarageModeBroadcast()
223 Intent i = intents.get(times - 1); in verifyGarageModeBroadcast()
/packages/modules/Scheduling/tests/unittests/src/com/android/server/scheduling/
DRebootReadinessUnitTest.java249 List<Intent> intents = mIntentArgumentCaptor.getAllValues(); in testCorrectIntentsSent() local
251 Intent readyIntent = intents.get(0); in testCorrectIntentsSent()
252 Intent notReadyIntent = intents.get(1); in testCorrectIntentsSent()
279 List<Intent> intents = mIntentArgumentCaptor.getAllValues(); in testSecondClientReceivesBroadcastImmediately() local
281 Intent secondIntent = intents.get(1); in testSecondClientReceivesBroadcastImmediately()

123