Make LocationProvider exemption SystemApi
LocationProviders can be defined outside the system server, and still need access to this API. Bug: 185505208 Test: presubmits Change-Id: If50a200f8cb4c30fb3fff741b1751278aa4eb293
This commit is contained in:
@@ -283,9 +283,10 @@ public class PowerExemptionManager {
|
||||
*/
|
||||
public static final int REASON_PACKAGE_REPLACED = 311;
|
||||
/**
|
||||
* LocationProviderManager.
|
||||
* LocationProvider.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int REASON_LOCATION_PROVIDER = 312;
|
||||
/**
|
||||
* MediaButtonReceiver.
|
||||
|
||||
@@ -284,9 +284,10 @@ public class PowerWhitelistManager {
|
||||
*/
|
||||
public static final int REASON_PACKAGE_REPLACED = PowerExemptionManager.REASON_PACKAGE_REPLACED;
|
||||
/**
|
||||
* LocationProviderManager.
|
||||
* LocationProvider.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi
|
||||
public static final int REASON_LOCATION_PROVIDER =
|
||||
PowerExemptionManager.REASON_LOCATION_PROVIDER;
|
||||
/**
|
||||
|
||||
@@ -8372,6 +8372,7 @@ package android.os {
|
||||
field public static final int REASON_ACCOUNT_TRANSFER = 104; // 0x68
|
||||
field public static final int REASON_ACTIVITY_RECOGNITION = 103; // 0x67
|
||||
field public static final int REASON_GEOFENCING = 100; // 0x64
|
||||
field public static final int REASON_LOCATION_PROVIDER = 312; // 0x138
|
||||
field public static final int REASON_OTHER = 1; // 0x1
|
||||
field public static final int REASON_PUSH_MESSAGING = 101; // 0x65
|
||||
field public static final int REASON_PUSH_MESSAGING_OVER_QUOTA = 102; // 0x66
|
||||
@@ -8424,6 +8425,7 @@ package android.os {
|
||||
field @Deprecated public static final int EVENT_UNSPECIFIED = 0; // 0x0
|
||||
field @Deprecated public static final int REASON_ACTIVITY_RECOGNITION = 103; // 0x67
|
||||
field @Deprecated public static final int REASON_GEOFENCING = 100; // 0x64
|
||||
field @Deprecated public static final int REASON_LOCATION_PROVIDER = 312; // 0x138
|
||||
field @Deprecated public static final int REASON_OTHER = 1; // 0x1
|
||||
field @Deprecated public static final int REASON_PUSH_MESSAGING = 101; // 0x65
|
||||
field @Deprecated public static final int REASON_PUSH_MESSAGING_OVER_QUOTA = 102; // 0x66
|
||||
|
||||
Reference in New Issue
Block a user