Home
last modified time | relevance | path

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

/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserInfoTest.java27 import static android.content.pm.UserInfo.FLAG_PROFILE;
270 UserInfo userInfo = createUser(100, FLAG_PROFILE, null); in testSupportSwitchTo_profile()
300 assertTrue((mUserManagerService.getUserInfo(100).flags & FLAG_PROFILE) != 0); in testUpgradeIfNecessaryLP_9()
305 assertTrue((mUserManagerService.getUserInfo(102).flags & FLAG_PROFILE) == 0); in testUpgradeIfNecessaryLP_9()
308 assertTrue((mUserManagerService.getUserInfo(103).flags & FLAG_PROFILE) == 0); in testUpgradeIfNecessaryLP_9()
408 .setBaseType(FLAG_PROFILE) in testUpgradeProfileType_updateTypeAndFlags()
422 .setBaseType(FLAG_PROFILE) in testUpgradeProfileType_updateTypeAndFlags()
432 assertTrue((mUserManagerService.getUserInfo(userId).flags & FLAG_PROFILE) != 0); in testUpgradeProfileType_updateTypeAndFlags()
445 .setBaseType(FLAG_PROFILE) in testUpgradeProfileType_updateRestrictions()
461 .setBaseType(FLAG_PROFILE) in testUpgradeProfileType_updateRestrictions()
DUserManagerServiceUserTypeTest.java24 import static android.content.pm.UserInfo.FLAG_PROFILE;
107 .setBaseType(FLAG_PROFILE) in testUserTypeBuilder_createUserType()
127 assertEquals(FLAG_PROFILE | FLAG_EPHEMERAL, type.getDefaultUserInfoFlags()); in testUserTypeBuilder_createUserType()
289 assertTrue(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE)); in testCheckUserTypeConsistency()
292 assertFalse(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE | FLAG_SYSTEM)); in testCheckUserTypeConsistency()
293 assertFalse(UserManagerService.checkUserTypeConsistency(FLAG_PROFILE | FLAG_FULL)); in testCheckUserTypeConsistency()
347 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_profile()
353 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_profile()
498 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_eraseArray()
522 .setBaseType(FLAG_PROFILE) in testUserTypeFactoryCustomize_illegalOemName()
DUserJourneyLoggerTest.java160 UserInfo.FLAG_PROFILE, in testCreatePrivateProfileUserJourney()
180 UserInfo.FLAG_PROFILE, in testCreatePrivateProfileUserJourney()
233 UserInfo.FLAG_PROFILE, in testRemovePrivateProfileUserJourneyWithError()
254 UserInfo.FLAG_PROFILE, in testRemovePrivateProfileUserJourneyWithError()
DUserManagerTest.java1078 int requiredFlags = UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE; in testAddManagedProfile()
/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeFactory.java27 import static android.content.pm.UserInfo.FLAG_PROFILE;
129 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfileClone()
177 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfileManaged()
227 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfileTest()
260 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfileCommunal()
297 .setBaseType(FLAG_PROFILE) in getDefaultTypeProfilePrivate()
531 (isProfile && builder.getBaseType() == UserInfo.FLAG_PROFILE) in customizeBuilders()
543 builder.setBaseType(FLAG_PROFILE); in customizeBuilders()
764 if (builder != null && builder.getBaseType() != FLAG_PROFILE) { in validateUserTypeIsProfile()
DUserTypeDetails.java339 return (mBaseType & UserInfo.FLAG_PROFILE) != 0; in isProfile()
622 return (mBaseType & UserInfo.FLAG_PROFILE) != 0; in isProfile()
628 || mBaseType == UserInfo.FLAG_PROFILE in hasValidBaseType()
640 UserInfo.FLAG_PROFILE; in hasValidPropertyFlags()
DUserManagerService.java291 | UserInfo.FLAG_PROFILE
4646 oldFlags = UserInfo.FLAG_PROFILE; in upgradeProfileToTypeLU()
5799 | UserInfo.FLAG_RESTRICTED | UserInfo.FLAG_PROFILE;
5801 && isAtMostOneFlag(flags & (UserInfo.FLAG_PROFILE | UserInfo.FLAG_FULL))
5802 && isAtMostOneFlag(flags & (UserInfo.FLAG_PROFILE | UserInfo.FLAG_SYSTEM));
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DWorkTileAutoAddableTest.kt24 import android.content.pm.UserInfo.FLAG_PROFILE
194 UserInfo(10, "", FLAG_PROFILE or FLAG_MANAGED_PROFILE or FLAG_DISABLED)
195 private val USER_INFO_WORK_ENABLED = UserInfo(10, "", FLAG_PROFILE or FLAG_MANAGED_PROFILE)
/frameworks/base/core/java/android/content/pm/
DUserInfo.java159 public static final int FLAG_PROFILE = 0x00001000; field in UserInfo
215 FLAG_PROFILE,
385 return (flags & FLAG_PROFILE) != 0; in isProfile()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DDeletePackageHelperTest.kt99 UserInfo(userId, "test", UserInfo.FLAG_PROFILE)) in deleteSystemPackageFailsIfProfileOfNonAdmin()
135 UserInfo(userId, "test", UserInfo.FLAG_PROFILE)) in deleteSystemPackageSucceedsIfProfileOfAdmin()
DUserManagerServiceTest.java969 profileData.info.flags = UserInfo.FLAG_PROFILE; in addProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DUserControllerTest.java820 setUpUser(PROFILE1_ID, UserInfo.FLAG_PROFILE).profileGroupId = PARENT_ID; in testStoppingExcessRunningUsersAfterSwitch_currentProfileNotStopped()
821 setUpUser(PROFILE2_ID, UserInfo.FLAG_PROFILE).profileGroupId = PARENT_ID; in testStoppingExcessRunningUsersAfterSwitch_currentProfileNotStopped()
901 setUpUser(PROFILE1_ID, UserInfo.FLAG_PROFILE).profileGroupId = PARENT_ID; in testRunningUsersListOrder_parentAfterProfile()
902 setUpUser(PROFILE2_ID, UserInfo.FLAG_PROFILE).profileGroupId = PARENT_ID; in testRunningUsersListOrder_parentAfterProfile()
961 setUpUser(PROFILE_ID, UserInfo.FLAG_PROFILE).profileGroupId = CURRENT_ID; in testRunningUsersListOrder_currentAtEnd()
1113 setUpUser(PROFILE_ID, UserInfo.FLAG_PROFILE).profileGroupId = PARENT_ID; in testStopProfile_doesNotStopItsParent()
1147 setUpUser(TEST_USER_ID1, UserInfo.FLAG_PROFILE | UserInfo.FLAG_DISABLED, /* preCreated= */ in testStartProfile_disabledProfileFails()
1486 setUpUser(userId, UserInfo.FLAG_PROFILE, false, userType); in setUpAndStartProfileInBackground()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncManagerTest.java229 UserInfo.FLAG_PROFILE); in testShouldDisableSync()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/widgets/
DCommunalAppWidgetHostStartableTest.kt290 val USER_INFO_WORK = UserInfo(10, "work", UserInfo.FLAG_PROFILE) in createPendingWidgetForUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DRebootEscrowManagerTests.java21 import static android.content.pm.UserInfo.FLAG_PROFILE;
339 users.add(createUser(WORK_PROFILE_USER_ID, "work", FLAG_PROFILE, PRIMARY_USER_ID)); in setUp_baseServices()
661 users.add(createUser(WORK_PROFILE_USER_ID, "work", FLAG_PROFILE, SECURE_SECONDARY_USER_ID)); in loadRebootEscrowDataIfAvailable_noDataSecondaryUser_Success()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DManagedServicesTest.java1858 UserInfo managed = new UserInfo(12, "12", UserInfo.FLAG_PROFILE); in testUserProfiles_canProfileUseBoundServices_managedProfile()
1861 UserInfo clone = new UserInfo(13, "13", UserInfo.FLAG_PROFILE); in testUserProfiles_canProfileUseBoundServices_managedProfile()
1864 UserInfo privateProfile = new UserInfo(14, "14", UserInfo.FLAG_PROFILE); in testUserProfiles_canProfileUseBoundServices_managedProfile()
DNotificationAttentionHelperTest.java2641 UserInfo.FLAG_PROFILE | UserInfo.FLAG_MANAGED_PROFILE, in testBeepVolume_politeNotif_workProfile()
2683 UserInfo.FLAG_PROFILE | UserInfo.FLAG_MANAGED_PROFILE, in testBeepVolume_politeNotif_workProfile_disabled()
DNotificationManagerServiceTest.java5811 UserInfo ui = new UserInfo(10, "Clone", UserInfo.FLAG_PROFILE); in testReadPolicyXml_doesNotRestoreManagedServicesForCloneUser()
5837 UserInfo ui = new UserInfo(10, "Work", UserInfo.FLAG_PROFILE); in testReadPolicyXml_doesNotRestoreManagedServicesForManagedUser()
5865 UserInfo ui = new UserInfo(10, "Private", UserInfo.FLAG_PROFILE); in testReadPolicyXml_doesNotRestoreManagedServicesForPrivateUser()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DIntentForwarderActivityTest.java98 UserInfo.FLAG_PROFILE, UserManager.USER_TYPE_PROFILE_PRIVATE);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/
DNoteTaskControllerTest.kt988 UserInfo(/* id= */ 10, /* name= */ "work", /* flags= */ UserInfo.FLAG_PROFILE) in <lambda>()
/frameworks/base/core/api/
Dtest-current.txt1207 field public static final int FLAG_PROFILE = 4096; // 0x1000