/cts/common/device-side/bedstead/nene/src/test/java/com/android/bedstead/nene/users/ |
D | UserTypeTest.java | 39 UserType userType = new UserType(mutableUserType); in name_returnsName() local 41 assertThat(userType.name()).isEqualTo(STRING_VALUE); in name_returnsName() 47 UserType userType = new UserType(mutableUserType); in name_notSet_returnsNull() local 49 assertThat(userType.name()).isNull(); in name_notSet_returnsNull() 56 UserType userType = new UserType(mutableUserType); in baseType_returnsBaseType() local 58 assertThat(userType.baseType()).containsExactly(UserType.BaseType.FULL); in baseType_returnsBaseType() 64 UserType userType = new UserType(mutableUserType); in baseType_notSet_returnsNull() local 66 assertThat(userType.baseType()).isNull(); in baseType_notSet_returnsNull() 73 UserType userType = new UserType(mutableUserType); in enabled_returnsEnabled() local 75 assertThat(userType.enabled()).isTrue(); in enabled_returnsEnabled() [all …]
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/ |
D | AdbUserParser30.java | 295 UserType userType = new UserType(parseUserType(userTypeString)); in parseUserTypes() local 296 userTypes.put(userType.name(), userType); in parseUserTypes() local 317 UserType.MutableUserType userType = new UserType.MutableUserType(); in parseUserType() local 319 userType.mName = userTypeString.split("mName: ", 2)[1].split("\n")[0]; in parseUserType() 320 userType.mBaseType = new HashSet<>(); in parseUserType() 324 userType.mBaseType.add(baseType); in parseUserType() 328 userType.mEnabled = Boolean.parseBoolean( in parseUserType() 330 userType.mMaxAllowed = Integer.parseInt( in parseUserType() 332 userType.mMaxAllowedPerParent = Integer.parseInt( in parseUserType() 335 return userType; in parseUserType()
|
D | Users.java | 241 public Set<UserReference> findUsersOfType(UserType userType) { in findUsersOfType() argument 242 if (userType == null) { in findUsersOfType() 246 if (userType.baseType().contains(UserType.BaseType.PROFILE)) { in findUsersOfType() 247 throw new NeneException("Cannot use findUsersOfType with profile type " + userType); in findUsersOfType() 253 return u.type().equals(userType); in findUsersOfType() 269 public UserReference findUserOfType(UserType userType) { 270 Set<UserReference> users = findUsersOfType(userType); 276 + userType + ". Found: " + users); 285 public Set<UserReference> findProfilesOfType(UserType userType, UserReference parent) { 286 if (userType == null || parent == null) { [all …]
|
D | UserInfo.kt | 30 val userType: String? constant in com.android.bedstead.nene.users.UserInfo 50 this.userType = proxy.userType
|
D | UserReference.java | 1075 public boolean canCreateProfile(UserType userType) { in canCreateProfile() argument 1079 return mUserManager.getRemainingCreatableProfileCount(userType.name()) > 0; in canCreateProfile()
|
/cts/common/device-side/bedstead/modules/multiuser/src/main/kotlin/com/android/bedstead/multiuser/ |
D | UsersComponent.kt | 150 userType: String, in <lambda>() 154 val resolvedUserType: UserType = requireUserSupported(userType, FailureMode.SKIP) in <lambda>() 175 fun user(userType: String): UserReference { in <lambda>() 176 val resolvedUserType = users().supportedType(userType) in <lambda>() 177 ?: throw IllegalStateException(("Can not have a user of type " + userType + in <lambda>() 190 fun user(userType: UserType): UserReference { in <lambda>() 191 return mUsers.getOrElse(userType) { in <lambda>() 193 "No harrier-managed user of type $userType. This method should only be used " + in <lambda>() 260 fun requireUserSupported(userType: String, failureMode: FailureMode): UserType { in <lambda>() 261 val resolvedUserType = users().supportedType(userType) in <lambda>() [all …]
|
D | MultiUserAnnotationExecutor.kt | 53 is EnsureHasNoUserAnnotation -> usersComponent.ensureHasNoUser(userType = value) in <lambda>() 91 userType = ensureHasUser.value, in <lambda>()
|
/cts/hostsidetests/packagemanager/stats/device/src/com/android/cts/packagemanager/stats/device/ |
D | UserInfoUtil.java | 40 public static int getUserTypeForStatsd(String userType) { in getUserTypeForStatsd() argument 41 switch (userType) { in getUserTypeForStatsd()
|
D | PackageInstallationSessionReportedStatsTestsHelper.java | 56 userManager.getUserInfo(Integer.parseInt(userId)).userType)); in getUserTypeIntegers()
|
/cts/tests/tests/multiuser/src/android/multiuser/cts/ |
D | NewUserRequestTest.java | 91 final String userType = "test_user_type"; in testSetUserType() local 92 mBuilder.setUserType(userType); in testSetUserType() 93 assertThat(build().getUserType()).isEqualTo(userType); in testSetUserType()
|
D | UserManagerTest.java | 911 final String userType = USER_TYPE_FULL_SECONDARY; in testGetRemainingCreatableUserCount() local 916 final int initialRemainingCount = mUserManager.getRemainingCreatableUserCount(userType); in testGetRemainingCreatableUserCount() 923 assertThat(mUserManager.getRemainingCreatableUserCount(userType)) in testGetRemainingCreatableUserCount() 928 assertThat(mUserManager.getRemainingCreatableUserCount(userType)) in testGetRemainingCreatableUserCount()
|
/cts/common/device-side/bedstead/testapisreflection/java/apis/ |
D | allowlisted-test-fields.txt | 5 android.content.pm.UserInfo,userType,String
|
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/ |
D | DeviceState.java | 439 UserType userType = (UserType) annotation.annotationType() 441 ensureHasNoProfile(ensureHasNoProfileAnnotation.value(), userType); 1103 private void requireRunOnProfile(String userType, 1110 assumeTrue("This test only runs on users of type " + userType, 1111 instrumentedUser.type().name().equals(userType)); 1297 com.android.bedstead.nene.users.UserType userType, UserReference forUser) { 1298 if (userType == null || forUser == null) { 1302 if (!mProfiles.containsKey(userType) || !mProfiles.get(userType).containsKey(forUser)) { 1306 if (mProfiles.containsKey(userType) 1307 && mProfiles.get(userType).containsKey(parentUser)) { [all …]
|
D | BedsteadJUnit4.java | 1071 for (UserType userType : userTypes) { in generateUserAnnotations() 1072 Annotation runOnUserAnnotation = getRunOnAnnotation(userType, "@UserTest"); in generateUserAnnotations() 1075 userType.name(), in generateUserAnnotations() 1110 private static Annotation getRunOnAnnotation(UserType userType, String annotationName) { in getRunOnAnnotation() argument 1111 switch (userType) { in getRunOnAnnotation() 1134 "UserType " + userType + " is not compatible with " + annotationName); in getRunOnAnnotation() 1138 private static Annotation getHasUserAnnotation(UserType userType, String annotationName) { in getHasUserAnnotation() argument 1139 switch (userType) { in getHasUserAnnotation() 1163 "UserType " + userType + " is not compatible with " + annotationName); in getHasUserAnnotation()
|
/cts/common/device-side/bedstead/modules/enterprise/src/main/kotlin/com/android/bedstead/enterprise/ |
D | ProfileOwnersComponent.kt | 57 fun ensureHasNoProfileOwner(userType: UserType) { in <lambda>() 58 ensureHasNoProfileOwner(deviceState.resolveUserTypeToUser(userType)) in <lambda>()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | ManifestTestListAdapter.java | 587 for (String userType : userTypes) { in matchAnyExcludedUserType() 588 switch (userType) { in matchAnyExcludedUserType() 600 + userType); in matchAnyExcludedUserType()
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | test-current.txt | 1218 field public String userType;
|