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.java87 public final long flexMillis; field in SyncOperation
119 public SyncOperation(SyncOperation op, long periodMillis, long flexMillis) { in SyncOperation() argument
122 periodMillis, flexMillis, ContentResolver.SYNC_EXEMPTION_NONE); in SyncOperation()
128 long flexMillis, @SyncExemption int syncExemptionFlag) { in SyncOperation() argument
139 this.flexMillis = flexMillis; in SyncOperation()
152 periodMillis, flexMillis, ContentResolver.SYNC_EXEMPTION_NONE); in createOneTimeSyncOperation()
168 flexMillis = other.flexMillis; in SyncOperation()
236 jobInfoExtras.putLong("flexMillis", flexMillis); in toJobInfoExtras()
259 long periodMillis, flexMillis; in maybeCreateFromJobExtras() local
278 flexMillis = jobExtras.getLong("flexMillis"); in maybeCreateFromJobExtras()
[all …]
DSyncManager.java1247 op.extras, op.periodMillis / 1000, op.flexMillis / 1000)); in getPeriodicSyncs()
1646 b.setPeriodic(syncOperation.periodMillis, syncOperation.flexMillis); in scheduleSyncOperationH()
3361 long flexMillis) { in maybeUpdateSyncPeriodH() argument
3363 && flexMillis == syncOperation.flexMillis)) { in maybeUpdateSyncPeriodH()
3366 + " and flex to " + flexMillis); in maybeUpdateSyncPeriodH()
3369 flexMillis); in maybeUpdateSyncPeriodH()
3380 final long flexMillis = flex * 1000L; in updateOrAddPeriodicSyncH() local
3391 maybeUpdateSyncPeriodH(op, pollFrequencyMillis, flexMillis); in updateOrAddPeriodicSyncH()
3416 pollFrequencyMillis, flexMillis, ContentResolver.SYNC_EXEMPTION_NONE); in updateOrAddPeriodicSyncH()
/frameworks/base/core/java/android/app/job/
DJobInfo.java305 private final long flexMillis; field in JobInfo
557 return flexMillis; in getFlexMillis()
684 if (flexMillis != j.flexMillis) { in equals()
736 hashCode = 31 * hashCode + Long.hashCode(flexMillis); in hashCode()
772 flexMillis = in.readLong(); in JobInfo()
802 flexMillis = b.mFlexMillis; in JobInfo()
846 out.writeLong(flexMillis); in writeToParcel()
1372 public Builder setPeriodic(long intervalMillis, long flexMillis) { in setPeriodic() argument
1382 if (flexMillis < minFlex) { in setPeriodic()
1383 Log.w(TAG, "Requested flex " + formatDuration(flexMillis) + " for job " + mJobId in setPeriodic()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/content/
DSyncOperationTest.java153 assertEquals("Flex not restored", periodic.flexMillis, oneoff.flexMillis); in testFailedPeriodicConversion()
/frameworks/base/services/core/java/com/android/server/job/
DJobStore.java786 final long flexMillis = (val != null) ? Long.valueOf(val) : periodMillis; in restoreJobFromXml() local
787 jobBuilder.setPeriodic(periodMillis, flexMillis); in restoreJobFromXml()
792 if (elapsedRuntimes.second > elapsedNow + periodMillis + flexMillis) { in restoreJobFromXml()
793 final long clampedLateRuntimeElapsed = elapsedNow + flexMillis in restoreJobFromXml()
796 - flexMillis; in restoreJobFromXml()