Searched defs:currentTimeMillis (Results 1 - 9 of 9) sorted by relevance

/frameworks/base/core/java/android/util/
H A DTrustedTime.java51 * Return current time similar to {@link System#currentTimeMillis()},
54 public long currentTimeMillis(); method in interface:TrustedTime
H A DNtpTrustedTime.java118 public long currentTimeMillis() { method in class:NtpTrustedTime
122 if (LOGD) Log.d(TAG, "currentTimeMillis() cache hit");
/frameworks/ex/common/tests/src/com/android/common/
H A DOperationSchedulerTest.java34 protected long currentTimeMillis() { return timeMillis; } method in class:OperationSchedulerTest.TimeTravelScheduler
/frameworks/ex/common/java/com/android/common/
H A DOperationScheduler.java131 * @return the wall clock time ({@link System#currentTimeMillis()}) when the
147 long now = currentTimeMillis();
213 * @param millis wall clock time ({@link System#currentTimeMillis()}) to
225 * @param millis wall clock time ({@link System#currentTimeMillis()})
231 .putLong(PREFIX + "moratoriumSetTimeMillis", currentTimeMillis()));
245 setMoratoriumTimeMillis(ms + currentTimeMillis());
281 .putLong(PREFIX + "lastSuccessTimeMillis", currentTimeMillis()));
291 editor.putLong(PREFIX + "lastErrorTimeMillis", currentTimeMillis());
349 * @return {@link System#currentTimeMillis()}
351 protected long currentTimeMillis() { method in class:OperationScheduler
[all...]
/frameworks/base/core/java/com/android/internal/util/
H A DFileRotator.java181 public void rewriteActive(Rewriter rewriter, long currentTimeMillis) argument
183 final String activeName = getActiveName(currentTimeMillis);
188 public void combineActive(final Reader reader, final Writer writer, long currentTimeMillis) argument
210 }, currentTimeMillis);
304 private String getActiveName(long currentTimeMillis) { argument
313 if (info.isActive() && info.startMillis < currentTimeMillis
324 info.startMillis = currentTimeMillis;
334 public void maybeRotate(long currentTimeMillis) { argument
335 final long rotateBefore = currentTimeMillis - mRotateAgeMillis;
336 final long deleteBefore = currentTimeMillis
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsRecorder.java149 Map<String, NetworkIdentitySet> ifaceIdent, long currentTimeMillis) {
165 final long end = currentTimeMillis;
207 public void maybePersistLocked(long currentTimeMillis) { argument
210 forcePersistLocked(currentTimeMillis);
212 mRotator.maybeRotate(currentTimeMillis);
219 public void forcePersistLocked(long currentTimeMillis) { argument
223 mRotator.rewriteActive(mPendingRewriter, currentTimeMillis);
224 mRotator.maybeRotate(currentTimeMillis);
148 recordSnapshotLocked(NetworkStats snapshot, Map<String, NetworkIdentitySet> ifaceIdent, long currentTimeMillis) argument
H A DNetworkPolicyManagerService.java640 final long currentTime = currentTimeMillis();
919 final long currentTime = currentTimeMillis();
1024 final long currentTime = currentTimeMillis();
1490 final long currentTime = currentTimeMillis();
1577 final long currentTime = currentTimeMillis();
2034 private long currentTimeMillis() { method in class:NetworkPolicyManagerService
2035 return mTime.hasCache() ? mTime.currentTimeMillis() : System.currentTimeMillis();
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java656 expect(mStatsService.getNetworkTotalBytes(sTemplateWifi, TIME_FEB_15, currentTimeMillis()))
680 expect(mStatsService.getNetworkTotalBytes(sTemplateWifi, TIME_FEB_15, currentTimeMillis()))
704 expect(mStatsService.getNetworkTotalBytes(sTemplateWifi, TIME_FEB_15, currentTimeMillis()))
725 expect(mStatsService.getNetworkTotalBytes(sTemplateWifi, TIME_FEB_15, currentTimeMillis()))
745 expect(mStatsService.getNetworkTotalBytes(sTemplateWifi, TIME_FEB_15, currentTimeMillis()))
787 expect(mStatsService.getNetworkTotalBytes(sTemplateWifi, TIME_FEB_15, currentTimeMillis()))
828 expect(mTime.currentTimeMillis()).andReturn(currentTimeMillis()).anyTimes();
1000 private void setCurrentTimeMillis(long currentTimeMillis) { argument
1001 mStartTime = currentTimeMillis;
1005 private long currentTimeMillis() { method in class:NetworkPolicyManagerServiceTest
[all...]
H A DNetworkStatsServiceTest.java666 final long currentTime = currentTimeMillis();
953 expect(mTime.currentTimeMillis()).andReturn(currentTimeMillis()).anyTimes();
1042 private long currentTimeMillis() { method in class:NetworkStatsServiceTest

Completed in 121 milliseconds