Home
last modified time | relevance | path

Searched refs:userType (Results 1 – 4 of 4) sorted by relevance

/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DAdbUserParser30.java295 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()
DUsers.java180 public Set<UserReference> findUsersOfType(UserType userType) { in findUsersOfType() argument
181 if (userType == null) { in findUsersOfType()
185 if (userType.baseType().contains(UserType.BaseType.PROFILE)) { in findUsersOfType()
186 throw new NeneException("Cannot use findUsersOfType with profile type " + userType); in findUsersOfType()
190 .filter(u -> u.type().equals(userType)) in findUsersOfType()
202 public UserReference findUserOfType(UserType userType) { in findUserOfType() argument
203 Set<UserReference> users = findUsersOfType(userType); in findUserOfType()
209 + userType + ". Found: " + users); in findUserOfType()
218 public Set<UserReference> findProfilesOfType(UserType userType, UserReference parent) { in findProfilesOfType() argument
219 if (userType == null || parent == null) { in findProfilesOfType()
[all …]
/cts/common/device-side/bedstead/harrier/src/main/java/com/android/bedstead/harrier/
DDeviceState.java255 UserType userType = (UserType) annotation.annotationType()
257 ensureHasNoProfile(ensureHasNoProfileAnnotation.value(), userType);
752 private void requireRunOnProfile(String userType,
758 assumeTrue("This test only runs on users of type " + userType,
759 instrumentedUser.type().name().equals(userType));
852 String userType, FailureMode failureMode) {
854 TestApis.users().supportedType(userType);
857 "Device must support user type " + userType
1009 com.android.bedstead.nene.users.UserType userType, UserReference forUser) {
1010 if (userType == null || forUser == null) {
[all …]
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/res/apis/
Dtest-current.txt912 field public String userType;