Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/net/
DNetworkPolicyManagerTest.java18 import static android.net.NetworkPolicyManager.MASK_ALL_NETWORKS;
19 import static android.net.NetworkPolicyManager.MASK_METERED_NETWORKS;
20 import static android.net.NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND;
21 import static android.net.NetworkPolicyManager.POLICY_NONE;
22 import static android.net.NetworkPolicyManager.POLICY_REJECT_METERED_BACKGROUND;
23 import static android.net.NetworkPolicyManager.RULE_ALLOW_ALL;
24 import static android.net.NetworkPolicyManager.RULE_ALLOW_METERED;
25 import static android.net.NetworkPolicyManager.RULE_NONE;
26 import static android.net.NetworkPolicyManager.RULE_REJECT_ALL;
27 import static android.net.NetworkPolicyManager.RULE_REJECT_METERED;
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkManagementInternalTest.java19 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_DOZABLE;
20 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_POWERSAVE;
21 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_STANDBY;
22 import static android.net.NetworkPolicyManager.FIREWALL_RULE_ALLOW;
23 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
24 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DENY;
31 import android.net.NetworkPolicyManager;
129 valueToString(NetworkPolicyManager.class, "FIREWALL_CHAIN_", chain), in testIsNetworkRestrictedForUid()
130 valueToString(NetworkPolicyManager.class, "FIREWALL_RULE_", state)); in testIsNetworkRestrictedForUid()
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.uidPoliciesToString;
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDataSaverControllerImpl.java19 import android.net.NetworkPolicyManager;
32 private final NetworkPolicyManager mPolicyManager;
35 mPolicyManager = NetworkPolicyManager.from(context); in DataSaverControllerImpl()
77 private final INetworkPolicyListener mPolicyListener = new NetworkPolicyManager.Listener() {
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyLogger.java18 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_DOZABLE;
19 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_DOZABLE;
20 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_POWERSAVE;
21 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_STANDBY;
22 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_POWERSAVE;
23 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_STANDBY;
24 import static android.net.NetworkPolicyManager.FIREWALL_RULE_ALLOW;
25 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
26 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DENY;
29 import android.net.NetworkPolicyManager;
[all …]
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;
295 pw.print(NetworkPolicyManager.resolveNetworkId(config)); in listWifiNetworks()
315 mInterface.setWifiMeteredOverride(NetworkPolicyManager.resolveNetworkId(networkId), in setMeteredWifiNetwork()
DLockdownVpnTracker.java20 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NONE;
21 import static android.net.NetworkPolicyManager.FIREWALL_RULE_ALLOW;
22 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
38 import android.net.NetworkPolicyManager;
DNetworkPolicyManagerService.java47 import static android.net.NetworkPolicyManager.EXTRA_NETWORK_TEMPLATE;
48 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_DOZABLE;
49 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_POWERSAVE;
50 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_STANDBY;
51 import static android.net.NetworkPolicyManager.FIREWALL_RULE_ALLOW;
52 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
53 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DENY;
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;
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java48 public class NetworkPolicyManager { class
126 public NetworkPolicyManager(Context context, INetworkPolicyManager service) { in NetworkPolicyManager() method in NetworkPolicyManager
134 public static NetworkPolicyManager from(Context context) { in from()
135 return (NetworkPolicyManager) context.getSystemService(Context.NETWORK_POLICY_SERVICE); in from()
329 string.append(DebugUtils.flagsToString(NetworkPolicyManager.class, "RULE_", uidRules));
343 string.append(DebugUtils.flagsToString(NetworkPolicyManager.class,
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DNetworkPolicyEditorTest.java20 import android.net.NetworkPolicyManager;
45 NetworkPolicyManager policyManager = NetworkPolicyManager.from(InstrumentationRegistry in setUp()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java32 import android.net.NetworkPolicyManager;
62 private final NetworkPolicyManager mPolicyManager;
74 mPolicyManager = NetworkPolicyManager.from(mContext); in DataUsageController()
138 final Pair<ZonedDateTime, ZonedDateTime> cycle = NetworkPolicyManager in getDataUsageInfo()
/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/job/controllers/
DConnectivityController.java30 import android.net.NetworkPolicyManager;
66 private final NetworkPolicyManager mNetPolicyManager;
75 mNetPolicyManager = mContext.getSystemService(NetworkPolicyManager.class); in ConnectivityController()
322 private final INetworkPolicyListener mNetPolicyListener = new NetworkPolicyManager.Listener() {
/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/base/services/core/java/com/android/server/
DNetworkManagementService.java24 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_DOZABLE;
25 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_DOZABLE;
26 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_NONE;
27 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_POWERSAVE;
28 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NAME_STANDBY;
29 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_NONE;
30 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_POWERSAVE;
31 import static android.net.NetworkPolicyManager.FIREWALL_CHAIN_STANDBY;
32 import static android.net.NetworkPolicyManager.FIREWALL_RULE_ALLOW;
33 import static android.net.NetworkPolicyManager.FIREWALL_RULE_DEFAULT;
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcController.java23 import android.net.NetworkPolicyManager;
81 final NetworkPolicyManager mNetworkPolicyManager;
119 mNetworkPolicyManager = (NetworkPolicyManager) phone.getContext() in DcController()
185 private final INetworkPolicyListener mListener = new NetworkPolicyManager.Listener() {
/frameworks/base/services/companion/java/com/android/server/companion/
DCompanionDeviceManagerService.java43 import android.net.NetworkPolicyManager;
462 NetworkPolicyManager networkPolicyManager = NetworkPolicyManager.from(getContext());
468 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
472 NetworkPolicyManager.POLICY_ALLOW_METERED_BACKGROUND);
/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java45 import android.net.NetworkPolicyManager;
69 @Mock private NetworkPolicyManager mNetPolicyManager;
102 when(mContext.getSystemServiceName(NetworkPolicyManager.class)) in setUp()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java52 import android.net.NetworkPolicyManager;
98 @Mock private NetworkPolicyManager mNPM;
143 mockService(Context.NETWORK_POLICY_SERVICE, NetworkPolicyManager.class, mNPM); in setUp()
/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;
851 NetworkPolicyManager networkPolicyManager = in getNetworkPolicies()
852 (NetworkPolicyManager) getSystemService(NETWORK_POLICY_SERVICE); in getNetworkPolicies()
893 NetworkPolicyManager networkPolicyManager = in restoreNetworkPolicies()
894 (NetworkPolicyManager) getSystemService(NETWORK_POLICY_SERVICE); in restoreNetworkPolicies()
/frameworks/base/core/java/android/provider/
DDownloads.java21 import android.net.NetworkPolicyManager;
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java86 import android.net.NetworkPolicyManager;
392 registerService(Context.NETWORK_POLICY_SERVICE, NetworkPolicyManager.class, in registerService()
393 new CachedServiceFetcher<NetworkPolicyManager>() { in registerService()
395 … public NetworkPolicyManager createService(ContextImpl ctx) throws ServiceNotFoundException { in registerService()
396 return new NetworkPolicyManager(ctx, INetworkPolicyManager.Stub.asInterface( in registerService()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDataConnectionTest.java21 import static android.net.NetworkPolicyManager.OVERRIDE_CONGESTED;
22 import static android.net.NetworkPolicyManager.OVERRIDE_UNMETERED;
/frameworks/base/telephony/java/android/telephony/
DSubscriptionManager.java19 import static android.net.NetworkPolicyManager.OVERRIDE_CONGESTED;
20 import static android.net.NetworkPolicyManager.OVERRIDE_UNMETERED;

12