/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/ |
D | UserTypeTest.java | 37 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/ |
D | CrossProfileIntentFiltersTest.java | 41 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 …]
|
D | ProfileOwnerTest.kt | 20 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/ |
D | RequirePackageRespondsToIntent.kt | 19 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()
|
D | RequireNoPackageRespondsToIntent.kt | 19 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()
|
D | UserPair.java | 19 import com.android.bedstead.harrier.UserType; 31 UserType from(); in from() 32 UserType to(); in to()
|
D | RequireGmsBuild.java | 24 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)
|
D | RequireAospBuild.java | 24 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)
|
D | RequireHasDefaultBrowser.java | 19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER; 21 import com.android.bedstead.harrier.UserType; 34 UserType forUser() default INSTRUMENTED_USER; in forUser()
|
D | EnsureHasTestContentSuggestionsService.java | 19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER; 22 import com.android.bedstead.harrier.UserType; 40 UserType onUser() default INSTRUMENTED_USER; in onUser()
|
D | EnsurePasswordNotSet.java | 19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER; 22 import com.android.bedstead.harrier.UserType; 40 UserType forUser() default INSTRUMENTED_USER; in forUser()
|
D | EnsureNoPackageRespondsToIntent.kt | 19 import com.android.bedstead.harrier.UserType 43 val user: UserType = UserType.INSTRUMENTED_USER,
|
D | EnsureDefaultContentSuggestionsServiceDisabled.java | 19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER; 22 import com.android.bedstead.harrier.UserType; 40 UserType onUser() default INSTRUMENTED_USER; in onUser()
|
D | EnsureDefaultContentSuggestionsServiceEnabled.java | 19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER; 22 import com.android.bedstead.harrier.UserType; 40 UserType onUser() default INSTRUMENTED_USER; in onUser()
|
D | EnsurePackageRespondsToIntent.kt | 19 import com.android.bedstead.harrier.UserType 44 val user: UserType = UserType.INSTRUMENTED_USER,
|
D | EnsureDoesNotHaveUserRestriction.java | 21 import com.android.bedstead.harrier.UserType; 43 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser()
|
D | EnsurePackageNotInstalled.java | 21 import com.android.bedstead.harrier.UserType; 44 UserType onUser() default UserType.INSTRUMENTED_USER; in onUser()
|
D | EnsureHasAccountAuthenticator.java | 19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER; 22 import com.android.bedstead.harrier.UserType; 41 UserType onUser() default INSTRUMENTED_USER; in onUser()
|
D | EnsureSecureSettingSet.java | 21 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/ |
D | Users.java | 30 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 …]
|
D | AdbUserParser30.java | 257 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()
|
D | UserType.java | 24 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/ |
D | EnsureHasNoProfile.java | 19 import static com.android.bedstead.harrier.UserType.INSTRUMENTED_USER; 21 import com.android.bedstead.harrier.UserType; 31 UserType forUser() default INSTRUMENTED_USER; in forUser()
|
D | EnsureHasProfile.java | 19 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/ |
D | UserRestrictionInstallTest.kt | 42 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 …]
|