Home
last modified time | relevance | path

Searched refs:warningBytes (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicy.java58 public long warningBytes = WARNING_DISABLED; field in NetworkPolicy
81 long warningBytes, long limitBytes, boolean metered) { in NetworkPolicy() argument
82 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER, in NetworkPolicy()
89 long warningBytes, long limitBytes, long lastWarningSnooze, long lastLimitSnooze, in NetworkPolicy() argument
91 this(template, buildRule(cycleDay, ZoneId.of(cycleTimezone)), warningBytes, in NetworkPolicy()
96 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() argument
99 this(template, cycleRule, warningBytes, limitBytes, lastWarningSnooze, lastLimitSnooze, in NetworkPolicy()
103 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() argument
108 this.warningBytes = warningBytes; in NetworkPolicy()
120 warningBytes = source.readLong(); in NetworkPolicy()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DNetworkPolicyEditor.java71 if (policy.warningBytes < -1) { in read()
72 policy.warningBytes = WARNING_DISABLED; in read()
171 return (policy != null) ? policy.warningBytes : WARNING_DISABLED; in getPolicyWarningBytes()
174 private void setPolicyWarningBytesInner(NetworkTemplate template, long warningBytes) { in setPolicyWarningBytesInner() argument
176 policy.warningBytes = warningBytes; in setPolicyWarningBytesInner()
182 public void setPolicyWarningBytes(NetworkTemplate template, long warningBytes) { in setPolicyWarningBytes() argument
185 warningBytes = in setPolicyWarningBytes()
186 (limitBytes == LIMIT_DISABLED) ? warningBytes : Math.min(warningBytes, limitBytes); in setPolicyWarningBytes()
188 setPolicyWarningBytesInner(template, warningBytes); in setPolicyWarningBytes()
198 long warningBytes = getPolicyWarningBytes(template); in setPolicyLimitBytes() local
[all …]
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/
DTestableNetworkStatsProviderBinder.kt31 val warningBytes: Long, constant in com.android.testutils.TestableNetworkStatsProviderBinder.CallbackType.OnSetWarningAndLimit
46 override fun onSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in onSetWarningAndLimit()
47 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
54 fun expectOnSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in expectOnSetWarningAndLimit()
55 assertEquals(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes), in expectOnSetWarningAndLimit()
DTestableNetworkStatsProvider.kt35 val warningBytes: Long, constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetWarningAndLimit
50 override fun onSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in onSetWarningAndLimit()
51 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
DNetworkStatsProviderStubCompat.java36 public void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes) {} in onSetWarningAndLimit() argument
/frameworks/base/core/java/android/net/netstats/provider/
DNetworkStatsProvider.java51 public void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes) {
52 NetworkStatsProvider.this.onSetWarningAndLimit(iface, warningBytes, limitBytes);
217 public void onSetWarningAndLimit(@NonNull String iface, long warningBytes, long limitBytes) { in onSetWarningAndLimit() argument
DINetworkStatsProvider.aidl27 void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes); in onSetWarningAndLimit() argument
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java148 usage.warningLevel = policy.warningBytes > 0 ? policy.warningBytes : 0; in getDataUsageInfo()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1762 long warningBytes = in getWarningBytesFromCarrierConfig() local
1765 if (warningBytes == DATA_CYCLE_THRESHOLD_DISABLED) { in getWarningBytesFromCarrierConfig()
1767 } else if (warningBytes == DATA_CYCLE_USE_PLATFORM_DEFAULT) { in getWarningBytesFromCarrierConfig()
1769 } else if (warningBytes < 0) { in getWarningBytesFromCarrierConfig()
1772 + "non-negative value but got: " + warningBytes); in getWarningBytesFromCarrierConfig()
1776 return warningBytes; in getWarningBytesFromCarrierConfig()
2067 final boolean hasWarning = policy.warningBytes != LIMIT_DISABLED;
2070 long warningBytes = Long.MAX_VALUE;
2090 warningBytes = Math.max(1, policy.warningBytes - totalBytes);
2107 setInterfaceQuotasAsync(iface, warningBytes, limitBytes);
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java423 ? policy.warningBytes in getActiveWarning()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java459 mDefaultWarningBytes = defaultPolicy.warningBytes; in callSystemReady()
2074 private static NetworkPolicy buildFakeCarrierPolicy(int cycleDay, long warningBytes, in buildFakeCarrierPolicy() argument
2077 return new NetworkPolicy(template, cycleDay, TimeZone.getDefault().getID(), warningBytes, in buildFakeCarrierPolicy()