Converted NewUserResponse constructor to testAPI

Bug: 199446283
Test: m
Change-Id: I550c05a3c1e35adba911b1fcf48cc6c072280c14
This commit is contained in:
Mayank Garg
2021-12-21 10:13:34 -08:00
parent 8a42ad2013
commit 59a27ff1ed
2 changed files with 10 additions and 1 deletions

View File

@@ -1671,6 +1671,10 @@ package android.os {
method public void removeSyncBarrier(int);
}
public final class NewUserResponse {
ctor public NewUserResponse(@Nullable android.os.UserHandle, int);
}
public final class PackageTagsList implements android.os.Parcelable {
method public boolean contains(@NonNull String, @Nullable String);
method public boolean contains(@NonNull android.os.PackageTagsList);

View File

@@ -17,6 +17,7 @@ package android.os;
import android.annotation.Nullable;
import android.annotation.SystemApi;
import android.annotation.TestApi;
/**
* Contains the response of the call {@link UserManager#createUser(NewUserRequest)}.
@@ -29,7 +30,11 @@ public final class NewUserResponse {
private final @Nullable UserHandle mUser;
private final @UserManager.UserOperationResult int mOperationResult;
NewUserResponse(@Nullable UserHandle user,
/**
* @hide
*/
@TestApi
public NewUserResponse(@Nullable UserHandle user,
@UserManager.UserOperationResult int operationResult) {
mUser = user;
mOperationResult = operationResult;