/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | DeletePackageHelperTest.kt | 82 whenever(mUserManagerInternal.getUserInfo(1)).thenReturn(UserInfo(1, "test", 0)) in deleteSystemPackageFailsIfNotAdminAndNotProfile() 98 whenever(mUserManagerInternal.getUserInfo(userId)).thenReturn( in deleteSystemPackageFailsIfProfileOfNonAdmin() 101 whenever(mUserManagerInternal.getUserInfo(parentId)).thenReturn( in deleteSystemPackageFailsIfProfileOfNonAdmin() 115 whenever(mUserManagerInternal.getUserInfo(1)).thenReturn( in deleteSystemPackageSucceedsIfAdmin() 134 whenever(mUserManagerInternal.getUserInfo(userId)).thenReturn( in deleteSystemPackageSucceedsIfProfileOfAdmin() 137 whenever(mUserManagerInternal.getUserInfo(parentId)).thenReturn( in deleteSystemPackageSucceedsIfProfileOfAdmin() 154 whenever(mUserManagerInternal.getUserInfo(1)).thenReturn(UserInfo(1, "test", 0)) in deleteSystemPackageSucceedsIfNotAdminButDeleteSystemAppSpecified()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceUserInfoTest.java | 150 systemUserData.info = mUserManagerService.getUserInfo(UserHandle.USER_SYSTEM); in testWriteReadDevicePolicyUserRestrictions() 211 UserInfo userInfo = mUserManagerService.getUserInfo(UserHandle.USER_SYSTEM); in testGetUserName() 221 assertEquals("A Name", mUserManagerService.getUserInfo(TEST_ID).name); in testGetUserName() 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() 432 assertTrue((mUserManagerService.getUserInfo(userId).flags & FLAG_PROFILE) != 0); in testUpgradeProfileType_updateTypeAndFlags() 433 assertTrue((mUserManagerService.getUserInfo(userId).flags & FLAG_MANAGED_PROFILE) == 0); in testUpgradeProfileType_updateTypeAndFlags() 434 assertTrue((mUserManagerService.getUserInfo(userId).flags & FLAG_INITIALIZED) != 0); in testUpgradeProfileType_updateTypeAndFlags()
|
D | UserLifecycleStressTest.java | 229 while (mUserManager.getUserInfo(userId) != null in removeUser() 238 return mUserManager.getUserInfo(userId) == null; in removeUser()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 199 when(mUserManager.getUserInfo(eq(PRIMARY_USER_ID))).thenReturn(mPrimaryUserInfo); in setUp_baseServices() 200 when(mUserManagerInternal.getUserInfo(eq(PRIMARY_USER_ID))).thenReturn(mPrimaryUserInfo); in setUp_baseServices() 207 when(mUserManager.getUserInfo(eq(SECONDARY_USER_ID))).thenReturn(mSecondaryUserInfo); in setUp_baseServices() 208 when(mUserManagerInternal.getUserInfo(eq(SECONDARY_USER_ID))) in setUp_baseServices() 210 when(mUserManager.getUserInfo(eq(TERTIARY_USER_ID))).thenReturn(mTertiaryUserInfo); in setUp_baseServices() 211 when(mUserManagerInternal.getUserInfo(eq(TERTIARY_USER_ID))).thenReturn(mTertiaryUserInfo); in setUp_baseServices() 282 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile() 286 when(mUserManagerInternal.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile()
|
D | LockSettingsServiceTestable.java | 209 UserInfo userInfo = mUserManager.getUserInfo(userId); in isCredentialSharableWithParent()
|
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ |
D | ShadowUserManager.java | 78 return getUserInfo(UserHandle.myUserId()).isAdmin(); in isAdminUser() 86 UserInfo userInfo = getUserInfo(UserHandle.myUserId()); in setIsAdminUser()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/data/ |
D | RecentTaskListProvider.kt | 71 userManager.getUserInfo(it.taskInfo1.userId).toUserType(), in loadRecentTasks() 80 userManager.getUserInfo(it.taskInfo2!!.userId).toUserType(), in loadRecentTasks()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tiles/ |
D | DreamTileTest.java | 219 when(mUserTracker.getUserInfo()).thenReturn(mainUserInfo); in testUserAvailability() 221 when(mUserTracker.getUserInfo()).thenReturn(nonMainUserInfo); in testUserAvailability() 225 when(mUserTracker.getUserInfo()).thenReturn(mainUserInfo); in testUserAvailability() 227 when(mUserTracker.getUserInfo()).thenReturn(nonMainUserInfo); in testUserAvailability()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockSystemServices.java | 286 when(userManager.getUserInfo(eq(userId))).thenReturn(uh); in addUser() 302 final UserInfo ui = getUserInfo(userId1); in addUser() 303 return ui == null ? null : getUserInfo(ui.profileGroupId); in addUser() 309 final UserInfo ui = getUserInfo(userHandle.getIdentifier()); in addUser() 348 when(userManager.getUserInfo(eq(userId))).thenReturn(null); in removeUser() 353 private UserInfo getUserInfo(int userId) { in getUserInfo() method in MockSystemServices
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserNeedsBadgingCache.java | 60 userInfo = mUserManager.getUserInfo(userId); in get()
|
D | CrossProfileResolver.java | 94 UserInfo userInfo = mUserManager.getUserInfo(userId); in isUserEnabled()
|
D | UserManagerInternal.java | 403 public abstract @Nullable UserInfo getUserInfo(@UserIdInt int userId); in getUserInfo() method in UserManagerInternal
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/data/repository/ |
D | ProfileTypeRepositoryImpl.kt | 45 val userType = userManager.getUserInfo(userId).userType in getProfileType()
|
/frameworks/base/core/java/android/webkit/ |
D | UserPackage.java | 91 public UserInfo getUserInfo() { in getUserInfo() method in UserPackage
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 697 final UserInfo userInfo = getUserInfo(userId); in sendLockedBootCompletedBroadcast() 810 final UserInfo userInfo = getUserInfo(userId); in finishUserUnlocked() 840 final UserInfo info = getUserInfo(userId); in finishUserUnlocked() 861 UserInfo userInfo = getUserInfo(userId); in finishUserUnlockedCompleted() 983 final UserInfo userInfo = getUserInfo(userId); 1238 .logUserJourneyFinishWithError(-1, getUserInfo(userId), 1244 .logUserJourneyFinishWithError(-1, getUserInfo(userId), 1307 final UserInfo userInfo = getUserInfo(userId); 1472 || getUserInfo(userId).isEphemeral() 1573 final UserInfo userInfo = getUserInfo(userId); [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | WebAsset.java | 141 if (url.getUserInfo() != null) { in create()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/ |
D | AppRepository.kt | 56 val userInfo = context.userManager.getUserInfo(app.userId) in rememberAppRepository()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/ |
D | ShellRecentTaskListProviderTest.kt | 39 whenever(getUserInfo(anyInt())).thenReturn(mock()) in <lambda>() 257 whenever(userManager.getUserInfo(userId)).thenReturn(userInfo) in createRecentTask()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | RestrictedLockUtilsInternal.java | 101 UserManager.get(context).getUserInfo(managedProfileId)); in checkIfInputMethodDisallowed()
|
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/ |
D | TvUserManager.java | 101 return mUserManager.getUserInfo(mUserId).name; in getUserName()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | GuestResumeSessionReceiver.java | 72 UserInfo currentUser = mUserTracker.getUserInfo();
|
/frameworks/base/core/java/com/android/internal/app/ |
D | SetScreenLockDialogActivity.java | 145 UserInfo userInfo = userManager.getUserInfo(mOriginUserId); in setLaunchUserSpecificMessage()
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 2760 UserInfo userInfo = getUserInfo(mUserId); in getUserType() 2789 UserInfo userInfo = getUserInfo(mUserId); in getUserName() 2866 final UserInfo user = getUserInfo(getContextUserIfAppropriate()); in isPrimaryUser() 2903 final UserInfo user = getUserInfo(mUserId); in isMainUser() 3013 UserInfo user = getUserInfo(userId); in isUserAdmin() 3267 final UserInfo info = getUserInfo(mUserId); in getRestrictedProfileParent() 3286 UserInfo user = getUserInfo(userId); in isGuestUser() 3303 UserInfo user = getUserInfo(getContextUserIfAppropriate()); in isGuestUser() 3498 final UserInfo user = getUserInfo(userId); in isUserEphemeral() 3898 public UserInfo getUserInfo(@UserIdInt int userId) { in getUserInfo() method in UserManager [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 323 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo); in setUpUser() 330 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo); in setUpManagedProfile()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/ |
D | GuestUserInteractorTest.kt | 202 whenever(manager.getUserInfo(expectedUserId)).thenReturn(NON_GUEST_USER_INFO) in exit_returnsToLastNonGuest() 384 verify(manager, never()).getUserInfo(anyInt()) in verifyDidNotExit()
|