Home
last modified time | relevance | path

Searched refs:getUserInfo (Results 1 – 25 of 73) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockSystemServices.java207 when(userManager.getUserInfo(eq(userId))).thenReturn(uh); in addUser()
213 when(userManager.getUserInfo(anyInt())).thenAnswer( in addUser()
216 return getUserInfo(userId1); in addUser()
222 final UserInfo ui = getUserInfo(userId1); in addUser()
223 return ui == null ? null : getUserInfo(ui.profileGroupId); in addUser()
258 when(userManager.getUserInfo(eq(userId))).thenReturn(null); in removeUser()
263 private UserInfo getUserInfo(int userId) { in getUserInfo() method in MockSystemServices
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserManagerServiceUserInfoTest.java111 UserInfo userInfo = mUserManagerService.getUserInfo(UserHandle.USER_SYSTEM); in testGetUserName()
121 assertEquals("A Name", mUserManagerService.getUserInfo(TEST_ID).name); in testGetUserName()
DUserManagerTest.java171 while (mUserManager.getUserInfo(user.getIdentifier()) != null) { in testRemoveUserByHandle()
222 userInfo = mUserManager.getUserInfo(userInfo.id); in testSetUserAdmin()
412 long ownerCreationTime = mUserManager.getUserInfo(primaryUserId).creationTime; in testGetUserCreationTime()
644 while (mUserManager.getUserInfo(userId) != null) { in removeUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DBaseLockSettingsServiceTests.java148 when(mUserManager.getUserInfo(eq(PRIMARY_USER_ID))).thenReturn(PRIMARY_USER_INFO); in setUp()
155 when(mUserManager.getUserInfo(eq(SECONDARY_USER_ID))).thenReturn(SECONDARY_USER_INFO); in setUp()
183 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
/frameworks/base/core/java/android/os/
DUserManager.java1405 UserInfo user = getUserInfo(UserHandle.myUserId()); in isPrimaryUser()
1441 UserInfo user = getUserInfo(userId); in isUserAdmin()
1484 return mService.getUserInfo(user.getIdentifier()).isRestricted(); in isRestrictedProfile()
1523 UserInfo user = getUserInfo(id); in isGuestUser()
1536 UserInfo user = getUserInfo(UserHandle.myUserId()); in isGuestUser()
1630 final UserInfo user = getUserInfo(userId); in isUserEphemeral()
1792 public UserInfo getUserInfo(@UserIdInt int userHandle) { in getUserInfo() method in UserManager
1794 return mService.getUserInfo(userHandle); in getUserInfo()
DIUserManager.aidl63 UserInfo getUserInfo(int userHandle); in getUserInfo() method
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java484 if (getUserInfo(userId).isManagedProfile()) { in finishUserUnlocked()
503 final UserInfo info = getUserInfo(userId); in finishUserUnlocked()
528 UserInfo userInfo = getUserInfo(userId); in finishUserUnlockedCompleted()
811 if (getUserInfo(userId).isEphemeral()) {
855 if (mDelayUserDataLocking && !getUserInfo(userId).isEphemeral()
930 UserInfo userInfo = getUserInfo(oldUserId);
1056 final UserInfo userInfo = getUserInfo(userId);
1272 final UserInfo userInfo = getUserInfo(userId);
1326 UserInfo targetUserInfo = getUserInfo(targetUserId);
1347 UserInfo currentUserInfo = getUserInfo(currentUserId);
[all …]
/frameworks/base/core/java/android/webkit/
DUserPackage.java91 public UserInfo getUserInfo() { in getUserInfo() method in UserPackage
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java289 if (!mUserManager.getUserInfo(managedUserId).isManagedProfile()) { in tieManagedProfileLockIfNecessary()
478 final UserInfo user = mUserManager.getUserInfo(userId); in maybeShowEncryptionNotificationForUser()
581 && tiedManagedProfileReadyToUnlock(mUserManager.getUserInfo(userId))) { in ensureProfileKeystoreUnlocked()
604 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in onUnlockUser()
612 if (mUserManager.getUserInfo(userId).isPrimary() && !isUserSecure(userId)) { in onUnlockUser()
1225 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in unlockUser()
1260 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in getDecryptedPasswordsForAllTiedProfiles()
1302 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in synchronizeUnifiedWorkChallengeForProfiles()
1340 return mUserManager.getUserInfo(userId).isManagedProfile() in isManagedProfileWithUnifiedLock()
1345 return mUserManager.getUserInfo(userId).isManagedProfile() in isManagedProfileWithSeparatedLock()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DWebAsset.java139 if (url.getUserInfo() != null) { in create()
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DLockPatternUtilsTest.java76 when(um.getUserInfo(DEMO_USER_ID)).thenReturn(userInfo); in configureTest()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/
DUninstallAlertFragment.java73 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateGuidance()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java175 assertEquals("bob", uri.getUserInfo()); in testAuthorityParsing()
180 assertEquals("bob lee", uri.getUserInfo()); in testAuthorityParsing()
184 assertEquals("bob@lee:jr", uri.getUserInfo()); in testAuthorityParsing()
396 assertNull(uri.getUserInfo()); in testOpaqueUri()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DRestrictedLockUtilsTest.java312 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo); in setUpUser()
319 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo); in setUpManagedProfile()
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
DUserLifecycleTests.java402 while (mUm.getUserInfo(userId) != null && in removeUser()
411 if (mUm.getUserInfo(userId) != null) { in removeUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java242 return mUserManager.getUserInfo(mCurrentUserId).isRestricted() in isVpnRestricted()
296 final UserInfo newUserInfo = mUserManager.getUserInfo(newUserId); in onUserSwitched()
DUserSwitcherController.java381 UserInfo currUserInfo = mUserManager.getUserInfo(currUserId); in switchTo()
428 UserInfo info = mUserManager.getUserInfo(mLastNonGuestUser); in showExitGuestDialog()
492 final UserInfo userInfo = mUserManager.getUserInfo(currentId);
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java87 when(mUserManager.getUserInfo(anyInt())).thenReturn(new UserInfo()); in setUp()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationAssistantsTest.java103 when(mUm.getUserInfo(eq(user.id))).thenReturn(user); in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DUidDetailProvider.java142 final UserInfo info = um.getUserInfo(userHandle); in buildUidDetail()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/handheld/
DUninstallAlertDialogFragment.java153 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateDialog()
/frameworks/base/services/core/java/com/android/server/search/
DSearchManagerService.java122 if (um.getUserInfo(userId) == null) { in getSearchables()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DTrampolineTest.java141 when(mUserManagerMock.getUserInfo(UserHandle.USER_SYSTEM)).thenReturn(mUserInfoMock); in setUp()
142 when(mUserManagerMock.getUserInfo(NON_USER_SYSTEM)).thenReturn(mUserInfoMock); in setUp()
143 when(mUserManagerMock.getUserInfo(UNSTARTED_NON_USER_SYSTEM)).thenReturn(mUserInfoMock); in setUp()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppRestrictionsHelperTest.java77 when(mUm.getUserInfo(mTestUser.getIdentifier())).thenReturn(user); in setUp()
/frameworks/base/core/java/android/net/
DUri.java238 public abstract String getUserInfo(); in getUserInfo() method in Uri
955 public String getUserInfo() { in getUserInfo() method in Uri.OpaqueUri
1101 public String getUserInfo() { in getUserInfo() method in Uri.AbstractHierarchicalUri

123