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

Commit 8337a179 authored by Wale Ogunwale's avatar Wale Ogunwale Committed by Android (Google) Code Review
Browse files

Merge "Added @TestApi to some TaskInfo.java methods"

parents d85e7058 20e734b8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -296,7 +296,9 @@ package android.app {
  }

  public class TaskInfo {
    method public boolean containsLaunchCookie(@NonNull android.os.IBinder);
    method @NonNull public android.content.res.Configuration getConfiguration();
    method public int getParentTaskId();
    method @Nullable public android.app.PictureInPictureParams getPictureInPictureParams();
    method @NonNull public android.window.WindowContainerToken getToken();
    method public boolean hasParentTask();
+19 −0
Original line number Diff line number Diff line
@@ -36,6 +36,7 @@ import android.window.TaskSnapshot;
import android.window.WindowContainerToken;

import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/**
@@ -279,6 +280,24 @@ public class TaskInfo {
        launchCookies.add(cookie);
    }

    /**
     * @return {@code true} if this task contains the launch cookie.
     * @hide
     */
    @TestApi
    public boolean containsLaunchCookie(@NonNull IBinder cookie) {
        return launchCookies.contains(cookie);
    }

    /**
     * @return The parent task id of this task.
     * @hide
     */
    @TestApi
    public int getParentTaskId() {
        return parentTaskId;
    }

    /** @hide */
    @TestApi
    public boolean hasParentTask() {