Home
last modified time | relevance | path

Searched refs:isManagedProfile (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/core/java/android/content/pm/
DCrossProfileApps.java140 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()
DUserInfo.java167 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/
DIconDrawableFactory.java53 return appInfo.isInstantApp() || mUm.isManagedProfile(userId); in needsBadging()
81 if (mUm.isManagedProfile(userId)) { in getBadgedIcon()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DCrossProfileAppsTest.java89 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/
DLockSettingsService.java289 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/
DUserManagerService.java922 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 …]
DLauncherAppsService.java306 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/
DManagedProfileControllerImpl.java89 if (ui.isManagedProfile()) { in reloadManagedProfiles()
DPhoneStatusBarPolicy.java451 boolean isManagedProfile = mUserManager.isManagedProfile(userId); in updateManagedProfile()
454 if (isManagedProfile && in updateManagedProfile()
/frameworks/base/core/java/android/os/
DIUserManager.aidl93 boolean isManagedProfile(int userId); in isManagedProfile() method
DUserManager.java1563 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/
DThemeOverlayController.java120 if (userInfo.isManagedProfile()) { in updateThemeOverlays()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java161 if (UserManager.get(context).getUserInfo(userId).isManagedProfile()) { in checkIfKeyguardFeaturesDisabled()
349 if (uInfo.isManagedProfile()) { in getManagedProfileId()
529 if (userInfo.isManagedProfile()) { in checkForLockSetting()
DUtils.java115 if (info.isManagedProfile()) { in getUserLabel()
134 if (user.isManagedProfile()) { in getUserIcon()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java1121 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/
DDevicePolicyManagerService.java2388 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/
DBaseSettingsProviderTest.java321 if (!user.isPrimary() && !user.isManagedProfile()) { in getSecondaryUserId()
/frameworks/base/core/java/com/android/internal/app/
DIntentForwarderActivity.java246 if (userInfo.isManagedProfile()) return userInfo.id; in getManagedProfile()
DResolverActivity.java521 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/
DTrampolineTest.java304 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/
DDevicePolicyManagerServiceMigrationTest.java280 when(getServices().userManager.isManagedProfile(eq(10))).thenReturn(true); in testMigration3_managedProfileOwner()
/frameworks/base/services/core/java/com/android/server/
DPinnerService.java206 if (!mUserManager.isManagedProfile(userHandle)) { in onSwitchUser()
213 if (!mUserManager.isManagedProfile(userHandle)) { in onUnlockUser()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java386 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/
DSecurityControllerImpl.java201 if (userInfo.isManagedProfile()) { in getWorkProfileUserId()
/frameworks/base/services/core/java/com/android/server/notification/
DManagedServices.java1378 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()

123