/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 | 209 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/ |
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/packages/SystemUI/src/com/android/systemui/screenshot/ |
D | ScreenshotNotificationSmartActionsProvider.java | 71 boolean isManagedProfile) { in getActions() argument
|
D | GlobalScreenshot.java | 306 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/ |
D | LockSettingsService.java | 312 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/ |
D | UserManagerService.java | 967 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 …]
|
D | LauncherAppsService.java | 306 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/ |
D | ManagedProfileControllerImpl.java | 89 if (ui.isManagedProfile()) { in reloadManagedProfiles()
|
D | PhoneStatusBarPolicy.java | 454 boolean isManagedProfile = mUserManager.isManagedProfile(userId); in updateManagedProfile() 457 if (isManagedProfile && in updateManagedProfile()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 120 if (userInfo.isManagedProfile()) { in updateThemeOverlays()
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 94 boolean isManagedProfile(int userId); in isManagedProfile() method
|
D | UserManager.java | 1577 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/ |
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 | 2396 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/ |
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()
|
/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 | 392 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/ |
D | SecurityControllerImpl.java | 201 if (userInfo.isManagedProfile()) { in getWorkProfileUserId()
|