/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | ActivePasswordSufficientForDeviceTest.java | 25 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/ |
D | Utils.java | 33 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/ |
D | Utils.java | 38 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()
|
D | BaseAppSecurityTest.java | 48 if (mPrimaryUserId != Utils.USER_SYSTEM) { in setUpBaseAppSecurityTest() 49 mFixedUsers.add(Utils.USER_SYSTEM); in setUpBaseAppSecurityTest()
|
D | ResumeOnRebootHostTest.java | 67 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/ |
D | UserHandleTest.java | 35 assertSameUserHandle(UserHandle.USER_SYSTEM); in testOf() 65 UserHandle.getUid(UserHandle.USER_SYSTEM, TEST_APP_ID), in testGetUid()
|
D | UiModeManagerTest.java | 685 ? SettingsUtils.getSecureSettingAsUser(UserHandle.USER_SYSTEM, key) in getUiNightModeFromSetting()
|
/cts/hostsidetests/backup/src/android/cts/backup/ |
D | MultiUserBackupStateTest.java | 49 protected static final int USER_SYSTEM = 0; field in MultiUserBackupStateTest 99 if (getDevice().listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser()
|
D | BackupPreparer.java | 64 private final int USER_SYSTEM = 0; field in BackupPreparer 232 return mBackupUtils.isBackupActivatedForUser(USER_SYSTEM); in isBackupActiveForSysytemUser()
|
D | RestoreSessionHostSideTest.java | 55 private static final int USER_SYSTEM = 0; field in RestoreSessionHostSideTest 209 return mBackupUtils.setBackupTransportForUser(transport, USER_SYSTEM); in setBackupTransport()
|
/cts/hostsidetests/appsecurity/test-apps/RoleSecurityTestApp/src/com/android/cts/rolesecuritytest/ |
D | DeviceTest.java | 57 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/ |
D | BaseContextCrossProfileTest.java | 40 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()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | OrgOwnedProfileOwnerParentTest.java | 103 Settings.Secure.LOCATION_MODE, UserHandle.USER_SYSTEM)); in testAddGetAndClearUserRestriction_onParent() 117 Settings.Secure.LOCATION_MODE, finalLocationMode, UserHandle.USER_SYSTEM)); in testAddGetAndClearUserRestriction_onParent()
|
D | UserRestrictionsParentTest.java | 228 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/ |
D | MixedProfileOwnerTest.java | 101 assumeTrue("Skipping test: profile owner is not on system user", mUserId == USER_SYSTEM); in testSetAutoTimeEnabled()
|
D | BaseDevicePolicyTest.java | 109 protected static final int USER_SYSTEM = 0; // From the UserHandle class. field in BaseDevicePolicyTest 111 protected static final int USER_OWNER = USER_SYSTEM; 236 mDeviceOwnerUserId = USER_SYSTEM; in setUp() 240 if (mPrimaryUserId != USER_SYSTEM) { in setUp() 241 mFixedUsers.add(USER_SYSTEM); in setUp() 520 if (listUsers().contains(userId) && userId != USER_SYSTEM) { in removeUser() 553 if (userId != USER_SYSTEM && userId != mInitialUserId) { in removeTestAddedUser()
|
D | DeviceOwnerTest.java | 585 int adminUserId = USER_SYSTEM; in testDisallowFactoryReset()
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppB/src/com/android/cts/appdataisolation/appb/ |
D | AppBTests.java | 63 if (getCurrentUserId() == UserHandle.USER_SYSTEM) { in testCanAccessAppADataDir()
|
/cts/hostsidetests/settings/src/com/google/android/cts/settings/ |
D | PrivacyDeviceOwnerTest.java | 52 private static final int USER_SYSTEM = 0; field in PrivacyDeviceOwnerTest 90 mDeviceOwnerUserId = USER_SYSTEM; in setUp()
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
D | ManualPackageInstallTest.java | 142 UserHandle.USER_SYSTEM); in getSettingsPackageName()
|
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/ |
D | Utils.java | 65 return UserManager.isHeadlessSystemUserMode() && MY_USER_ID == UserHandle.USER_SYSTEM; in isHeadlessSystemUser()
|
D | TestAppSystemServiceFactory.java | 229 if (userId == UserHandle.USER_SYSTEM || !UserManager.isHeadlessSystemUserMode()) { in getSystemService()
|
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/ |
D | SuspendPackageTest.java | 172 UserHandle.USER_SYSTEM); in getSettingsPackageName()
|
/cts/hostsidetests/scopedstorage/src/android/scopedstorage/cts/ |
D | ScopedStorageTest.java | 112 static final int USER_SYSTEM = 0; field in ScopedStorageTest 787 assumeTrue("Test is applicable only for System User.", getCurrentUser() == USER_SYSTEM); in testRenameFromShell()
|
/cts/tests/tests/deviceconfig/src/android/deviceconfig/cts/ |
D | DeviceConfigApiTests.java | 102 if (CONTEXT.getUserId() != UserHandle.USER_SYSTEM in setUp()
|