/frameworks/base/services/tests/mockingservicestests/src/com/android/server/backup/ |
D | SystemBackupAgentTest.java | 78 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/ |
D | CrossProfileAppsTest.java | 123 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()
|
D | UserInfoTest.java | 51 assertThat(ui.isProfile()).isEqualTo(false); in testSimple()
|
/frameworks/base/services/core/java/com/android/server/ |
D | SystemService.java | 161 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/ |
D | UserTypeFactory.java | 495 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()
|
D | UserVisibilityMediator.java | 300 && 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()
|
D | UserTypeDetails.java | 338 public boolean isProfile() { in isProfile() method in UserTypeDetails 588 if (!isProfile()) { in createUserTypeDetails() 621 private boolean isProfile() { in isProfile() method in UserTypeDetails.Builder
|
D | UserManagerService.java | 1886 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 …]
|
D | CrossProfileIntentResolverEngine.java | 724 if (!mUserManager.isProfile(userId)) return false; in isNoFilteringPropertyConfiguredForUser()
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/ |
D | JobConcurrencyManagerTest.java | 927 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/ |
D | UserInfo.java | 384 public boolean isProfile() { in isProfile() method in UserInfo 486 if (isProfile() || isGuest() || isRestricted()) { in canHaveProfile()
|
D | CrossProfileApps.java | 331 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/ |
D | SystemBackupAgent.java | 127 mIsProfileUser = userManager.isProfile(); in onCreate()
|
/frameworks/base/services/backup/java/com/android/server/backup/utils/ |
D | BackupEligibilityRules.java | 131 mIsProfileUser = userManager.isProfile(); in BackupEligibilityRules()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | UserController.java | 811 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()) {
|
D | ActivityManagerShellCommand.java | 2488 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/ |
D | BackupEligibilityRulesTest.java | 963 when(mUserManager.isProfile()).thenReturn(true); in mockContextForProfile() 968 when(mUserManager.isProfile()).thenReturn(false); in mockContextForFullUser()
|
/frameworks/base/core/java/android/os/ |
D | UserManager.java | 3338 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/ |
D | UserSystemPackageInstallerTest.java | 168 if (details.isSystem() || details.isProfile()) { in testDetermineWhitelistedPackagesForUserTypes()
|
D | UserManagerTest.java | 1022 assertThat(userManagerForUser.isProfile()).isEqualTo(userTypeDetails.isProfile()); in testProfileTypeInformation()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/theme/ |
D | ThemeOverlayController.java | 779 if (userInfo.isProfile()) { in updateThemeOverlays()
|
/frameworks/base/core/java/android/provider/ |
D | CallLog.java | 2020 return userInfo != null && !userInfo.isProfile(); in shouldHaveSharedCallLogEntries()
|
/frameworks/base/services/contentcapture/java/com/android/server/contentcapture/ |
D | ContentCaptureManagerService.java | 319 return user.isFull() || user.isProfile(); in isUserSupported()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | AutofillManagerService.java | 483 return user.isFull() || user.isProfile(); in isUserSupported()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyEngine.java | 1355 if (!user.isProfile()) { in enforcePoliciesOnInheritableProfilesIfApplicable()
|