Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/content/pm/
DUserInfo.java50 public static final int FLAG_ADMIN = 0x00000002; field in UserInfo
137 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;
115 static final UserInfo primaryUser = new UserInfo(27, "Primary", FLAG_ADMIN | FLAG_PRIMARY);
116 static final UserInfo secondaryUser = new UserInfo(15, "Secondary", FLAG_ADMIN);
550 return (userMap.get(id).flags & UserInfo.FLAG_ADMIN) != 0; in setMockedUsers()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java65 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY);
/frameworks/base/core/tests/coretests/src/android/content/pm/
DRegisteredServicesCacheTest.java73 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.java655 UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY | UserInfo.FLAG_INITIALIZED), 0);
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java1018 info.flags ^= UserInfo.FLAG_ADMIN; in setUserAdmin()
2158 flags |= UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY; in fallbackToSingleUserLP()
2663 flags |= UserInfo.FLAG_ADMIN; in createUserInternalUnchecked()