Home
last modified time | relevance | path

Searched refs:testUserId (Results 1 – 13 of 13) sorted by relevance

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DApplicationVisibilityTest.java74 final int testUserId = getTestUserId(); in testPackageListCrossUserGrant() local
77 installTestAppForUser(TEST_WITH_PERMISSION_APK, testUserId); in testPackageListCrossUserGrant()
84 testUserId); in testPackageListCrossUserGrant() local
90 testUserId); in testPackageListCrossUserGrant() local
101 final int testUserId = getTestUserId(); in testPackageListCrossUserNoGrant() local
104 installTestAppForUser(TEST_WITH_PERMISSION_APK, testUserId); in testPackageListCrossUserNoGrant()
111 testUserId); in testPackageListCrossUserNoGrant() local
117 testUserId); in testPackageListCrossUserNoGrant() local
128 final int testUserId = getTestUserId(); in testPackageListOtherUserCrossUserGrant() local
133 installTestAppForUser(TEST_WITH_PERMISSION_APK, testUserId); in testPackageListOtherUserCrossUserGrant()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21285/src/android/security/cts/CVE_2023_21285/
DDeviceTest.java62 int testUserId = in testPocCVE_2023_21285() local
78 assumeTrue("Unable to find the user cve_2023_21285_user", testUserId != -1); in testPocCVE_2023_21285()
93 testUserId, imagesContentUri)); in testPocCVE_2023_21285()
98 testUserId, imagesContentUri)) in testPocCVE_2023_21285()
132 ContentProvider.maybeAddUserId(EXTERNAL_CONTENT_URI, testUserId) in testPocCVE_2023_21285()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21244/src/android/security/cts/CVE_2023_21244/
DDeviceTest.java63 int testUserId = in testCVE_2023_21244() local
79 assumeTrue("Unable to find the user cve_2023_21244_user", testUserId != -1); in testCVE_2023_21244()
94 testUserId, imagesContentUri)); in testCVE_2023_21244()
99 testUserId, imagesContentUri)) in testCVE_2023_21244()
121 ContentProvider.maybeAddUserId(EXTERNAL_CONTENT_URI, testUserId), in testCVE_2023_21244()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21291/src/android/security/cts/CVE_2023_21291/
DDeviceTest.java69 int testUserId = in testPocCVE_2023_21291() local
81 assumeTrue("Unable to find the user cve_2023_21291_user", testUserId != -1); in testPocCVE_2023_21291()
96 testUserId, imagesContentUri)); in testPocCVE_2023_21291()
101 testUserId, imagesContentUri)) in testPocCVE_2023_21291()
136 testUserId)))) in testPocCVE_2023_21291()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40073/src/android/security/cts/CVE_2023_40073/
DDeviceTest.java72 final int testUserId = in testPocCVE_2023_40073() local
85 .that(testUserId != -1) in testPocCVE_2023_40073()
102 testUserId, imagesContentUri)); in testPocCVE_2023_40073()
109 testUserId, imagesContentUri)) in testPocCVE_2023_40073()
132 testUserId))) in testPocCVE_2023_40073()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/app/
DActivityManagerHelperTest.java289 int testUserId = INVALID_USER_ID; in testStopAllTasksForUser() local
298 testUserId = createUser(CTS_CAR_TEST_USER_NAME); in testStopAllTasksForUser()
299 startUser(testUserId); in testStopAllTasksForUser()
301 switchUser(testUserId); in testStopAllTasksForUser()
302 waitUntilUserCurrent(testUserId); in testStopAllTasksForUser()
304 installPackageForUser(testUserId); in testStopAllTasksForUser()
312 stopAllTasksForUser(testUserId); in testStopAllTasksForUser()
315 removeUser(testUserId); in testStopAllTasksForUser()
316 testUserId = INVALID_USER_ID; in testStopAllTasksForUser()
320 deepCleanTestStopAllTasksForUser(testUserId, initialCurrentUserId); in testStopAllTasksForUser()
[all …]
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40086/src/android/security/cts/CVE_2023_40086/
DDeviceTest.java69 final int testUserId = in testPocCVE_2023_40086() local
82 .that(testUserId) in testPocCVE_2023_40086()
96 EXTERNAL_CONTENT_URI, testUserId))) in testPocCVE_2023_40086()
140 testUserId)); in testPocCVE_2023_40086()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21288/src/android/security/cts/CVE_2023_21288/
DDeviceTest.java63 int testUserId = -1; in testPocCVE_2023_21288() local
71 testUserId = info.getUserHandle().getIdentifier(); in testPocCVE_2023_21288()
77 .that(testUserId) in testPocCVE_2023_21288()
91 ContentProvider.maybeAddUserId(EXTERNAL_CONTENT_URI, testUserId)); in testPocCVE_2023_21288()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40092/src/android/security/cts/CVE_2023_40092/
DDeviceTest.java59 int testUserId = in testPocCVE_2023_40092() local
72 .that(testUserId != -1) in testPocCVE_2023_40092()
87 UserIdField.set(shortcut, testUserId); in testPocCVE_2023_40092()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21239/src/android/security/cts/CVE_2023_21239/
DDeviceTest.java72 int testUserId = -1; in testCallStyleNotification() local
81 testUserId = info.getUserHandle().getIdentifier(); in testCallStyleNotification()
86 assumeTrue(testUserId != -1); in testCallStyleNotification()
98 UserHandle.of(testUserId)); in testCallStyleNotification()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-0020/src/android/security/cts/CVE-2024-0020/
DDeviceTest.java78 final int testUserId = in testPocCVE_2024_0020() local
91 .that(testUserId) in testPocCVE_2024_0020()
98 withUserId(Uri.parse("content://" + currentPackageName), testUserId) in testPocCVE_2024_0020()
/cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/
DPackageInstallerTestBase.kt102 val testUserId: Int = context.user.identifier in <lambda>() constant
476 uiDevice.executeShellCommand("settings put --user $testUserId secure $secureSetting $value") in <lambda>()
DInstallConstraintsTest.kt69 private val testUserId: Int = instr.targetContext.user.identifier in <lambda>() constant in android.packageinstaller.install.cts.InstallConstraintsTest
474 "am start-activity --user $testUserId -W -n $packageName/$className") in <lambda>()