Home
last modified time | relevance | path

Searched refs:UserType (Results 1 – 25 of 110) sorted by relevance

12345

/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/
DUserTypeTest.java37 UserType.MutableUserType mutableUserType = new UserType.MutableUserType(); in name_returnsName()
39 UserType userType = new UserType(mutableUserType); in name_returnsName()
46 UserType.MutableUserType mutableUserType = new UserType.MutableUserType(); in name_notSet_returnsNull()
47 UserType userType = new UserType(mutableUserType); in name_notSet_returnsNull()
54 UserType.MutableUserType mutableUserType = new UserType.MutableUserType(); in baseType_returnsBaseType()
55 mutableUserType.mBaseType = new HashSet<>(Arrays.asList(UserType.BaseType.FULL)); in baseType_returnsBaseType()
56 UserType userType = new UserType(mutableUserType); in baseType_returnsBaseType()
58 assertThat(userType.baseType()).containsExactly(UserType.BaseType.FULL); in baseType_returnsBaseType()
63 UserType.MutableUserType mutableUserType = new UserType.MutableUserType(); in baseType_notSet_returnsNull()
64 UserType userType = new UserType(mutableUserType); in baseType_notSet_returnsNull()
[all …]
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCrossProfileIntentFiltersTest.java41 import com.android.bedstead.harrier.UserType;
85 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
86 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
99 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
100 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
127 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
128 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
154 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
155 @UserPair(from = UserType.WORK_PROFILE, to = UserType.INITIAL_USER)})
187 @UserPair(from = UserType.INITIAL_USER, to = UserType.WORK_PROFILE),
[all …]
DProfileOwnerTest.kt20 import com.android.bedstead.harrier.UserType in <lambda>()
47 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
68 onUser = UserType.ANY, allowPreCreatedAccounts = false, failureMode = FailureMode.SKIP) in <lambda>()
87 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
88 @EnsureHasAccount(features = [FEATURE_DISALLOW], onUser = UserType.INITIAL_USER) in <lambda>()
93 .type(com.android.bedstead.nene.users.UserType.MANAGED_PROFILE_TYPE_NAME) in <lambda>()
106 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
107 @EnsureHasAccount(features = [], onUser = UserType.INITIAL_USER) in <lambda>()
141 @EnsureHasNoAccounts(onUser = UserType.ANY) in <lambda>()
142 @EnsureHasAccount(features = [FEATURE_DISALLOW], onUser = UserType.INITIAL_USER) in <lambda>()
[all …]
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/
DRequirePackageRespondsToIntent.kt19 import com.android.bedstead.harrier.UserType
43 val user: UserType = UserType.INSTRUMENTED_USER,
67 return requirePackageRespondsToIntent(Intent(action), user = UserType.INSTRUMENTED_USER) in requirePackageRespondsToIntent()
74 fun requirePackageRespondsToIntent(action: String, user: UserType): RequirePackageRespondsToIntent { in requirePackageRespondsToIntent()
79 private fun requirePackageRespondsToIntent(intent: Intent, user: UserType): RequirePackageRespondsT… in requirePackageRespondsToIntent()
DRequireNoPackageRespondsToIntent.kt19 import com.android.bedstead.harrier.UserType
43 val user: UserType = UserType.INSTRUMENTED_USER,
67 return requireNoPackageRespondsToIntent(Intent(action), user = UserType.INSTRUMENTED_USER) in requireNoPackageRespondsToIntent()
74 fun requireNoPackageRespondsToIntent(action: String, user: UserType): RequireNoPackageRespondsToInt… in requireNoPackageRespondsToIntent()
79 private fun requireNoPackageRespondsToIntent(intent: Intent, user: UserType): RequireNoPackageRespo… in requireNoPackageRespondsToIntent()
DUserPair.java19 import com.android.bedstead.harrier.UserType;
31 UserType from(); in from()
32 UserType to(); in to()
DRequireGmsBuild.java24 import com.android.bedstead.harrier.UserType;
33 @RequirePackageInstalled(value = GMS_CORE_PACKAGE, onUser = UserType.ANY)
34 @RequirePackageInstalled(value = PLAY_STORE_PACKAGE, onUser = UserType.ANY)
35 @RequirePackageInstalled(value = GSF_PACKAGE, onUser = UserType.ANY)
DRequireAospBuild.java24 import com.android.bedstead.harrier.UserType;
33 @RequirePackageNotInstalled(value = GMS_CORE_PACKAGE, onUser = UserType.ANY)
34 @RequirePackageNotInstalled(value = PLAY_STORE_PACKAGE, onUser = UserType.ANY)
35 @RequirePackageNotInstalled(value = GSF_PACKAGE, onUser = UserType.ANY)
DRequireHasDefaultBrowser.java19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER;
21 import com.android.bedstead.harrier.UserType;
34 UserType forUser() default INSTRUMENTED_USER; in forUser()
DEnsureHasTestContentSuggestionsService.java19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER;
22 import com.android.bedstead.harrier.UserType;
40 UserType onUser() default INSTRUMENTED_USER; in onUser()
DEnsurePasswordNotSet.java19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER;
22 import com.android.bedstead.harrier.UserType;
40 UserType forUser() default INSTRUMENTED_USER; in forUser()
DEnsureNoPackageRespondsToIntent.kt19 import com.android.bedstead.harrier.UserType
43 val user: UserType = UserType.INSTRUMENTED_USER,
DEnsureDefaultContentSuggestionsServiceDisabled.java19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER;
22 import com.android.bedstead.harrier.UserType;
40 UserType onUser() default INSTRUMENTED_USER; in onUser()
DEnsureDefaultContentSuggestionsServiceEnabled.java19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER;
22 import com.android.bedstead.harrier.UserType;
40 UserType onUser() default INSTRUMENTED_USER; in onUser()
DEnsurePackageRespondsToIntent.kt19 import com.android.bedstead.harrier.UserType
44 val user: UserType = UserType.INSTRUMENTED_USER,
DEnsureDoesNotHaveUserRestriction.java21 import com.android.bedstead.harrier.UserType;
43 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser()
DEnsurePackageNotInstalled.java21 import com.android.bedstead.harrier.UserType;
44 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser()
DEnsureHasAccountAuthenticator.java19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER;
22 import com.android.bedstead.harrier.UserType;
41 UserType onUser() default INSTRUMENTED_USER; in onUser()
DEnsureSecureSettingSet.java21 import com.android.bedstead.harrier.UserType;
34 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUsers.java30 import static com.android.bedstead.nene.users.UserType.MANAGED_PROFILE_TYPE_NAME;
31 import static com.android.bedstead.nene.users.UserType.SECONDARY_USER_TYPE_NAME;
32 import static com.android.bedstead.nene.users.UserType.SYSTEM_USER_TYPE_NAME;
85 private Map<String, UserType> mCachedUserTypes = null;
86 private Set<UserType> mCachedUserTypeValues = null;
225 public Set<UserType> supportedTypes() { in supportedTypes()
233 public UserType supportedType(String typeName) { in supportedType()
241 public Set<UserReference> findUsersOfType(UserType userType) { in findUsersOfType()
246 if (userType.baseType().contains(UserType.BaseType.PROFILE)) { in findUsersOfType()
269 public UserReference findUserOfType(UserType userType) {
[all …]
DAdbUserParser30.java257 private Map<String, UserType> mUserTypes;
289 Map<String, UserType> parseUserTypes(String dumpsysUsersOutput) throws AdbParseException { in parseUserTypes()
293 Map<String, UserType> userTypes = new HashMap<>(); in parseUserTypes()
295 UserType userType = new UserType(parseUserType(userTypeString)); in parseUserTypes()
315 UserType.MutableUserType parseUserType(String userTypeString) throws AdbParseException { in parseUserType()
317 UserType.MutableUserType userType = new UserType.MutableUserType(); in parseUserType()
DUserType.java24 public final class UserType { class
50 UserType(MutableUserType mutableUserType) { in UserType() method in UserType
103 if (obj == null || !(obj instanceof UserType)) { in equals()
107 UserType other = (UserType) obj; in equals()
/cts/common/device-side/bedstead/harrier/common/src/main/java/com/android/bedstead/harrier/annotations/meta/
DEnsureHasNoProfile.java19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER;
21 import com.android.bedstead.harrier.UserType;
31 UserType forUser() default INSTRUMENTED_USER; in forUser()
DEnsureHasProfile.java19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER;
22 import com.android.bedstead.harrier.UserType;
34 UserType forUser() default INSTRUMENTED_USER; in forUser()
/cts/tests/tests/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/
DUserRestrictionInstallTest.kt42 import com.android.bedstead.harrier.UserType in <lambda>()
129 @EnsureHasUserRestriction(value = DISALLOW_DEBUGGING_FEATURES, onUser = UserType.WORK_PROFILE) in <lambda>()
130 @EnsureDoesNotHaveUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
153 @EnsureHasUserRestriction(value = DISALLOW_DEBUGGING_FEATURES, onUser = UserType.WORK_PROFILE) in <lambda>()
154 @EnsureDoesNotHaveUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
172 @EnsureHasUserRestriction(value = DISALLOW_DEBUGGING_FEATURES, onUser = UserType.WORK_PROFILE) in <lambda>()
173 @EnsureDoesNotHaveUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
192 @EnsureHasUserRestriction(value = DISALLOW_DEBUGGING_FEATURES, onUser = UserType.WORK_PROFILE) in <lambda>()
193 @EnsureDoesNotHaveUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
209 @EnsureHasUserRestriction(value = DISALLOW_INSTALL_APPS, onUser = UserType.WORK_PROFILE) in <lambda>()
[all …]

12345