Searched refs:RULE_ALLOW_METERED (Results 1 – 2 of 2) sorted by relevance
25 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;48 uidRulesToStringTest(RULE_ALLOW_METERED, "1 (ALLOW_METERED)"); in testUidRulesToString()54 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_ALLOW_ALL, in testUidRulesToString()57 uidRulesToStringTest(RULE_ALLOW_METERED | RULE_REJECT_ALL, in testUidRulesToString()96 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()97 & RULE_ALLOW_METERED); in testMeteredNetworksMask()98 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()99 & (RULE_ALLOW_METERED | RULE_ALLOW_ALL)); in testMeteredNetworksMask()100 assertEquals(RULE_ALLOW_METERED, MASK_METERED_NETWORKS in testMeteredNetworksMask()101 & (RULE_ALLOW_METERED | RULE_REJECT_ALL)); in testMeteredNetworksMask()[all …]
116 public static final int RULE_ALLOW_METERED = 1 << 0; field in NetworkPolicyManager