Merge "Add [get|set]MaxManifestReceiverApiLevel to test api for CTS" into sc-dev
This commit is contained in:
@@ -263,10 +263,12 @@ package android.app {
|
|||||||
|
|
||||||
public class BroadcastOptions {
|
public class BroadcastOptions {
|
||||||
ctor public BroadcastOptions(@NonNull android.os.Bundle);
|
ctor public BroadcastOptions(@NonNull android.os.Bundle);
|
||||||
|
method public int getMaxManifestReceiverApiLevel();
|
||||||
method public long getTemporaryAppAllowlistDuration();
|
method public long getTemporaryAppAllowlistDuration();
|
||||||
method @Nullable public String getTemporaryAppAllowlistReason();
|
method @Nullable public String getTemporaryAppAllowlistReason();
|
||||||
method public int getTemporaryAppAllowlistReasonCode();
|
method public int getTemporaryAppAllowlistReasonCode();
|
||||||
method public int getTemporaryAppAllowlistType();
|
method public int getTemporaryAppAllowlistType();
|
||||||
|
method public void setMaxManifestReceiverApiLevel(int);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class DownloadManager {
|
public class DownloadManager {
|
||||||
|
|||||||
@@ -250,6 +250,7 @@ public class BroadcastOptions {
|
|||||||
* them. This only applies to receivers declared in the app's AndroidManifest.xml.
|
* them. This only applies to receivers declared in the app's AndroidManifest.xml.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@TestApi
|
||||||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||||
public void setMaxManifestReceiverApiLevel(int apiLevel) {
|
public void setMaxManifestReceiverApiLevel(int apiLevel) {
|
||||||
mMaxManifestReceiverApiLevel = apiLevel;
|
mMaxManifestReceiverApiLevel = apiLevel;
|
||||||
@@ -259,6 +260,7 @@ public class BroadcastOptions {
|
|||||||
* Return {@link #setMaxManifestReceiverApiLevel}.
|
* Return {@link #setMaxManifestReceiverApiLevel}.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
|
@TestApi
|
||||||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||||
public int getMaxManifestReceiverApiLevel() {
|
public int getMaxManifestReceiverApiLevel() {
|
||||||
return mMaxManifestReceiverApiLevel;
|
return mMaxManifestReceiverApiLevel;
|
||||||
|
|||||||
Reference in New Issue
Block a user