Home
last modified time | relevance | path

Searched refs:isManagedProfile (Results 1 – 25 of 59) 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.java209 public boolean isManagedProfile() { in isManagedProfile() method in UserInfo
210 return isManagedProfile(flags); in isManagedProfile()
216 public static boolean isManagedProfile(@UserInfoFlag int flags) { in isManagedProfile() method in UserInfo
267 return !isManagedProfile(); in supportsSwitchTo()
281 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/packages/SystemUI/src/com/android/systemui/screenshot/
DScreenshotNotificationSmartActionsProvider.java71 boolean isManagedProfile) { in getActions() argument
DGlobalScreenshot.java306 private boolean isManagedProfile(Context context) { in isManagedProfile() method in SaveImageInBackgroundTask
309 return info.isManagedProfile(); in isManagedProfile()
343 mSmartActionsProvider, mSmartActionsEnabled, isManagedProfile(context)); in doInBackground()
1039 boolean smartActionsEnabled, boolean isManagedProfile) { in getSmartActionsFuture() argument
1051 Slog.d(TAG, "Screenshot from a managed profile: " + isManagedProfile); in getSmartActionsFuture()
1063 isManagedProfile); in getSmartActionsFuture()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java312 if (!mUserManager.getUserInfo(managedUserId).isManagedProfile()) { in tieManagedProfileLockIfNecessary()
502 if (!user.isManagedProfile()) { in maybeShowEncryptionNotificationForUser()
628 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in onUnlockUser()
825 if (userInfo.isManagedProfile() && mStorage.hasChildProfileLock(userInfo.id)) { in migrateOldData()
1258 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in unlockUser()
1304 return userInfo.isManagedProfile() in tiedManagedProfileReadyToUnlock()
1311 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in getDecryptedPasswordsForAllTiedProfiles()
1319 if (!profile.isManagedProfile()) { in getDecryptedPasswordsForAllTiedProfiles()
1353 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in synchronizeUnifiedWorkChallengeForProfiles()
1361 if (profile.isManagedProfile()) { in synchronizeUnifiedWorkChallengeForProfiles()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DUserManagerService.java967 if (profile == null || !profile.isManagedProfile()) { in setQuietModeEnabled()
1030 if (info == null || !info.isManagedProfile()) { in isQuietModeEnabled()
1165 public boolean isManagedProfile(int userId) { in isManagedProfile() method in UserManagerService
1169 return userInfo != null && userInfo.isManagedProfile(); in isManagedProfile()
2735 Preconditions.checkArgument(!UserInfo.isManagedProfile(flags), in preCreateUser()
2782 if (!preCreate && (parentId < 0 && !UserInfo.isManagedProfile(flags))) { in createUserInternalUncheckedNoTracing()
2832 final boolean isManagedProfile = UserInfo.isManagedProfile(flags); in createUserInternalUncheckedNoTracing()
2848 if (isManagedProfile && !canAddMoreManagedProfiles(parentId, false)) { in createUserInternalUncheckedNoTracing()
2852 if (!isGuest && !isManagedProfile && !isDemo && isUserLimitReached()) { in createUserInternalUncheckedNoTracing()
2884 && !isGuest && !isManagedProfile && getPrimaryUser() == null) { in createUserInternalUncheckedNoTracing()
[all …]
DLauncherAppsService.java306 if (callingUserInfo != null && callingUserInfo.isManagedProfile()) { in canAccessProfile()
387 if (mUm.getUserInfo(user.getIdentifier()).isManagedProfile()) { in getLauncherActivities()
485 if (!userInfo.isManagedProfile()) { in isManagedProfileAdmin()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileControllerImpl.java89 if (ui.isManagedProfile()) { in reloadManagedProfiles()
DPhoneStatusBarPolicy.java454 boolean isManagedProfile = mUserManager.isManagedProfile(userId); in updateManagedProfile()
457 if (isManagedProfile && in updateManagedProfile()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java120 if (userInfo.isManagedProfile()) { in updateThemeOverlays()
/frameworks/base/core/java/android/os/
DIUserManager.aidl94 boolean isManagedProfile(int userId); in isManagedProfile() method
DUserManager.java1577 public boolean isManagedProfile() { in isManagedProfile() method in UserManager
1584 mIsManagedProfileCached = mService.isManagedProfile(UserHandle.myUserId()); in isManagedProfile()
1601 public boolean isManagedProfile(@UserIdInt int userId) { in isManagedProfile() method in UserManager
1603 return isManagedProfile(); in isManagedProfile()
1606 return mService.isManagedProfile(userId); in isManagedProfile()
/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.java2396 if (profileOwner == null || !mUserManager.isManagedProfile(userId)) { in maybeSetDefaultProfileOwnerUserRestrictions()
4260 if (!userInfo.isManagedProfile()) { in getActiveAdminsForLockscreenPoliciesLocked()
5078 if (!isManagedProfile(userHandle)) { in resetPassword()
5080 if (userInfo.isManagedProfile()) { in resetPassword()
5292 if (isManagedProfile(userId)) { in updateMaximumTimeToLockLocked()
5584 if (userInfo.isManagedProfile()){ in removeCaApprovalsIfNeeded()
6540 } else if (isManagedProfile(userId) && !wipeSilently) { in forceWipeUser()
6584 } else if (isManagedProfile(userId)) { in wipeDataNoLock()
6681 if (isManagedProfile(userHandle) && !isSeparateProfileChallengeEnabled(userHandle)) { in setActivePasswordState()
7683 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()
/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.java392 if (mInjector.getUserManager().isManagedProfile(userId)) { in finishUserBoot()
491 if (getUserInfo(userId).isManagedProfile()) { in finishUserUnlocked()
516 if (info.isManagedProfile()) { in finishUserUnlocked()
1085 if (foreground && userInfo.isManagedProfile()) {
1371 if (targetUserInfo.isManagedProfile()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java201 if (userInfo.isManagedProfile()) { in getWorkProfileUserId()

123