Home
last modified time | relevance | path

Searched refs:quota (Results 1 – 17 of 17) 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.java271 long quota, long estimatedDatabaseSize, long totalQuota, in onExceededDatabaseQuota() argument
275 quotaUpdater.updateQuota(quota); in onExceededDatabaseQuota()
296 public void onReachedMaxAppCacheSize(long requiredStorage, long quota, in onReachedMaxAppCacheSize() argument
298 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/tests/mockingservicestests/src/com/android/server/
DAlarmManagerServiceTest.java531 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasDeferralOnSet() local
535 for (int i = 0; i < quota; i++) { in testQuotasDeferralOnSet()
542 setTestAlarm(ELAPSED_REALTIME_WAKEUP, mNowElapsedTest + quota + 10, in testQuotasDeferralOnSet()
549 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasDeferralOnExpiration() local
553 for (int i = 0; i < quota; i++) { in testQuotasDeferralOnExpiration()
558 setTestAlarm(ELAPSED_REALTIME_WAKEUP, mNowElapsedTest + quota + 10, in testQuotasDeferralOnExpiration()
560 for (int i = 0; i < quota; i++) { in testQuotasDeferralOnExpiration()
569 final int quota = mService.getQuotaForBucketLocked(standbyBucket); in testQuotasNoDeferral() local
573 for (int i = 0; i < quota; i++) { in testQuotasNoDeferral()
580 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
243 // How much time the package should have before transitioning from out-of-quota to in-quota.
244 // This should not affect processing if the package is already in-quota.
246 // The quota window size of the particular standby bucket. Apps in this standby bucket are
250 // The quota window size of the particular standby bucket. Apps in this standby bucket are
254 // The quota window size of the particular standby bucket. Apps in this standby bucket are
258 // The quota window size of the particular standby bucket. Apps in this standby bucket are
496 // The amount of time that this job has remaining in its quota. This
497 // can be negative if the job is out of quota.
538 // The time after which the app will be under the bucket quota. This is only valid if
[all …]
/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.logtags168 # Disk usage stats for verifying quota correctness