/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceUserInfoTest.java | 27 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()
|
D | UserManagerServiceUserTypeTest.java | 24 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()
|
D | UserJourneyLoggerTest.java | 160 UserInfo.FLAG_PROFILE, in testCreatePrivateProfileUserJourney() 180 UserInfo.FLAG_PROFILE, in testCreatePrivateProfileUserJourney() 233 UserInfo.FLAG_PROFILE, in testRemovePrivateProfileUserJourneyWithError() 254 UserInfo.FLAG_PROFILE, in testRemovePrivateProfileUserJourneyWithError()
|
D | UserManagerTest.java | 1078 int requiredFlags = UserInfo.FLAG_MANAGED_PROFILE | UserInfo.FLAG_PROFILE; in testAddManagedProfile()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserTypeFactory.java | 27 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()
|
D | UserTypeDetails.java | 339 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()
|
D | UserManagerService.java | 291 | 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/ |
D | WorkTileAutoAddableTest.kt | 24 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/ |
D | UserInfo.java | 159 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/ |
D | DeletePackageHelperTest.kt | 99 UserInfo(userId, "test", UserInfo.FLAG_PROFILE)) in deleteSystemPackageFailsIfProfileOfNonAdmin() 135 UserInfo(userId, "test", UserInfo.FLAG_PROFILE)) in deleteSystemPackageSucceedsIfProfileOfAdmin()
|
D | UserManagerServiceTest.java | 969 profileData.info.flags = UserInfo.FLAG_PROFILE; in addProfile()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | UserControllerTest.java | 820 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/ |
D | SyncManagerTest.java | 229 UserInfo.FLAG_PROFILE); in testShouldDisableSync()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/communal/widgets/ |
D | CommunalAppWidgetHostStartableTest.kt | 290 val USER_INFO_WORK = UserInfo(10, "work", UserInfo.FLAG_PROFILE) in createPendingWidgetForUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | RebootEscrowManagerTests.java | 21 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/ |
D | ManagedServicesTest.java | 1858 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()
|
D | NotificationAttentionHelperTest.java | 2641 UserInfo.FLAG_PROFILE | UserInfo.FLAG_MANAGED_PROFILE, in testBeepVolume_politeNotif_workProfile() 2683 UserInfo.FLAG_PROFILE | UserInfo.FLAG_MANAGED_PROFILE, in testBeepVolume_politeNotif_workProfile_disabled()
|
D | NotificationManagerServiceTest.java | 5811 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/ |
D | IntentForwarderActivityTest.java | 98 UserInfo.FLAG_PROFILE, UserManager.USER_TYPE_PROFILE_PRIVATE);
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
D | NoteTaskControllerTest.kt | 988 UserInfo(/* id= */ 10, /* name= */ "work", /* flags= */ UserInfo.FLAG_PROFILE) in <lambda>()
|
/frameworks/base/core/api/ |
D | test-current.txt | 1207 field public static final int FLAG_PROFILE = 4096; // 0x1000
|