Home
last modified time | relevance | path

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

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DUserManagerServiceUserInfoTest.java27 import static android.content.pm.UserInfo.FLAG_PROFILE;
255 UserInfo userInfo = createUser(100, FLAG_PROFILE, null); in testSupportSwitchTo_profile()
285 assertTrue((mUserManagerService.getUserInfo(100).flags & FLAG_PROFILE) != 0); in testUpgradeIfNecessaryLP_9()
290 assertTrue((mUserManagerService.getUserInfo(102).flags & FLAG_PROFILE) == 0); in testUpgradeIfNecessaryLP_9()
293 assertTrue((mUserManagerService.getUserInfo(103).flags & FLAG_PROFILE) == 0); in testUpgradeIfNecessaryLP_9()
393 .setBaseType(FLAG_PROFILE) in testUpgradeProfileType_updateTypeAndFlags()
407 .setBaseType(FLAG_PROFILE) in testUpgradeProfileType_updateTypeAndFlags()
417 assertTrue((mUserManagerService.getUserInfo(userId).flags & FLAG_PROFILE) != 0); in testUpgradeProfileType_updateTypeAndFlags()
430 .setBaseType(FLAG_PROFILE) in testUpgradeProfileType_updateRestrictions()
446 .setBaseType(FLAG_PROFILE) in testUpgradeProfileType_updateRestrictions()
H A DUserManagerServiceUserTypeTest.java24 import static android.content.pm.UserInfo.FLAG_PROFILE;
100 .setBaseType(FLAG_PROFILE) in testUserTypeBuilder_createUserType()
119 assertEquals(FLAG_PROFILE | FLAG_EPHEMERAL, type.getDefaultUserInfoFlags()); in testUserTypeBuilder_createUserType()
256 assertTrue(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE)); in testCheckUserTypeConsistency()
259 assertFalse(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE | FLAG_SYSTEM)); in testCheckUserTypeConsistency()
260 assertFalse(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE | FLAG_FULL)); in testCheckUserTypeConsistency()
306 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_profile()
312 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_profile()
431 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_eraseArray()
455 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_illegalOemName()
H A DUserManagerTest.java898 int requiredFlags = UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE; in testAddManagedProfile()
/aosp14/frameworks/base/services/core/java/com/android/server/pm/
H A DUserTypeFactory.java27 import static android.content.pm.UserInfo.FLAG_PROFILE;
124 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfileClone()
163 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfileManaged()
202 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfileTest()
403 (isProfile && builder.getBaseType() == UserInfo.FLAG_PROFILE) in customizeBuilders()
415 builder.setBaseType(FLAG_PROFILE); in customizeBuilders()
635 if (builder != null && builder.getBaseType() != FLAG_PROFILE) { in validateUserTypeIsProfile()
H A DUserTypeDetails.java304 return (mBaseType & UserInfo.FLAG_PROFILE) != 0; in isProfile()
568 return (mBaseType & UserInfo.FLAG_PROFILE) != 0; in isProfile()
574 || mBaseType == UserInfo.FLAG_PROFILE in hasValidBaseType()
586 UserInfo.FLAG_PROFILE; in hasValidPropertyFlags()
H A DUserManagerService.java267 | UserInfo.FLAG_PROFILE
4046 oldFlags = UserInfo.FLAG_PROFILE; in upgradeProfileToTypeLU()
5147 | UserInfo.FLAG_RESTRICTED | UserInfo.FLAG_PROFILE;
5149 && isAtMostOneFlag(flags & (UserInfo.FLAG_PROFILE | UserInfo.FLAG_FULL))
5150 && isAtMostOneFlag(flags & (UserInfo.FLAG_PROFILE | UserInfo.FLAG_SYSTEM));
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/pipeline/domain/autoaddable/
H A DWorkTileAutoAddableTest.kt23 import android.content.pm.UserInfo.FLAG_PROFILE
121 private val USER_INFO_WORK = UserInfo(10, "", FLAG_PROFILE or FLAG_MANAGED_PROFILE)
/aosp14/frameworks/base/core/java/android/content/pm/
H A DUserInfo.java151 public static final int FLAG_PROFILE = 0x00001000; field in UserInfo
207 FLAG_PROFILE,
377 return (flags & FLAG_PROFILE) != 0; in isProfile()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
H A DDeletePackageHelperTest.kt91 UserInfo(userId, "test", UserInfo.FLAG_PROFILE))
123 UserInfo(userId, "test", UserInfo.FLAG_PROFILE))
H A DUserManagerServiceTest.java451 profileData.info.flags = UserInfo.FLAG_PROFILE; in addProfile()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/content/
H A DSyncManagerTest.java229 UserInfo.FLAG_PROFILE); in testShouldDisableSync()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DUserControllerTest.java783 setUpUser(TEST_USER_ID1, UserInfo.FLAG_PROFILE | UserInfo.FLAG_DISABLED, /* preCreated= */ in testStartProfile_disabledProfileFails()
1005 setUpUser(userId, UserInfo.FLAG_PROFILE, false, UserManager.USER_TYPE_PROFILE_MANAGED); in setUpAndStartProfileInBackground()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
H A DRebootEscrowManagerTests.java21 import static android.content.pm.UserInfo.FLAG_PROFILE;
318 users.add(new UserInfo(WORK_PROFILE_USER_ID, "work", FLAG_PROFILE)); in setUp_baseServices()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
H A DNoteTaskControllerTest.kt983 UserInfo(/* id= */ 10, /* name= */ "work", /* flags= */ UserInfo.FLAG_PROFILE)
/aosp14/frameworks/base/core/api/
H A Dtest-current.txt1078 field public static final int FLAG_PROFILE = 4096; // 0x1000