Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserTypeTest.java24 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()
DUserManagerServiceUserInfoTest.java24 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()
DUserManagerTest.java379 int requiredFlags = UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE; in testAddManagedProfile()
/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeFactory.java24 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()
DUserTypeDetails.java252 return (mBaseType & UserInfo.FLAG_PROFILE) != 0; in isProfile()
439 || mBaseType == UserInfo.FLAG_PROFILE in hasValidBaseType()
453 UserInfo.FLAG_PROFILE; in hasValidPropertyFlags()
DUserManagerService.java3606 | 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()
/frameworks/base/core/java/android/content/pm/
DUserInfo.java140 public static final int FLAG_PROFILE = 0x00001000; field in UserInfo
158 FLAG_PROFILE
306 return (flags & FLAG_PROFILE) != 0; in isProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowManagerTests.java21 import static android.content.pm.UserInfo.FLAG_PROFILE;
142 users.add(new UserInfo(WORK_PROFILE_USER_ID, "work", FLAG_PROFILE)); in setUp_baseServices()