/frameworks/base/core/java/android/content/pm/ |
D | CrossProfileApps.java | 140 final int stringRes = mUserManager.isManagedProfile(userHandle.getIdentifier()) in getProfileSwitchingLabel() 162 final boolean isManagedProfile = in getProfileSwitchingIconDrawable() 163 mUserManager.isManagedProfile(userHandle.getIdentifier()); in getProfileSwitchingIconDrawable() 164 if (isManagedProfile) { in getProfileSwitchingIconDrawable()
|
D | UserInfo.java | 167 public boolean isManagedProfile() { in isManagedProfile() method in UserInfo 218 return !isManagedProfile(); in supportsSwitchTo() 232 if (isManagedProfile() || isGuest() || isRestricted()) { in canHaveProfile()
|
/frameworks/base/core/java/android/util/ |
D | IconDrawableFactory.java | 53 return appInfo.isInstantApp() || mUm.isManagedProfile(userId); in needsBadging() 81 if (mUm.isManagedProfile(userId)) { in getBadgedIcon()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | CrossProfileAppsTest.java | 89 when(mUserManager.isManagedProfile(PERSONAL_PROFILE.getIdentifier())).thenReturn(false); in initUsers() 90 when(mUserManager.isManagedProfile(MANAGED_PROFILE.getIdentifier())).thenReturn(true); in initUsers()
|
/frameworks/base/services/core/java/com/android/server/locksettings/ |
D | LockSettingsService.java | 289 if (!mUserManager.getUserInfo(managedUserId).isManagedProfile()) { in tieManagedProfileLockIfNecessary() 479 if (!user.isManagedProfile()) { in maybeShowEncryptionNotificationForUser() 604 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in onUnlockUser() 801 if (userInfo.isManagedProfile() && mStorage.hasChildProfileLock(userInfo.id)) { in migrateOldData() 1225 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in unlockUser() 1253 return userInfo.isManagedProfile() in tiedManagedProfileReadyToUnlock() 1260 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in getDecryptedPasswordsForAllTiedProfiles() 1268 if (!profile.isManagedProfile()) { in getDecryptedPasswordsForAllTiedProfiles() 1302 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in synchronizeUnifiedWorkChallengeForProfiles() 1310 if (profile.isManagedProfile()) { in synchronizeUnifiedWorkChallengeForProfiles() [all …]
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserManagerService.java | 922 if (profile == null || !profile.isManagedProfile()) { in setQuietModeEnabled() 985 if (info == null || !info.isManagedProfile()) { in isQuietModeEnabled() 1120 public boolean isManagedProfile(int userId) { in isManagedProfile() method in UserManagerService 1124 return userInfo != null && userInfo.isManagedProfile(); in isManagedProfile() 2687 final boolean isManagedProfile = (flags & UserInfo.FLAG_MANAGED_PROFILE) != 0; in createUserInternalUnchecked() 2703 if (isManagedProfile && !canAddMoreManagedProfiles(parentId, false)) { in createUserInternalUnchecked() 2707 if (!isGuest && !isManagedProfile && !isDemo && isUserLimitReached()) { in createUserInternalUnchecked() 2739 && !isGuest && !isManagedProfile && getPrimaryUser() == null) { in createUserInternalUnchecked() 2766 if (isManagedProfile && parentId != UserHandle.USER_NULL) { in createUserInternalUnchecked() 2776 if (isManagedProfile) { in createUserInternalUnchecked() [all …]
|
D | LauncherAppsService.java | 306 if (callingUserInfo != null && callingUserInfo.isManagedProfile()) { in canAccessProfile() 387 if (mUm.getUserInfo(user.getIdentifier()).isManagedProfile()) { in getLauncherActivities() 491 if (!userInfo.isManagedProfile()) { in isManagedProfileAdmin()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | ManagedProfileControllerImpl.java | 89 if (ui.isManagedProfile()) { in reloadManagedProfiles()
|
D | PhoneStatusBarPolicy.java | 451 boolean isManagedProfile = mUserManager.isManagedProfile(userId); in updateManagedProfile() 454 if (isManagedProfile && in updateManagedProfile()
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 93 boolean isManagedProfile(int userId); in isManagedProfile() method
|
D | UserManager.java | 1563 public boolean isManagedProfile() { in isManagedProfile() method in UserManager 1570 mIsManagedProfileCached = mService.isManagedProfile(UserHandle.myUserId()); in isManagedProfile() 1587 public boolean isManagedProfile(@UserIdInt int userId) { in isManagedProfile() method in UserManager 1589 return isManagedProfile(); in isManagedProfile() 1592 return mService.isManagedProfile(userId); in isManagedProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 120 if (userInfo.isManagedProfile()) { in updateThemeOverlays()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | RestrictedLockUtilsInternal.java | 161 if (UserManager.get(context).getUserInfo(userId).isManagedProfile()) { in checkIfKeyguardFeaturesDisabled() 349 if (uInfo.isManagedProfile()) { in getManagedProfileId() 529 if (userInfo.isManagedProfile()) { in checkForLockSetting()
|
D | Utils.java | 115 if (info.isManagedProfile()) { in getUserLabel() 134 if (user.isManagedProfile()) { in getUserIcon()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | LockPatternUtils.java | 1121 if (!isManagedProfile(userHandle)) { in setSeparateProfileChallengeEnabled() 1137 return isManagedProfile(userHandle) && hasSeparateChallenge(userHandle); in isSeparateProfileChallengeEnabled() 1144 return isManagedProfile(userHandle) && !hasSeparateChallenge(userHandle); in isManagedProfileWithUnifiedChallenge() 1151 return isManagedProfile(userHandle) in isSeparateProfileChallengeAllowed() 1175 private boolean isManagedProfile(int userHandle) { in isManagedProfile() method in LockPatternUtils 1177 return info != null && info.isManagedProfile(); in isManagedProfile()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyManagerService.java | 2388 if (profileOwner == null || !mUserManager.isManagedProfile(userId)) { in maybeSetDefaultProfileOwnerUserRestrictions() 4252 if (!userInfo.isManagedProfile()) { in getActiveAdminsForLockscreenPoliciesLocked() 5070 if (!isManagedProfile(userHandle)) { in resetPassword() 5072 if (userInfo.isManagedProfile()) { in resetPassword() 5284 if (isManagedProfile(userId)) { in updateMaximumTimeToLockLocked() 5568 if (userInfo.isManagedProfile()){ in removeCaApprovalsIfNeeded() 6524 } else if (isManagedProfile(userId) && !wipeSilently) { in forceWipeUser() 6568 } else if (isManagedProfile(userId)) { in wipeDataNoLock() 6665 if (isManagedProfile(userHandle) && !isSeparateProfileChallengeEnabled(userHandle)) { in setActivePasswordState() 7667 if (isManagedProfile(userHandle)) { in setKeyguardDisabledFeatures() [all …]
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | BaseSettingsProviderTest.java | 321 if (!user.isPrimary() && !user.isManagedProfile()) { in getSecondaryUserId()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IntentForwarderActivity.java | 246 if (userInfo.isManagedProfile()) return userInfo.id; in getManagedProfile()
|
D | ResolverActivity.java | 521 boolean originIsManaged = originUserInfo != null ? originUserInfo.isManagedProfile() 523 boolean targetIsManaged = userManager.isManagedProfile(); 840 if (userInfo != null && userInfo.isManagedProfile()) { 1852 if (userManager.isManagedProfile()) {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/ |
D | TrampolineTest.java | 304 when(mUserInfoMock.isManagedProfile()).thenReturn(true); in setBackupServiceActive_forManagedProfileAndCallerSystemUid_serviceCreated() 315 when(mUserInfoMock.isManagedProfile()).thenReturn(true); in setBackupServiceActive_forManagedProfileAndCallerRootUid_serviceCreated() 326 when(mUserInfoMock.isManagedProfile()).thenReturn(true); in setBackupServiceActive_forManagedProfileAndCallerNonRootNonSystem_throws()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 280 when(getServices().userManager.isManagedProfile(eq(10))).thenReturn(true); in testMigration3_managedProfileOwner()
|
/frameworks/base/services/core/java/com/android/server/ |
D | PinnerService.java | 206 if (!mUserManager.isManagedProfile(userHandle)) { in onSwitchUser() 213 if (!mUserManager.isManagedProfile(userHandle)) { in onUnlockUser()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 386 if (mInjector.getUserManager().isManagedProfile(userId)) { in finishUserBoot() 484 if (getUserInfo(userId).isManagedProfile()) { in finishUserUnlocked() 509 if (info.isManagedProfile()) { in finishUserUnlocked() 1061 if (foreground && userInfo.isManagedProfile()) { 1339 if (targetUserInfo.isManagedProfile()) {
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerImpl.java | 201 if (userInfo.isManagedProfile()) { in getWorkProfileUserId()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ManagedServices.java | 1378 if (!mUserProfiles.isManagedProfile(userId)) { in isPermittedForProfile() 1454 public boolean isManagedProfile(int userId) { in isManagedProfile() method in ManagedServices.UserProfiles 1457 return user != null && user.isManagedProfile(); in isManagedProfile()
|