Home
last modified time | relevance | path

Searched refs:flexMillis (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/services/core/java/com/android/server/content/
DSyncOperation.java85 public final long flexMillis; field in SyncOperation
113 public SyncOperation(SyncOperation op, long periodMillis, long flexMillis) { in SyncOperation() argument
116 periodMillis, flexMillis); in SyncOperation()
122 long flexMillis) { in SyncOperation() argument
133 this.flexMillis = flexMillis; in SyncOperation()
145 periodMillis, flexMillis); in createOneTimeSyncOperation()
161 flexMillis = other.flexMillis; in SyncOperation()
228 jobInfoExtras.putLong("flexMillis", flexMillis); in toJobInfoExtras()
247 long periodMillis, flexMillis; in maybeCreateFromJobExtras() local
265 flexMillis = jobExtras.getLong("flexMillis"); in maybeCreateFromJobExtras()
[all …]
DSyncManager.java948 op.extras, op.periodMillis / 1000, op.flexMillis / 1000)); in getPeriodicSyncs()
1291 b.setPeriodic(syncOperation.periodMillis, syncOperation.flexMillis); in scheduleSyncOperationH()
2612 long flexMillis) { in maybeUpdateSyncPeriodH() argument
2614 && flexMillis == syncOperation.flexMillis)) { in maybeUpdateSyncPeriodH()
2617 + " and flex to " + flexMillis); in maybeUpdateSyncPeriodH()
2620 flexMillis); in maybeUpdateSyncPeriodH()
2631 final long flexMillis = flex * 1000L; in updateOrAddPeriodicSyncH() local
2642 maybeUpdateSyncPeriodH(op, pollFrequencyMillis, flexMillis); in updateOrAddPeriodicSyncH()
2667 pollFrequencyMillis, flexMillis); in updateOrAddPeriodicSyncH()
/frameworks/base/core/java/android/app/job/
DJobInfo.java189 private final long flexMillis; field in JobInfo
321 long clampedFlex = Math.max(flexMillis, Math.max(percentClamp, getMinFlexMillis())); in getFlexMillis()
376 flexMillis = in.readLong(); in JobInfo()
402 flexMillis = b.mFlexMillis; in JobInfo()
432 out.writeLong(flexMillis); in writeToParcel()
717 public Builder setPeriodic(long intervalMillis, long flexMillis) { in setPeriodic() argument
720 mFlexMillis = flexMillis; in setPeriodic()
833 if (job.flexMillis != job.getFlexMillis()) { in build()
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncOperationTest.java152 assertEquals("Flex not restored", periodic.flexMillis, oneoff.flexMillis); in testFailedPeriodicConversion()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java606 final long flexMillis = (val != null) ? Long.valueOf(val) : periodMillis; in restoreJobFromXml() local
607 jobBuilder.setPeriodic(periodMillis, flexMillis); in restoreJobFromXml()
612 if (elapsedRuntimes.second > elapsedNow + periodMillis + flexMillis) { in restoreJobFromXml()
613 final long clampedLateRuntimeElapsed = elapsedNow + flexMillis in restoreJobFromXml()
616 - flexMillis; in restoreJobFromXml()