/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerInternal.java | 65 public static boolean isUidNetworkingBlocked(int uid, int uidRules, boolean isNetworkMetered, in isUidNetworkingBlocked() argument 70 return isUidNetworkingBlockedInternal(uid, uidRules, isNetworkMetered, in isUidNetworkingBlocked()
|
D | NetworkPolicyManagerService.java | 3575 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump() local 3577 fout.print(uidRulesToString(uidRules)); in dump() 3589 final int uidRules = mUidRules.get(uid, RULE_NONE); in dump() local 3591 fout.print(uidRulesToString(uidRules)); in dump() 3764 final SparseIntArray uidRules = rules; in updateRulesForWhitelistedPowerSaveUL() local 3765 uidRules.clear(); in updateRulesForWhitelistedPowerSaveUL() 3769 updateRulesForWhitelistedAppIds(uidRules, mPowerSaveTempWhitelistAppIds, user.id); in updateRulesForWhitelistedPowerSaveUL() 3770 updateRulesForWhitelistedAppIds(uidRules, mPowerSaveWhitelistAppIds, user.id); in updateRulesForWhitelistedPowerSaveUL() 3772 updateRulesForWhitelistedAppIds(uidRules, in updateRulesForWhitelistedPowerSaveUL() 3778 uidRules.put(mUidState.keyAt(i), FIREWALL_RULE_ALLOW); in updateRulesForWhitelistedPowerSaveUL() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 497 public static String uidRulesToString(int uidRules) { 498 final StringBuilder string = new StringBuilder().append(uidRules).append(" ("); 499 if (uidRules == RULE_NONE) { 502 string.append(DebugUtils.flagsToString(NetworkPolicyManager.class, "RULE_", uidRules)); 598 @Override public void onUidRulesChanged(int uid, int uidRules) { }
|
D | INetworkPolicyListener.aidl | 22 void onUidRulesChanged(int uid, int uidRules); in onUidRulesChanged() argument
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 74 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/ |
D | ConnectivityController.java | 565 public void onUidRulesChanged(int uid, int uidRules) {
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 1986 public void onUidRulesChanged(int uid, int uidRules) { 1987 mHandler.sendMessage(mHandler.obtainMessage(EVENT_UID_RULES_CHANGED, uid, uidRules)); 2026 private boolean isUidNetworkingWithVpnBlocked(int uid, int uidRules, boolean isNetworkMetered, in isUidNetworkingWithVpnBlocked() argument 2040 return NetworkPolicyManagerInternal.isUidNetworkingBlocked(uid, uidRules, in isUidNetworkingWithVpnBlocked() 2554 final int uidRules = mUidRules.get(uid, RULE_NONE); in doDump() local 2555 pw.println("UID=" + uid + " rules=" + uidRulesToString(uidRules)); in doDump() 7281 final int uidRules = mUidRules.get(nri.mUid); in maybeNotifyNetworkBlocked() local 7286 oldBlocked = isUidNetworkingWithVpnBlocked(nri.mUid, uidRules, oldMetered, in maybeNotifyNetworkBlocked() 7288 newBlocked = isUidNetworkingWithVpnBlocked(nri.mUid, uidRules, newMetered, in maybeNotifyNetworkBlocked()
|
/frameworks/base/tests/net/java/com/android/server/ |
D | ConnectivityServiceTest.java | 1148 private void setUidRulesChanged(int uidRules) throws RemoteException { in setUidRulesChanged() argument 1149 mPolicyListener.onUidRulesChanged(Process.myUid(), uidRules); in setUidRulesChanged() local
|