/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 60 public long limitBytes = LIMIT_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 92 limitBytes, lastWarningSnooze, lastLimitSnooze, metered, inferred); in NetworkPolicy() 97 long limitBytes, long lastWarningSnooze, long lastLimitSnooze, boolean metered, in NetworkPolicy() argument 99 this(template, cycleRule, warningBytes, limitBytes, lastWarningSnooze, lastLimitSnooze, in NetworkPolicy() 104 long limitBytes, long lastWarningSnooze, long lastLimitSnooze, long lastRapidSnooze, in NetworkPolicy() argument 109 this.limitBytes = limitBytes; in NetworkPolicy() 121 limitBytes = source.readLong(); in NetworkPolicy() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 67 if (policy.limitBytes < -1) { in read() 68 policy.limitBytes = LIMIT_DISABLED; in read() 101 return policy != null && policy.limitBytes != LIMIT_DISABLED; in hasLimitedPolicy() 183 long limitBytes = getPolicyLimitBytes(template); in setPolicyWarningBytes() local 186 (limitBytes == LIMIT_DISABLED) ? warningBytes : Math.min(warningBytes, limitBytes); in setPolicyWarningBytes() 193 return (policy != null) ? policy.limitBytes : LIMIT_DISABLED; in getPolicyLimitBytes() 197 public void setPolicyLimitBytes(NetworkTemplate template, long limitBytes) { in setPolicyLimitBytes() argument 200 if (warningBytes > limitBytes && limitBytes != LIMIT_DISABLED) { in setPolicyLimitBytes() 201 setPolicyWarningBytesInner(template, limitBytes); in setPolicyLimitBytes() 205 policy.limitBytes = limitBytes; in setPolicyLimitBytes()
|
/frameworks/libs/net/common/testutils/devicetests/com/android/testutils/ |
D | TestableNetworkStatsProviderBinder.kt | 32 val limitBytes: 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()
|
D | TestableNetworkStatsProvider.kt | 36 val limitBytes: Long constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetWarningAndLimit 38 data class OnSetLimit(val iface: String?, val limitBytes: Long) : CallbackType() constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetLimit 50 override fun onSetWarningAndLimit(iface: String, warningBytes: Long, limitBytes: Long) { in onSetWarningAndLimit() 51 history.add(CallbackType.OnSetWarningAndLimit(iface, warningBytes, limitBytes)) in onSetWarningAndLimit()
|
D | NetworkStatsProviderStubCompat.java | 36 public void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes) {} in onSetWarningAndLimit() argument
|
/frameworks/base/core/java/android/net/netstats/provider/ |
D | NetworkStatsProvider.java | 51 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 219 onSetLimit(iface, limitBytes); in onSetWarningAndLimit()
|
D | INetworkStatsProvider.aidl | 27 void onSetWarningAndLimit(String iface, long warningBytes, long limitBytes); in onSetWarningAndLimit() argument
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1373 if (notifyRapid && policy.limitBytes != LIMIT_DISABLED) { 1381 final long alertBytes = (policy.limitBytes * 3) / 2; 1576 final long overBytes = totalBytes - policy.limitBytes; in enqueueNotification() 1795 long limitBytes = in getLimitBytesFromCarrierConfig() local 1798 if (limitBytes == DATA_CYCLE_THRESHOLD_DISABLED) { in getLimitBytesFromCarrierConfig() 1800 } else if (limitBytes == DATA_CYCLE_USE_PLATFORM_DEFAULT) { in getLimitBytesFromCarrierConfig() 1802 } else if (limitBytes < 0) { in getLimitBytesFromCarrierConfig() 1805 + "non-negative value but got: " + limitBytes); in getLimitBytesFromCarrierConfig() 1808 return limitBytes; in getLimitBytesFromCarrierConfig() 1882 if (policy.limitBytes == LIMIT_DISABLED || !policy.hasCycle()) { in updateNetworkEnabledNL() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
D | DataUsageController.java | 147 usage.limitLevel = policy.limitBytes > 0 ? policy.limitBytes : 0; in getDataUsageInfo()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 284 private long getRemainingDailyBudget(long limitBytes, in getRemainingDailyBudget() argument 289 final long remainingBytes = totalBytes == -1 ? 0 : Math.max(0, limitBytes - totalBytes); in getRemainingDailyBudget() 429 ? policy.limitBytes in getActiveLimit()
|
/frameworks/av/media/libstagefright/rtsp/ |
D | ARTPWriter.h | 162 void ModerateInstantTraffic(uint32_t samplePeriod, uint32_t limitBytes);
|
D | ARTPWriter.cpp | 1664 void ARTPWriter::ModerateInstantTraffic(uint32_t samplePeriod, uint32_t limitBytes) { in ModerateInstantTraffic() argument 1666 if (bytes > limitBytes) { in ModerateInstantTraffic()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 460 mDefaultLimitBytes = defaultPolicy.limitBytes; in callSystemReady() 2020 private SubscriptionPlan buildMonthlyDataPlan(ZonedDateTime start, long limitBytes) { in buildMonthlyDataPlan() argument 2023 .setDataLimit(limitBytes, LIMIT_BEHAVIOR_DISABLED) in buildMonthlyDataPlan() 2075 long limitBytes, boolean inferred) { in buildFakeCarrierPolicy() argument 2078 limitBytes, SNOOZE_NEVER, SNOOZE_NEVER, true, inferred); in buildFakeCarrierPolicy()
|