Lines Matching refs:time

142      * Compute the time of the next operation.  Does not modify any state
146 * @return the wall clock time ({@link System#currentTimeMillis()}) when the
148 * before the current time.
159 // clipped to the current time so we don't languish forever.
170 long time = triggerTimeMillis;
172 time = Math.min(time, lastSuccessTimeMillis + options.periodicIntervalMillis);
175 time = Math.max(time, moratoriumTimeMillis);
176 time = Math.max(time, lastSuccessTimeMillis + options.minTriggerMillis);
187 // time grow too large.
192 time = Math.max(time, lastErrorTimeMillis + backoff);
194 return time;
198 * Return the last time the operation completed. Does not modify any state.
200 * @return the wall clock time when {@link #onSuccess()} was last called.
207 * Return the last time the operation was attempted. Does not modify any state.
209 * @return the wall clock time when {@link #onSuccess()} or {@link
220 * a certain time, updating the value if necessary. This is to recover
224 * @param max time to allow in result
228 long time = mStorage.getLong(name, 0);
229 if (time > max) {
230 time = max;
231 SharedPreferencesCompat.apply(mStorage.edit().putLong(name, time));
233 return time;
237 * Request an operation to be performed at a certain time. The actual
238 * scheduled time may be affected by error backoff logic and defined
241 * @param millis wall clock time ({@link System#currentTimeMillis()}) to
250 * Forbid any operations until after a certain (absolute) time.
253 * @param millis wall clock time ({@link System#currentTimeMillis()})
263 * Forbid any operations until after a certain time, as specified in
267 * @param retryAfter moratorium time in HTTP format
268 * @return true if a time was successfully parsed
314 * the error count and records the time of the latest error for backoff
363 Time time = new Time();
364 time.set((Long) e.getValue());
366 out.append("=").append(time.format("%Y-%m-%d/%H:%M:%S"));
382 * Gets the current time. Can be overridden for unit testing.