Home
last modified time | relevance | path

Searched refs:uidRules (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerInternal.java63 public static boolean isUidNetworkingBlocked(int uid, int uidRules, boolean isNetworkMetered, in isUidNetworkingBlocked() argument
68 return isUidNetworkingBlockedInternal(uid, uidRules, isNetworkMetered, in isUidNetworkingBlocked()
DNetworkPolicyManagerService.java3482 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump() local
3484 fout.print(uidRulesToString(uidRules)); in dump()
3496 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump() local
3498 fout.print(uidRulesToString(uidRules)); in dump()
3671 final SparseIntArray uidRules = rules; in updateRulesForWhitelistedPowerSaveUL() local
3672 uidRules.clear(); in updateRulesForWhitelistedPowerSaveUL()
3676 updateRulesForWhitelistedAppIds(uidRules, mPowerSaveTempWhitelistAppIds, user.id); in updateRulesForWhitelistedPowerSaveUL()
3677 updateRulesForWhitelistedAppIds(uidRules, mPowerSaveWhitelistAppIds, user.id); in updateRulesForWhitelistedPowerSaveUL()
3679 updateRulesForWhitelistedAppIds(uidRules, in updateRulesForWhitelistedPowerSaveUL()
3685 uidRules.put(mUidState.keyAt(i), FIREWALL_RULE_ALLOW); in updateRulesForWhitelistedPowerSaveUL()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java326 public static String uidRulesToString(int uidRules) {
327 final StringBuilder string = new StringBuilder().append(uidRules).append(" (");
328 if (uidRules == RULE_NONE) {
331 string.append(DebugUtils.flagsToString(NetworkPolicyManager.class, "RULE_", uidRules));
379 @Override public void onUidRulesChanged(int uid, int uidRules) { }
DINetworkPolicyListener.aidl21 void onUidRulesChanged(int uid, int uidRules); in onUidRulesChanged() argument
/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java74 private void uidRulesToStringTest(int uidRules, String... expectedOptions) { in uidRulesToStringTest() argument
75 assertContains(uidRulesToString(uidRules), expectedOptions); in uidRulesToStringTest()
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java565 public void onUidRulesChanged(int uid, int uidRules) {
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java1823 public void onUidRulesChanged(int uid, int uidRules) {
1824 mHandler.sendMessage(mHandler.obtainMessage(EVENT_UID_RULES_CHANGED, uid, uidRules));
1869 private boolean isUidNetworkingWithVpnBlocked(int uid, int uidRules, boolean isNetworkMetered, in isUidNetworkingWithVpnBlocked() argument
1883 return mPolicyManagerInternal.isUidNetworkingBlocked(uid, uidRules, in isUidNetworkingWithVpnBlocked()
2378 final int uidRules = mUidRules.get(uid, RULE_NONE); in doDump() local
2379 pw.println("UID=" + uid + " rules=" + uidRulesToString(uidRules)); in doDump()
6654 final int uidRules = mUidRules.get(nri.mUid); in maybeNotifyNetworkBlocked() local
6659 oldBlocked = isUidNetworkingWithVpnBlocked(nri.mUid, uidRules, oldMetered, in maybeNotifyNetworkBlocked()
6661 newBlocked = isUidNetworkingWithVpnBlocked(nri.mUid, uidRules, newMetered, in maybeNotifyNetworkBlocked()
/frameworks/base/tests/net/java/com/android/server/
DConnectivityServiceTest.java1245 public void setUidRulesChanged(int uidRules) { in setUidRulesChanged() argument
1247 mPolicyListener.onUidRulesChanged(Process.myUid(), uidRules); in setUidRulesChanged() local