Home
last modified time | relevance | path

Searched refs:POLICY_REJECT_METERED_BACKGROUND (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java21 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
251 POLICY_REJECT_METERED_BACKGROUND); in listRestrictBackgroundDenylist()
323 return setUidPolicy(POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundDenylist()
327 return resetUidPolicy("not blacklisted", POLICY_REJECT_METERED_BACKGROUND); in removeRestrictBackgroundDenylist()
DNetworkPolicyManagerService.java100 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
2885 if ((policy & POLICY_REJECT_METERED_BACKGROUND) != 0) {
3141 final boolean wasDenied = oldPolicy == POLICY_REJECT_METERED_BACKGROUND;
3142 final boolean isDenied = policy == POLICY_REJECT_METERED_BACKGROUND;
3548 if (policy == POLICY_REJECT_METERED_BACKGROUND) {
5431 final boolean isDenied = (uidPolicy & POLICY_REJECT_METERED_BACKGROUND) != 0;
6509 for (int uid : getUidsWithPolicy(POLICY_REJECT_METERED_BACKGROUND)) {
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java23 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
81 uidPoliciesToStringTest(POLICY_REJECT_METERED_BACKGROUND, in testUidPoliciesToString()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java67 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
946 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundDenylist()
948 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundDenylist()
950 .onUidPoliciesChanged(APP_ID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundDenylist()
982 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in removeRestrictBackgroundDenylist()
1003 assertUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testDeniedAppIsNotNotifiedWhenRestrictBackgroundIsOn()
1030 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testAllowedAppIsNotifiedWhenDenylisted()
1055 assertUidPolicy(UID_E, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
1071 mService.setUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
1072 assertUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java83 public static final int POLICY_REJECT_METERED_BACKGROUND = 0x1; field in NetworkPolicyManager