Home
last modified time | relevance | path

Searched refs:NetworkPolicyManager (Results 1 – 25 of 37) 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/core/java/android/net/
DNetworkPolicyManager.java50 public class NetworkPolicyManager { class
119 public NetworkPolicyManager(Context context, INetworkPolicyManager service) { in NetworkPolicyManager() method in NetworkPolicyManager
128 public static NetworkPolicyManager from(Context context) { in from()
129 return (NetworkPolicyManager) context.getSystemService(Context.NETWORK_POLICY_SERVICE); in from()
331 string.append(DebugUtils.flagsToString(NetworkPolicyManager.class, "RULE_", uidRules));
345 string.append(DebugUtils.flagsToString(NetworkPolicyManager.class,
/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/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/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.java52 import static android.net.NetworkPolicyManager.EXTRA_NETWORK_TEMPLATE;
53 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
54 import static android.net.NetworkPolicyManager.MASK_ALL_NETWORKS;
55 import static android.net.NetworkPolicyManager.MASK_METERED_NETWORKS;
56 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
57 import static android.net.NetworkPolicyManager.POLICY_NONE;
58 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
59 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
60 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
61 import static android.net.NetworkPolicyManager.RULE_NONE;
[all …]
/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.java47 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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcController.java24 import android.net.NetworkPolicyManager;
72 final NetworkPolicyManager mNetworkPolicyManager;
110 mNetworkPolicyManager = (NetworkPolicyManager) phone.getContext() in DcController()
176 private final INetworkPolicyListener mListener = new NetworkPolicyManager.Listener() {
/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/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java51 import android.net.NetworkPolicyManager;
98 @Mock private NetworkPolicyManager mNPM;
143 mockService(Context.NETWORK_POLICY_SERVICE, NetworkPolicyManager.class, mNPM); in setUp()
/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/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;
863 NetworkPolicyManager networkPolicyManager = in getNetworkPolicies()
864 (NetworkPolicyManager) getSystemService(NETWORK_POLICY_SERVICE); in getNetworkPolicies()
905 NetworkPolicyManager networkPolicyManager = in restoreNetworkPolicies()
906 (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/core/java/android/provider/
DDownloads.java22 import android.net.NetworkPolicyManager;

12