Home
last modified time | relevance | path

Searched refs:systemUser (Results 1 – 7 of 7) sorted by relevance

/cts/tests/tests/car_builtin/src/android/car/cts/builtin/os/
DUserManagerHelperLiteTest.java101 UserHandle systemUser = UserHandle.SYSTEM; in testMultiplePropertiesForFullSystemUser() local
104 UserManagerHelper.isEphemeralUser(mUserManager, systemUser)).isFalse(); in testMultiplePropertiesForFullSystemUser()
106 UserManagerHelper.isFullUser(mUserManager, systemUser)).isTrue(); in testMultiplePropertiesForFullSystemUser()
108 UserManagerHelper.isGuestUser(mUserManager, systemUser)).isFalse(); in testMultiplePropertiesForFullSystemUser()
110 UserManagerHelper.isEnabledUser(mUserManager, systemUser)).isTrue(); in testMultiplePropertiesForFullSystemUser()
112 UserManagerHelper.isInitializedUser(mUserManager, systemUser)).isTrue(); in testMultiplePropertiesForFullSystemUser()
113 expectGetUserHandlesHasUser(systemUser); in testMultiplePropertiesForFullSystemUser()
127 UserHandle systemUser = UserHandle.SYSTEM; in testMultiplePropertiesForHeadlessSystemUser() local
130 UserManagerHelper.isEphemeralUser(mUserManager, systemUser)).isFalse(); in testMultiplePropertiesForHeadlessSystemUser()
132 UserManagerHelper.isFullUser(mUserManager, systemUser)).isFalse(); in testMultiplePropertiesForHeadlessSystemUser()
[all …]
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/users/
DUserInfoStatsTests.java83 UserInfo systemUser = findUserById(data, 0); in testGuestUserExists() local
84 assertThat(systemUser).isNotNull(); in testGuestUserExists()
85 assertThat(systemUser.getUserType().toString()) in testGuestUserExists()
87 assertThat(systemUser.getIsUserRunningUnlocked()).isTrue(); in testGuestUserExists()
109 UserInfo systemUser = findUserById(data, 0); in testSecondaryUserExists() local
110 assertThat(systemUser).isNotNull(); in testSecondaryUserExists()
111 assertThat(systemUser.getUserType().toString()) in testSecondaryUserExists()
113 assertThat(systemUser.getIsUserRunningUnlocked()).isTrue(); in testSecondaryUserExists()
/cts/common/device-side/interactive/src/main/java/com/android/interactive/
DAutomator.java90 UserReference systemUser = TestApis.users().system(); in copyAutomationFileToInternalStorage() local
100 if (TestApis.users().instrumented().equals(systemUser)) { in copyAutomationFileToInternalStorage()
123 mustBeUninstalled = !pkg.installedOnUser(systemUser); in copyAutomationFileToInternalStorage()
126 pkg.installExisting(systemUser); in copyAutomationFileToInternalStorage()
129 pkg.appOps(systemUser).set(OPSTR_MANAGE_EXTERNAL_STORAGE, AppOpsMode.ALLOWED); in copyAutomationFileToInternalStorage()
131 systemUser.userHandle(), /* flags= */0) in copyAutomationFileToInternalStorage()
149 pkg.uninstall(systemUser); in copyAutomationFileToInternalStorage()
/cts/hostsidetests/rollback/src/com/android/cts/rollback/host/
DRollbackManagerHostTest.java174 String systemUser = "0"; in assumeSystemUser() local
176 getDevice().executeShellCommand("am get-current-user").trim(), equalTo(systemUser)); in assumeSystemUser()
/cts/tests/tests/multiuser/src/android/multiuser/cts/
DUserVisibilityVisibleBackgroundUsersTestCase.java216 UserReference systemUser = TestApis.users().system(); in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay() local
219 .name("profile_of_" + systemUser.id()) in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay()
222 .parent(systemUser) in testStartVisibleBgUser_parentOnDefaultDisplayProfileOnSecondaryDisplay()
/cts/common/device-side/bedstead/modules/multiuser/src/test/kotlin/com/android/bedstead/multiuser/
DUsersTest.kt319 val systemUser = TestApis.users().system() in <lambda>() constant
321 .type(mSecondaryUserType).parent(systemUser) in <lambda>()
/cts/hostsidetests/stagedinstall/src/com/android/tests/stagedinstall/host/
DStagedInstallTest.java173 String systemUser = "0"; in assumeSystemUser() local
175 getDevice().executeShellCommand("am get-current-user").trim(), equalTo(systemUser)); in assumeSystemUser()