Searched refs:newMainUser (Results 1 – 2 of 2) sorted by relevance
1697 UserInfo newMainUser = mUserManager.createUser("test", UserInfo.FLAG_MAIN); in testCannotCreateAdditionalMainUser() local1698 assertThat(newMainUser).isNull(); in testCannotCreateAdditionalMainUser()
4198 final UserInfo newMainUser = getEarliestCreatedFullUser(); in emulateSystemUserModeIfNeeded() local4199 if (newMainUser != null) { in emulateSystemUserModeIfNeeded()4200 Slogf.i(LOG_TAG, "Designating user " + newMainUser.id + " to be Main"); in emulateSystemUserModeIfNeeded()4201 newMainUser.flags |= UserInfo.FLAG_MAIN; in emulateSystemUserModeIfNeeded()4202 writeUserLP(getUserDataNoChecks(newMainUser.id)); in emulateSystemUserModeIfNeeded()