/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtils.java | 146 for (UserInfo userInfo : um.getProfiles(userId)) { in checkIfKeyguardFeaturesDisabled() 147 final List<ComponentName> admins = dpm.getActiveAdminsAsUser(userInfo.id); in checkIfKeyguardFeaturesDisabled() 152 lockPatternUtils.isSeparateProfileChallengeEnabled(userInfo.id); in checkIfKeyguardFeaturesDisabled() 155 if ((dpm.getKeyguardDisabledFeatures(admin, userInfo.id) in checkIfKeyguardFeaturesDisabled() 158 enforcedAdmin = new EnforcedAdmin(admin, userInfo.id); in checkIfKeyguardFeaturesDisabled() 169 if (userInfo.isManagedProfile()) { in checkIfKeyguardFeaturesDisabled() 172 DevicePolicyManager parentDpm = dpm.getParentProfileInstance(userInfo); in checkIfKeyguardFeaturesDisabled() 173 if ((parentDpm.getKeyguardDisabledFeatures(admin, userInfo.id) in checkIfKeyguardFeaturesDisabled() 176 enforcedAdmin = new EnforcedAdmin(admin, userInfo.id); in checkIfKeyguardFeaturesDisabled() 415 for (UserInfo userInfo : um.getProfiles(userId)) { in checkIfPasswordQualityIsSet() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 593 UserInfo userInfo = mUsers.get(profileId).info; in getProfilesLU() local 596 userInfo = new UserInfo(userInfo); in getProfilesLU() 597 userInfo.name = null; in getProfilesLU() 598 userInfo.iconPath = null; in getProfilesLU() 600 userInfo = userWithName(userInfo); in getProfilesLU() 602 users.add(userInfo); in getProfilesLU() 663 UserInfo userInfo = getUserInfoLU(userId); in isSameProfileGroupLP() local 664 if (userInfo == null || userInfo.profileGroupId == UserInfo.NO_PROFILE_GROUP_ID) { in isSameProfileGroupLP() 672 return userInfo.profileGroupId == otherUserInfo.profileGroupId; in isSameProfileGroupLP() 872 UserInfo userInfo = getUserInfoLU(userId); in isManagedProfile() local [all …]
|
D | LauncherAppsService.java | 598 UserInfo userInfo = mUm.getUserInfo(user.getIdentifier()); in isEnabledProfileOf() local 600 if (userInfo == null || listeningUserInfo == null in isEnabledProfileOf() 601 || userInfo.profileGroupId == UserInfo.NO_PROFILE_GROUP_ID in isEnabledProfileOf() 602 || userInfo.profileGroupId != listeningUserInfo.profileGroupId in isEnabledProfileOf() 603 || !userInfo.isEnabled()) { in isEnabledProfileOf()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | UserInfoController.java | 118 UserInfo userInfo; in queryForUserInformation() local 120 userInfo = ActivityManagerNative.getDefault().getCurrentUser(); in queryForUserInformation() 122 new UserHandle(userInfo.id)); in queryForUserInformation() 130 final int userId = userInfo.id; in queryForUserInformation() 131 final boolean isGuest = userInfo.isGuest(); in queryForUserInformation() 132 final String userName = userInfo.name; in queryForUserInformation()
|
D | UserSwitcherController.java | 447 UserInfo userInfo = mUserManager.getUserInfo(currentUserId); 448 if (userInfo != null && userInfo.isGuest()) { 468 UserInfo userInfo = mUserManager.getUserInfo(currentUser); 469 if (userInfo != null && userInfo.isGuest()) { 482 final UserInfo userInfo = mUserManager.getUserInfo(currentId); 494 if ((userInfo == null || !userInfo.isAdmin()) && record.isRestricted) { 510 if (userInfo != null && !userInfo.isPrimary()) { 512 UserHandle.of(userInfo.id)); 513 mSecondaryUser = userInfo.id; 516 if (UserManager.isSplitSystemUser() && userInfo != null && !userInfo.isGuest() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerTest.java | 89 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testAddUser() local 90 assertTrue(userInfo != null); in testAddUser() 95 if (user.id == userInfo.id && user.name.equals("Guest 1") in testAddUser() 121 UserInfo userInfo = createUser("Guest 1", UserInfo.FLAG_GUEST); in testRemoveUser() local 122 removeUser(userInfo.id); in testRemoveUser() 124 assertFalse(findUser(userInfo.id)); in testRemoveUser()
|
/frameworks/base/services/core/java/com/android/server/trust/ |
D | TrustManagerService.java | 194 for (UserInfo userInfo : userInfos) { in updateTrustAll() 195 updateTrust(userInfo.id, 0); in updateTrustAll() 254 for (UserInfo userInfo : userInfos) { in refreshAgentList() 255 if (userInfo == null || userInfo.partial || !userInfo.isEnabled() in refreshAgentList() 256 || userInfo.guestToRemove) continue; in refreshAgentList() 257 if (!userInfo.supportsSwitchToByUser()) continue; in refreshAgentList() 258 if (!StorageManager.isUserKeyUnlocked(userInfo.id)) continue; in refreshAgentList() 259 if (!mActivityManager.isUserRunning(userInfo.id)) continue; in refreshAgentList() 260 if (!lockPatternUtils.isSecure(userInfo.id)) continue; in refreshAgentList() 261 if (!mStrongAuthTracker.canAgentsRunForUser(userInfo.id)) continue; in refreshAgentList() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/drawer/ |
D | UserAdapter.java | 55 UserInfo userInfo = um.getUserInfo(mUserHandle.getIdentifier()); in UserDetails() local 57 if (userInfo.isManagedProfile()) { in UserDetails() 62 mName = userInfo.name; in UserDetails() 63 final int userId = userInfo.id; in UserDetails()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IntentForwarderActivity.java | 179 for (UserInfo userInfo : relatedUsers) { in getManagedProfile() 180 if (userInfo.isManagedProfile()) return userInfo.id; in getManagedProfile()
|
D | ResolverActivity.java | 606 for (UserInfo userInfo : profiles) { in hasManagedProfile() 607 if (userInfo != null && userInfo.isManagedProfile()) { in hasManagedProfile()
|
/frameworks/base/core/java/android/provider/ |
D | CallLog.java | 745 final UserInfo userInfo = users.get(i); in addCall() local 746 final UserHandle userHandle = userInfo.getUserHandle(); in addCall() 791 final UserInfo userInfo = userManager.getUserInfo(userId); in shouldHaveSharedCallLogEntries() local 792 return userInfo != null && !userInfo.isManagedProfile(); in shouldHaveSharedCallLogEntries()
|
/frameworks/base/services/usb/java/com/android/server/usb/ |
D | UsbDebuggingManager.java | 327 UserInfo userInfo = UserManager.get(mContext).getUserInfo(currentUserId); in startConfirmation() local 329 if (userInfo.isAdmin()) { in startConfirmation() 339 if (startConfirmationActivity(componentName, userInfo.getUserHandle(), key, fingerprints) in startConfirmation() 340 || startConfirmationService(componentName, userInfo.getUserHandle(), in startConfirmation()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 387 final UserInfo userInfo = getUserInfo(userId); in finishUserUnlockedCompleted() 388 if (userInfo == null) { in finishUserUnlockedCompleted() 398 if (!userInfo.isInitialized()) { in finishUserUnlockedCompleted() 410 getUserManager().makeInitialized(userInfo.id); in finishUserUnlockedCompleted() 690 UserInfo userInfo = getUserInfo(oldUserId); in stopGuestOrEphemeralUserIfBackground() local 691 if (userInfo.isEphemeral()) { in stopGuestOrEphemeralUserIfBackground() 695 if (userInfo.isGuest() || userInfo.isEphemeral()) { in stopGuestOrEphemeralUserIfBackground() 791 final UserInfo userInfo = getUserInfo(userId); in startUser() local 792 if (userInfo == null) { in startUser() 796 if (foreground && userInfo.isManagedProfile()) { in startUser() [all …]
|
D | ActivityStarter.java | 703 UserInfo userInfo = mSupervisor.getUserInfo(userId); in startActivityMayWait() local 704 if (userInfo != null && userInfo.isManagedProfile()) { in startActivityMayWait()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | SystemUIFactory.java | 110 UserSwitcherController userSwitcher, UserInfoController userInfo, in createQSTileHost() argument 115 hotspot, cast, flashlight, userSwitcher, userInfo, keyguard, security, battery, in createQSTileHost()
|
/frameworks/base/services/core/java/com/android/server/webkit/ |
D | SystemImpl.java | 240 for(UserInfo userInfo : userManager.getUsers()) { in enablePackageForAllUsers() 241 enablePackageForUser(packageName, enable, userInfo.id); in enablePackageForAllUsers()
|
/frameworks/base/services/core/java/com/android/server/ |
D | LockSettingsService.java | 554 final UserInfo userInfo = users.get(i); in migrateOldData() local 555 if (userInfo.isManagedProfile() && mStorage.hasChildProfileLock(userInfo.id)) { in migrateOldData() 563 DevicePolicyManager.PASSWORD_QUALITY_UNSPECIFIED, userInfo.id); in migrateOldData() 568 DevicePolicyManager.PASSWORD_QUALITY_ALPHANUMERIC, userInfo.id); in migrateOldData() 575 final String alias = LockPatternUtils.PROFILE_KEY_NAME_ENCRYPT + userInfo.id; in migrateOldData() 1144 final UserInfo userInfo = UserManager.get(mContext).getUserInfo(userId); in addUserKeyAuth() local 1148 mountService.addUserKeyAuth(userId, userInfo.serialNumber, token, secret); in addUserKeyAuth()
|
/frameworks/base/services/retaildemo/java/com/android/server/retaildemo/ |
D | RetailDemoModeService.java | 327 private void setupDemoUser(UserInfo userInfo) { in setupDemoUser() argument 329 UserHandle user = UserHandle.of(userInfo.id); in setupDemoUser() 342 Settings.Secure.SKIP_FIRST_USE_HINTS, 1, userInfo.id); in setupDemoUser()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageMeasurement.java | 201 for (UserInfo userInfo : profiles) { in StatsObserver() 202 mDetails.appsSize.put(userInfo.id, 0); in StatsObserver()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | QSTileHost.java | 124 UserSwitcherController userSwitcher, UserInfoController userInfo, in QSTileHost() argument 139 mUserInfoController = userInfo; in QSTileHost()
|
/frameworks/base/core/java/android/net/ |
D | Uri.java | 1051 private Part userInfo; field in Uri.AbstractHierarchicalUri 1054 return userInfo == null in getUserInfoPart() 1055 ? userInfo = Part.fromEncoded(parseUserInfo()) : userInfo; in getUserInfoPart()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 2649 for (UserInfo userInfo : allUsers) { in cleanUpOldUsers() 2650 deletedUsers.remove(userInfo.id); in cleanUpOldUsers() 2684 for (UserInfo userInfo : mUserManager.getUsers(true)) { in doInBackground() 2685 manageNotification(userInfo.getUserHandle()); in doInBackground() 3086 for (UserInfo userInfo : mUserManager.getProfiles(userHandle)) { in getActiveAdminsForLockscreenPoliciesLocked() 3087 DevicePolicyData policy = getUserData(userInfo.id); in getActiveAdminsForLockscreenPoliciesLocked() 3088 if (!userInfo.isManagedProfile()) { in getActiveAdminsForLockscreenPoliciesLocked() 3094 boolean hasSeparateChallenge = isSeparateProfileChallengeEnabled(userInfo.id); in getActiveAdminsForLockscreenPoliciesLocked() 3867 for (UserInfo userInfo : mUserManager.getProfiles(userHandle)) { in resetPassword() 3868 if (userInfo.isManagedProfile()) { in resetPassword() [all …]
|
/frameworks/base/services/appwidget/java/com/android/server/appwidget/ |
D | AppWidgetServiceImpl.java | 591 UserInfo userInfo = mUserManager.getUserInfo(providerUserId); in maskWidgetsViewsLocked() local 592 showBadge = userInfo.isManagedProfile(); in maskWidgetsViewsLocked() 3386 UserInfo userInfo = mUserManager.getUserInfo(userId); in isProfileWithLockedParent() local 3387 if (userInfo != null && userInfo.isManagedProfile()) { in isProfileWithLockedParent() 3401 UserInfo userInfo = mUserManager.getUserInfo(userId); in isProfileWithUnlockedParent() local 3402 if (userInfo != null && userInfo.isManagedProfile()) { in isProfileWithUnlockedParent() 3651 UserInfo userInfo = mUserManager.getUserInfo(profileId); in isProfileEnabled() local 3652 if (userInfo == null || !userInfo.isEnabled()) { in isProfileEnabled()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsService.java | 369 final UserInfo userInfo = users.get(i); in cleanUpRemovedUsersLocked() local 370 toDelete.remove(Integer.toString(userInfo.id)); in cleanUpRemovedUsersLocked()
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsProvider.java | 1326 UserInfo userInfo = mUserManager.getProfileParent(userId); in getGroupParentLocked() local 1327 return (userInfo != null) ? userInfo.id : userId; in getGroupParentLocked()
|