Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bb506835 authored by Mayank Garg's avatar Mayank Garg Committed by Android (Google) Code Review
Browse files

Merge "Converted NewUserResponse constructor to testAPI"

parents 6f01f95a 59a27ff1
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
+6 −1
Original line number Diff line number Diff line
@@ -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;