Home
last modified time | relevance | path

Searched refs:currentTimeMillis (Results 1 – 25 of 278) sorted by relevance

12345678910>>...12

/frameworks/base/tools/layoutlib/bridge/src/android/os/
DSystemClock_Delegate.java33 private static long sBootTime = System.currentTimeMillis();
45 return System.currentTimeMillis() - sBootTime; in uptimeMillis()
55 return System.currentTimeMillis() - sBootTime; in elapsedRealtime()
75 return System.currentTimeMillis(); in currentThreadTimeMillis()
87 return System.currentTimeMillis() * 1000; in currentThreadTimeMicro()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java83 mCompletedTime = System.currentTimeMillis(); in setFiredFlag()
443 start = System.currentTimeMillis(); in enable()
447 start = System.currentTimeMillis(); in enable()
455 long s = System.currentTimeMillis(); in enable()
456 while (System.currentTimeMillis() - s < ENABLE_DISABLE_TIMEOUT) { in enable()
499 start = System.currentTimeMillis(); in disable()
503 start = System.currentTimeMillis(); in disable()
515 long s = System.currentTimeMillis(); in disable()
516 while (System.currentTimeMillis() - s < ENABLE_DISABLE_TIMEOUT) { in disable()
560 long start = System.currentTimeMillis(); in discoverable()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/
DVelocityTest.java48 long t = System.currentTimeMillis(); in testClear()
63 long t = System.currentTimeMillis(); in testDragAcceleration()
74 long t = System.currentTimeMillis(); in testDragDeceleration()
85 long t = System.currentTimeMillis(); in testDragLinearHorizontal()
97 long t = System.currentTimeMillis(); in testDragLinearVertical()
113 long t = System.currentTimeMillis(); in testDragWith2Points()
129 long t = System.currentTimeMillis(); in testStabilityInNbPoints()
151 long t = System.currentTimeMillis(); in testStabilityInTime()
173 long t = System.currentTimeMillis(); in testStabilityInSpace()
195 long t = System.currentTimeMillis(); in testStabilityOfComputation()
[all …]
/frameworks/base/sax/tests/saxtests/src/android/sax/
DExpatPerformanceTest.java76 long start = System.currentTimeMillis(); in runSax()
78 long elapsed = System.currentTimeMillis() - start; in runSax()
83 long start = System.currentTimeMillis(); in runExpatPullParser()
87 long elapsed = System.currentTimeMillis() - start; in runExpatPullParser()
93 long start = System.currentTimeMillis(); in runJavaPullParser()
98 long elapsed = System.currentTimeMillis() - start; in runJavaPullParser()
/frameworks/base/core/tests/coretests/src/android/os/
DTraceTest.java40 long start = System.currentTimeMillis(); in testNativeTracingFromJava()
48 long end = System.currentTimeMillis(); in testNativeTracingFromJava()
60 long start = System.currentTimeMillis(); in disableTestNativeTracingFromC()
62 long end = System.currentTimeMillis(); in disableTestNativeTracingFromC()
73 long start = System.currentTimeMillis(); in testMethodTracing()
77 long end = System.currentTimeMillis(); in testMethodTracing()
DTestHandlerThread.java39 long now = System.currentTimeMillis(); in doTest()
47 now = System.currentTimeMillis(); in doTest()
/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java181 public void rewriteActive(Rewriter rewriter, long currentTimeMillis) in rewriteActive() argument
183 final String activeName = getActiveName(currentTimeMillis); in rewriteActive()
188 public void combineActive(final Reader reader, final Writer writer, long currentTimeMillis) in combineActive() argument
210 }, currentTimeMillis); in combineActive()
304 private String getActiveName(long currentTimeMillis) { in getActiveName() argument
313 if (info.isActive() && info.startMillis < currentTimeMillis in getActiveName()
324 info.startMillis = currentTimeMillis; in getActiveName()
334 public void maybeRotate(long currentTimeMillis) { in maybeRotate() argument
335 final long rotateBefore = currentTimeMillis - mRotateAgeMillis; in maybeRotate()
336 final long deleteBefore = currentTimeMillis - mDeleteAgeMillis; in maybeRotate()
[all …]
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
DLaunchTest.java42 long t = java.lang.System.currentTimeMillis(); in XLW()
45 t = java.lang.System.currentTimeMillis() - t; in XLW()
50 long t = java.lang.System.currentTimeMillis(); in XYW()
53 t = java.lang.System.currentTimeMillis() - t; in XYW()
DMandelbrot.java38 long t = java.lang.System.currentTimeMillis(); in run()
41 t = java.lang.System.currentTimeMillis() - t; in run()
/frameworks/rs/java/tests/LatencyBenchmark/src/com/example/android/rs/computebench/
DBenchmark.java39 long t = java.lang.System.currentTimeMillis(); in run()
45 t = java.lang.System.currentTimeMillis() - t; in run()
52 t = java.lang.System.currentTimeMillis(); in run()
56 t = java.lang.System.currentTimeMillis() - t; in run()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DANQPData.java43 mCtime = System.currentTimeMillis(); in ANQPData()
59 mCtime = System.currentTimeMillis(); in ANQPData()
79 return expired(System.currentTimeMillis()); in expired()
89 mExpiry > System.currentTimeMillis(); in isValid()
105 long now = System.currentTimeMillis(); in toString()
DChronograph.java38 long at = System.currentTimeMillis() + interval; in addAlarm()
79 long now = System.currentTimeMillis(); in run()
108 now = System.currentTimeMillis(); in run()
119 sleep = nextExpiration - System.currentTimeMillis(); in run()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/scenegraph/
DColladaScene.java75 long start = System.currentTimeMillis(); in doInBackground()
89 long end = System.currentTimeMillis(); in doInBackground()
92 start = System.currentTimeMillis(); in doInBackground()
94 end = System.currentTimeMillis(); in doInBackground()
113 long start = System.currentTimeMillis(); in doInBackground()
127 long end = System.currentTimeMillis(); in doInBackground()
/frameworks/volley/src/test/java/com/android/volley/toolbox/
DHttpHeaderParserTest.java86 long now = System.currentTimeMillis(); in parseCacheHeaders_normalExpire()
102 long now = System.currentTimeMillis(); in parseCacheHeaders_expiresInPast()
117 long now = System.currentTimeMillis(); in parseCacheHeaders_serverRelative()
130 long now = System.currentTimeMillis(); in parseCacheHeaders_cacheControlOverridesExpires()
144 long now = System.currentTimeMillis(); in testParseCacheHeaders_staleWhileRevalidate()
162 long now = System.currentTimeMillis(); in parseCacheHeaders_cacheControlNoCache()
173 long now = System.currentTimeMillis(); in parseCacheHeaders_cacheControlMustRevalidateNoMaxAge()
186 long now = System.currentTimeMillis(); in parseCacheHeaders_cacheControlMustRevalidateWithMaxAge()
199 long now = System.currentTimeMillis(); in parseCacheHeaders_cacheControlMustRevalidateWithMaxAgeAndStale()
273 long now = System.currentTimeMillis();
/frameworks/ex/common/java/com/android/common/
DOperationScheduler.java162 long now = currentTimeMillis(); in getNextTimeMillis()
259 .putLong(PREFIX + "moratoriumSetTimeMillis", currentTimeMillis())); in setMoratoriumTimeMillis()
273 setMoratoriumTimeMillis(ms + currentTimeMillis()); in setMoratoriumTimeHttp()
309 .putLong(PREFIX + "lastSuccessTimeMillis", currentTimeMillis())); in onSuccess()
319 editor.putLong(PREFIX + "lastErrorTimeMillis", currentTimeMillis()); in onTransientError()
386 protected long currentTimeMillis() { in currentTimeMillis() method in OperationScheduler
387 return System.currentTimeMillis(); in currentTimeMillis()
/frameworks/base/tests/CanvasCompare/src/com/android/test/hwuicompare/
DErrorCalculator.java74 startMillis = System.currentTimeMillis(); in calcErrorRS()
95 long startMillis2 = System.currentTimeMillis(); in calcErrorRS()
107 long finalMillis = System.currentTimeMillis(); in calcErrorRS()
134 startMillis = System.currentTimeMillis(); in calcError()
149 long startMillis2 = System.currentTimeMillis(); in calcError()
167 long finalMillis = System.currentTimeMillis(); in calcError()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsRecorder.java168 long currentTimeMillis) { in recordSnapshotLocked() argument
184 final long end = currentTimeMillis; in recordSnapshotLocked()
232 public void maybePersistLocked(long currentTimeMillis) { in maybePersistLocked() argument
235 forcePersistLocked(currentTimeMillis); in maybePersistLocked()
237 mRotator.maybeRotate(currentTimeMillis); in maybePersistLocked()
244 public void forcePersistLocked(long currentTimeMillis) { in forcePersistLocked() argument
248 mRotator.rewriteActive(mPendingRewriter, currentTimeMillis); in forcePersistLocked()
249 mRotator.maybeRotate(currentTimeMillis); in forcePersistLocked()
/frameworks/base/services/usage/java/com/android/server/usage/
DUserUsageStatsService.java83 void init(final long currentTimeMillis, final long deviceUsageTime) { in init() argument
84 mDatabase.init(currentTimeMillis); in init()
107 loadActiveStats(currentTimeMillis,/*force=*/ false, /*resetBeginIdleTime=*/ false); in init()
138 initializeDefaultsForApps(currentTimeMillis, deviceUsageTime, in init()
149 private void initializeDefaultsForApps(long currentTimeMillis, long deviceUsageTime, in initializeDefaultsForApps() argument
160 stats.update(packageName, currentTimeMillis, Event.SYSTEM_INTERACTION); in initializeDefaultsForApps()
424 private void rolloverStats(final long currentTimeMillis) { in rolloverStats() argument
450 mDatabase.prune(currentTimeMillis); in rolloverStats()
451 loadActiveStats(currentTimeMillis, /*force=*/ false, /*resetBeginIdleTime=*/ false); in rolloverStats()
480 private void loadActiveStats(final long currentTimeMillis, boolean force, in loadActiveStats() argument
[all …]
DUsageStatsDatabase.java70 public void init(long currentTimeMillis) { in init() argument
85 final int startIndex = files.closestIndexOnOrAfter(currentTimeMillis); in init()
488 public void prune(final long currentTimeMillis) { in prune() argument
490 mCal.setTimeInMillis(currentTimeMillis); in prune()
495 mCal.setTimeInMillis(currentTimeMillis); in prune()
500 mCal.setTimeInMillis(currentTimeMillis); in prune()
505 mCal.setTimeInMillis(currentTimeMillis); in prune()
/frameworks/base/core/java/android/os/
DConditionVariable.java124 long now = System.currentTimeMillis(); in block()
132 now = System.currentTimeMillis(); in block()
/frameworks/volley/src/main/java/com/android/volley/
DCache.java91 return this.ttl < System.currentTimeMillis(); in isExpired()
96 return this.softTtl < System.currentTimeMillis(); in refreshNeeded()
/frameworks/rs/java/tests/ComputeBenchmark/src/com/example/android/rs/computebench/
DBenchmark.java32 long t = java.lang.System.currentTimeMillis(); in run()
35 t = java.lang.System.currentTimeMillis() - t; in run()
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
DDateUtils.java50 return getKMLTimestamp(System.currentTimeMillis()); in getCurrentKMLTimestamp()
58 c.setTimeInMillis(System.currentTimeMillis()); in getCurrentTimestamp()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DNotificationTestList.java71 mActivityCreateTime = System.currentTimeMillis(); in onCreate()
172 .setWhen(System.currentTimeMillis()-(1000*60*60*24))
176 .setWhen(System.currentTimeMillis())
180 .setWhen(System.currentTimeMillis() + (1000 * 60 * 60 * 24))
202 .setWhen(System.currentTimeMillis())
215 .setWhen(System.currentTimeMillis())
242 .setWhen(System.currentTimeMillis())
255 long now = System.currentTimeMillis();
272 .setWhen(System.currentTimeMillis())
285 .setWhen(System.currentTimeMillis())
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipConnectionBase.java62 mCreateTime = System.currentTimeMillis(); in SipConnectionBase()
71 mConnectTime = System.currentTimeMillis(); in setState()
76 mDisconnectTime = System.currentTimeMillis(); in setState()

12345678910>>...12