Home
last modified time | relevance | path

Searched refs:NetworkPolicy (Results 1 – 21 of 21) 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/core/java/com/android/server/net/
DTEST_MAPPING5 "file_patterns": ["(/|^)NetworkPolicy[^/]*\\.java"],
17 "file_patterns": ["(/|^)NetworkPolicy[^/]*\\.java"],
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;
447 final ArrayMap<NetworkTemplate, NetworkPolicy> mNetworkPolicy = new ArrayMap<>();
1166 final NetworkPolicy policy = mNetworkPolicy.valueAt(i);
1344 private void enqueueNotification(NetworkPolicy policy, int type, long totalBytes, in enqueueNotification()
1549 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in maybeUpdateMobilePolicyCycleAL()
1722 final NetworkPolicy policy = mNetworkPolicy.valueAt(i); in updateNetworkEnabledNL()
1895 final NetworkPolicy policy = mNetworkPolicy.valueAt(i);
[all …]
/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;
432 NetworkPolicy defaultPolicy = mService.buildDefaultMobilePolicy(0, ""); in callSystemReady()
929 private static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) {
943 private static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) {
955 final NetworkPolicy policy = new NetworkPolicy(
967 final NetworkPolicy policy = new NetworkPolicy(
979 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/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/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/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/packages/SystemUI/src/com/android/systemui/net/
DNetworkOverLimitActivity.java28 import android.net.NetworkPolicy;
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsBackupAgent.java28 import android.net.NetworkPolicy;
1059 NetworkPolicy[] policies = networkPolicyManager.getNetworkPolicies(); in getNetworkPolicies()
1066 for (NetworkPolicy policy : policies) { in getNetworkPolicies()
1110 NetworkPolicy[] policies = new NetworkPolicy[length]; in restoreNetworkPolicies()
1117 policies[i] = NetworkPolicy.getNetworkPolicyFromBackup( in restoreNetworkPolicies()
/frameworks/base/config/
Dpreloaded-classes4257 android.net.NetworkPolicy$1
4258 android.net.NetworkPolicy
Dboot-image-profile.txt14258 HSPLandroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;Landroid/util/RecurrenceRule;JJ…
14259 HSPLandroid/net/NetworkPolicy;-><init>(Landroid/net/NetworkTemplate;Landroid/util/RecurrenceRule;JJ…
14260 HSPLandroid/net/NetworkPolicy;->cycleIterator()Ljava/util/Iterator;
14261 HPLandroid/net/NetworkPolicy;->hasCycle()Z
14262 HPLandroid/net/NetworkPolicy;->isOverLimit(J)Z
14263 HPLandroid/net/NetworkPolicy;->isOverWarning(J)Z
14273 HPLandroid/net/NetworkPolicyManager;->cycleIterator(Landroid/net/NetworkPolicy;)Ljava/util/Iterator;
14275 HSPLandroid/net/NetworkPolicyManager;->getNetworkPolicies()[Landroid/net/NetworkPolicy;
44453 Landroid/net/NetworkPolicy$1;
44454 Landroid/net/NetworkPolicy;
/frameworks/base/services/
Dart-profile12656 PLcom/android/server/connectivity/MultipathPolicyTracker;->access$600(Landroid/net/NetworkPolicy;J)J
12657 PLcom/android/server/connectivity/MultipathPolicyTracker;->access$700(Landroid/net/NetworkPolicy;J)J
12661 …/android/server/connectivity/MultipathPolicyTracker;->getActiveLimit(Landroid/net/NetworkPolicy;J)J
12662 …ndroid/server/connectivity/MultipathPolicyTracker;->getActiveWarning(Landroid/net/NetworkPolicy;J)J
20294 …ationId;-><init>(Lcom/android/server/net/NetworkPolicyManagerService;Landroid/net/NetworkPolicy;I)V
20295 …licyManagerService$NotificationId;->buildNotificationTag(Landroid/net/NetworkPolicy;I)Ljava/lang/S…
20339 …m/android/server/net/NetworkPolicyManagerService;->addNetworkPolicyAL(Landroid/net/NetworkPolicy;)V
20343 …workPolicyManagerService;->buildDefaultMobilePolicy(ILjava/lang/String;)Landroid/net/NetworkPolicy;
20362 …er/net/NetworkPolicyManagerService;->enqueueNotification(Landroid/net/NetworkPolicy;IJLandroid/con…
20372 …et/NetworkPolicyManagerService;->getNetworkPolicies(Ljava/lang/String;)[Landroid/net/NetworkPolicy;
[all …]