Searched refs:setUidPolicy (Results 1 – 5 of 5) sorted by relevance
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerShellCommand.java | 239 private int setUidPolicy(int policy) throws RemoteException { in setUidPolicy() method in NetworkPolicyManagerShellCommand 244 mInterface.setUidPolicy(uid, policy); in setUidPolicy() 259 mInterface.setUidPolicy(uid, POLICY_NONE); in resetUidPolicy() 264 return setUidPolicy(POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist() 272 return setUidPolicy(POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
|
D | NetworkPolicyManagerService.java | 2075 public void setUidPolicy(int uid, int policy) { in setUidPolicy() method 4042 setUidPolicy(uid, POLICY_NONE); in factoryReset()
|
/frameworks/base/core/java/android/net/ |
D | INetworkPolicyManager.aidl | 33 void setUidPolicy(int uid, int policy); in setUidPolicy() method
|
D | NetworkPolicyManager.java | 135 public void setUidPolicy(int uid, int policy) { in setUidPolicy() method in NetworkPolicyManager 137 mService.setUidPolicy(uid, policy); in setUidPolicy()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 442 mService.setUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist() 563 mService.setUidPolicy(UID_A, POLICY_NONE); in removeRestrictBackgroundWhitelist() 600 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist() 638 mService.setUidPolicy(UID_A, POLICY_NONE); in removeRestrictBackgroundBlacklist() 685 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testWhitelistedAppIsNotifiedWhenBlacklisted() 716 mService.setUidPolicy(UID_A, POLICY_NONE); in restrictBackgroundListsTest() 721 mService.setUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest() 726 mService.setUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()
|