Home
last modified time | relevance | path

Searched refs:ri (Results 1 – 25 of 42) sorted by relevance

12

/cts/tests/tests/app/src/android/app/cts/
DKeyguardInitialLockTest.java38 for (ResolveInfo ri : activities) { in testSetInitialLockPermission()
39 if (ri != null) { in testSetInitialLockPermission()
40 allowedPackages.add(ri.activityInfo.packageName); in testSetInitialLockPermission()
41 validPkg = ri.activityInfo.packageName; in testSetInitialLockPermission()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInputMethodRegistrationTest.java95 ri -> ri.serviceInfo.applicationInfo.className != null in verifyTestSetup_initiallyDisabledImes_AreFound()
97 ComponentName.createRelative(ri.serviceInfo.applicationInfo.packageName, in verifyTestSetup_initiallyDisabledImes_AreFound()
98 ri.serviceInfo.applicationInfo.className)) in verifyTestSetup_initiallyDisabledImes_AreFound()
99 && !ri.serviceInfo.enabled).findAny(); in verifyTestSetup_initiallyDisabledImes_AreFound()
101 ri -> ri.serviceInfo.applicationInfo.className != null in verifyTestSetup_initiallyDisabledImes_AreFound()
103 ComponentName.createRelative(ri.serviceInfo.applicationInfo.packageName, in verifyTestSetup_initiallyDisabledImes_AreFound()
104 ri.serviceInfo.applicationInfo.className)) in verifyTestSetup_initiallyDisabledImes_AreFound()
105 && !ri.serviceInfo.enabled).findAny(); in verifyTestSetup_initiallyDisabledImes_AreFound()
/cts/tests/tests/security/src/android/security/cts/
DIntentSenderRemovalTest.java41 ResolveInfo ri = pm.resolveActivity(debugIntentSender, 0); in testIntentSenderIntent() local
43 assertNull("com.android.settings.DebugIntentSender should not be a valid activity", ri); in testIntentSenderIntent()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DIntentSenderActivity.java101 for (ResolveInfo ri : ris) { in getCrossProfileResult()
102 if (!ri.activityInfo.packageName.equals("com.android.cts.intent.receiver")) { in getCrossProfileResult()
103 intent.setComponent(new ComponentName(ri.activityInfo.packageName, in getCrossProfileResult()
104 ri.activityInfo.name)); in getCrossProfileResult()
/cts/tests/tests/settings/src/android/settings/cts/
DAppLocaleSettingsTest.java51 final ResolveInfo ri = InstrumentationRegistry.getTargetContext() in testAppLocaleSettingsExist() local
54 assertTrue(ri != null); in testAppLocaleSettingsExist()
DTetherProvisioningCarrierDialogActivityTest.java55 final ResolveInfo ri = InstrumentationRegistry.getTargetContext() in testTetheringProvisioningCarrierUiExisted() local
58 assertTrue(ri != null); in testTetheringProvisioningCarrierUiExisted()
DSettingsIntentsTest.java74 final ResolveInfo ri = mPackageManager.resolveActivity(intent, in settingActivity_launchSatelliteSettingIntent() local
76 assertNotNull(ri); in settingActivity_launchSatelliteSettingIntent()
DSettingsIntentsInWorkProfileTest.java95 final ResolveInfo ri = packageManager.resolveActivity(intent, in startActivity() local
97 assertNotNull(ri); in startActivity()
/cts/tests/PhotoPicker/src/android/photopicker/cts/util/
DPhotoPickerPackageUtils.java58 final ResolveInfo ri = inst.getContext().getPackageManager().resolveActivity(intent, 0); in getActivityPackageNameFromIntent() local
59 return ri.activityInfo.packageName; in getActivityPackageNameFromIntent()
/cts/tests/tests/security/src/android/security/cts/CVE_2021_0642/
DCVE_2021_0642.java67 ResolveInfo ri = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); in testCVE_2021_0642() local
68 final String resolvedPkgName = ri.activityInfo.packageName; in testCVE_2021_0642()
69 final String resolvedActivityName = ri.activityInfo.name; in testCVE_2021_0642()
/cts/tests/tests/shortcutmanager/throttling/src/android/content/pm/cts/shortcutmanager/throttling/
DInlineReply.java45 final RemoteInput ri = new RemoteInput.Builder("result").setLabel("Remote input").build(); in showNotificationWithInlineReply() local
52 .addRemoteInput(ri) in showNotificationWithInlineReply()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0315/src/android/security/cts/CVE_2021_0315/
DDeviceTest.java96 ResolveInfo ri = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); in startVulnerableActivity() local
97 assumeNotNull(mContext.getString(R.string.activityNotFoundMsg, intent), ri); in startVulnerableActivity() local
98 assumeNotNull(ri.activityInfo); in startVulnerableActivity()
99 mVulActivity = ri.activityInfo.name; in startVulnerableActivity()
/cts/hostsidetests/appsecurity/test-apps/PrivilegedUpdateApp/src/com/android/cts/privilegedupdate/
DPrivilegedUpdateTest.java151 for (ResolveInfo ri : entries) { in assertFilterPriority()
152 if (ri.activityInfo.name.equals(className)) { in assertFilterPriority()
153 foundInfo = ri; in assertFilterPriority()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileUtils.java120 for (ResolveInfo ri : ris) { in testDisableAllBrowsers()
121 Log.d(TAG, "Hiding " + ri.activityInfo.packageName); in testDisableAllBrowsers()
122 dpm.setApplicationHidden(ADMIN_RECEIVER_COMPONENT, ri.activityInfo.packageName, true); in testDisableAllBrowsers()
/cts/tests/credentials/src/android/credentials/cts/
DCtsSettingsIntentTest.java127 final ResolveInfo ri = in testCredentialManagerSettingsIntent() local
130 assertThat(ri).isNotNull(); in testCredentialManagerSettingsIntent()
167 final ResolveInfo ri = in testCredentialManagerAutofillSettingsIntent() local
170 assertThat(ri).isNotNull(); in testCredentialManagerAutofillSettingsIntent()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20230/src/android/security/cts/CVE_2022_20230/
DDeviceTest.java330 ResolveInfo ri = pm.resolveActivity(vulIntent, PackageManager.MATCH_DEFAULT_ONLY); in testCVE_2022_20230() local
331 assumeNotNull(mContext.getString(R.string.activityNotFoundMsg) + intent, ri); in testCVE_2022_20230() local
332 String vulActivityName = ri.activityInfo.name; in testCVE_2022_20230()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39692/src/android/security/cts/CVE_2021_39692/
DPocActivity.java41 ResolveInfo ri = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); in onCreate() local
42 if (ri == null) { in onCreate()
DDeviceTest.java136 ResolveInfo ri = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); in testOverlayButtonPresence() local
137 assumeTrue(resources.getString(R.string.activityNotFoundMsg, intent), ri != null); in testOverlayButtonPresence()
138 String testVulnerableActivity = ri.activityInfo.name; in testOverlayButtonPresence()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2020-0015/src/android/security/cts/CVE_2020_0015/
DDeviceTest.java88 ResolveInfo ri = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); in startVulnerableActivity() local
89 assumeTrue(context.getString(R.string.activityNotFoundMsg, intent), ri != null); in startVulnerableActivity()
90 testVulnerablePackage = ri.activityInfo.packageName; in startVulnerableActivity()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0487/src/android/security/cts/CVE_2021_0487/
DDeviceTest.java74 for (ResolveInfo ri : ris) { in startVulnerableActivity()
75 if (ri.activityInfo.name in startVulnerableActivity()
77 mVulnerablePkgName = ri.activityInfo.packageName; in startVulnerableActivity()
/cts/tests/tests/voiceRecognition/src/android/voicerecognition/cts/
DAbstractRecognitionServiceTest.java132 SpeechRecognitionActivity.RecognizerInfo ri = mActivity.getRecognizerInfoDefault(); in testStartListening() local
133 setCurrentRecognizer(ri.mRecognizer, CTS_VOICE_RECOGNITION_SERVICE); in testStartListening()
141 assertThat(ri.mCountDownLatch.await( in testStartListening()
389 SpeechRecognitionActivity.RecognizerInfo ri = in executeSequenceTest() local
391 assertThat(ri.mRecognizer).isNotNull(); in executeSequenceTest()
392 setCurrentRecognizer(ri.mRecognizer, IN_PACKAGE_RECOGNITION_SERVICE); in executeSequenceTest()
393 ri.mCallbackMethodsInvoked.clear(); in executeSequenceTest()
492 SpeechRecognitionActivity.RecognizerInfo ri = in executeSequenceTest() local
512 assertThat(ri.mCallbackMethodsInvoked).isEqualTo(sei.mExpectedClientCallbackMethods); in executeSequenceTest()
513 assertThat(ri.mErrorCodesReceived).isEqualTo(sei.mExpectedErrorCodesReceived); in executeSequenceTest()
/cts/tests/tests/systemintents/src/android/systemintents/cts/
DTestSystemIntents.java120 final ResolveInfo ri = mPackageManager.resolveActivity(e.intent, in testSystemIntents() local
123 .that(ri).isNotNull(); in testSystemIntents()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20501/src/android/security/cts/CVE_2022_20501/
DDeviceTest.java99 ResolveInfo ri = pm.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY); in testOverlayButtonPresence() local
100 assumeNotNull(mContext.getString(R.string.activityNotFoundMsg, intent), ri); in testOverlayButtonPresence() local
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0963/src/android/security/cts/CVE_2021_0963/
DDeviceTest.java183 ResolveInfo ri = in testOverlayButtonPresence() local
186 String vulnerableActivityName = ri.activityInfo.name; in testOverlayButtonPresence()
187 String vulnerablePkgName = ri.activityInfo.packageName; in testOverlayButtonPresence()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0953/src/android/security/cts/CVE_2021_0953/
DPocActivity.java84 for (ResolveInfo ri : ris) { in onCreate()
85 if (ri.activityInfo.name.contains("AllowBindAppWidgetActivity")) { in onCreate()
86 settingsPkgName = ri.activityInfo.packageName; in onCreate()

12