| /cts/hostsidetests/appsecurity/src/android/appsecurity/cts/ |
| D | ApplicationVisibilityTest.java | 74 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/ |
| D | DeviceTest.java | 62 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/ |
| D | DeviceTest.java | 63 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/ |
| D | DeviceTest.java | 69 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/ |
| D | DeviceTest.java | 72 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/ |
| D | ActivityManagerHelperTest.java | 285 int testUserId = INVALID_USER_ID; in testStopAllTasksForUser() local 294 testUserId = createUser(CTS_CAR_TEST_USER_NAME); in testStopAllTasksForUser() 295 startUser(testUserId); in testStopAllTasksForUser() 297 switchUser(testUserId); in testStopAllTasksForUser() 298 waitUntilUserCurrent(testUserId); in testStopAllTasksForUser() 300 installPackageForUser(testUserId); in testStopAllTasksForUser() 308 stopAllTasksForUser(testUserId); in testStopAllTasksForUser() 311 removeUser(testUserId); in testStopAllTasksForUser() 312 testUserId = INVALID_USER_ID; in testStopAllTasksForUser() 316 deepCleanTestStopAllTasksForUser(testUserId, initialCurrentUserId); in testStopAllTasksForUser() [all …]
|
| /cts/hostsidetests/securitybulletin/test-apps/CVE-2023-40086/src/android/security/cts/CVE_2023_40086/ |
| D | DeviceTest.java | 69 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/ |
| D | DeviceTest.java | 63 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/ |
| D | DeviceTest.java | 59 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/ |
| D | DeviceTest.java | 72 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/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/ |
| D | InputMethodServiceDeviceTest.java | 111 final int testUserId = UserHandle.myUserId(); in testSwitchToNextInputMethod() local 120 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme(testUserId)) in testSwitchToNextInputMethod() 126 pollingCheck(() -> !helper.shell(ShellCommandUtils.getCurrentIme(testUserId)) in testSwitchToNextInputMethod() 138 final int testUserId = UserHandle.myUserId(); in switchToPreviousInputMethod() local 143 final String initialIme = helper.shell(ShellCommandUtils.getCurrentIme(testUserId)); in switchToPreviousInputMethod() 144 helper.shell(ShellCommandUtils.setCurrentImeSync(Ime2Constants.IME_ID, testUserId)); in switchToPreviousInputMethod() 152 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme(testUserId)) in switchToPreviousInputMethod() 198 final int testUserId = UserHandle.myUserId(); in testSwitchToHandwritingInputMethod() local 199 pollingCheck(() -> helper.shell(ShellCommandUtils.getCurrentIme(testUserId)) in testSwitchToHandwritingInputMethod()
|
| /cts/hostsidetests/securitybulletin/test-apps/CVE-2024-0020/src/android/security/cts/CVE-2024-0020/ |
| D | DeviceTest.java | 78 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/inputmethod/util/src/android/view/inputmethod/cts/util/ |
| D | MockTestActivityUtil.java | 151 final int testUserId = UserHandle.myUserId(); in launchSync() local 156 testUserId, TEST_ACTIVITY.getPackageName(), in launchSync() 164 Intent.ACTION_MAIN, TEST_ACTIVITY.flattenToShortString(), testUserId)); in launchSync()
|
| /cts/tests/tests/packageinstaller/install_appop_denied/src/android/packageinstaller/install_appop_denied/cts/ |
| D | PackageInstallerTestBase.kt | 120 val testUserId = context.user.identifier in <lambda>() constant 122 uiDevice.executeShellCommand("appops set --user $testUserId $packageName $APP_OP_STR deny"); in <lambda>()
|
| /cts/tests/tests/content/src/android/content/pm/cts/ |
| D | PackageManagerTest.java | 3214 int testUserId = Process.myUserHandle().getIdentifier(); in testInstallArchivedBroadcasts() local 3216 HELLO_WORLD_PACKAGE_NAME, testUserId, Intent.ACTION_PACKAGE_ADDED in testInstallArchivedBroadcasts() 3219 HELLO_WORLD_PACKAGE_NAME, testUserId, Intent.ACTION_PACKAGE_REMOVED in testInstallArchivedBroadcasts() 3222 HELLO_WORLD_PACKAGE_NAME, testUserId, Intent.ACTION_UID_REMOVED in testInstallArchivedBroadcasts() 3390 int testUserId = Process.myUserHandle().getIdentifier(); in testInstallArchivedApiBroadcasts() local 3392 HELLO_WORLD_PACKAGE_NAME, testUserId, Intent.ACTION_PACKAGE_ADDED in testInstallArchivedApiBroadcasts() 3395 HELLO_WORLD_PACKAGE_NAME, testUserId, Intent.ACTION_PACKAGE_REMOVED in testInstallArchivedApiBroadcasts() 3398 HELLO_WORLD_PACKAGE_NAME, testUserId, Intent.ACTION_UID_REMOVED in testInstallArchivedApiBroadcasts() 3525 final int testUserId = Process.myUserHandle().getIdentifier(); in testPackageRemovedBroadcastsSingleUser() local 3528 HELLO_WORLD_PACKAGE_NAME, testUserId, Intent.ACTION_PACKAGE_REMOVED in testPackageRemovedBroadcastsSingleUser() [all …]
|
| /cts/tests/framework/base/locale/src/android/localemanager/cts/ |
| D | LocaleManagerTests.java | 693 int testUserId = UserHandle.myUserId(); in setTestImeAsActive() local 695 ShellUtils.runShellCommand("ime enable --user " + testUserId + " " + mTestIme); in setTestImeAsActive() 696 ShellUtils.runShellCommand("ime set --user " + testUserId + " " + mTestIme); in setTestImeAsActive()
|
| /cts/tests/tests/packageinstaller/install/src/android/packageinstaller/install/cts/ |
| D | PackageInstallerTestBase.kt | 101 val testUserId: Int = context.user.identifier in <lambda>() constant 488 uiDevice.executeShellCommand("settings put --user $testUserId secure $secureSetting $value") in <lambda>()
|
| D | InstallConstraintsTest.kt | 72 private val testUserId: Int = instr.targetContext.user.identifier in <lambda>() constant in android.packageinstaller.install.cts.InstallConstraintsTest 487 "am start-activity --user $testUserId -W -n $packageName/$className") in <lambda>()
|