Home
last modified time | relevance | path

Searched refs:NetworkPolicyManager (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java19 import static android.net.NetworkPolicyManager.MASK_ALL_NETWORKS;
20 import static android.net.NetworkPolicyManager.MASK_METERED_NETWORKS;
21 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
22 import static android.net.NetworkPolicyManager.POLICY_NONE;
23 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
24 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
25 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
26 import static android.net.NetworkPolicyManager.RULE_NONE;
27 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
28 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDataSaverControllerImpl.java19 import android.net.NetworkPolicyManager;
30 private final NetworkPolicyManager mPolicyManager;
33 mPolicyManager = NetworkPolicyManager.from(context); in DataSaverControllerImpl()
75 private final INetworkPolicyListener mPolicyListener = new NetworkPolicyManager.Listener() {
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkManagementInternalTest.java24 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
31 import android.net.NetworkPolicyManager;
130 valueToString(NetworkPolicyManager.class, "FIREWALL_CHAIN_", chain), in testIsNetworkRestrictedForUid()
131 valueToString(NetworkPolicyManager.class, "FIREWALL_RULE_", state)); in testIsNetworkRestrictedForUid()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerShellCommand.java19 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
20 import static android.net.NetworkPolicyManager.POLICY_NONE;
21 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
24 import android.net.NetworkPolicyManager;
332 pw.print(NetworkPolicyManager.resolveNetworkId(config)); in listWifiNetworks()
352 mInterface.setWifiMeteredOverride(NetworkPolicyManager.resolveNetworkId(networkId), in setMeteredWifiNetwork()
DNetworkPolicyLogger.java23 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_DOZABLE;
24 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_POWERSAVE;
25 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_STANDBY;
26 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
29 import android.net.NetworkPolicyManager;
246 + NetworkPolicyManager.uidPoliciesToString(oldPolicy) + " to " in getPolicyChangedLog()
247 + NetworkPolicyManager.uidPoliciesToString(newPolicy); in getPolicyChangedLog()
DNetworkPolicyManagerService.java56 import static android.net.NetworkPolicyManager.EXTRA_NETWORK_TEMPLATE;
57 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
58 import static android.net.NetworkPolicyManager.MASK_ALL_NETWORKS;
59 import static android.net.NetworkPolicyManager.MASK_METERED_NETWORKS;
60 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
61 import static android.net.NetworkPolicyManager.POLICY_NONE;
62 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
63 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
64 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
65 import static android.net.NetworkPolicyManager.RULE_NONE;
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DNetworkPolicyEditorTest.java22 import android.net.NetworkPolicyManager;
48 NetworkPolicyManager policyManager = NetworkPolicyManager.from(InstrumentationRegistry in setUp()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java58 public class NetworkPolicyManager { class
191 public NetworkPolicyManager(Context context, INetworkPolicyManager service) { in NetworkPolicyManager() method in NetworkPolicyManager
201 public static NetworkPolicyManager from(Context context) { in from()
202 return (NetworkPolicyManager) context.getSystemService(Context.NETWORK_POLICY_SERVICE); in from()
502 string.append(DebugUtils.flagsToString(NetworkPolicyManager.class, "RULE_", uidRules));
516 string.append(DebugUtils.flagsToString(NetworkPolicyManager.class,
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleChartDataLoaderTest.java25 import android.net.NetworkPolicyManager;
43 private NetworkPolicyManager mNetworkPolicyManager;
DNetworkCycleDataForUidLoaderTest.java32 import android.net.NetworkPolicyManager;
50 private NetworkPolicyManager mNetworkPolicyManager;
DNetworkCycleDataLoaderTest.java33 import android.net.NetworkPolicyManager;
59 private NetworkPolicyManager mNetworkPolicyManager;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DNetworkCycleDataLoader.java28 import android.net.NetworkPolicyManager;
67 new NetworkPolicyEditor(NetworkPolicyManager.from(builder.mContext)); in NetworkCycleDataLoader()
92 NetworkPolicyManager.cycleIterator(mPolicy); in loadPolicyData()
DDataUsageController.java34 import android.net.NetworkPolicyManager;
64 private final NetworkPolicyManager mPolicyManager;
77 mPolicyManager = NetworkPolicyManager.from(mContext); in DataUsageController()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java28 import android.net.NetworkPolicyManager;
53 private NetworkPolicyManager mPolicyManager;
56 public NetworkPolicyEditor(NetworkPolicyManager policyManager) { in NetworkPolicyEditor()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java49 import android.net.NetworkPolicyManager;
109 private NetworkPolicyManager mNPM;
113 private NetworkPolicyManager.Listener mPolicyListener;
147 mNPM = mContext.getSystemService(NetworkPolicyManager.class); in start()
501 mPolicyListener = new NetworkPolicyManager.Listener() { in registerNetworkPolicyListener()
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java43 import android.net.NetworkPolicyManager;
485 NetworkPolicyManager networkPolicyManager = NetworkPolicyManager.from(getContext());
491 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
495 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
/frameworks/base/services/core/java/com/android/server/job/controllers/
DConnectivityController.java30 import android.net.NetworkPolicyManager;
73 private final NetworkPolicyManager mNetPolicyManager;
101 mNetPolicyManager = mContext.getSystemService(NetworkPolicyManager.class); in ConnectivityController()
555 private final INetworkPolicyListener mNetPolicyListener = new NetworkPolicyManager.Listener() {
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java51 import android.net.NetworkPolicyManager;
99 @Mock private NetworkPolicyManager mNPM;
144 mockService(Context.NETWORK_POLICY_SERVICE, NetworkPolicyManager.class, mNPM); in setUp()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java26 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
27 import static android.net.NetworkPolicyManager.POLICY_NONE;
28 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
29 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
30 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
31 import static android.net.NetworkPolicyManager.RULE_NONE;
32 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
33 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
34 import static android.net.NetworkPolicyManager.RULE_TEMPORARY_ALLOW_METERED;
35 import static android.net.NetworkPolicyManager.uidPoliciesToString;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java19 import static android.net.NetworkPolicyManager.EXTRA_NETWORK_TEMPLATE;
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java30 import android.net.NetworkPolicyManager;
882 NetworkPolicyManager networkPolicyManager = in getNetworkPolicies()
883 (NetworkPolicyManager) getSystemService(NETWORK_POLICY_SERVICE); in getNetworkPolicies()
924 NetworkPolicyManager networkPolicyManager = in restoreNetworkPolicies()
925 (NetworkPolicyManager) getSystemService(NETWORK_POLICY_SERVICE); in restoreNetworkPolicies()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java53 import android.net.NetworkPolicyManager;
83 private NetworkPolicyManager mNetPolicyManager;
124 when(mContext.getSystemServiceName(NetworkPolicyManager.class)) in setUp()
126 when(mContext.getSystemService(NetworkPolicyManager.class)) in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/
DJobSchedulerServiceTest.java47 import android.net.NetworkPolicyManager;
112 when(mContext.getSystemService(NetworkPolicyManager.class)) in setUp()
113 .thenReturn(mock(NetworkPolicyManager.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java31 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_DOZABLE;
32 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_POWERSAVE;
33 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_STANDBY;
34 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
56 import android.net.NetworkPolicyManager;
1814 if (rule == NetworkPolicyManager.FIREWALL_RULE_DEFAULT) { in updateFirewallUidRuleLocked()
1858 if (rule == NetworkPolicyManager.FIREWALL_RULE_DEFAULT) { in getFirewallRuleType()
/frameworks/base/core/java/android/provider/
DDownloads.java22 import android.net.NetworkPolicyManager;

12