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

Commit 59a27ff1 authored by Mayank Garg's avatar Mayank Garg
Browse files

Converted NewUserResponse constructor to testAPI

Bug: 199446283
Test: m
Change-Id: I550c05a3c1e35adba911b1fcf48cc6c072280c14
parent 8a42ad20
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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);
+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;