Searched refs:FLAG_PROFILE (Results 1 – 8 of 8) sorted by relevance
24 import static android.content.pm.UserInfo.FLAG_PROFILE;179 assertTrue(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE)); in testCheckUserTypeConsistency()182 assertFalse(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE | FLAG_SYSTEM)); in testCheckUserTypeConsistency()183 assertFalse(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE | FLAG_FULL)); in testCheckUserTypeConsistency()217 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_profile()222 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_profile()306 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_eraseArray()330 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_illegalOemName()
24 import static android.content.pm.UserInfo.FLAG_PROFILE;175 UserInfo userInfo = createUser(100, FLAG_PROFILE, null); in testSupportSwitchTo_profile()196 assertTrue((mUserManagerService.getUserInfo(100).flags & FLAG_PROFILE) != 0); in testUpgradeIfNecessaryLP_9()201 assertTrue((mUserManagerService.getUserInfo(102).flags & FLAG_PROFILE) == 0); in testUpgradeIfNecessaryLP_9()204 assertTrue((mUserManagerService.getUserInfo(103).flags & FLAG_PROFILE) == 0); in testUpgradeIfNecessaryLP_9()
379 int requiredFlags = UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE; in testAddManagedProfile()
24 import static android.content.pm.UserInfo.FLAG_PROFILE;104 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfileManaged()260 (isProfile && builder.getBaseType() == UserInfo.FLAG_PROFILE) in customizeBuilders()272 builder.setBaseType(FLAG_PROFILE); in customizeBuilders()
252 return (mBaseType & UserInfo.FLAG_PROFILE) != 0; in isProfile()439 || mBaseType == UserInfo.FLAG_PROFILE in hasValidBaseType()453 UserInfo.FLAG_PROFILE; in hasValidPropertyFlags()
3606 | UserInfo.FLAG_RESTRICTED | UserInfo.FLAG_PROFILE; in checkUserTypeConsistency()3608 && isAtMostOneFlag(flags & (UserInfo.FLAG_PROFILE | UserInfo.FLAG_FULL)) in checkUserTypeConsistency()3609 && isAtMostOneFlag(flags & (UserInfo.FLAG_PROFILE | UserInfo.FLAG_SYSTEM)); in checkUserTypeConsistency()
140 public static final int FLAG_PROFILE = 0x00001000; field in UserInfo158 FLAG_PROFILE306 return (flags & FLAG_PROFILE) != 0; in isProfile()
21 import static android.content.pm.UserInfo.FLAG_PROFILE;142 users.add(new UserInfo(WORK_PROFILE_USER_ID, "work", FLAG_PROFILE)); in setUp_baseServices()