Home
last modified time | relevance | path

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

/frameworks/opt/car/services/tests/src/com/android/internal/car/
DCarHelperServiceTest.java109 new UserInfo(adminUserId, DEFAULT_NAME, UserInfo.FLAG_ADMIN); in testStartsLastActiveUserOnReboot()
113 new UserInfo(secUserId, DEFAULT_NAME, UserInfo.FLAG_ADMIN); in testStartsLastActiveUserOnReboot()
127 UserInfo admin = new UserInfo(adminId, DEFAULT_NAME, UserInfo.FLAG_ADMIN); in mockAdminWithDefaultName()
/frameworks/base/core/java/android/content/pm/
DUserInfo.java52 public static final int FLAG_ADMIN = 0x00000002; field in UserInfo
153 return (flags & FLAG_ADMIN) == FLAG_ADMIN; in isAdmin()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DVpnTest.java19 import static android.content.pm.UserInfo.FLAG_ADMIN;
116 static final UserInfo primaryUser = new UserInfo(27, "Primary", FLAG_ADMIN | FLAG_PRIMARY);
117 static final UserInfo secondaryUser = new UserInfo(15, "Secondary", FLAG_ADMIN);
685 return (userMap.get(id).flags & UserInfo.FLAG_ADMIN) != 0; in setMockedUsers()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java67 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY);
/frameworks/base/core/tests/coretests/src/android/content/pm/
DRegisteredServicesCacheTest.java74 mUsers.add(new UserInfo(0, "Owner", UserInfo.FLAG_ADMIN)); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerTest.java146 UserInfo user2 = createUser("User 2", UserInfo.FLAG_ADMIN); in testAdd2Users()
DBaseShortcutManagerTest.java660 UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY | UserInfo.FLAG_INITIALIZED), 0);
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1059 info.flags ^= UserInfo.FLAG_ADMIN; in setUserAdmin()
2222 flags |= UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY; in fallbackToSingleUserLP()
2743 flags |= UserInfo.FLAG_ADMIN; in createUserInternalUnchecked()