Home
last modified time | relevance | path

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

12

/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DDisableScreenDozeRule.java19 import static android.os.UserHandle.USER_SYSTEM;
55 USER_SYSTEM); in apply()
61 mConfig.restoreDozeSettings(USER_SYSTEM); in apply()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java34 public static final int USER_SYSTEM = 0; field in Utils
38 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, null); in runDeviceTests()
44 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, testArgs); in runDeviceTests()
149 primary = USER_SYSTEM; in getAllUsers()
153 if ((user != USER_SYSTEM) && !Objects.equals(user, primary)) { in getAllUsers()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DUtils.java41 public static final int USER_SYSTEM = 0; field in Utils
88 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, null); in runDeviceTests()
94 runDeviceTests(device, packageName, testClassName, testMethodName, USER_SYSTEM, testArgs); in runDeviceTests()
205 && primary == USER_SYSTEM in getAllUsers()
210 primary = USER_SYSTEM; in getAllUsers()
214 if ((user != USER_SYSTEM) && !Objects.equals(user, primary)) { in getAllUsers()
DBaseAppSecurityTest.java47 if (mPrimaryUserId != Utils.USER_SYSTEM) { in setUpBaseAppSecurityTest()
48 mFixedUsers.add(Utils.USER_SYSTEM); in setUpBaseAppSecurityTest()
/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.java65 private final int USER_SYSTEM = 0; field in BackupPreparer
233 return mBackupUtils.isBackupActivatedForUser(USER_SYSTEM); in isBackupActiveForSysytemUser()
/cts/tests/tests/car_builtin/src/android/car/cts/builtin/util/
DValidationHelperTest.java38 private static final int USER_SYSTEM = 0; field in ValidationHelperTest
52 assertTrue(ValidationHelper.isUserIdValid(USER_SYSTEM)); in testUserIdValidation()
/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
72 if (mPrimaryUserId != USER_SYSTEM) { in setFixedUsers()
73 mFixedUsers.add(USER_SYSTEM); in setFixedUsers()
/cts/tests/tests/os/src/android/os/cts/
DUserHandleTest.java41 assertSameUserHandle(UserHandle.USER_SYSTEM); in testOf()
78 UserHandle.getUid(UserHandle.USER_SYSTEM, TEST_APP_ID), in testGetUid()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-23707/src/android/security/cts/CVE_2024_23707/
DPocManageSpaceActivity.java40 UserHandle.USER_SYSTEM); in onResume()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DOrgOwnedProfileOwnerParentTest.java102 Settings.Secure.LOCATION_MODE, UserHandle.USER_SYSTEM)); in testAddGetAndClearUserRestriction_onParent()
116 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/tests/tests/security/src/android/security/cts/
DCVE_2023_20959.java55 PackageManager.MATCH_SYSTEM_ONLY, UserHandle.USER_SYSTEM); in testPocCVE_2023_20959()
DCVE_2024_0046.java60 UserHandle.USER_SYSTEM); in testPocCVE_2024_0046()
DCVE_2023_20960.java67 UserHandle.USER_SYSTEM); in testPocCVE_2023_20960()
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java51 protected static final int USER_SYSTEM = 0; field in BaseMultiUserTest
211 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM in removeUser()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/
DAppBTests.java61 if (getCurrentUserId() == UserHandle.USER_SYSTEM) { in testCanAccessAppADataDir()
/cts/hostsidetests/settings/src/com/google/android/cts/settings/
DPrivacyDeviceOwnerTest.java54 private static final int USER_SYSTEM = 0; field in PrivacyDeviceOwnerTest
92 mDeviceOwnerUserId = USER_SYSTEM; in setUp()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0965/src/android/security/cts/CVE_2021_0965/
DDeviceTest.java61 PackageManager.MATCH_SYSTEM_ONLY, UserHandle.USER_SYSTEM); in getSettingsPkgName()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-21256/src/android/security/cts/CVE_2023_21256/
DDeviceTest.java73 UserHandle.USER_SYSTEM); in testSettingsHomePageActivityFromWorkProfile()
/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java107 protected static final int USER_SYSTEM = 0; // From the UserHandle class. field in BaseDevicePolicyTest
109 protected static final int USER_OWNER = USER_SYSTEM;
226 if (mPrimaryUserId != USER_SYSTEM) { in setUp()
227 mFixedUsers.add(USER_SYSTEM); in setUp()
508 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
538 if (userId != USER_SYSTEM && userId != mInitialUserId) { in removeTestAddedUser()
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/
DManualPackageInstallTest.java143 UserHandle.USER_SYSTEM); in getSettingsPackageName()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2022-20501/src/android/security/cts/CVE_2022_20501/
DDeviceTest.java66 UserHandle.USER_SYSTEM); in getTelecomPkgName()

12