Home
last modified time | relevance | path

Searched refs:quota (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/core/java/android/app/backup/
DFullBackupDataOutput.java40 public FullBackupDataOutput(long quota) { in FullBackupDataOutput() argument
42 mQuota = quota; in FullBackupDataOutput()
48 public FullBackupDataOutput(long quota, int transportFlags) { in FullBackupDataOutput() argument
50 mQuota = quota; in FullBackupDataOutput()
56 public FullBackupDataOutput(ParcelFileDescriptor fd, long quota) { in FullBackupDataOutput() argument
57 mData = new BackupDataOutput(fd.getFileDescriptor(), quota, 0); in FullBackupDataOutput()
58 mQuota = quota; in FullBackupDataOutput()
63 public FullBackupDataOutput(ParcelFileDescriptor fd, long quota, int transportFlags) { in FullBackupDataOutput() argument
64 mData = new BackupDataOutput(fd.getFileDescriptor(), quota, transportFlags); in FullBackupDataOutput()
65 mQuota = quota; in FullBackupDataOutput()
DBackupDataOutput.java85 public BackupDataOutput(FileDescriptor fd, long quota) { in BackupDataOutput() argument
86 this(fd, quota, /*transportFlags=*/ 0); in BackupDataOutput()
90 public BackupDataOutput(FileDescriptor fd, long quota, int transportFlags) { in BackupDataOutput() argument
92 mQuota = quota; in BackupDataOutput()
/frameworks/base/core/java/android/webkit/
DWebStorage.java71 protected Origin(String origin, long quota, long usage) { in Origin() argument
73 mQuota = quota; in Origin()
166 public void setQuotaForOrigin(String origin, long quota) { in setQuotaForOrigin() argument
DWebChromeClient.java287 long quota, long estimatedDatabaseSize, long totalQuota, in onExceededDatabaseQuota() argument
291 quotaUpdater.updateQuota(quota); in onExceededDatabaseQuota()
312 public void onReachedMaxAppCacheSize(long requiredStorage, long quota, in onReachedMaxAppCacheSize() argument
314 quotaUpdater.updateQuota(quota); in onReachedMaxAppCacheSize()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java322 long quota = LocalServices.getService(NetworkPolicyManagerInternal.class) in updateMultipathBudget() local
324 if (DBG) Slog.d(TAG, "Opportunistic quota from data plan: " + quota + " bytes"); in updateMultipathBudget()
327 if (quota == OPPORTUNISTIC_QUOTA_UNKNOWN) { in updateMultipathBudget()
328 quota = getUserPolicyOpportunisticQuotaBytes(); in updateMultipathBudget()
329 if (DBG) Slog.d(TAG, "Opportunistic quota from user policy: " + quota + " bytes"); in updateMultipathBudget()
332 if (quota == OPPORTUNISTIC_QUOTA_UNKNOWN) { in updateMultipathBudget()
333 quota = getDefaultDailyMultipathQuotaBytes(); in updateMultipathBudget()
334 if (DBG) Slog.d(TAG, "Setting quota: " + quota + " bytes"); in updateMultipathBudget()
338 if (haveMultipathBudget() && quota == mQuota) { in updateMultipathBudget()
342 if (DBG) Slog.d(TAG, "Quota still " + quota + ", not updating."); in updateMultipathBudget()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DTimedQuotaManager.java45 public TimedQuotaManager(Clock clock, long quota, long periodMillis) { in TimedQuotaManager() argument
47 mQuota = quota; in TimedQuotaManager()
/frameworks/base/core/java/android/app/usage/
DCacheQuotaHint.java132 public @NonNull Builder setQuota(long quota) { in setQuota() argument
133 Preconditions.checkArgument((quota >= QUOTA_NOT_SET)); in setQuota()
134 mQuota = quota; in setQuota()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DShadowBackupDataOutput.java42 protected void __constructor__(FileDescriptor fd, long quota, int transportFlags) { in __constructor__() argument
44 mQuota = quota; in __constructor__()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DPerformFullTransportBackupTask.java375 long quota = Long.MAX_VALUE; in run() local
384 quota = transport.getBackupQuota(currentPackage.packageName, in run()
390 mTransportClient, quota, mBackupRunnerOpToken, in run()
460 + ": " + totalRead + " of " + quota); in run()
466 mBackupRunner.sendQuotaExceeded(totalRead, quota); in run()
697 long quota, in SinglePackageBackupPreflight() argument
701 mQuota = quota; in SinglePackageBackupPreflight()
810 TransportClient transportClient, long quota, int currentOpToken, int transportFlags) in SinglePackageBackupRunner() argument
817 transportClient, quota, mEphemeralToken, transportFlags); in SinglePackageBackupRunner()
822 mQuota = quota; in SinglePackageBackupRunner()
DFullBackupEngine.java191 long quota, in FullBackupEngine() argument
200 mQuota = quota; in FullBackupEngine()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DCacheQuotaStrategyTest.java124 private CacheQuotaHint buildCacheQuotaHint(String volumeUuid, int uid, long quota) { in buildCacheQuotaHint() argument
126 .setVolumeUuid(volumeUuid).setUid(uid).setQuota(quota).build(); in buildCacheQuotaHint()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsManagerInternal.java43 public abstract void setStatsProviderLimitAsync(@NonNull String iface, long quota); in setStatsProviderLimitAsync() argument
DNetworkStatsService.java1689 public void setStatsProviderLimitAsync(@NonNull String iface, long quota) {
1690 if (LOGV) Slog.v(TAG, "setStatsProviderLimitAsync(" + iface + "," + quota + ")");
1691 invokeForAllStatsProviderCallbacks((cb) -> cb.mProvider.onSetLimit(iface, quota));
DNetworkPolicyManagerService.java4649 final long quota = ((long) msg.arg1 << 32) | (msg.arg2 & 0xFFFFFFFFL);
4651 setInterfaceQuota(iface, quota);
4652 mNetworkStats.setStatsProviderLimitAsync(iface, quota);
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java534 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasDeferralOnSet() local
538 for (int i = 0; i < quota; i++) { in testQuotasDeferralOnSet()
545 setTestAlarm(ELAPSED_REALTIME_WAKEUP, mNowElapsedTest + quota + 10, in testQuotasDeferralOnSet()
552 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasDeferralOnExpiration() local
556 for (int i = 0; i < quota; i++) { in testQuotasDeferralOnExpiration()
561 setTestAlarm(ELAPSED_REALTIME_WAKEUP, mNowElapsedTest + quota + 10, in testQuotasDeferralOnExpiration()
563 for (int i = 0; i < quota; i++) { in testQuotasDeferralOnExpiration()
572 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasNoDeferral() local
576 for (int i = 0; i < quota; i++) { in testQuotasNoDeferral()
583 for (int i = 0; i < quota; i++) { in testQuotasNoDeferral()
/frameworks/base/core/proto/android/server/
Djobscheduler.proto225 // Whether to use heartbeats or rolling window for quota management. True
245 // How much time the package should have before transitioning from out-of-quota to in-quota.
246 // This should not affect processing if the package is already in-quota.
248 // The quota window size of the particular standby bucket. Apps in this standby bucket are
252 // The quota window size of the particular standby bucket. Apps in this standby bucket are
256 // The quota window size of the particular standby bucket. Apps in this standby bucket are
260 // The quota window size of the particular standby bucket. Apps in this standby bucket are
498 // The amount of time that this job has remaining in its quota. This
499 // can be negative if the job is out of quota.
540 // The time after which the app will be under the bucket quota. This is only valid if
[all …]
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DBpfCoordinatorTest.java363 for (final long quota : new long[] {0, 1048576000, Long.MAX_VALUE, QUOTA_UNLIMITED}) { in testSetDataLimit()
364 mTetherStatsProvider.onSetLimit(mobileIface, quota); in testSetDataLimit()
366 inOrder.verify(mNetd).tetherOffloadSetInterfaceQuota(mobileIfIndex, quota); in testSetDataLimit()
/frameworks/base/services/backup/java/com/android/server/backup/keyvalue/
DKeyValueBackupTask.java699 long quota = transport.getBackupQuota(packageName, /* isFullBackup */ false); in extractAgentData() local
710 quota, in extractAgentData()
909 long quota = transport.getBackupQuota(packageName, false); in agentDoQuotaExceeded() local
911 callback -> agent.doQuotaExceeded(size, quota, callback), in agentDoQuotaExceeded()
/frameworks/base/services/core/java/com/android/server/storage/
DCacheQuotaStrategy.java243 private void insertIntoQuotaMap(String volumeUuid, int userId, int appId, long quota) { in insertIntoQuotaMap() argument
249 volumeMap.put(UserHandle.getUid(userId, appId), quota); in insertIntoQuotaMap() local
/frameworks/base/packages/WallpaperCropper/src/com/android/photos/views/
DTiledImageRenderer.java571 int quota = UPLOAD_LIMIT; in uploadTiles() local
573 while (quota > 0) { in uploadTiles()
583 --quota; in uploadTiles()
/frameworks/base/services/core/java/com/android/server/
DEventLogTags.logtags174 # Disk usage stats for verifying quota correctness