Home
last modified time | relevance | path

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

12345

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DDeletePackageHelperTest.kt82 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/
DUserManagerServiceUserInfoTest.java150 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()
DUserLifecycleStressTest.java229 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/
DBaseLockSettingsServiceTests.java199 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()
DLockSettingsServiceTestable.java209 UserInfo userInfo = mUserManager.getUserInfo(userId); in isCredentialSharableWithParent()
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/
DShadowUserManager.java78 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/
DRecentTaskListProvider.kt71 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/
DDreamTileTest.java219 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/
DMockSystemServices.java286 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/
DUserNeedsBadgingCache.java60 userInfo = mUserManager.getUserInfo(userId); in get()
DCrossProfileResolver.java94 UserInfo userInfo = mUserManager.getUserInfo(userId); in isUserEnabled()
DUserManagerInternal.java403 public abstract @Nullable UserInfo getUserInfo(@UserIdInt int userId); in getUserInfo() method in UserManagerInternal
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/data/repository/
DProfileTypeRepositoryImpl.kt45 val userType = userManager.getUserInfo(userId).userType in getProfileType()
/frameworks/base/core/java/android/webkit/
DUserPackage.java91 public UserInfo getUserInfo() { in getUserInfo() method in UserPackage
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java697 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/
DWebAsset.java141 if (url.getUserInfo() != null) { in create()
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DAppRepository.kt56 val userInfo = context.userManager.getUserInfo(app.userId) in rememberAppRepository()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/
DShellRecentTaskListProviderTest.kt39 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/
DRestrictedLockUtilsInternal.java101 UserManager.get(context).getUserInfo(managedProfileId)); in checkIfInputMethodDisallowed()
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/
DTvUserManager.java101 return mUserManager.getUserInfo(mUserId).name; in getUserName()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DGuestResumeSessionReceiver.java72 UserInfo currentUser = mUserTracker.getUserInfo();
/frameworks/base/core/java/com/android/internal/app/
DSetScreenLockDialogActivity.java145 UserInfo userInfo = userManager.getUserInfo(mOriginUserId); in setLaunchUserSpecificMessage()
/frameworks/base/core/java/android/os/
DUserManager.java2760 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/
DRestrictedLockUtilsTest.java323 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/
DGuestUserInteractorTest.kt202 whenever(manager.getUserInfo(expectedUserId)).thenReturn(NON_GUEST_USER_INFO) in exit_returnsToLastNonGuest()
384 verify(manager, never()).getUserInfo(anyInt()) in verifyDidNotExit()

12345