Home
last modified time | relevance | path

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

1234

/frameworks/base/services/core/java/com/android/server/
DSystemService.java155 mManagedProfile = userInfo.isManagedProfile(); in TargetUser()
173 public boolean isManagedProfile() { in isManagedProfile() method in SystemService.TargetUser
214 if (!isFull() && !isManagedProfile()) return; in dump()
221 if (isManagedProfile()) { in dump()
DMasterClearReceiver.java147 if (userManager.isManagedProfile(userId)) { in wipeUser()
/frameworks/base/core/java/android/content/pm/
DCrossProfileApps.java241 final int stringRes = mUserManager.isManagedProfile(userHandle.getIdentifier()) in getProfileSwitchingLabel()
263 final boolean isManagedProfile = in getProfileSwitchingIconDrawable()
264 mUserManager.isManagedProfile(userHandle.getIdentifier()); in getProfileSwitchingIconDrawable()
265 if (isManagedProfile) { in getProfileSwitchingIconDrawable()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/lockscreen/
DLockscreenSmartspaceControllerTest.kt128 mockUserInfo(userHandlePrimary, isManagedProfile = false),
129 mockUserInfo(userHandleManaged, isManagedProfile = true),
130 mockUserInfo(userHandleSecondary, isManagedProfile = false)
465 private fun mockUserInfo(userHandle: UserHandle, isManagedProfile: Boolean): UserInfo { in mockUserInfo()
468 `when`(userInfo.isManagedProfile).thenReturn(isManagedProfile) in mockUserInfo()
/frameworks/opt/tv/tvsystem/java/com/android/libraries/tv/tvsystem/user/
DTvUserManager.java121 public boolean isManagedProfile() { in isManagedProfile() method in TvUserManager
122 return mUserManager.isManagedProfile(mUserId); in isManagedProfile()
DITvUserManager.java54 boolean isManagedProfile(); in isManagedProfile() method
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUtils.java102 static boolean isManagedProfile(Context context, int userId) { in isManagedProfile() method in Utils
104 return userManager.isManagedProfile(userId); in isManagedProfile()
DAuthCredentialView.java225 final boolean isManagedProfile = Utils.isManagedProfile(mContext, mEffectiveUserId); in onAttachedToWindow()
227 if (isManagedProfile) { in onAttachedToWindow()
400 } else if (userToBeWiped.isManagedProfile()) { in getUserTypeForWipe()
/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/opt/tv/tvsystem/api/
Dcurrent.txt52 method public boolean isManagedProfile();
63 method public boolean isManagedProfile();
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java245 boolean isManagedProfile = mUserManager.isManagedProfile(
248 if (!mDeviceProvisionedController.isCurrentUserSetup() && isManagedProfile) {
250 + " was received. Deferring... Managed profile? " + isManagedProfile);
520 if (userInfo.isManagedProfile()) { in updateThemeOverlays()
/frameworks/base/packages/SettingsLib/Utils/src/com/android/settingslib/utils/applications/
DAppUtils.java62 return context.getSystemService(UserManager.class).isManagedProfile(userId) in getAppContentDescription()
/frameworks/base/core/java/com/android/internal/widget/
DLockPatternUtils.java823 if (!isManagedProfile(userHandle)) { in setSeparateProfileChallengeEnabled()
839 return isManagedProfile(userHandle) && hasSeparateChallenge(userHandle); in isSeparateProfileChallengeEnabled()
846 return isManagedProfile(userHandle) && !hasSeparateChallenge(userHandle); in isManagedProfileWithUnifiedChallenge()
853 return isManagedProfile(userHandle) in isSeparateProfileChallengeAllowed()
867 private boolean isManagedProfile(int userHandle) { in isManagedProfile() method in LockPatternUtils
869 return info != null && info.isManagedProfile(); in isManagedProfile()
/frameworks/base/services/core/java/com/android/server/locksettings/
DLockSettingsService.java358 if (!mUserManager.getUserInfo(managedUserId).isManagedProfile()) { in tieManagedProfileLockIfNecessary()
610 if (!user.isManagedProfile()) { in maybeShowEncryptionNotificationForUser()
743 && mUserManager.getUserInfo(userId).isManagedProfile() in ensureProfileKeystoreUnlocked()
764 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in onUnlockUser()
1031 if (user.isManagedProfile() && !getSeparateProfileChallengeEnabledInternal(user.id)) { in migrateProfileLockKeys()
1409 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in unlockUser()
1418 if (!profile.isManagedProfile()) continue; in unlockUser()
1455 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in getDecryptedPasswordsForAllTiedProfiles()
1463 if (!profile.isManagedProfile()) { in getDecryptedPasswordsForAllTiedProfiles()
1497 if (mUserManager.getUserInfo(userId).isManagedProfile()) { in synchronizeUnifiedWorkChallengeForProfiles()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DManagedProfileControllerImpl.java97 if (ui.isManagedProfile()) { in reloadManagedProfiles()
DPhoneStatusBarPolicy.java520 boolean isManagedProfile = mUserManager.isManagedProfile(userId); in updateManagedProfile()
523 if (isManagedProfile && (!mKeyguardStateController.isShowing() in updateManagedProfile()
/frameworks/base/services/tests/servicestests/src/com/android/server/backup/
DBackupManagerServiceTest.java309 when(mUserInfoMock.isManagedProfile()).thenReturn(true); in setBackupServiceActive_forManagedProfileAndCallerSystemUid_serviceCreated()
319 when(mUserInfoMock.isManagedProfile()).thenReturn(true); in setBackupServiceActive_forManagedProfileAndCallerRootUid_serviceCreated()
329 when(mUserInfoMock.isManagedProfile()).thenReturn(true); in setBackupServiceActive_forManagedProfileAndCallerNonRootNonSystem_throws()
/frameworks/base/packages/SoundPicker/src/com/android/soundpicker/
DRingtonePickerActivity.java227 /* isManagedProfile = */ UserManager.get(this).isManagedProfile(mPickerUserId)); in onCreate()
725 public BadgedRingtoneAdapter(Context context, Cursor cursor, boolean isManagedProfile) { in BadgedRingtoneAdapter() argument
727 mIsManagedProfile = isManagedProfile; in BadgedRingtoneAdapter()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DRestrictedLockUtilsInternal.java161 if (UserManager.get(context).getUserInfo(userId).isManagedProfile()) { in checkIfKeyguardFeaturesDisabled()
358 if (uInfo.isManagedProfile()) { in getManagedProfileId()
568 if (userInfo.isManagedProfile()) { in checkForLockSetting()
DUtils.java125 if (info.isManagedProfile()) { in getUserLabel()
144 if (user.isManagedProfile()) { in getUserIcon()
/frameworks/base/core/java/android/os/
DIUserManager.aidl102 boolean isManagedProfile(int userId); in isManagedProfile() method
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyManagerService.java909 if (isManagedProfile(userHandle)) {
919 if (isManagedProfile(userHandle)) {
2203 if (profileOwner == null || !mUserManager.isManagedProfile(userId)) { in maybeSetDefaultProfileOwnerUserRestrictions()
2539 Preconditions.checkCallAuthorization(isManagedProfile(userHandle), in getActiveAdminUncheckedLocked()
2709 Preconditions.checkCallingUser(isManagedProfile(getCallerIdentity().getUserId())); in getActiveAdminOrCheckPermissionForCallerLocked()
4007 if (isManagedProfile(userHandle)) {
4029 } else if (userInfo.isManagedProfile()) {
4585 Preconditions.checkArgument(!isManagedProfile(userId));
4638 Preconditions.checkCallingUser(isManagedProfile(profileUserId));
4673 Preconditions.checkCallingUser(isManagedProfile(caller.getUserId()));
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DCrossProfileAppsServiceImpl.java722 return isManagedProfile(mInjector.getCallingUserId());
725 private boolean isManagedProfile(@UserIdInt int userId) {
727 -> mContext.getSystemService(UserManager.class).isManagedProfile(userId));
/frameworks/base/packages/SystemUI/src/com/android/systemui/privacy/
DPrivacyDialogController.kt174 ui.isManagedProfile, in showDialog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/lockscreen/
DLockscreenSmartspaceController.kt280 if (userInfo.isManagedProfile) { in <lambda>()

1234