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.java260 private int setUidPolicy(int policy) throws RemoteException { in setUidPolicy() method in NetworkPolicyManagerShellCommand
265 mInterface.setUidPolicy(uid, policy); in setUidPolicy()
280 mInterface.setUidPolicy(uid, POLICY_NONE); in resetUidPolicy()
285 return setUidPolicy(POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
293 return setUidPolicy(POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
DNetworkPolicyManagerService.java2535 public void setUidPolicy(int uid, int policy) { in setUidPolicy() method
4965 setUidPolicy(uid, POLICY_NONE); in factoryReset()
/frameworks/base/core/java/android/net/
DINetworkPolicyManager.aidl35 void setUidPolicy(int uid, int policy); in setUidPolicy() method
DNetworkPolicyManager.java139 public void setUidPolicy(int uid, int policy) { in setUidPolicy() method in NetworkPolicyManager
141 mService.setUidPolicy(uid, policy); in setUidPolicy()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java501 mService.setUidPolicy(UID_A, POLICY_ALLOW_METERED_BACKGROUND); in addRestrictBackgroundWhitelist()
621 mService.setUidPolicy(UID_A, POLICY_NONE); in removeRestrictBackgroundWhitelist()
658 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in addRestrictBackgroundBlacklist()
696 mService.setUidPolicy(UID_A, POLICY_NONE); in removeRestrictBackgroundBlacklist()
743 mService.setUidPolicy(UID_A, POLICY_REJECT_METERED_BACKGROUND); in testWhitelistedAppIsNotifiedWhenBlacklisted()
774 mService.setUidPolicy(UID_A, POLICY_NONE); in restrictBackgroundListsTest()
779 mService.setUidPolicy(UID_E, POLICY_ALLOW_METERED_BACKGROUND); in restrictBackgroundListsTest()
784 mService.setUidPolicy(UID_B, POLICY_REJECT_METERED_BACKGROUND); in restrictBackgroundListsTest()