Home
last modified time | relevance | path

Searched refs:quotaBytes (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/
DTestableNetworkStatsProvider.kt41 val quotaBytes: Long constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetLimit
44 data class OnSetAlert(val quotaBytes: Long) : CallbackType() constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetAlert
62 override fun onSetLimit(iface: String, quotaBytes: Long) { in onSetLimit()
63 Log.d(TAG, "onSetLimit $iface $quotaBytes") in onSetLimit()
64 history.add(CallbackType.OnSetLimit(iface, quotaBytes)) in onSetLimit()
67 override fun onSetAlert(quotaBytes: Long) { in onSetAlert()
68 Log.d(TAG, "onSetAlert $quotaBytes") in onSetAlert()
69 history.add(CallbackType.OnSetAlert(quotaBytes)) in onSetAlert()
81 fun expectOnSetLimit(iface: String, quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetLimit()
82 assertEquals(CallbackType.OnSetLimit(iface, quotaBytes), history.poll(timeout)) in expectOnSetLimit()
[all …]
DTestableNetworkStatsProviderBinder.kt28 data class OnSetAlert(val quotaBytes: Long) : CallbackType() constant in com.android.testutils.TestableNetworkStatsProviderBinder.CallbackType.OnSetAlert
42 override fun onSetAlert(quotaBytes: Long) { in onSetAlert()
43 history.add(CallbackType.OnSetAlert(quotaBytes)) in onSetAlert()
59 fun expectOnSetAlert(quotaBytes: Long) { in expectOnSetAlert()
60 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(DEFAULT_TIMEOUT_MS)) in expectOnSetAlert()
DNetworkStatsProviderStubCompat.java30 public void onSetLimit(String iface, long quotaBytes) {} in onSetLimit() argument
/packages/modules/Connectivity/framework-t/src/android/net/netstats/provider/
DNetworkStatsProvider.java46 public void onSetAlert(long quotaBytes) {
47 NetworkStatsProvider.this.onSetAlert(quotaBytes);
198 public abstract void onSetLimit(@NonNull String iface, long quotaBytes); in onSetLimit() argument
231 public abstract void onSetAlert(long quotaBytes); in onSetAlert() argument
DINetworkStatsProvider.aidl26 void onSetAlert(long quotaBytes); in onSetAlert() argument
/packages/modules/Connectivity/Tethering/apishim/30/com/android/networkstack/tethering/apishim/api30/
DBpfCoordinatorShimImpl.java110 public boolean tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes) { in tetherOffloadSetInterfaceQuota() argument
112 mNetd.tetherOffloadSetInterfaceQuota(ifIndex, quotaBytes); in tetherOffloadSetInterfaceQuota()
114 mLog.e("Exception when updating quota " + quotaBytes + ": ", e); in tetherOffloadSetInterfaceQuota()
/packages/modules/Connectivity/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java1815 public void onSetAlert(long quotaBytes) { in onSetAlert() argument
1816 mHandler.post(() -> updateAlertQuota(quotaBytes)); in onSetAlert()
1820 public void onSetLimit(@NonNull String iface, long quotaBytes) { in onSetLimit() argument
1821 if (quotaBytes < QUOTA_UNLIMITED) { in onSetLimit()
1822 throw new IllegalArgumentException("invalid quota value " + quotaBytes); in onSetLimit()
1828 if (null == curIfaceQuota && QUOTA_UNLIMITED == quotaBytes) return; in onSetLimit()
1830 if (quotaBytes == QUOTA_UNLIMITED) { in onSetLimit()
1833 mInterfaceQuotas.put(iface, quotaBytes); in onSetLimit()
2060 final long quotaBytes = (limit != null) ? limit : QUOTA_UNLIMITED; in getQuotaBytes() local
2062 return quotaBytes; in getQuotaBytes()
[all …]
DOffloadController.java359 public void onSetLimit(String iface, long quotaBytes) { in onSetLimit() argument
360 onSetWarningAndLimit(iface, QUOTA_UNLIMITED, quotaBytes); in onSetLimit()
422 public void onSetAlert(long quotaBytes) { in onSetAlert() argument
430 updateAlertQuota(quotaBytes); in onSetAlert()
/packages/modules/Connectivity/Tethering/apishim/31/com/android/networkstack/tethering/apishim/api31/
DBpfCoordinatorShimImpl.java244 public boolean tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes) { in tetherOffloadSetInterfaceQuota() argument
282 long newLimit = rxBytes + txBytes + quotaBytes; in tetherOffloadSetInterfaceQuota()
290 mLog.e("Fail to set quota " + quotaBytes + " for interface index " + ifIndex + ": ", e); in tetherOffloadSetInterfaceQuota()
/packages/modules/Connectivity/Tethering/apishim/common/com/android/networkstack/tethering/apishim/common/
DBpfCoordinatorShim.java120 public abstract boolean tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/13/android/net/
DINetd.aidl163 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/7/android/net/
DINetd.aidl145 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/6/android/net/
DINetd.aidl145 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/binder/android/net/
DINetd.aidl1354 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/10/android/net/
DINetd.aidl163 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/current/android/net/
DINetd.aidl196 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/8/android/net/
DINetd.aidl145 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/14/android/net/
DINetd.aidl196 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/9/android/net/
DINetd.aidl163 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/4/android/net/
DINetd.aidl123 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/5/android/net/
DINetd.aidl123 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/15/android/net/
DINetd.aidl196 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/11/android/net/
DINetd.aidl163 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/modules/Connectivity/staticlibs/netd/aidl_api/netd_aidl_interface/12/android/net/
DINetd.aidl163 void tetherOffloadSetInterfaceQuota(int ifIndex, long quotaBytes); in tetherOffloadSetInterfaceQuota() argument
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyBackupAgent.java525 public void onQuotaExceeded(long backupDataBytes, long quotaBytes) { in onQuotaExceeded() argument
535 .putLong(QUOTA_BYTES, quotaBytes) in onQuotaExceeded()

12