/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceUserPropertiesTest.java | 23 import android.content.pm.UserProperties; 59 final UserProperties defaultProps = new UserProperties.Builder() in testWriteReadXml() 79 final UserProperties actualProps = new UserProperties(defaultProps); in testWriteReadXml() 113 final UserProperties readProps = new UserProperties(parser, defaultProps); in testWriteReadXml() 121 final UserProperties originalProps = new UserProperties.Builder() in testParcelUnparcel() 124 final UserProperties readProps = parcelThenUnparcel(originalProps); in testParcelUnparcel() 131 final UserProperties defaultProps = new UserProperties.Builder() in testCopyLacksPermissions() 144 final UserProperties orig = new UserProperties(defaultProps); in testCopyLacksPermissions() 162 final UserProperties copy = new UserProperties(orig, exposeAll, hasManage, hasQuery); in testCopyLacksPermissions() 171 final UserProperties readProps = parcelThenUnparcel(copy); in testCopyLacksPermissions() [all …]
|
D | UserManagerServiceUserTypeTest.java | 38 import android.content.pm.UserProperties; 84 final UserProperties.Builder userProps = new UserProperties.Builder() in testUserTypeBuilder_createUserType() 226 final UserProperties props = type.getDefaultUserPropertiesReference(); in testUserTypeBuilder_defaults() 230 assertEquals(UserProperties.CROSS_PROFILE_INTENT_FILTER_ACCESS_LEVEL_ALL, in testUserTypeBuilder_defaults() 232 assertEquals(UserProperties.SHOW_IN_LAUNCHER_WITH_PARENT, props.getShowInLauncher()); in testUserTypeBuilder_defaults() 233 assertEquals(UserProperties.CROSS_PROFILE_INTENT_RESOLUTION_STRATEGY_DEFAULT, in testUserTypeBuilder_defaults() 239 assertEquals(UserProperties.SHOW_IN_LAUNCHER_SEPARATE, props.getShowInSharingSurfaces()); in testUserTypeBuilder_defaults() 240 assertEquals(UserProperties.SHOW_IN_QUIET_MODE_PAUSED, in testUserTypeBuilder_defaults() 242 assertEquals(UserProperties.CROSS_PROFILE_CONTENT_SHARING_NO_DELEGATION, in testUserTypeBuilder_defaults() 244 assertEquals(UserProperties.PROFILE_API_VISIBILITY_VISIBLE, in testUserTypeBuilder_defaults() [all …]
|
D | BaseShortcutManagerTest.java | 78 import android.content.pm.UserProperties; 780 protected static final UserProperties USER_PROPERTIES_0 = 781 new UserProperties.Builder().setItemsRestrictedOnHomeScreen(false).build(); 783 protected static final UserProperties USER_PROPERTIES_10 = 784 new UserProperties.Builder().setItemsRestrictedOnHomeScreen(false).build(); 786 protected static final UserProperties USER_PROPERTIES_11 = 787 new UserProperties.Builder().setItemsRestrictedOnHomeScreen(true).build(); 830 protected final Map<Integer, UserProperties> mUserProperties = new HashMap<>(); 979 final UserProperties userProperties = mUserProperties.get(userId); in setUp() 981 return new UserProperties.Builder().build(); in setUp()
|
D | UserManagerTest.java | 33 import android.content.pm.UserProperties; 179 final UserProperties typeProps = userTypeDetails.getDefaultUserPropertiesReference(); in testCloneUser() 209 UserProperties cloneUserProperties = in testCloneUser() 323 final UserProperties typeProps = userTypeDetails.getDefaultUserPropertiesReference(); in testPrivateProfile() 345 UserProperties privateProfileUserProperties = in testPrivateProfile() 1038 final UserProperties typeProps = userTypeDetails.getDefaultUserPropertiesReference(); in testUserProperties() 1046 final UserProperties userProps = mUserManager.getUserProperties(UserHandle.of(userId)); in testUserProperties()
|
/frameworks/base/packages/SettingsLib/tests/robotests/testutils/com/android/settingslib/testutils/shadow/ |
D | ShadowUserManager.java | 22 import android.content.pm.UserProperties; 39 private final Map<Integer, UserProperties> mUserPropertiesMap = new HashMap<>(); 95 UserProperties userProperties = new UserProperties(new UserProperties.Builder() in setupUserProperty() 101 protected UserProperties getUserProperties(UserHandle user) { in getUserProperties() 103 new UserProperties(new UserProperties.Builder().build())); in getUserProperties()
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/common/ |
D | UserProfilePager.kt | 20 import android.content.pm.UserProperties in <lambda>() 62 showInSettingsMap[UserProperties.SHOW_IN_SETTINGS_WITH_PARENT]?.let { in UserManager() 66 showInSettingsMap[UserProperties.SHOW_IN_SETTINGS_SEPARATE]?.forEach { in UserManager() 76 == UserProperties.SHOW_IN_QUIET_MODE_HIDDEN) { in UserManager() 77 UserProperties.SHOW_IN_SETTINGS_NO in UserManager()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | UserTypeFactory.java | 45 import android.content.pm.UserProperties; 148 .setDefaultUserProperties(new UserProperties.Builder() in getDefaultTypeProfileClone() 150 .setShowInLauncher(UserProperties.SHOW_IN_LAUNCHER_WITH_PARENT) in getDefaultTypeProfileClone() 151 .setShowInSettings(UserProperties.SHOW_IN_SETTINGS_WITH_PARENT) in getDefaultTypeProfileClone() 152 .setInheritDevicePolicy(UserProperties.INHERIT_DEVICE_POLICY_FROM_PARENT) in getDefaultTypeProfileClone() 156 UserProperties.CROSS_PROFILE_INTENT_FILTER_ACCESS_LEVEL_SYSTEM) in getDefaultTypeProfileClone() 157 .setCrossProfileIntentResolutionStrategy(UserProperties in getDefaultTypeProfileClone() 160 UserProperties.SHOW_IN_QUIET_MODE_DEFAULT) in getDefaultTypeProfileClone() 162 UserProperties.SHOW_IN_SHARING_SURFACES_WITH_PARENT) in getDefaultTypeProfileClone() 166 .setCrossProfileContentSharingStrategy(UserProperties in getDefaultTypeProfileClone() [all …]
|
D | UserTypeDetails.java | 26 import android.content.pm.UserProperties; 173 private final @NonNull UserProperties mDefaultUserProperties; 187 @NonNull UserProperties defaultUserProperties) { in UserTypeDetails() 330 public @NonNull UserProperties getDefaultUserPropertiesReference() { in getDefaultUserPropertiesReference() 448 private @Nullable UserProperties mDefaultUserProperties = null; 557 public Builder setDefaultUserProperties(UserProperties.Builder userPropertiesBuilder) { in setDefaultUserProperties() 562 public @NonNull UserProperties getDefaultUserProperties() { in getDefaultUserProperties() 564 mDefaultUserProperties = new UserProperties.Builder().build(); in getDefaultUserProperties()
|
D | CrossProfileIntentFilterHelper.java | 21 import android.content.pm.UserProperties; 54 UserProperties currentUserProperties = mUserManagerInternal in updateDefaultCrossProfileIntentFilter()
|
D | UserManagerInternal.java | 25 import android.content.pm.UserProperties; 434 public abstract @Nullable UserProperties getUserProperties(@UserIdInt int userId); in getUserProperties()
|
D | CrossProfileIntentResolverEngine.java | 33 import android.content.pm.UserProperties; 725 UserProperties userProperties = mUserManagerInternal.getUserProperties(userId); in isNoFilteringPropertyConfiguredForUser() 729 == UserProperties.CROSS_PROFILE_INTENT_RESOLUTION_STRATEGY_NO_FILTERING; in isNoFilteringPropertyConfiguredForUser()
|
D | UserManagerService.java | 85 import android.content.pm.UserProperties; 396 UserProperties userProperties; 1561 UserProperties userProperties = getUserPropertiesCopy(userId); in isProfileHidden() 1566 == UserProperties.PROFILE_API_VISIBILITY_HIDDEN; in isProfileHidden() 1766 final UserProperties userProperties = getUserPropertiesInternal(userId); in requestQuietModeEnabled() 2245 public @NonNull UserProperties getUserPropertiesCopy(@UserIdInt int userId) { in getUserPropertiesCopy() 2247 final UserProperties origProperties = getUserPropertiesInternal(userId); in getUserPropertiesCopy() 2252 return new UserProperties(origProperties, exposeAllFields, hasManage, hasQuery); in getUserPropertiesCopy() 2259 private @Nullable UserProperties getUserPropertiesInternal(@UserIdInt int userId) { in getUserPropertiesInternal() 2941 final UserProperties userProperties = getUserPropertiesInternal(userId); in getCrossProfileIntentFilterAccessControl() [all …]
|
D | DeletePackageHelper.java | 48 import android.content.pm.UserProperties; 846 UserProperties userProperties = mUserManagerInternal in deletePackageVersionedInternal()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/content/ |
D | SyncManagerTest.java | 19 import static android.content.pm.UserProperties.INHERIT_DEVICE_POLICY_FROM_PARENT; 20 import static android.content.pm.UserProperties.SHOW_IN_LAUNCHER_WITH_PARENT; 21 import static android.content.pm.UserProperties.SHOW_IN_SETTINGS_WITH_PARENT; 35 import android.content.pm.UserProperties; 205 private UserProperties getCloneUserProperties() { in getCloneUserProperties() 206 return new UserProperties.Builder() in getCloneUserProperties() 216 UserProperties cloneUserProperties = getCloneUserProperties(); in mockUserProperties() 221 .thenReturn(new UserProperties.Builder().build()); in mockUserProperties()
|
/frameworks/base/core/java/android/content/pm/ |
D | UserProperties.java | 46 public final class UserProperties implements Parcelable { class 47 private static final String LOG_TAG = UserProperties.class.getSimpleName(); 244 private final @Nullable UserProperties mDefaultProperties; 504 public UserProperties(@NonNull UserProperties defaultProperties) { in UserProperties() method in UserProperties 516 public UserProperties(UserProperties orig, in UserProperties() method in UserProperties 1126 public UserProperties( in UserProperties() method in UserProperties 1128 @NonNull UserProperties defaultUserPropertiesReference) in UserProperties() 1326 private UserProperties(@NonNull Parcel source) { in UserProperties() method in UserProperties 1356 public static final @android.annotation.NonNull Parcelable.Creator<UserProperties> CREATOR 1357 = new Parcelable.Creator<UserProperties>() { [all …]
|
D | OWNERS | 18 # Bug component: 578329 = per-file *UserProperties* 19 per-file *UserProperties* = file:/MULTIUSER_OWNERS
|
D | UserProperties.aidl | 19 parcelable UserProperties;
|
/frameworks/base/packages/SettingsLib/ProfileSelector/src/com/android/settingslib/widget/ |
D | ProfileSelectFragment.java | 22 import android.content.pm.UserProperties; 220 UserProperties userProperties = userManager.getUserProperties(userHandle); in shouldShowUserInQuietMode() 222 || userProperties.getShowInQuietMode() != UserProperties.SHOW_IN_QUIET_MODE_HIDDEN; in shouldShowUserInQuietMode()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/applications/ |
D | RecentAppOpsAccessesTest.java | 35 import android.content.pm.UserProperties; 81 private UserProperties mUserProperties; 166 .thenReturn(UserProperties.SHOW_IN_QUIET_MODE_DEFAULT); in testGetAppList_quietModeEnabledShowInQuietDefault_shouldFilterRecentAccesses() 186 .thenReturn(UserProperties.SHOW_IN_QUIET_MODE_HIDDEN); in testGetAppList_quietModeEnabledShowInQuietHidden_shouldNotFilterRecentAccesses()
|
D | ApplicationsStateRoboTest.java | 53 import android.content.pm.UserProperties; 803 /*showInSettings*/ UserProperties.SHOW_IN_SETTINGS_WITH_PARENT); in shouldShowInPersonalTab_currentUserIsParent_returnsAsPerUserPropertyOfProfile1() 805 /*showInSettings*/ UserProperties.SHOW_IN_SETTINGS_NO); in shouldShowInPersonalTab_currentUserIsParent_returnsAsPerUserPropertyOfProfile1()
|
/frameworks/base/core/java/android/os/ |
D | IUserManager.aidl | 26 import android.content.pm.UserProperties; 80 UserProperties getUserPropertiesCopy(int userId); in getUserPropertiesCopy()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/applications/ |
D | RecentAppOpsAccess.java | 26 import android.content.pm.UserProperties; 214 == UserProperties.SHOW_IN_QUIET_MODE_HIDDEN; in shouldHideUser()
|
D | ApplicationsState.java | 40 import android.content.pm.UserProperties; 1748 UserProperties userProperties = userManager.getUserProperties( in shouldShowInPersonalTab() 1751 == UserProperties.SHOW_IN_SETTINGS_WITH_PARENT; in shouldShowInPersonalTab() 1845 == UserProperties.SHOW_IN_QUIET_MODE_HIDDEN; in isHideInQuietEnabledForProfile()
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | FocusRequester.java | 21 import android.content.pm.UserProperties; 176 final UserProperties properties = umi.getUserProperties(UserHandle.getUserId(mCallingUid)); in isAlwaysVisibleUser()
|
/frameworks/base/services/devicepolicy/java/com/android/server/devicepolicy/ |
D | DevicePolicyEngine.java | 28 import static android.content.pm.UserProperties.INHERIT_DEVICE_POLICY_FROM_PARENT; 54 import android.content.pm.UserProperties; 436 UserProperties userProperties = mUserManager.getUserProperties(userInfo.getUserHandle()); in isInheritDevicePolicyFromParent() 1360 UserProperties userProperties = mUserManager.getUserProperties(user.getUserHandle()); in enforcePoliciesOnInheritableProfilesIfApplicable()
|