Home
last modified time | relevance | path

Searched refs:isProfile (Results 1 – 25 of 41) sorted by relevance

12

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/
DSystemBackupAgentTest.java78 when(mUserManagerMock.isProfile()).thenReturn(false); in onCreate_systemUser_addsAllHelpers()
102 when(mUserManagerMock.isProfile()).thenReturn(false); in onCreate_systemUser_slicesDisabled_addsAllNonSlicesHelpers()
127 when(mUserManagerMock.isProfile()).thenReturn(true); in onCreate_profileUser_addsProfileEligibleHelpers()
145 when(mUserManagerMock.isProfile()).thenReturn(false); in onCreate_nonSystemUser_addsNonSystemEligibleHelpers()
167 when(mUserManagerMock.isProfile()).thenReturn(false); in onAddHelperIfEligibleForUser_flagIsOff_helpersHaveNoLogger()
180 when(mUserManagerMock.isProfile()).thenReturn(false); in onAddHelperIfEligibleForUser_flagIsOn_helpersHaveLogger()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DCrossProfileAppsTest.java123 when(mUserManager.isProfile(PERSONAL_PROFILE.getIdentifier())).thenReturn(false); in initUsers()
124 when(mUserManager.isProfile(MANAGED_PROFILE.getIdentifier())).thenReturn(true); in initUsers()
134 boolean result = mCrossProfileApps.isProfile(MANAGED_PROFILE); in isProfile_managedProfile_returnsTrue()
143 boolean result = mCrossProfileApps.isProfile(PERSONAL_PROFILE); in isProfile_personalProfile_returnsFalse()
DUserInfoTest.java51 assertThat(ui.isProfile()).isEqualTo(false); in testSimple()
/frameworks/base/services/core/java/com/android/server/
DSystemService.java161 mProfile = userInfo.isProfile(); in TargetUser()
180 public boolean isProfile() { in isProfile() method in SystemService.TargetUser
233 if (!isFull() && !isProfile()) return; in dump()
240 if (isProfile()) { in dump()
/frameworks/base/services/core/java/com/android/server/pm/
DUserTypeFactory.java495 final boolean isProfile; in customizeBuilders()
498 isProfile = true; in customizeBuilders()
500 isProfile = false; in customizeBuilders()
531 (isProfile && builder.getBaseType() == UserInfo.FLAG_PROFILE) in customizeBuilders()
532 || (!isProfile && builder.getBaseType() == UserInfo.FLAG_FULL); in customizeBuilders()
538 } else if (isProfile) { in customizeBuilders()
551 if (isProfile) { in customizeBuilders()
571 } else if (isProfile && "badge-labels".equals(childName)) { in customizeBuilders()
573 } else if (isProfile && "badge-colors".equals(childName)) { in customizeBuilders()
575 } else if (isProfile && "badge-colors-dark".equals(childName)) { in customizeBuilders()
DUserVisibilityMediator.java300 && isProfile(userId, profileGroupId)) { in assignUserToDisplayOnStart()
377 && !isProfile(userId, profileGroupId)) { in getUserVisibilityOnStartLocked()
399 if (isProfile(userId, profileGroupId)) { in getUserVisibilityOnStartLocked()
457 && isProfile(userId, profileGroupId)) { in canAssignUserToDisplayLocked()
490 if (isProfile(userId, profileGroupId)) { in canAssignUserToDisplayLocked()
711 if (isProfile(userId, profileGroupId)) { in isUserVisible()
792 if (isProfile(userId, profileGroupId)) { in isUserVisible()
1138 private static boolean isProfile(@UserIdInt int userId, @UserIdInt int profileGroupId) { in isProfile() method in UserVisibilityMediator
1179 return isProfile(userId, profileGroupId); in isStartedVisibleProfileLocked()
DUserTypeDetails.java338 public boolean isProfile() { in isProfile() method in UserTypeDetails
588 if (!isProfile()) { in createUserTypeDetails()
621 private boolean isProfile() { in isProfile() method in UserTypeDetails.Builder
DUserManagerService.java1886 if (profile == null || !profile.isProfile()) { in setQuietModeEnabled()
1977 if (info == null || !info.isProfile()) { in isQuietModeEnabled()
2063 if (wasUserDisabled && info != null && info.isProfile()) { in setUserEnabled()
2231 return userTypeDetails != null && userTypeDetails.isProfile(); in isUserTypeSubtypeOfProfile()
2393 public boolean isProfile(@UserIdInt int userId) { in isProfile() method in UserManagerService
2401 return userInfo != null && userInfo.isProfile(); in isProfileUnchecked()
2415 return userInfo.isProfile() ? userInfo.userType : ""; in getProfileType()
4626 if (!userInfo.isProfile()) { in upgradeProfileToTypeLU()
5460 final boolean isProfile = userTypeDetails.isProfile();
5506 if (isProfile && !isCommunalProfile &&
[all …]
DCrossProfileIntentResolverEngine.java724 if (!mUserManager.isProfile(userId)) return false; in isNoFilteringPropertyConfiguredForUser()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobConcurrencyManagerTest.java927 private UserInfo createCurrentUser(boolean isProfile) { in createCurrentUser() argument
930 return isProfile ? createNewProfile(ui) : ui; in createCurrentUser()
933 private UserInfo createPrimaryUser(boolean isProfile) { in createPrimaryUser() argument
936 return isProfile ? createNewProfile(ui) : ui; in createPrimaryUser()
939 private UserInfo createUnexpiredUser(boolean isProfile) { in createUnexpiredUser() argument
942 return isProfile ? createNewProfile(ui) : ui; in createUnexpiredUser()
945 private UserInfo createRestrictedUser(boolean isProfile) { in createRestrictedUser() argument
950 return isProfile ? createNewProfile(ui) : ui; in createRestrictedUser()
957 doReturn(true).when(ui).isProfile(); in createNewProfile()
/frameworks/base/core/java/android/content/pm/
DUserInfo.java384 public boolean isProfile() { in isProfile() method in UserInfo
486 if (isProfile() || isGuest() || isRestricted()) { in canHaveProfile()
DCrossProfileApps.java331 public boolean isProfile(@NonNull UserHandle userHandle) { in isProfile() method in CrossProfileApps
336 return mUserManager.isProfile(userHandle.getIdentifier()); in isProfile()
/frameworks/base/services/core/java/com/android/server/backup/
DSystemBackupAgent.java127 mIsProfileUser = userManager.isProfile(); in onCreate()
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java131 mIsProfileUser = userManager.isProfile(); in BackupEligibilityRules()
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java811 if (userInfo.isProfile()) { in finishUserUnlocked()
984 if (userInfo == null || !userInfo.isProfile()) {
1574 if (userInfo != null && userInfo.isProfile()) {
1685 if (userInfo == null || !userInfo.isProfile()) {
1853 if (foreground && userInfo.isProfile()) {
1946 if (userStartMode == USER_START_MODE_BACKGROUND && !userInfo.isProfile()) {
3242 if (!user.isProfile()) {
DActivityManagerShellCommand.java2488 final boolean isProfile = parentUserId != userId;
2489 final boolean isVisibleProfile = isProfile && parentUserId == currentUserId;
2492 isProfile, isVisibleProfile, displayId, waiter);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/utils/
DBackupEligibilityRulesTest.java963 when(mUserManager.isProfile()).thenReturn(true); in mockContextForProfile()
968 when(mUserManager.isProfile()).thenReturn(false); in mockContextForFullUser()
/frameworks/base/core/java/android/os/
DUserManager.java3338 public boolean isProfile() { in isProfile() method in UserManager
3339 return isProfile(mUserId); in isProfile()
3346 public boolean isProfile(@UserIdInt int userId) { in isProfile() method in UserManager
5690 if (!isProfile(userId)) { in hasBadge()
5891 if (!isProfile(mUserId)) { in getUserBadge()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DUserSystemPackageInstallerTest.java168 if (details.isSystem() || details.isProfile()) { in testDetermineWhitelistedPackagesForUserTypes()
DUserManagerTest.java1022 assertThat(userManagerForUser.isProfile()).isEqualTo(userTypeDetails.isProfile()); in testProfileTypeInformation()
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/
DThemeOverlayController.java779 if (userInfo.isProfile()) { in updateThemeOverlays()
/frameworks/base/core/java/android/provider/
DCallLog.java2020 return userInfo != null && !userInfo.isProfile(); in shouldHaveSharedCallLogEntries()
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/
DContentCaptureManagerService.java319 return user.isFull() || user.isProfile(); in isUserSupported()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DAutofillManagerService.java483 return user.isFull() || user.isProfile(); in isUserSupported()
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/
DDevicePolicyEngine.java1355 if (!user.isProfile()) { in enforcePoliciesOnInheritableProfilesIfApplicable()

12