Home
last modified time | relevance | path

Searched refs:resolveInfos (Results 1 – 14 of 14) sorted by relevance

/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiResourceUtil.java50 List<ResolveInfo> resolveInfos; in getWifiResources() local
51 resolveInfos = pm.queryIntentActivities(new Intent(ACTION_RESOURCES_APK), in getWifiResources()
54 resolveInfos.removeIf(info -> in getWifiResources()
57 assertEquals(1, resolveInfos.size()); in getWifiResources()
58 sWifiResourcesPackageName = resolveInfos.get(0).activityInfo.applicationInfo.packageName; in getWifiResources()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileSharingTest.java50 List<ResolveInfo> resolveInfos = in startSwitchToOtherProfileIntent() local
54 getSwitchToOtherProfileResolveInfo(resolveInfos); in startSwitchToOtherProfileIntent()
71 List<ResolveInfo> resolveInfos = in startSwitchToOtherProfileIntent_chooser() local
75 getSwitchToOtherProfileResolveInfo(resolveInfos); in startSwitchToOtherProfileIntent_chooser()
120 private ResolveInfo getSwitchToOtherProfileResolveInfo(List<ResolveInfo> resolveInfos) { in getSwitchToOtherProfileResolveInfo() argument
121 for (ResolveInfo resolveInfo : resolveInfos) { in getSwitchToOtherProfileResolveInfo()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-0017/src/android/security/cts/CVE_2024_0017/
DDeviceTest.java51 final List<ResolveInfo> resolveInfos = in testPocCVE_2024_0017() local
55 .that(resolveInfos) in testPocCVE_2024_0017()
59 for (ResolveInfo resolveInfo : resolveInfos) { in testPocCVE_2024_0017()
/cts/hostsidetests/appcloning/test-apps/AppCloningIntentRedirectionApps/IntentRedirectionTestApp/src/com/android/cts/appcloning/intentredirectiontest/app/
DIntentRedirectionAppTest.java96 List<ResolveInfo> resolveInfos = new ArrayList<>(); in testIntentResolutionForUser() local
99 resolveInfos = mPackageManager.queryIntentActivities(intent, in testIntentResolutionForUser()
107 Log.i(TAG, "resolveInfos : " + resolveInfos); in testIntentResolutionForUser()
110 for (ResolveInfo resolveInfo : resolveInfos) { in testIntentResolutionForUser()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DSecondaryLockscreenTest.java185 List<ResolveInfo> resolveInfos = mContext.getPackageManager().queryIntentActivities( in getLauncherPackageName() local
188 for (ResolveInfo resolveInfo : resolveInfos) { in getLauncherPackageName()
192 return resolveInfos.isEmpty() ? null : resolveInfos.get(0).activityInfo.packageName; in getLauncherPackageName()
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/
DImsUtils.java148 List<ResolveInfo> resolveInfos = packageManager.queryIntentServices(intent, 0); in shouldRunSmsImsTests() local
149 boolean detected = resolveInfos != null && !resolveInfos.isEmpty(); in shouldRunSmsImsTests()
159 for (ResolveInfo info : resolveInfos) { in shouldRunSmsImsTests()
/cts/common/device-side/interactive/src/main/java/com/android/interactive/steps/
DSelectAppStep.java69 List<ResolveInfo> resolveInfos, in AppAdapter() argument
71 super(context, textViewResourceId, resolveInfos); in AppAdapter()
73 mResolveInfos = resolveInfos; in AppAdapter()
/cts/tests/tests/security/src/android/security/cts/
DCVE_2024_34719.java151 List<ResolveInfo> resolveInfos = in queryBluetoothPackageName() local
155 return resolveInfos.stream() in queryBluetoothPackageName()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DKeyguardDisabledFeaturesActivity.java150 List<ResolveInfo> resolveInfos = packageManager.queryIntentServices(intent, 0); in hasTrustAgents() local
151 return resolveInfos.size() > 0; in hasTrustAgents()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DBluetoothTest.java438 List<ResolveInfo> resolveInfos = sPackageManager.queryIntentActivities( in share_disallowBluetoothAndSharingRestrictionsAreNotSet_canShare() local
440 assertThat(resolveInfosContainsActivity(resolveInfos, OPP_LAUNCHER_COMPONENT)).isTrue(); in share_disallowBluetoothAndSharingRestrictionsAreNotSet_canShare()
457 List<ResolveInfo> resolveInfos = sPackageManager.queryIntentActivities( in share_disallowBluetoothSharingRestrictionIsSet_canNotShare() local
459 assertThat(resolveInfosContainsActivity(resolveInfos, OPP_LAUNCHER_COMPONENT)).isFalse(); in share_disallowBluetoothSharingRestrictionIsSet_canNotShare()
515 List<ResolveInfo> resolveInfos = sPackageManager.queryIntentActivities( in share_disallowBluetoothRestrictionIsSet_canNotShare() local
517 assertThat(resolveInfosContainsActivity(resolveInfos, OPP_LAUNCHER_COMPONENT)).isFalse(); in share_disallowBluetoothRestrictionIsSet_canNotShare()
521 Collection<ResolveInfo> resolveInfos, ComponentName activity) { in resolveInfosContainsActivity() argument
522 return resolveInfos.stream() in resolveInfosContainsActivity()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DActivityLaunchUtils.java206 final List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities( in isHomeScreenShowing() local
225 for (ResolveInfo resolveInfo : resolveInfos) { in isHomeScreenShowing()
235 final CharSequence homePackageNames = resolveInfos.stream() in isHomeScreenShowing()
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java341 List<ResolveInfo> resolveInfos = mPackageManager.queryIntentActivities(intent, in testLauncherVersionAtLeastL() local
343 assertFalse("No launcher present", resolveInfos.isEmpty()); in testLauncherVersionAtLeastL()
345 for (ResolveInfo resolveInfo : resolveInfos) { in testLauncherVersionAtLeastL()
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DContactsContract_ContactsTest.java94 List<ResolveInfo> resolveInfos = packageManager.queryIntentActivities(intent, 0); in testContentUri() local
96 resolveInfos.isEmpty()); in testContentUri()
/cts/tests/tests/appenumeration/lib/src/android/appenumeration/cts/
DTestActivity.java644 final String[] resolveInfos = getPackageManager().queryIntentActivities( in sendQueryIntentActivities() local
650 result.putStringArray(EXTRA_RETURN_RESULT, resolveInfos); in sendQueryIntentActivities()
656 final String[] resolveInfos = getPackageManager().queryIntentServices( in sendQueryIntentServices() local
662 result.putStringArray(EXTRA_RETURN_RESULT, resolveInfos); in sendQueryIntentServices()
668 final String[] resolveInfos = getPackageManager().queryIntentContentProviders( in sendQueryIntentProviders() local
674 result.putStringArray(EXTRA_RETURN_RESULT, resolveInfos); in sendQueryIntentProviders()