/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | ProfileDetailsActionButtonsPreferenceControllerTest.java | 20 import static android.content.pm.UserInfo.FLAG_INITIALIZED; 105 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onStart_userIsViewingSelf_renameButtonShown() 117 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onStart_userIsNotViewingSelf_renameButtonHidden() 129 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onStart_isAdminViewingNonAdmin_makeAdminButtonShown() 143 FLAG_INITIALIZED | FLAG_ADMIN); in onStart_isAdminViewingAdmin_makeAdminButtonHidden() 157 FLAG_INITIALIZED | FLAG_ADMIN); in onStart_isAdminViewingSelf_makeManageOtherProfilesButtonShown() 175 FLAG_INITIALIZED | FLAG_ADMIN); in onStart_isAdminViewingOther_makeManageOtherProfilesButtonHidden() 192 FLAG_INITIALIZED | FLAG_ADMIN); in onStart_isNonAdmin_makeManageOtherProfilesButtonHidden() 209 FLAG_INITIALIZED | FLAG_ADMIN); in onStart_isOnlyProfile_makeAddAProfileButtonShown() 224 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onStart_profileIsRemovable_deleteButtonShown() [all …]
|
D | RemoveProfileHandlerTest.java | 19 import static android.content.pm.UserInfo.FLAG_INITIALIZED; 74 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in userNotRestricted_canRemoveProfile() 82 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in userRestricted_cannotRemoveProfile() 93 UserInfo userInfo = new UserInfo(/* id= */ 0, TEST_PROFILE_NAME, FLAG_INITIALIZED); in viewingSystemUser_cannotRemoveProfile() 101 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in isDemoUser_cannotRemoveProfile() 109 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in hasPreviousDeleteDialog_dialogListenerSet() 122 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in showConfirmRemoveProfileDialog_showsConfirmationDialog() 134 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onDeleteConfirmed_removeProfile() 148 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onDeleteConfirmed_lastAdmin_launchChooseNewAdminFragment()
|
D | ProfileDetailsDeletePreferenceControllerTest.java | 19 import static android.content.pm.UserInfo.FLAG_INITIALIZED; 81 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onCreate_userNotRestricted_deleteButtonShown() 92 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onCreate_userRestricted_deleteButtonHidden() 105 UserInfo userInfo = new UserInfo(/* id= */ 0, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onCreate_userIsViewingSelf_deleteButtonHidden() 117 UserInfo userInfo = new UserInfo(/* id= */ 0, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onCreate_userIsNotViewingSelf_deleteButtonHidden() 129 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onCreate_isDemoUser_deleteButtonHidden()
|
D | ProfileDetailsHeaderPreferenceControllerTest.java | 20 import static android.content.pm.UserInfo.FLAG_INITIALIZED; 97 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_PROFILE_NAME, FLAG_INITIALIZED); in onCreate_profileSetup_noSummary() 107 FLAG_INITIALIZED | FLAG_ADMIN); in onCreate_isAdmin_notCurrentProfile() 119 FLAG_INITIALIZED | FLAG_ADMIN); in onCreate_isAdmin_currentProfile()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/accounts/ |
D | AccountGroupPreferenceControllerTest.java | 19 import static android.content.pm.UserInfo.FLAG_INITIALIZED; 81 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_USERNAME, FLAG_INITIALIZED); in getAvailabilityStatus_currentUser_cannotModifyAccounts_notAvailable() 94 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_USERNAME, FLAG_INITIALIZED); in getAvailabilityStatus_currentUser_canModifyAccounts_available() 107 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_USERNAME, FLAG_INITIALIZED); in getAvailabilityStatus_notCurrentUser_canModifyAccounts_notAvailable() 120 UserInfo userInfo = new UserInfo(/* id= */ 10, TEST_USERNAME, FLAG_INITIALIZED); in getAvailabilityStatus_notCurrentUser_cannotModifyAccounts_notAvailable()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/ |
D | UserSettingsTest.java | 499 removeFlag(restrictedUser, UserInfo.FLAG_INITIALIZED); in updateUserList_uninitializedRestrictedUser_shouldAddUserPreference() 523 removeFlag(uninitializedUser, UserInfo.FLAG_INITIALIZED); in updateUserList_uninitializedUserAndCanNotSwitchUser_shouldDisablePref() 548 removeFlag(guest, UserInfo.FLAG_INITIALIZED); in updateUserList_guestWithoutInitializedFlag_shouldNotSetSummary() 564 removeFlag(activeUser, UserInfo.FLAG_INITIALIZED); in updateUserList_activeUserWithoutInitializedFlag_shouldNotSetSummary() 621 removeFlag(createdGuest, UserInfo.FLAG_INITIALIZED); in onPreferenceClick_addGuestClicked_createGuestAndOpenDetails() 706 UserInfo.FLAG_FULL | UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_ADMIN, in getAdminUser() 713 UserInfo.FLAG_FULL | UserInfo.FLAG_INITIALIZED, in getSecondaryUser() 720 UserInfo.FLAG_FULL | UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_RESTRICTED, in getRestrictedUser() 727 UserInfo.FLAG_PROFILE | UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE, in getManagedUser() 734 UserInfo.FLAG_FULL | UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_GUEST, in getGuest()
|
D | UserDetailsSettingsTest.java | 627 UserInfo.FLAG_FULL | UserInfo.FLAG_INITIALIZED, in setupSelectedUser() 636 UserInfo.FLAG_FULL | UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_GUEST, in setupSelectedGuest() 645 UserInfo.FLAG_FULL | UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_RESTRICTED, in setupSelectedRestrictedUser()
|
/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/ |
D | UtilsTest.java | 49 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_PRIMARY); in setUp() 52 UserInfo.FLAG_INITIALIZED | UserInfo.FLAG_MANAGED_PROFILE); in setUp()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLRootView.java | 78 private static final int FLAG_INITIALIZED = 1; field in GLRootView 120 mFlags |= FLAG_INITIALIZED; in GLRootView() 218 if ((mFlags & FLAG_INITIALIZED) == 0) return; in requestLayoutContentPane()
|
/packages/apps/Settings/src/com/android/settings/users/ |
D | UserDetailsSettings.java | 118 mRemoveUserPref.setEnabled((mUserInfo.flags & UserInfo.FLAG_INITIALIZED) != 0); in onResume() 289 mRemoveUserPref.setEnabled((mUserInfo.flags & UserInfo.FLAG_INITIALIZED) != 0);
|
/packages/services/Car/car-test-lib/src/android/car/test/util/ |
D | UserTestingHelper.java | 236 flags |= UserInfo.FLAG_INITIALIZED; in build()
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactsActor.java | 163 final UserInfo ui = new UserInfo(id, name, flags | UserInfo.FLAG_INITIALIZED); in createUserInfo()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/ |
D | CarUserServiceTest.java | 1798 createUserWithRestrictionsInvalidTypes(UserInfo.FLAG_INITIALIZED); in testCreateUserWithRestrictions_invalidFlags()
|