Merge "Add [get|set]MaxManifestReceiverApiLevel to test api for CTS" into sc-dev am: 68c58b9ccd

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14161095

Change-Id: Ide6860fbe5ed06e717b72b25f24481bf62fb7ec5
This commit is contained in:
Paul Hu
2021-04-14 04:56:04 +00:00
committed by Automerger Merge Worker
2 changed files with 4 additions and 0 deletions

View File

@@ -263,10 +263,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 {

View File

@@ -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;