Home
last modified time | relevance | path

Searched refs:NetworkPolicy (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java19 import static android.net.NetworkPolicy.CYCLE_NONE;
20 import static android.net.NetworkPolicy.LIMIT_DISABLED;
21 import static android.net.NetworkPolicy.SNOOZE_NEVER;
22 import static android.net.NetworkPolicy.WARNING_DISABLED;
27 import android.net.NetworkPolicy;
54 private ArrayList<NetworkPolicy> mPolicies = Lists.newArrayList();
61 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in read()
65 for (NetworkPolicy policy : policies) { in read()
85 final NetworkPolicy[] policies = mPolicies.toArray(new NetworkPolicy[mPolicies.size()]); in writeAsync()
95 public void write(NetworkPolicy[] policies) { in write()
[all …]
/frameworks/base/core/java/android/net/
DNetworkPolicy.java43 public class NetworkPolicy implements Parcelable, Comparable<NetworkPolicy> { class
71 if (cycleDay != NetworkPolicy.CYCLE_NONE) { in buildRule()
79 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy() method in NetworkPolicy
87 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy() method in NetworkPolicy
95 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() method in NetworkPolicy
102 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() method in NetworkPolicy
116 private NetworkPolicy(Parcel source) { in NetworkPolicy() method in NetworkPolicy
189 public int compareTo(NetworkPolicy another) { in compareTo()
209 if (obj instanceof NetworkPolicy) { in equals()
210 final NetworkPolicy other = (NetworkPolicy) obj; in equals()
[all …]
DINetworkPolicyManager.aidl20 import android.net.NetworkPolicy;
47 void setNetworkPolicies(in NetworkPolicy[] policies); in setNetworkPolicies()
48 NetworkPolicy[] getNetworkPolicies(String callingPackage); in getNetworkPolicies()
DNetworkPolicy.aidl19 parcelable NetworkPolicy;
DNetworkPolicyManager.java323 public void setNetworkPolicies(NetworkPolicy[] policies) { in setNetworkPolicies()
333 public NetworkPolicy[] getNetworkPolicies() { in getNetworkPolicies()
435 public static Iterator<Pair<ZonedDateTime, ZonedDateTime>> cycleIterator(NetworkPolicy policy) { in cycleIterator()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java23 import static android.net.NetworkPolicy.LIMIT_DISABLED;
24 import static android.net.NetworkPolicy.SNOOZE_NEVER;
25 import static android.net.NetworkPolicy.WARNING_DISABLED;
109 import android.net.NetworkPolicy;
426 NetworkPolicy defaultPolicy = mService.buildDefaultMobilePolicy(0, ""); in callSystemReady()
852 private static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) {
866 private static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) {
878 final NetworkPolicy policy = new NetworkPolicy(
890 final NetworkPolicy policy = new NetworkPolicy(
902 final NetworkPolicy policy = new NetworkPolicy(
[all …]
/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java23 import static android.net.NetworkPolicy.LIMIT_DISABLED;
24 import static android.net.NetworkPolicy.SNOOZE_NEVER;
25 import static android.net.NetworkPolicy.WARNING_DISABLED;
50 import android.net.NetworkPolicy;
199 when(mNPM.getNetworkPolicies()).thenReturn(new NetworkPolicy[] { in testGetMultipathPreference()
200 new NetworkPolicy( in testGetMultipathPreference()
212 when(mNPM.getNetworkPolicies()).thenReturn(new NetworkPolicy[0]); in testGetMultipathPreference()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java33 import android.net.NetworkPolicy;
124 final NetworkPolicy policy = findNetworkPolicy(template); in getDataUsageInfo()
183 private NetworkPolicy findNetworkPolicy(NetworkTemplate template) { in findNetworkPolicy()
185 final NetworkPolicy[] policies = mPolicyManager.getNetworkPolicies(); in findNetworkPolicy()
189 final NetworkPolicy policy = policies[i]; in findNetworkPolicy()
DNetworkCycleDataLoader.java27 import android.net.NetworkPolicy;
53 private final NetworkPolicy mPolicy;
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java26 import static android.net.NetworkPolicy.LIMIT_DISABLED;
27 import static android.net.NetworkPolicy.WARNING_DISABLED;
48 import android.net.NetworkPolicy;
295 final NetworkPolicy[] policies = mNPM.getNetworkPolicies(); in getUserPolicyOpportunisticQuotaBytes()
296 for (NetworkPolicy policy : policies) { in getUserPolicyOpportunisticQuotaBytes()
411 private static long getActiveWarning(NetworkPolicy policy, long cycleStart) { in getActiveWarning()
417 private static long getActiveLimit(NetworkPolicy policy, long cycleStart) { in getActiveLimit()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/net/
DNetworkCycleChartDataLoaderTest.java24 import android.net.NetworkPolicy;
58 when(mNetworkPolicyManager.getNetworkPolicies()).thenReturn(new NetworkPolicy[0]); in setUp()
DNetworkCycleDataLoaderTest.java32 import android.net.NetworkPolicy;
63 private NetworkPolicy mPolicy;
79 when(mNetworkPolicyManager.getNetworkPolicies()).thenReturn(new NetworkPolicy[0]); in setUp()
DNetworkCycleDataForUidLoaderTest.java31 import android.net.NetworkPolicy;
64 when(mNetworkPolicyManager.getNetworkPolicies()).thenReturn(new NetworkPolicy[0]); in setUp()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/utils/
DNetworkPolicyEditorTest.java21 import android.net.NetworkPolicy;
56 mNetworkPolicyEditor.setPolicyLimitBytes(mNetworkTemplate, NetworkPolicy.LIMIT_DISABLED); in setPolicyWarningBytes_withoutLimit_shouldNotCapWarningBytes()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java53 import static android.net.NetworkPolicy.LIMIT_DISABLED;
54 import static android.net.NetworkPolicy.SNOOZE_NEVER;
55 import static android.net.NetworkPolicy.WARNING_DISABLED;
155 import android.net.NetworkPolicy;
443 final ArrayMap<NetworkTemplate, NetworkPolicy> mNetworkPolicy = new ArrayMap<>();
1160 final NetworkPolicy policy = mNetworkPolicy.valueAt(i);
1338 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes, in enqueueNotification()
1543 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in maybeUpdateMobilePolicyCycleAL()
1716 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in updateNetworkEnabledNL()
1888 final NetworkPolicy policy = mNetworkPolicy.valueAt(i);
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java29 import android.net.NetworkPolicy;
884 NetworkPolicy[] policies = networkPolicyManager.getNetworkPolicies(); in getNetworkPolicies()
891 for (NetworkPolicy policy : policies) { in getNetworkPolicies()
935 NetworkPolicy[] policies = new NetworkPolicy[length]; in restoreNetworkPolicies()
942 policies[i] = NetworkPolicy.getNetworkPolicyFromBackup( in restoreNetworkPolicies()
/frameworks/base/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java28 import android.net.NetworkPolicy;
/frameworks/base/config/
Dboot-image-profile.txt10360 HSPLandroid/net/NetworkPolicy$1;-><init>()V
10361 HSPLandroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;Landroid/util/RecurrenceRule;JJ…
10362 HSPLandroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;Landroid/util/RecurrenceRule;JJ…
10363 HSPLandroid/net/NetworkPolicy;->buildRule(ILjava/time/ZoneId;)Landroid/util/RecurrenceRule;
10364 HSPLandroid/net/NetworkPolicy;->cycleIterator()Ljava/util/Iterator;
10365 HSPLandroid/net/NetworkPolicy;->equals(Ljava/lang/Object;)Z
10366 HSPLandroid/net/NetworkPolicy;->hasCycle()Z
10367 HSPLandroid/net/NetworkPolicy;->isOverLimit(J)Z
10368 HSPLandroid/net/NetworkPolicy;->isOverWarning(J)Z
10369 HSPLandroid/net/NetworkPolicy;->toString()Ljava/lang/String;
[all …]
Dhiddenapi-greylist-max-o.txt43356 …etworkPolicyManager$Stub$Proxy;->getNetworkPolicies(Ljava/lang/String;)[Landroid/net/NetworkPolicy;
43370 Landroid/net/INetworkPolicyManager$Stub$Proxy;->setNetworkPolicies([Landroid/net/NetworkPolicy;)V
43405 …roid/net/INetworkPolicyManager;->getNetworkPolicies(Ljava/lang/String;)[Landroid/net/NetworkPolicy;
44490 Landroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;ILjava/lang/String;JJZ)V
44491 Landroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;Landroid/util/RecurrenceRule;JJJJJ…
44492 Landroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;Landroid/util/RecurrenceRule;JJJJZ…
44493 Landroid/net/NetworkPolicy;-><init>(Landroid/os/Parcel;)V
44494 Landroid/net/NetworkPolicy;->buildRule(ILjava/time/ZoneId;)Landroid/util/RecurrenceRule;
44495 Landroid/net/NetworkPolicy;->cycleIterator()Ljava/util/Iterator;
44496 Landroid/net/NetworkPolicy;->cycleRule:Landroid/util/RecurrenceRule;
[all …]
/frameworks/base/services/
Dart-profile8869 …m/android/server/net/NetworkPolicyManagerService;->addNetworkPolicyAL(Landroid/net/NetworkPolicy;)V
8872 …workPolicyManagerService;->buildDefaultMobilePolicy(ILjava/lang/String;)Landroid/net/NetworkPolicy;
8886 …et/NetworkPolicyManagerService;->getNetworkPolicies(Ljava/lang/String;)[Landroid/net/NetworkPolicy;
8910 …android/server/net/NetworkPolicyManagerService;->normalizePoliciesNL([Landroid/net/NetworkPolicy;)V
8927 …/android/server/net/NetworkPolicyManagerService;->setNetworkPolicies([Landroid/net/NetworkPolicy;)V
8936 …server/net/NetworkPolicyManagerService;->updateDefaultMobilePolicyAL(ILandroid/net/NetworkPolicy;)Z