Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java239 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()
DNetworkPolicyManagerService.java2075 public void setUidPolicy(int uid, int policy) { in setUidPolicy() method
4042 setUidPolicy(uid, POLICY_NONE); in factoryReset()
/frameworks/base/core/java/android/net/
DINetworkPolicyManager.aidl33 void setUidPolicy(int uid, int policy); in setUidPolicy() method
DNetworkPolicyManager.java135 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/
DNetworkPolicyManagerServiceTest.java442 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()