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

Commit 4c7720ba authored by paulhu's avatar paulhu
Browse files

Add [get|set]MaxManifestReceiverApiLevel to test api for CTS

Bug: 185184155
Test: m update-api
Change-Id: I73087f071e9cff7fd88e137eac8993738589772c
parent bd888709
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -255,10 +255,12 @@ package android.app {

  public class BroadcastOptions {
    ctor public BroadcastOptions(@NonNull android.os.Bundle);
    method public int getMaxManifestReceiverApiLevel();
    method public long getTemporaryAppAllowlistDuration();
    method @Nullable public String getTemporaryAppAllowlistReason();
    method public int getTemporaryAppAllowlistReasonCode();
    method public int getTemporaryAppAllowlistType();
    method public void setMaxManifestReceiverApiLevel(int);
  }

  public class DownloadManager {
+2 −0
Original line number Diff line number Diff line
@@ -250,6 +250,7 @@ public class BroadcastOptions {
     * them.  This only applies to receivers declared in the app's AndroidManifest.xml.
     * @hide
     */
    @TestApi
    @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
    public void setMaxManifestReceiverApiLevel(int apiLevel) {
        mMaxManifestReceiverApiLevel = apiLevel;
@@ -259,6 +260,7 @@ public class BroadcastOptions {
     * Return {@link #setMaxManifestReceiverApiLevel}.
     * @hide
     */
    @TestApi
    @SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
    public int getMaxManifestReceiverApiLevel() {
        return mMaxManifestReceiverApiLevel;