Home
last modified time | relevance | path

Searched refs:newUserId (Results 1 – 8 of 8) sorted by relevance

/cts/hostsidetests/packagemanager/multiuser/src/com/android/tests/packagemanager/multiuser/host/
DUninstallExistingPackageTest.java52 int newUserId = createUser(); in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser() local
55 installExistingPackageForUser(EMPTY_TEST_APP_PKG, newUserId); in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser()
58 assertTrue("Package is not installed for user " + newUserId, in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser()
59 isPackageInstalledForUser(EMPTY_TEST_APP_PKG, newUserId)); in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser()
65 assertTrue(isPackageInstalledForUser(EMPTY_TEST_APP_PKG, newUserId)); in testUninstallExistingPackage_succeedsIfInstalledInAnotherUser()
72 int newUserId = createUser(); in testUninstallExistingPackage_failsIfInstalledInOnlyOneUser() local
76 assertFalse(isPackageInstalledForUser(EMPTY_TEST_APP_PKG, newUserId)); in testUninstallExistingPackage_failsIfInstalledInOnlyOneUser()
DPackageManagerMultiUserTest.java43 int newUserId = createUser(); in testGetInstalledModules() local
44 getDevice().startUser(newUserId); in testGetInstalledModules()
45 String list2 = getInstalledModules(newUserId); in testGetInstalledModules()
/cts/hostsidetests/car/src/android/car/cts/
DUiModeHostTest.java43 int newUserId = createFullUser("UiModeHostTest"); in testUserSwitchingConfigConsistency() local
54 switchUser(newUserId); in testUserSwitchingConfigConsistency()
55 waitForUserSwitchCompleted(newUserId); in testUserSwitchingConfigConsistency()
DPreCreateUsersHostTest.java241 int newUserId = isGuest in convertPreCreatedUser() local
244 if (newUserId == expectedId) { in convertPreCreatedUser()
245 CLog.i("Created new %s from pre-created %s with id %d", type, type, newUserId); in convertPreCreatedUser()
248 fail("Created new " + type + " with id " + newUserId + ", which doesn't match pre-created " in convertPreCreatedUser()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java308 int newUserId = createAndStartUser(); in testIsTrusted_withEnabledNotificationListener_returnsTrue() local
309 setAllowGetActiveSessionForTest(true, newUserId); in testIsTrusted_withEnabledNotificationListener_returnsTrue()
310 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, newUserId, false); in testIsTrusted_withEnabledNotificationListener_returnsTrue()
311 runTestAsUser("testIsTrusted_returnsTrue", newUserId); in testIsTrusted_withEnabledNotificationListener_returnsTrue()
324 int newUserId = createAndStartUser(); in testIsTrusted_withoutEnabledNotificationListener_returnsFalse() local
325 setAllowGetActiveSessionForTest(false, newUserId); in testIsTrusted_withoutEnabledNotificationListener_returnsFalse()
326 installAppAsUser(DEVICE_SIDE_TEST_APK, DEVICE_SIDE_TEST_PKG, newUserId, false); in testIsTrusted_withoutEnabledNotificationListener_returnsFalse()
327 runTestAsUser("testIsTrusted_returnsFalse", newUserId); in testIsTrusted_withoutEnabledNotificationListener_returnsFalse()
/cts/tests/tests/car/src/android/car/cts/
DCarUserManagerTest.java487 int newUserId = UserHandle.USER_NULL; in getNonExistentUser() local
489 newUserId = max(newUserId, userHandle.getIdentifier()); in getNonExistentUser()
492 return UserHandle.of(++newUserId); in getNonExistentUser()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DDeviceOwnerTest.java313 int newUserId = newUsers.get(0); in testCreateAndManageUser_Ephemeral() local
316 int flags = getUserFlags(newUserId); in testCreateAndManageUser_Ephemeral()
1151 int newUserId = newUsers.get(0); in assertNewUserStopped() local
1153 assertFalse(getDevice().isUserRunning(newUserId)); in assertNewUserStopped()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java1936 int newUserId = UserHandle.USER_NULL; in testGetUidProcessState_checkAccess() local
1942 newUserId = createNewUser(); in testGetUidProcessState_checkAccess()
1943 assertNotEquals(UserHandle.USER_NULL, newUserId); in testGetUidProcessState_checkAccess()
1944 startUser(newUserId); in testGetUidProcessState_checkAccess()
1945 installExistingPackageAsUser(STUB_PACKAGE_NAME, newUserId); in testGetUidProcessState_checkAccess()
1946 final int uidFromNewUser = UserHandle.getUid(newUserId, Process.myUid()); in testGetUidProcessState_checkAccess()
1956 if (newUserId != UserHandle.USER_NULL) { in testGetUidProcessState_checkAccess()
1957 removeUser(newUserId); in testGetUidProcessState_checkAccess()
1975 int newUserId = UserHandle.USER_NULL; in testGetUidProcessCapabilities_checkAccess() local
1981 newUserId = createNewUser(); in testGetUidProcessCapabilities_checkAccess()
[all …]