Searched refs:FLAG_ADMIN (Results 1 – 7 of 7) sorted by relevance
50 public static final int FLAG_ADMIN = 0x00000002; field in UserInfo137 return (flags & FLAG_ADMIN) == FLAG_ADMIN; in isAdmin()
19 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()
65 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY);
73 mUsers.add(new UserInfo(0, "Owner", UserInfo.FLAG_ADMIN)); in setUp()
146 UserInfo user2 = createUser("User 2", UserInfo.FLAG_ADMIN); in testAdd2Users()
655 UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY | UserInfo.FLAG_INITIALIZED), 0);
1018 info.flags ^= UserInfo.FLAG_ADMIN; in setUserAdmin()2158 flags |= UserInfo.FLAG_ADMIN | UserInfo.FLAG_PRIMARY; in fallbackToSingleUserLP()2663 flags |= UserInfo.FLAG_ADMIN; in createUserInternalUnchecked()