Merge changes from topic "low-power-standby-connectivity"
* changes: Define BLOCKED_REASON_LOW_POWER_STANDBY Define FIREWALL_CHAIN_LOW_POWER_STANDBY
This commit is contained in:
@@ -876,6 +876,15 @@ public class ConnectivityManager {
|
||||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||
public static final int BLOCKED_REASON_LOCKDOWN_VPN = 1 << 4;
|
||||
|
||||
/**
|
||||
* Flag to indicate that an app is subject to Low Power Standby restrictions that would
|
||||
* result in its network access being blocked.
|
||||
*
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi(client = SystemApi.Client.MODULE_LIBRARIES)
|
||||
public static final int BLOCKED_REASON_LOW_POWER_STANDBY = 1 << 5;
|
||||
|
||||
/**
|
||||
* Flag to indicate that an app is subject to Data saver restrictions that would
|
||||
* result in its metered network access being blocked.
|
||||
@@ -914,6 +923,7 @@ public class ConnectivityManager {
|
||||
BLOCKED_REASON_APP_STANDBY,
|
||||
BLOCKED_REASON_RESTRICTED_MODE,
|
||||
BLOCKED_REASON_LOCKDOWN_VPN,
|
||||
BLOCKED_REASON_LOW_POWER_STANDBY,
|
||||
BLOCKED_METERED_REASON_DATA_SAVER,
|
||||
BLOCKED_METERED_REASON_USER_RESTRICTED,
|
||||
BLOCKED_METERED_REASON_ADMIN_DISABLED,
|
||||
@@ -963,13 +973,22 @@ public class ConnectivityManager {
|
||||
@SystemApi(client = MODULE_LIBRARIES)
|
||||
public static final int FIREWALL_CHAIN_RESTRICTED = 4;
|
||||
|
||||
/**
|
||||
* Firewall chain used for low power standby.
|
||||
* Allowlist of apps that have access in low power standby.
|
||||
* @hide
|
||||
*/
|
||||
@SystemApi(client = MODULE_LIBRARIES)
|
||||
public static final int FIREWALL_CHAIN_LOW_POWER_STANDBY = 5;
|
||||
|
||||
/** @hide */
|
||||
@Retention(RetentionPolicy.SOURCE)
|
||||
@IntDef(flag = false, prefix = "FIREWALL_CHAIN_", value = {
|
||||
FIREWALL_CHAIN_DOZABLE,
|
||||
FIREWALL_CHAIN_STANDBY,
|
||||
FIREWALL_CHAIN_POWERSAVE,
|
||||
FIREWALL_CHAIN_RESTRICTED
|
||||
FIREWALL_CHAIN_RESTRICTED,
|
||||
FIREWALL_CHAIN_LOW_POWER_STANDBY
|
||||
})
|
||||
public @interface FirewallChain {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user