/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 18 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/ |
D | NetworkManagementInternalTest.java | 19 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()
|
D | NetworkPolicyManagerServiceTest.java | 26 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/ |
D | DataSaverControllerImpl.java | 19 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/ |
D | NetworkPolicyLogger.java | 18 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 …]
|
D | NetworkPolicyManagerShellCommand.java | 19 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()
|
D | LockdownVpnTracker.java | 20 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;
|
D | NetworkPolicyManagerService.java | 47 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/ |
D | NetworkPolicyManager.java | 48 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/ |
D | NetworkPolicyEditorTest.java | 20 import android.net.NetworkPolicyManager; 45 NetworkPolicyManager policyManager = NetworkPolicyManager.from(InstrumentationRegistry in setUp()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 32 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/ |
D | NetworkPolicyEditor.java | 28 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/ |
D | ConnectivityController.java | 30 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/ |
D | MultipathPolicyTracker.java | 47 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/ |
D | NetworkManagementService.java | 24 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/ |
D | DcController.java | 23 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/ |
D | CompanionDeviceManagerService.java | 43 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/ |
D | ConnectivityControllerTest.java | 45 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/ |
D | MultipathPolicyTrackerTest.java | 52 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/ |
D | NetworkOverLimitActivity.java | 19 import static android.net.NetworkPolicyManager.EXTRA_NETWORK_TEMPLATE;
|
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/ |
D | SettingsBackupAgent.java | 30 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/ |
D | Downloads.java | 21 import android.net.NetworkPolicyManager;
|
/frameworks/base/core/java/android/app/ |
D | SystemServiceRegistry.java | 86 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/ |
D | DataConnectionTest.java | 21 import static android.net.NetworkPolicyManager.OVERRIDE_CONGESTED; 22 import static android.net.NetworkPolicyManager.OVERRIDE_UNMETERED;
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionManager.java | 19 import static android.net.NetworkPolicyManager.OVERRIDE_CONGESTED; 20 import static android.net.NetworkPolicyManager.OVERRIDE_UNMETERED;
|