/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 143 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAddGuest() local 144 assertThat(userInfo).isNotNull(); in testAddGuest() 148 if (user.id == userInfo.id && user.name.equals("Guest 1") in testAddGuest() 175 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUser() local 176 removeUser(userInfo.id); in testRemoveUser() 178 assertThat(findUser(userInfo.id)).isFalse(); in testRemoveUser() 184 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUserByHandle() local 185 final UserHandle user = userInfo.getUserHandle(); in testRemoveUserByHandle() 202 assertThat(findUser(userInfo.id)).isFalse(); in testRemoveUserByHandle() 245 final UserInfo userInfo = createUser("Name", userType, 0); in createUserWithTypeAndCheckFlags() local [all …]
|
D | UserManagerServiceUserInfoTest.java | 133 UserInfo userInfo = mUserManagerService.getUserInfo(UserHandle.USER_SYSTEM); in testGetUserName() local 135 TextUtils.isEmpty(userInfo.name)); in testGetUserName() 137 userInfo = createUser(); in testGetUserName() 138 userInfo.partial = false; in testGetUserName() 140 userInfo.id = TEST_ID; in testGetUserName() 141 mUserManagerService.putUserInfo(userInfo); in testGetUserName() 155 UserInfo userInfo = createUser(testId, 0, typeName); in testIsUserOfType() local 156 mUserManagerService.putUserInfo(userInfo); in testIsUserOfType() 163 UserInfo userInfo = createUser(100, FLAG_FULL, null); in testSupportSwitchTo_preCreated() local 164 userInfo.preCreated = true; in testSupportSwitchTo_preCreated() [all …]
|
D | UserLifecycleStressTest.java | 73 final UserInfo userInfo = mUserManager.createProfileForUser("TestUser", in stopManagedProfileStressTest() local 75 assertNotNull(userInfo); in stopManagedProfileStressTest() 79 ActivityManager.getService().startUserInBackground(userInfo.id)); in stopManagedProfileStressTest() 83 stopUser(userInfo.id); in stopManagedProfileStressTest() 85 mUserManager.removeUser(userInfo.id); in stopManagedProfileStressTest()
|
/frameworks/base/packages/CarSystemUI/src/com/android/systemui/car/userswitcher/ |
D | UserIconProvider.java | 47 public RoundedBitmapDrawable getRoundedUserIcon(UserInfo userInfo, Context context) { in getRoundedUserIcon() argument 50 Bitmap icon = userManager.getUserIcon(userInfo.id); in getRoundedUserIcon() 53 icon = assignDefaultIcon(userManager, res, userInfo); in getRoundedUserIcon() 92 UserManager userManager, Resources resources, UserInfo userInfo) { in assignDefaultIcon() argument 93 Bitmap bitmap = userInfo.isGuest() in assignDefaultIcon() 95 : getUserDefaultIcon(resources, userInfo.id); in assignDefaultIcon() 96 userManager.setUserIcon(userInfo.id, bitmap); in assignDefaultIcon()
|
D | UserGridRecyclerView.java | 141 for (UserInfo userInfo : userInfoList) { in createUserRecords() 142 if (userInfo.isGuest()) { in createUserRecords() 147 boolean isForeground = fgUserId == userInfo.id; in createUserRecords() 148 UserRecord record = new UserRecord(userInfo, in createUserRecords() 525 public UserRecord(@Nullable UserInfo userInfo, @UserRecordType int recordType) { in UserRecord() argument 526 mInfo = userInfo; in UserRecord()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 839 UserInfo userInfo = mUsers.get(profileId).info; in getProfilesLU() local 842 userInfo = new UserInfo(userInfo); in getProfilesLU() 843 userInfo.name = null; in getProfilesLU() 844 userInfo.iconPath = null; in getProfilesLU() 846 userInfo = userWithName(userInfo); in getProfilesLU() 848 users.add(userInfo); in getProfilesLU() 914 UserInfo userInfo = getUserInfoLU(userId); in isSameProfileGroupNoChecks() local 915 if (userInfo == null || userInfo.profileGroupId == UserInfo.NO_PROFILE_GROUP_ID) { in isSameProfileGroupNoChecks() 923 return userInfo.profileGroupId == otherUserInfo.profileGroupId; in isSameProfileGroupNoChecks() 1277 final UserInfo userInfo = getUserInfoLU(userId); in getUserTypeNoChecks() local [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | RestrictedLockUtilsTest.java | 184 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() local 186 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_doesMatchAllowedFeature_unifiedManagedProfile() 212 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() local 214 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_notMatchOtherFeatures_unifiedManagedProfile() 235 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); in checkIfKeyguardFeaturesAreDisabled_onlyMatchesProfile_separateManagedProfile() local 237 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_onlyMatchesProfile_separateManagedProfile() 271 UserInfo userInfo = setUpUser(mUserId, new ComponentName[] {mAdmin1}); in checkIfKeyguardFeaturesAreDisabled_onlyMatchesParent_profileParentPolicy() local 273 when(mUserManager.getProfiles(mUserId)).thenReturn(Arrays.asList(userInfo, profileInfo)); in checkIfKeyguardFeaturesAreDisabled_onlyMatchesParent_profileParentPolicy() 311 UserInfo userInfo = new UserInfo(userId, "primary", 0); in setUpUser() local 312 when(mUserManager.getUserInfo(userId)).thenReturn(userInfo); in setUpUser() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ |
D | ShadowUserManager.java | 54 final UserInfo userInfo = new UserInfo(); in addProfile() local 55 userInfo.id = id; in addProfile() 56 userInfo.name = name; in addProfile() 57 userInfoList.add(userInfo); in addProfile()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemService.java | 139 public TargetUser(@NonNull UserInfo userInfo) { in TargetUser() argument 140 mUserInfo = userInfo; in TargetUser() 281 public void onStartUser(@NonNull UserInfo userInfo) { in onStartUser() argument 282 onStartUser(userInfo.id); in onStartUser() 314 public void onUnlockUser(@NonNull UserInfo userInfo) { in onUnlockUser() argument 315 onUnlockUser(userInfo.id); in onUnlockUser()
|
D | SystemServiceManager.java | 247 final UserInfo userInfo = mUserManagerInternal.getUserInfo(userHandle); in getUserInfo() local 248 if (userInfo == null) { in getUserInfo() 251 return userInfo; in getUserInfo()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 380 for (UserInfo userInfo : userInfos) { in updateTrustAll() 381 updateTrust(userInfo.id, 0); in updateTrustAll() 495 for (UserInfo userInfo : userInfos) { in refreshAgentList() 496 if (userInfo == null || userInfo.partial || !userInfo.isEnabled() in refreshAgentList() 497 || userInfo.guestToRemove) continue; in refreshAgentList() 498 if (!userInfo.supportsSwitchToByUser()) { in refreshAgentList() 499 if (DEBUG) Slog.d(TAG, "refreshAgentList: skipping user " + userInfo.id in refreshAgentList() 503 if (!mActivityManager.isUserRunning(userInfo.id)) { in refreshAgentList() 504 if (DEBUG) Slog.d(TAG, "refreshAgentList: skipping user " + userInfo.id in refreshAgentList() 508 if (!lockPatternUtils.isSecure(userInfo.id)) { in refreshAgentList() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserInfoControllerImpl.java | 127 UserInfo userInfo; in queryForUserInformation() local 129 userInfo = ActivityManager.getService().getCurrentUser(); in queryForUserInformation() 131 new UserHandle(userInfo.id)); in queryForUserInformation() 139 final int userId = userInfo.id; in queryForUserInformation() 140 final boolean isGuest = userInfo.isGuest(); in queryForUserInformation() 141 final String userName = userInfo.name; in queryForUserInformation()
|
D | UserSwitcherController.java | 503 final UserInfo userInfo = mUserManager.getUserInfo(currentId); 515 if ((userInfo == null || !userInfo.isAdmin()) && record.isRestricted) { 531 if (userInfo != null && userInfo.id != UserHandle.USER_SYSTEM) { 533 UserHandle.of(userInfo.id)); 534 mSecondaryUser = userInfo.id;
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 198 final UserInfo userInfo = new UserInfo( in installChildProfile() local 200 userInfo.profileGroupId = PRIMARY_USER_ID; in installChildProfile() 201 mPrimaryUserProfiles.add(userInfo); in installChildProfile() 202 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile() 207 return userInfo; in installChildProfile() 211 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile() local 212 userInfo.flags |= UserInfo.FLAG_QUIET_MODE; in installAndTurnOffChildProfile() 215 return userInfo; in installAndTurnOffChildProfile()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | LockPatternUtilsTest.java | 75 final UserInfo userInfo = Mockito.mock(UserInfo.class); in configureTest() local 76 when(userInfo.isDemo()).thenReturn(isDemoUser); in configureTest() 78 when(um.getUserInfo(DEMO_USER_ID)).thenReturn(userInfo); in configureTest()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 489 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkForLockSetting() 490 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkForLockSetting() 494 final UserHandle user = getUserHandleOf(userInfo.id); in checkForLockSetting() 496 sProxy.isSeparateProfileChallengeEnabled(lockPatternUtils, userInfo.id); in checkForLockSetting() 499 if (check.isEnforcing(dpm, admin, userInfo.id)) { in checkForLockSetting() 512 if (userInfo.isManagedProfile()) { in checkForLockSetting() 515 DevicePolicyManager parentDpm = sProxy.getParentProfileInstance(dpm, userInfo); in checkForLockSetting() 516 if (check.isEnforcing(parentDpm, admin, userInfo.id)) { in checkForLockSetting() 620 for (UserInfo userInfo : um.getProfiles(UserHandle.myUserId())) { in isAdminInCurrentUserOrProfile() 621 if (dpm.isAdminActiveAsUser(admin, userInfo.id)) { in isAdminInCurrentUserOrProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 136 for (UserInfo userInfo : mUserManager.getEnabledProfiles(currentUser)) { in updateThemeOverlays() 137 if (userInfo.isManagedProfile()) { in updateThemeOverlays() 138 userHandles.add(userInfo.getUserHandle()); in updateThemeOverlays()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 143 users.add(pkgCertInfo.userInfo); in setupInstalledPackages() 153 eq(pkgCertInfo.pkgName), eq(pkgCertInfo.userInfo.id))) in setupInstalledPackages() 546 public final UserInfo userInfo; field in CarrierPrivilegesTrackerTest.PackageCertInfo 549 PackageCertInfo(String pkgName, String cert, UserInfo userInfo, int uid) { in PackageCertInfo() argument 552 this.userInfo = userInfo; in PackageCertInfo()
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/television/ |
D | UninstallAlertFragment.java | 73 UserInfo userInfo = userManager.getUserInfo(dialogInfo.user.getIdentifier()); in onCreateGuidance() local 75 getString(R.string.uninstall_application_text_user, userInfo.name)); in onCreateGuidance()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 673 UserInfo userInfo = getUserInfo(userId); in finishUserUnlockedCompleted() local 674 if (userInfo == null) { in finishUserUnlockedCompleted() 683 if (!userInfo.isInitialized()) { in finishUserUnlockedCompleted() 696 mInjector.getUserManager().makeInitialized(userInfo.id); in finishUserUnlockedCompleted() 704 if (userInfo.preCreated) { in finishUserUnlockedCompleted() 705 Slog.i(TAG, "Stopping pre-created user " + userInfo.toFullString()); in finishUserUnlockedCompleted() 710 stopUser(userInfo.id, /* force= */ true, /* allowDelayedLocking= */ false, in finishUserUnlockedCompleted() 1019 UserInfo userInfo = getUserInfo(userId); 1020 if (userInfo.isEphemeral() && !userInfo.preCreated) { 1144 UserInfo userInfo = getUserInfo(oldUserId); [all …]
|
/frameworks/base/services/core/java/com/android/server/slice/ |
D | SliceFullAccessList.java | 105 for (UserInfo userInfo : activeUsers) { in readXml() 106 upgradeXml(xmlVersion, userInfo.getUserHandle().getIdentifier()); in readXml()
|
/frameworks/base/core/java/android/provider/ |
D | CallLog.java | 870 final UserInfo userInfo = users.get(i); in addCall() local 871 final UserHandle userHandle = userInfo.getUserHandle(); in addCall() 920 final UserInfo userInfo = userManager.getUserInfo(userId); in shouldHaveSharedCallLogEntries() local 921 return userInfo != null && !userInfo.isManagedProfile(); in shouldHaveSharedCallLogEntries()
|
/frameworks/base/media/java/android/media/session/ |
D | MediaSessionManager.java | 665 public boolean isTrustedForMediaControl(@NonNull RemoteUserInfo userInfo) { in isTrustedForMediaControl() argument 666 if (userInfo == null) { in isTrustedForMediaControl() 669 if (userInfo.getPackageName() == null) { in isTrustedForMediaControl() 674 userInfo.getPackageName(), userInfo.getPid(), userInfo.getUid()); in isTrustedForMediaControl()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationHistoryManager.java | 364 for (UserInfo userInfo : mUserManager.getUsers()) { in observe() 365 if (!userInfo.isProfile()) { in observe() 366 update(null, userInfo.id); in observe()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | AbstractCrossUserContentResolverTest.java | 62 final UserInfo userInfo = createUser(); in setUp() local 63 mCrossUserId = userInfo.id; in setUp()
|