Home
last modified time | relevance | path

Searched refs:FLAG_INITIALIZED (Results 1 – 13 of 13) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/
DProfileDetailsActionButtonsPreferenceControllerTest.java20 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 …]
DRemoveProfileHandlerTest.java19 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()
DProfileDetailsDeletePreferenceControllerTest.java19 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()
DProfileDetailsHeaderPreferenceControllerTest.java20 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/
DAccountGroupPreferenceControllerTest.java19 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/
DUserSettingsTest.java499 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()
DUserDetailsSettingsTest.java627 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/
DUtilsTest.java49 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/
DGLRootView.java78 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/
DUserDetailsSettings.java118 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/
DUserTestingHelper.java236 flags |= UserInfo.FLAG_INITIALIZED; in build()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactsActor.java163 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/
DCarUserServiceTest.java1798 createUserWithRestrictionsInvalidTypes(UserInfo.FLAG_INITIALIZED); in testCreateUserWithRestrictions_invalidFlags()