/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceUserInfoTest.java | 144 UserInfo userInfo = mUserManagerService.getUserInfo(UserHandle.USER_SYSTEM); in testGetUserName() local 146 TextUtils.isEmpty(userInfo.name)); in testGetUserName() 148 userInfo = createUser(); in testGetUserName() 149 userInfo.partial = false; in testGetUserName() 151 userInfo.id = TEST_ID; in testGetUserName() 152 mUserManagerService.putUserInfo(userInfo); in testGetUserName() 166 UserInfo userInfo = createUser(testId, 0, typeName); in testIsUserOfType() local 167 mUserManagerService.putUserInfo(userInfo); in testIsUserOfType() 174 UserInfo userInfo = createUser(100, FLAG_FULL, null); in testSupportSwitchTo_partial() local 175 userInfo.partial = true; in testSupportSwitchTo_partial() [all …]
|
D | UserManagerTest.java | 147 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAddGuest() local 148 assertThat(userInfo).isNotNull(); in testAddGuest() 152 if (user.id == userInfo.id && user.name.equals("Guest 1") in testAddGuest() 166 UserInfo userInfo = createProfileForUser("Clone user1", in testCloneUser() local 169 assertThat(userInfo).isNotNull(); in testCloneUser() 176 UserHandle.of(userInfo.id)); in testCloneUser() 182 user -> (user.id == userInfo.id && user.name.equals("Clone user1") in testCloneUser() 189 UserInfo parentProfileInfo = mUserManager.getProfileParent(userInfo.id); in testCloneUser() 192 removeUser(userInfo.id); in testCloneUser() 213 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUser() local [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/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 914 UserInfo userInfo = mUsers.get(profileId).info; in getProfilesLU() local 917 userInfo = new UserInfo(userInfo); in getProfilesLU() 918 userInfo.name = null; in getProfilesLU() 919 userInfo.iconPath = null; in getProfilesLU() 921 userInfo = userWithName(userInfo); in getProfilesLU() 923 users.add(userInfo); in getProfilesLU() 989 UserInfo userInfo = getUserInfoLU(userId); in isSameProfileGroupNoChecks() local 990 if (userInfo == null || userInfo.profileGroupId == UserInfo.NO_PROFILE_GROUP_ID) { in isSameProfileGroupNoChecks() 998 return userInfo.profileGroupId == otherUserInfo.profileGroupId; in isSameProfileGroupNoChecks() 1356 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/apex/media/framework/java/android/media/ |
D | MediaCommunicationManager.java | 127 public boolean isTrustedForMediaControl(@NonNull MediaSessionManager.RemoteUserInfo userInfo) { in isTrustedForMediaControl() argument 128 Objects.requireNonNull(userInfo, "userInfo shouldn't be null"); in isTrustedForMediaControl() 129 if (userInfo.getPackageName() == null) { in isTrustedForMediaControl() 134 userInfo.getPackageName(), userInfo.getPid(), userInfo.getUid()); in isTrustedForMediaControl()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 386 for (UserInfo userInfo : userInfos) { in updateTrustAll() 387 updateTrust(userInfo.id, 0); in updateTrustAll() 501 for (UserInfo userInfo : userInfos) { in refreshAgentList() 502 if (userInfo == null || userInfo.partial || !userInfo.isEnabled() in refreshAgentList() 503 || userInfo.guestToRemove) continue; in refreshAgentList() 504 if (!userInfo.supportsSwitchToByUser()) { in refreshAgentList() 505 if (DEBUG) Slog.d(TAG, "refreshAgentList: skipping user " + userInfo.id in refreshAgentList() 509 if (!mActivityManager.isUserRunning(userInfo.id)) { in refreshAgentList() 510 if (DEBUG) Slog.d(TAG, "refreshAgentList: skipping user " + userInfo.id in refreshAgentList() 514 if (!lockPatternUtils.isSecure(userInfo.id)) { in refreshAgentList() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserInfoControllerImpl.java | 131 UserInfo userInfo; in queryForUserInformation() local 133 userInfo = ActivityManager.getService().getCurrentUser(); in queryForUserInformation() 135 new UserHandle(userInfo.id)); in queryForUserInformation() 143 final int userId = userInfo.id; in queryForUserInformation() 144 final boolean isGuest = userInfo.isGuest(); in queryForUserInformation() 145 final String userName = userInfo.name; in queryForUserInformation()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemService.java | 152 public TargetUser(@NonNull UserInfo userInfo) { in TargetUser() argument 153 mUserId = userInfo.id; in TargetUser() 154 mFull = userInfo.isFull(); in TargetUser() 155 mManagedProfile = userInfo.isManagedProfile(); in TargetUser() 156 mPreCreated = userInfo.preCreated; in TargetUser()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 474 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkIfPasswordQualityIsSet() 475 final ComponentName profileOwnerComponent = dpm.getProfileOwnerAsUser(userInfo.id); in checkIfPasswordQualityIsSet() 477 return new EnforcedAdmin(profileOwnerComponent, getUserHandleOf(userInfo.id)); in checkIfPasswordQualityIsSet() 545 for (UserInfo userInfo : UserManager.get(context).getProfiles(userId)) { in checkForLockSetting() 546 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkForLockSetting() 550 final UserHandle user = getUserHandleOf(userInfo.id); in checkForLockSetting() 552 sProxy.isSeparateProfileChallengeEnabled(lockPatternUtils, userInfo.id); in checkForLockSetting() 555 if (check.isEnforcing(dpm, admin, userInfo.id)) { in checkForLockSetting() 568 if (userInfo.isManagedProfile()) { in checkForLockSetting() 571 DevicePolicyManager parentDpm = sProxy.getParentProfileInstance(dpm, userInfo); in checkForLockSetting() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | BaseLockSettingsServiceTests.java | 195 final UserInfo userInfo = new UserInfo( in installChildProfile() local 197 userInfo.profileGroupId = PRIMARY_USER_ID; in installChildProfile() 198 mPrimaryUserProfiles.add(userInfo); in installChildProfile() 199 when(mUserManager.getUserInfo(eq(profileId))).thenReturn(userInfo); in installChildProfile() 204 return userInfo; in installChildProfile() 208 final UserInfo userInfo = installChildProfile(profileId); in installAndTurnOffChildProfile() local 209 userInfo.flags |= UserInfo.FLAG_QUIET_MODE; in installAndTurnOffChildProfile() 212 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/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | UserSwitcherControllerTest.kt | 141 `when`(userTracker.userInfo).thenReturn(ownerInfo) in testAddGuest_okButtonPressed_isLogged() 162 `when`(userTracker.userInfo).thenReturn(guestInfo) in testRemoveGuest_removeButtonPressed_isLogged() 184 `when`(userTracker.userInfo).thenReturn(guestInfo) in testRemoveGuest_cancelButtonPressed_isNotLogged() 205 `when`(userTracker.userInfo).thenReturn(guestInfo) in testWipeGuest_startOverButtonPressed_isLogged() 239 `when`(userTracker.userInfo).thenReturn(guestInfo) in testWipeGuest_continueButtonPressed_isLogged()
|
D | KeyguardUserSwitcherAdapterTest.kt | 59 private lateinit var userInfo: UserInfo variable in com.android.systemui.statusbar.policy.KeyguardUserSwitcherAdapterTest 190 userInfo,
|
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/ |
D | AppHibernationServiceTest.java | 141 UserInfo userInfo = addUser(USER_ID_1); in setUp() local 143 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(userInfo)); in setUp() 212 UserInfo userInfo = in testGetHibernatingPackagesForUser_returnsCorrectPackages() local 215 mAppHibernationService.onUserUnlocking(new SystemService.TargetUser(userInfo)); in testGetHibernatingPackagesForUser_returnsCorrectPackages() 408 UserInfo userInfo = new UserInfo(userId, "user_" + userId, 0 /* flags */); in addUser() local 409 mUserInfos.add(userInfo); in addUser() 412 return userInfo; in addUser()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 650 final UserInfo userInfo = getUserInfo(userId); in finishUserUnlocked() local 651 if (userInfo.isProfile()) { in finishUserUnlocked() 662 if (userInfo.isManagedProfile()) { in finishUserUnlocked() 707 UserInfo userInfo = getUserInfo(userId); in finishUserUnlockedCompleted() local 708 if (userInfo == null) { in finishUserUnlockedCompleted() 717 Runnable initializeUser = () -> mInjector.getUserManager().makeInitialized(userInfo.id); in finishUserUnlockedCompleted() 718 if (!userInfo.isInitialized()) { in finishUserUnlockedCompleted() 720 if (userInfo.preCreated) { in finishUserUnlockedCompleted() 741 if (userInfo.preCreated) { in finishUserUnlockedCompleted() 742 Slogf.i(TAG, "Stopping pre-created user " + userInfo.toFullString()); in finishUserUnlockedCompleted() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobConcurrencyManagerTest.java | 181 private static JobStatus createJob(UserInfo userInfo) { in createJob() argument 184 userInfo.id * UserHandle.PER_USER_RANGE, in createJob() 185 null, userInfo.id, "JobConcurrencyManagerTest"); in createJob()
|
/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/packages/SystemUI/src/com/android/systemui/user/ |
D | CreateUserActivity.java | 139 userInfo -> { in addUserNow() 140 switchToUser(userInfo.id); in addUserNow()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierPrivilegesTrackerTest.java | 161 users.add(pkgCertInfo.userInfo); in setupInstalledPackages() 171 eq(pkgCertInfo.pkgName), eq(pkgCertInfo.userInfo.id))) in setupInstalledPackages() 618 public final UserInfo userInfo; field in CarrierPrivilegesTrackerTest.PackageCertInfo 621 PackageCertInfo(String pkgName, String cert, UserInfo userInfo, int uid) { in PackageCertInfo() argument 624 this.userInfo = userInfo; in PackageCertInfo()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/ |
D | LockscreenSmartspaceController.kt | 279 for (userInfo in userTracker.userProfiles) { in <lambda>() method 280 if (userInfo.isManagedProfile) { in <lambda>() 281 return userInfo.userHandle in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/ |
D | UserTracker.kt | 45 val userInfo: UserInfo constant
|
/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/packages/SystemUI/tests/src/com/android/systemui/statusbar/lockscreen/ |
D | LockscreenSmartspaceControllerTest.kt | 466 val userInfo = mock(UserInfo::class.java) in mockUserInfo() constant 467 `when`(userInfo.userHandle).thenReturn(userHandle) in mockUserInfo() 468 `when`(userInfo.isManagedProfile).thenReturn(isManagedProfile) in mockUserInfo() 469 return userInfo in mockUserInfo()
|