/frameworks/base/core/tests/coretests/src/android/net/ |
D | NetworkPolicyManagerTest.java | 19 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/ |
D | DataSaverControllerImpl.java | 19 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/ |
D | NetworkPolicyManager.java | 50 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/ |
D | NetworkManagementInternalTest.java | 24 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/ |
D | NetworkPolicyEditorTest.java | 22 import android.net.NetworkPolicyManager; 48 NetworkPolicyManager policyManager = NetworkPolicyManager.from(InstrumentationRegistry in setUp()
|
/frameworks/base/services/core/java/com/android/server/net/ |
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; 332 pw.print(NetworkPolicyManager.resolveNetworkId(config)); in listWifiNetworks() 352 mInterface.setWifiMeteredOverride(NetworkPolicyManager.resolveNetworkId(networkId), in setMeteredWifiNetwork()
|
D | NetworkPolicyLogger.java | 23 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()
|
D | NetworkPolicyManagerService.java | 52 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/ |
D | NetworkCycleChartDataLoaderTest.java | 25 import android.net.NetworkPolicyManager; 43 private NetworkPolicyManager mNetworkPolicyManager;
|
D | NetworkCycleDataForUidLoaderTest.java | 32 import android.net.NetworkPolicyManager; 50 private NetworkPolicyManager mNetworkPolicyManager;
|
D | NetworkCycleDataLoaderTest.java | 33 import android.net.NetworkPolicyManager; 59 private NetworkPolicyManager mNetworkPolicyManager;
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | NetworkCycleDataLoader.java | 28 import android.net.NetworkPolicyManager; 67 new NetworkPolicyEditor(NetworkPolicyManager.from(builder.mContext)); in NetworkCycleDataLoader() 92 NetworkPolicyManager.cycleIterator(mPolicy); in loadPolicyData()
|
D | DataUsageController.java | 34 import android.net.NetworkPolicyManager; 64 private final NetworkPolicyManager mPolicyManager; 77 mPolicyManager = NetworkPolicyManager.from(mContext); in DataUsageController()
|
/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/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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcController.java | 24 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/ |
D | CompanionDeviceManagerService.java | 43 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/ |
D | MultipathPolicyTrackerTest.java | 51 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/ |
D | ConnectivityController.java | 30 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/ |
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.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/ |
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; 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/ |
D | ConnectivityControllerTest.java | 53 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/ |
D | JobSchedulerServiceTest.java | 47 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/ |
D | Downloads.java | 22 import android.net.NetworkPolicyManager;
|