Merge "Fix the @RequiresPermission annotation." into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
8338395749
@@ -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