Home
last modified time | relevance | path

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

/frameworks/libs/net/common/devicetests/com/android/testutils/
DTestableNetworkStatsProviderBinder.kt29 data class OnSetLimit(val iface: String?, val quotaBytes: Long) : CallbackType() constant in com.android.testutils.TestableNetworkStatsProviderBinder.CallbackType.OnSetLimit
30 data class OnSetAlert(val quotaBytes: Long) : CallbackType() constant in com.android.testutils.TestableNetworkStatsProviderBinder.CallbackType.OnSetAlert
39 override fun onSetLimit(iface: String?, quotaBytes: Long) { in onSetLimit()
40 history.add(CallbackType.OnSetLimit(iface, quotaBytes)) in onSetLimit()
43 override fun onSetAlert(quotaBytes: Long) { in onSetAlert()
44 history.add(CallbackType.OnSetAlert(quotaBytes)) in onSetAlert()
51 fun expectOnSetLimit(iface: String?, quotaBytes: Long) { in expectOnSetLimit()
52 assertEquals(CallbackType.OnSetLimit(iface, quotaBytes), history.poll(DEFAULT_TIMEOUT_MS)) in expectOnSetLimit()
55 fun expectOnSetAlert(quotaBytes: Long) { in expectOnSetAlert()
56 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(DEFAULT_TIMEOUT_MS)) in expectOnSetAlert()
DTestableNetworkStatsProvider.kt32 data class OnSetLimit(val iface: String?, val quotaBytes: Long) : CallbackType() constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetLimit
33 data class OnSetAlert(val quotaBytes: Long) : CallbackType() constant in com.android.testutils.TestableNetworkStatsProvider.CallbackType.OnSetAlert
44 override fun onSetLimit(iface: String, quotaBytes: Long) { in onSetLimit()
45 history.add(CallbackType.OnSetLimit(iface, quotaBytes)) in onSetLimit()
48 override fun onSetAlert(quotaBytes: Long) { in onSetAlert()
49 history.add(CallbackType.OnSetAlert(quotaBytes)) in onSetAlert()
56 fun expectOnSetLimit(iface: String?, quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetLimit()
57 assertEquals(CallbackType.OnSetLimit(iface, quotaBytes), history.poll(timeout)) in expectOnSetLimit()
60 fun expectOnSetAlert(quotaBytes: Long, timeout: Long = defaultTimeoutMs) { in expectOnSetAlert()
61 assertEquals(CallbackType.OnSetAlert(quotaBytes), history.poll(timeout)) in expectOnSetAlert()
/frameworks/base/core/java/android/net/netstats/provider/
DNetworkStatsProvider.java45 public void onSetLimit(String iface, long quotaBytes) {
46 NetworkStatsProvider.this.onSetLimit(iface, quotaBytes);
50 public void onSetAlert(long quotaBytes) {
51 NetworkStatsProvider.this.onSetAlert(quotaBytes);
183 public abstract void onSetLimit(@NonNull String iface, long quotaBytes); in onSetLimit() argument
194 public abstract void onSetAlert(long quotaBytes); in onSetAlert() argument
DINetworkStatsProvider.aidl26 void onSetLimit(String iface, long quotaBytes); in onSetLimit() argument
27 void onSetAlert(long quotaBytes); in onSetAlert() argument
/frameworks/base/core/java/android/app/
DIBackupAgent.aidl58 long quotaBytes, IBackupCallback callbackBinder, int transportFlags); in doBackup() argument
108 void doFullBackup(in ParcelFileDescriptor data, long quotaBytes, int token, in doFullBackup() argument
114 void doMeasureFullBackup(long quotaBytes, int token, IBackupManager callbackBinder, in doMeasureFullBackup() argument
137 void doQuotaExceeded(long backupDataBytes, long quotaBytes, IBackupCallback callbackBinder); in doQuotaExceeded() argument
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DBpfCoordinator.java539 public void onSetAlert(long quotaBytes) { in onSetAlert() argument
540 mHandler.post(() -> updateAlertQuota(quotaBytes)); in onSetAlert()
544 public void onSetLimit(@NonNull String iface, long quotaBytes) { in onSetLimit() argument
545 if (quotaBytes < QUOTA_UNLIMITED) { in onSetLimit()
546 throw new IllegalArgumentException("invalid quota value " + quotaBytes); in onSetLimit()
552 if (null == curIfaceQuota && QUOTA_UNLIMITED == quotaBytes) return; in onSetLimit()
554 if (quotaBytes == QUOTA_UNLIMITED) { in onSetLimit()
557 mInterfaceQuotas.put(iface, quotaBytes); in onSetLimit()
605 final long quotaBytes = (limit != null) ? limit : QUOTA_UNLIMITED; in getQuotaBytes() local
607 return quotaBytes; in getQuotaBytes()
[all …]
DOffloadController.java322 public void onSetLimit(String iface, long quotaBytes) { in onSetLimit() argument
333 if (null == curIfaceQuota && QUOTA_UNLIMITED == quotaBytes) return; in onSetLimit()
335 if (quotaBytes == QUOTA_UNLIMITED) { in onSetLimit()
338 mInterfaceQuotas.put(iface, quotaBytes); in onSetLimit()
374 public void onSetAlert(long quotaBytes) { in onSetAlert() argument
378 updateAlertQuota(quotaBytes); in onSetAlert()
/frameworks/base/services/robotests/backup/src/android/app/backup/
DForwardingBackupAgent.java80 public void onQuotaExceeded(long backupDataBytes, long quotaBytes) { in onQuotaExceeded() argument
81 mBackupAgent.onQuotaExceeded(backupDataBytes, quotaBytes); in onQuotaExceeded()
/frameworks/base/core/java/android/app/backup/
DBackupAgent.java533 public void onQuotaExceeded(long backupDataBytes, long quotaBytes) { in onQuotaExceeded() argument
975 long quotaBytes, in doBackup() argument
983 data.getFileDescriptor(), quotaBytes, transportFlags); in doBackup()
1059 long quotaBytes, int token, IBackupManager callbackBinder, int transportFlags) { in doFullBackup() argument
1071 data, quotaBytes, transportFlags)); in doFullBackup()
1105 public void doMeasureFullBackup(long quotaBytes, int token, IBackupManager callbackBinder, in doMeasureFullBackup() argument
1110 new FullBackupDataOutput(quotaBytes, transportFlags); in doMeasureFullBackup()
1190 long quotaBytes, in doQuotaExceeded() argument
1196 BackupAgent.this.onQuotaExceeded(backupDataBytes, quotaBytes); in doQuotaExceeded()
/frameworks/base/core/java/android/net/
DITetheringStatsProvider.aidl41 void setInterfaceQuota(String iface, long quotaBytes); in setInterfaceQuota() argument
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupEngine.java286 public void sendQuotaExceeded(long backupDataBytes, long quotaBytes) { in sendQuotaExceeded() argument
290 callback -> mAgent.doQuotaExceeded(backupDataBytes, quotaBytes, callback), in sendQuotaExceeded()
DPerformFullTransportBackupTask.java872 public void sendQuotaExceeded(final long backupDataBytes, final long quotaBytes) { in sendQuotaExceeded() argument
873 mEngine.sendQuotaExceeded(backupDataBytes, quotaBytes); in sendQuotaExceeded()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java193 public void onQuotaExceeded(long backupDataBytes, long quotaBytes) { in onQuotaExceeded() argument
195 Slog.i(TAG, "Quota exceeded (" + backupDataBytes + " vs " + quotaBytes + ')'); in onQuotaExceeded()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1905 final long quotaBytes;
1916 quotaBytes = Long.MAX_VALUE;
1921 quotaBytes = Math.max(1, policy.limitBytes - totalBytes);
1926 quotaBytes = Long.MAX_VALUE;
1936 setInterfaceQuotaAsync(iface, quotaBytes);
1993 final long quotaBytes; local
1997 quotaBytes = 0;
1999 quotaBytes = OPPORTUNISTIC_QUOTA_UNKNOWN;
2002 quotaBytes = quotaUnlimited;
2020 quotaBytes = Math.max(0, (long) ((remainingBytes / remainingDays) * quotaLimited));
[all …]
/frameworks/base/core/java/android/os/
DINetworkManagementService.aidl265 void setInterfaceQuota(String iface, long quotaBytes); in setInterfaceQuota() argument
/frameworks/base/services/core/java/com/android/server/
DNetworkManagementService.java1192 public void setInterfaceQuota(String iface, long quotaBytes) { in setInterfaceQuota() argument
1202 mNetdService.bandwidthSetInterfaceQuota(iface, quotaBytes); in setInterfaceQuota()
1204 mActiveQuotas.put(iface, quotaBytes); in setInterfaceQuota()
1212 provider.setInterfaceQuota(iface, quotaBytes); in setInterfaceQuota()
1529 public void setInterfaceQuota(String iface, long quotaBytes) { in setInterfaceQuota() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneCallTracker.java295 public void onSetLimit(String iface, long quotaBytes) { in onSetLimit() argument
300 public void onSetAlert(long quotaBytes) { in onSetAlert() argument