Home
last modified time | relevance | path

Searched refs:USER_SYSTEM (Results 1 – 25 of 31) sorted by relevance

12

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DActivePasswordSufficientForDeviceTest.java25 import static android.os.UserHandle.USER_SYSTEM;
68 changeUserCredential("1234", null, USER_SYSTEM); in testActivePsswordSufficientForDevice_UnifiedPassword_BothPolicies()
81 changeUserCredential(null, "1234", USER_SYSTEM); in testActivePsswordSufficientForDevice_UnifiedPassword_BothPolicies()
89 changeUserCredential("1234", null, USER_SYSTEM); in toTestActivePsswordSufficientForDevice_SeparatePassword_BothPolicies()
101 changeUserCredential(null, "1234", USER_SYSTEM); in toTestActivePsswordSufficientForDevice_SeparatePassword_BothPolicies()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java33 public static final int USER_SYSTEM = 0; field in Utils
37 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, null); in runDeviceTests()
43 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, testArgs); in runDeviceTests()
148 primary = USER_SYSTEM; in getAllUsers()
152 if ((user != USER_SYSTEM) && (user != primary)) { in getAllUsers()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DUtils.java38 public static final int USER_SYSTEM = 0; field in Utils
55 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, null); in runDeviceTests()
61 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, testArgs); in runDeviceTests()
167 primary = USER_SYSTEM; in getAllUsers()
171 if ((user != USER_SYSTEM) && (user != primary)) { in getAllUsers()
DBaseAppSecurityTest.java48 if (mPrimaryUserId != Utils.USER_SYSTEM) { in setUpBaseAppSecurityTest()
49 mFixedUsers.add(Utils.USER_SYSTEM); in setUpBaseAppSecurityTest()
DResumeOnRebootHostTest.java67 private static final int USER_SYSTEM = 0; field in ResumeOnRebootHostTest
567 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
/cts/tests/app/src/android/app/cts/
DUserHandleTest.java35 assertSameUserHandle(UserHandle.USER_SYSTEM); in testOf()
65 UserHandle.getUid(UserHandle.USER_SYSTEM, TEST_APP_ID), in testGetUid()
/cts/hostsidetests/backup/src/android/cts/backup/
DMultiUserBackupStateTest.java49 protected static final int USER_SYSTEM = 0; field in MultiUserBackupStateTest
99 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
DRestoreSessionHostSideTest.java55 private static final int USER_SYSTEM = 0; field in RestoreSessionHostSideTest
209 return mBackupUtils.setBackupTransportForUser(transport, USER_SYSTEM); in setBackupTransport()
DBackupPreparer.java64 private final int USER_SYSTEM = 0; field in BackupPreparer
232 return mBackupUtils.isBackupActivatedForUser(USER_SYSTEM); in isBackupActiveForSysytemUser()
/cts/hostsidetests/appsecurity/test-apps/RoleSecurityTestApp/src/com/android/cts/rolesecuritytest/
DDeviceTest.java57 assertNotEquals("This test should be run in a secondary user", UserHandle.USER_SYSTEM, in cannotGetSmsRoleHolderForAnotherUser()
73 getSmsRoleHolderMethod.invoke(roleService, UserHandle.USER_SYSTEM); in cannotGetSmsRoleHolderForAnotherUser()
/cts/hostsidetests/content/src/android/content/cts/
DBaseContextCrossProfileTest.java40 private static final int USER_SYSTEM = 0; // From the UserHandle class. field in BaseContextCrossProfileTest
74 if (mPrimaryUserId != USER_SYSTEM) { in setFixedUsers()
75 mFixedUsers.add(USER_SYSTEM); in setFixedUsers()
DContextCrossProfileHostTest.java61 public static final int USER_SYSTEM = 0; field in ContextCrossProfileHostTest
78 assertEquals(USER_SYSTEM, mParentUserId); in setUp()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java60 protected static final int USER_SYSTEM = 0; field in BaseMultiUserTest
90 mExistingUsers.add(USER_SYSTEM); in setUp()
189 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM in removeUser()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DOrgOwnedProfileOwnerParentTest.java103 Settings.Secure.LOCATION_MODE, UserHandle.USER_SYSTEM)); in testAddGetAndClearUserRestriction_onParent()
117 Settings.Secure.LOCATION_MODE, finalLocationMode, UserHandle.USER_SYSTEM)); in testAddGetAndClearUserRestriction_onParent()
DUserRestrictionsParentTest.java228 Settings.Secure.LOCATION_MODE, UserHandle.USER_SYSTEM); in testPerProfileUserRestriction_onParent()
252 UserHandle.USER_SYSTEM); in testPerProfileUserRestriction_onParent()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DMixedProfileOwnerTest.java99 assumeTrue("Skipping test: profile owner is not on system user", mUserId == USER_SYSTEM); in testSetAutoTimeEnabled()
DBaseDevicePolicyTest.java109 protected static final int USER_SYSTEM = 0; // From the UserHandle class. field in BaseDevicePolicyTest
111 protected static final int USER_OWNER = USER_SYSTEM;
230 mDeviceOwnerUserId = USER_SYSTEM; in setUp()
234 if (mPrimaryUserId != USER_SYSTEM) { in setUp()
235 mFixedUsers.add(USER_SYSTEM); in setUp()
510 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
543 if (userId != USER_SYSTEM && userId != mInitialUserId) { in removeTestAddedUser()
/cts/hostsidetests/accounts/src/android/host/accounts/
DAccountManagerXUserTest.java62 public static final int USER_SYSTEM = 0; field in AccountManagerXUserTest
83 assertThat(mParentUserId).isEqualTo(USER_SYSTEM); in setUp()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java52 private static final int USER_SYSTEM = 0; field in PrivacyDeviceOwnerTest
90 mDeviceOwnerUserId = USER_SYSTEM; in setUp()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java63 if (getCurrentUserId() == UserHandle.USER_SYSTEM) { in testCanAccessAppADataDir()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java142 UserHandle.USER_SYSTEM); in getSettingsPackageName()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DUtils.java65 return UserManager.isHeadlessSystemUserMode() && MY_USER_ID == UserHandle.USER_SYSTEM; in isHeadlessSystemUser()
DTestAppSystemServiceFactory.java187 if (userId == UserHandle.USER_SYSTEM || !UserManager.isHeadlessSystemUserMode()) { in getSystemService()
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DSuspendPackageTest.java164 UserHandle.USER_SYSTEM); in getSettingsPackageName()
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/
DScopedStorageTest.java112 static final int USER_SYSTEM = 0; field in ScopedStorageTest
787 assumeTrue("Test is applicable only for System User.", getCurrentUser() == USER_SYSTEM); in testRenameFromShell()

12