Home
last modified time | relevance | path

Searched refs:ALLOWED_REASON_FOREGROUND (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java243 public static final int ALLOWED_REASON_FOREGROUND = 1 << 1; field in NetworkPolicyManager
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java53 import static android.net.NetworkPolicyManager.ALLOWED_REASON_FOREGROUND;
2580 Pair.create(BLOCKED_REASON_BATTERY_SAVER, ALLOWED_REASON_FOREGROUND), in testUpdateEffectiveBlockedReasons()
2583 ALLOWED_REASON_FOREGROUND), BLOCKED_REASON_NONE); in testUpdateEffectiveBlockedReasons()
2592 ALLOWED_REASON_FOREGROUND), BLOCKED_METERED_REASON_DATA_SAVER); in testUpdateEffectiveBlockedReasons()
2598 ALLOWED_REASON_FOREGROUND), BLOCKED_REASON_LOW_POWER_STANDBY); in testUpdateEffectiveBlockedReasons()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java85 import static android.net.NetworkPolicyManager.ALLOWED_REASON_FOREGROUND;
5609 newAllowedReasons |= (isForeground ? ALLOWED_REASON_FOREGROUND : 0);
6863 if ((allowedReasons & ALLOWED_REASON_FOREGROUND) != 0) {
6904 return ALLOWED_REASON_TOP | ALLOWED_REASON_FOREGROUND
6907 return ALLOWED_REASON_FOREGROUND | ALLOWED_METERED_REASON_FOREGROUND
6945 ALLOWED_REASON_FOREGROUND,
6991 case ALLOWED_REASON_FOREGROUND: