Merge "Converted NewUserResponse constructor to testAPI"
This commit is contained in:
@@ -1679,6 +1679,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);
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user