Merge "Fix the @RequiresPermission annotation." into tm-dev am: 8338395749
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17698251 Change-Id: If885c18d6af186f22e9f51f599ebf7e55de144a5 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -762,7 +762,7 @@ package android.app {
|
|||||||
method public void clearRequireCompatChange();
|
method public void clearRequireCompatChange();
|
||||||
method public boolean isPendingIntentBackgroundActivityLaunchAllowed();
|
method public boolean isPendingIntentBackgroundActivityLaunchAllowed();
|
||||||
method public static android.app.BroadcastOptions makeBasic();
|
method public static android.app.BroadcastOptions makeBasic();
|
||||||
method @RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS) public void recordResponseEventWhileInBackground(@IntRange(from=0) long);
|
method @RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RESPONSE_STATS) public void recordResponseEventWhileInBackground(@IntRange(from=0) long);
|
||||||
method @RequiresPermission(android.Manifest.permission.START_ACTIVITIES_FROM_BACKGROUND) public void setBackgroundActivityStartsAllowed(boolean);
|
method @RequiresPermission(android.Manifest.permission.START_ACTIVITIES_FROM_BACKGROUND) public void setBackgroundActivityStartsAllowed(boolean);
|
||||||
method public void setDontSendToRestrictedApps(boolean);
|
method public void setDontSendToRestrictedApps(boolean);
|
||||||
method public void setPendingIntentBackgroundActivityLaunchAllowed(boolean);
|
method public void setPendingIntentBackgroundActivityLaunchAllowed(boolean);
|
||||||
|
|||||||
@@ -532,7 +532,7 @@ public class BroadcastOptions extends ComponentOptions {
|
|||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
@SystemApi
|
@SystemApi
|
||||||
@RequiresPermission(android.Manifest.permission.PACKAGE_USAGE_STATS)
|
@RequiresPermission(android.Manifest.permission.ACCESS_BROADCAST_RESPONSE_STATS)
|
||||||
public void recordResponseEventWhileInBackground(@IntRange(from = 0) long id) {
|
public void recordResponseEventWhileInBackground(@IntRange(from = 0) long id) {
|
||||||
mIdForResponseEvent = id;
|
mIdForResponseEvent = id;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user