Home
last modified time | relevance | path

Searched refs:now (Results 1 – 25 of 233) sorted by relevance

12345678910

/frameworks/base/opengl/tests/finish/
Dfinish.cpp77 long long now, t; in main() local
90 now = systemTime(); in main()
93 printf("memcpy() time = %llu us\n", (t-now)/1000); in main()
107 now = systemTime(); in main()
111 printf("glFinish() time = %llu us\n", (t-now)/1000); in main()
121 now = systemTime(); in main()
125 printf("glFinish() time = %llu us\n", (t-now)/1000); in main()
135 now = systemTime(); in main()
140 printf("glFinish() time = %llu us\n", (t-now)/1000); in main()
150 now = systemTime(); in main()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSmsProviderTest.java38 long now = System.currentTimeMillis(); in testProvider() local
46 Long.toString(now - (5 * 24 * 60 * 60 * 1000)), in testProvider()
47 Long.toString(now - (2 * 24 * 60 * 60 * 1000)), in testProvider()
48 Long.toString(now - (5 * 60 * 60 * 1000)), in testProvider()
49 Long.toString(now - (30 * 60 * 1000)), in testProvider()
50 Long.toString(now - (5 * 60 * 1000)), in testProvider()
51 Long.toString(now) in testProvider()
/frameworks/base/core/java/android/os/
DConditionVariable.java124 long now = System.currentTimeMillis(); in block() local
125 long end = now + timeout; in block()
126 while (!mCondition && now < end) { in block()
128 this.wait(end-now); in block()
132 now = System.currentTimeMillis(); in block()
/frameworks/base/core/java/android/util/
DTimingLogger.java124 long now = SystemClock.elapsedRealtime(); in addSplit() local
125 mSplits.add(now); in addSplit()
138 long now = first; in dumpToLog() local
140 now = mSplits.get(i); in dumpToLog()
144 Log.d(mTag, mLabel + ": " + (now - prev) + " ms, " + splitLabel); in dumpToLog()
146 Log.d(mTag, mLabel + ": end, " + (now - first) + " ms"); in dumpToLog()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java134 final Time now = new Time(Time.TIMEZONE_UTC); in computeLastCycleBoundary() local
135 now.set(currentTime); in computeLastCycleBoundary()
138 final Time cycle = new Time(now); in computeLastCycleBoundary()
142 if (Time.compare(cycle, now) >= 0) { in computeLastCycleBoundary()
145 final Time lastMonth = new Time(now); in computeLastCycleBoundary()
160 final Time now = new Time(Time.TIMEZONE_UTC); in computeNextCycleBoundary() local
161 now.set(currentTime); in computeNextCycleBoundary()
164 final Time cycle = new Time(now); in computeNextCycleBoundary()
168 if (Time.compare(cycle, now) <= 0) { in computeNextCycleBoundary()
171 final Time nextMonth = new Time(now); in computeNextCycleBoundary()
/frameworks/base/core/java/android/net/http/
DTimer.java35 long now = SystemClock.uptimeMillis(); in mark() local
37 HttpLog.v(message + " " + (now - mLast) + " total " + (now - mStart)); in mark()
39 mLast = now; in mark()
/frameworks/base/core/tests/coretests/src/android/os/
DTestHandlerThread.java39 long now = System.currentTimeMillis(); in doTest() local
40 long endTime = now + timeout; in doTest()
41 while (!mDone && now < endTime) { in doTest()
43 wait(endTime-now); in doTest()
47 now = System.currentTimeMillis(); in doTest()
DMessageQueueTest.java69 long now = SystemClock.uptimeMillis() + 200; in testMessageOrder()
72 mHandler.sendMessageAtTime(mHandler.obtainMessage(2), now + 1); in testMessageOrder()
73 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now + 2); in testMessageOrder()
74 mHandler.sendMessageAtTime(mHandler.obtainMessage(4), now + 2); in testMessageOrder()
75 mHandler.sendMessageAtTime(mHandler.obtainMessage(0), now + 0); in testMessageOrder()
76 mHandler.sendMessageAtTime(mHandler.obtainMessage(1), now + 0); in testMessageOrder()
88 long now = SystemClock.uptimeMillis() + 200; in testAtFrontOfQueue()
91 mHandler.sendMessageAtTime(mHandler.obtainMessage(3), now); in testAtFrontOfQueue()
/frameworks/base/services/java/com/android/server/
DWatchdog.java249 long now; in checkReboot() local
252 now = System.currentTimeMillis(); in checkReboot()
253 realStartTime = computeCalendarTime(mCalendar, now, in checkReboot()
258 (now-mBootTime) >= (rebootIntervalMillis-rebootWindowMillis)) { in checkReboot()
261 EventLog.writeEvent(EventLogTags.WATCHDOG_SCHEDULED_REBOOT, now, in checkReboot()
269 if (now < realStartTime) { in checkReboot()
272 now, rebootStartTime); in checkReboot()
273 } else if (now < (realStartTime+rebootWindowMillis)) { in checkReboot()
274 String doit = shouldWeBeBrutalLocked(now); in checkReboot()
275 EventLog.writeEvent(EventLogTags.WATCHDOG_SCHEDULED_REBOOT, now, in checkReboot()
[all …]
DAlarmManagerService.java440 final long now = System.currentTimeMillis(); in dump() local
444 pw.print(sdf.format(new Date(now))); pw.println("):"); in dump()
446 dumpAlarmList(pw, mRtcWakeupAlarms, " ", "RTC_WAKEUP", now); in dump()
449 dumpAlarmList(pw, mRtcAlarms, " ", "RTC", now); in dump()
453 final long now = SystemClock.elapsedRealtime(); in dump() local
456 TimeUtils.formatDuration(now, pw); pw.println("):"); in dump()
458 dumpAlarmList(pw, mElapsedRealtimeWakeupAlarms, " ", "ELAPSED_WAKEUP", now); in dump()
461 dumpAlarmList(pw, mElapsedRealtimeAlarms, " ", "ELAPSED", now); in dump()
487 String prefix, String label, long now) { in dumpAlarmList() argument
492 a.dump(pw, prefix + " ", now); in dumpAlarmList()
[all …]
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java119 long now = SystemClock.uptimeMillis(); in sendKeyEvent() local
122 KeyEvent down = new KeyEvent(now, now, KeyEvent.ACTION_DOWN, eventCode, 0); in sendKeyEvent()
123 KeyEvent up = new KeyEvent(now, now, KeyEvent.ACTION_UP, eventCode, 0); in sendKeyEvent()
/frameworks/base/core/java/android/content/
DSyncContext.java55 final long now = SystemClock.elapsedRealtime(); in updateHeartbeat() local
56 if (now < mLastHeartbeatSendTime + HEARTBEAT_SEND_INTERVAL_IN_MS) return; in updateHeartbeat()
58 mLastHeartbeatSendTime = now; in updateHeartbeat()
DSyncManager.java721 final long now = SystemClock.elapsedRealtime(); in increaseBackoffSetting() local
729 if (now < previousSettings.first) { in increaseBackoffSetting()
732 + "Remaining: " + ((previousSettings.first - now) / 1000) + " seconds."); in increaseBackoffSetting()
753 final long backoff = now + newDelayInMs; in increaseBackoffSetting()
1038 final long now = SystemClock.elapsedRealtime(); in dumpSyncState() local
1039 pw.print("now: "); pw.print(now); in dumpSyncState()
1041 pw.print("uptime: "); pw.print(DateUtils.formatElapsedTime(now/1000)); in dumpSyncState()
1052 … pw.print(DateUtils.formatElapsedTime((mSyncHandler.mAlarmScheduleTime-now)/1000)); in dumpSyncState()
1066 final long durationInSeconds = (now - activeSyncContext.mStartTime) / 1000; in dumpSyncState()
1104 if (settings.delayUntil > now) { in dumpSyncState()
[all …]
/frameworks/base/voip/java/com/android/server/sip/
DSipWakeupTimer.java127 long now = SystemClock.elapsedRealtime(); in insertEvent() local
129 event.mTriggerTime = now + event.mPeriod; in insertEvent()
138 interval -= (int) (firstEvent.mTriggerTime - now); in insertEvent()
143 long triggerTime = now + event.mPeriod; in insertEvent()
165 long now = SystemClock.elapsedRealtime(); in set() local
166 MyEvent event = new MyEvent(period, callback, now); in set()
177 + showTime(triggerTime) + " at " + showTime(now) in set()
305 MyEvent(int period, Runnable callback, long now) { in MyEvent() argument
308 mLastTriggerTime = now; in MyEvent()
/frameworks/base/core/java/android/view/
DDisplay.java166 long now = SystemClock.uptimeMillis(); in getWidth() local
167 if (now > (mLastGetTime+20)) { in getWidth()
169 mLastGetTime = now; in getWidth()
181 long now = SystemClock.uptimeMillis(); in getHeight() local
182 if (now > (mLastGetTime+20)) { in getHeight()
184 mLastGetTime = now; in getHeight()
/frameworks/base/libs/utils/
DBlobCache.cpp33 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in BlobCache() local
35 srand(now); in BlobCache()
37 mRandState[0] = (now >> 0) & 0xFFFF; in BlobCache()
38 mRandState[1] = (now >> 16) & 0xFFFF; in BlobCache()
39 mRandState[2] = (now >> 32) & 0xFFFF; in BlobCache()
41 LOGV("initializing random seed using %lld", now); in BlobCache()
DLooper.cpp220 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() local
221 int messageTimeoutMillis = toMillisecondTimeoutDelay(now, mNextMessageUptime); in pollInner()
228 this, mNextMessageUptime - now, timeoutMillis); in pollInner()
370 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollInner() local
372 if (messageEnvelope.uptime <= now) { in pollInner()
443 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in pollAll() local
444 timeoutMillis = toMillisecondTimeoutDelay(now, endTime); in pollAll()
665 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessage() local
666 sendMessageAtTime(now, handler, message); in sendMessage()
671 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in sendMessageDelayed() local
[all …]
/frameworks/base/core/java/com/android/internal/view/
DBaseSurfaceHolder.java199 long now = SystemClock.uptimeMillis(); in internalLockCanvas() local
201 if (nextTime > now) { in internalLockCanvas()
203 Thread.sleep(nextTime-now); in internalLockCanvas()
206 now = SystemClock.uptimeMillis(); in internalLockCanvas()
208 mLastLockTime = now; in internalLockCanvas()
/frameworks/base/services/surfaceflinger/
DMessageQueue.cpp72 nsecs_t now = systemTime(); in waitMessage() local
81 if (result->when <= now) { in waitMessage()
93 mInvalidateMessage->when = now; in waitMessage()
99 if (timeoutTime < now) { in waitMessage()
/frameworks/base/core/java/android/widget/
DDigitalClock.java90 long now = SystemClock.uptimeMillis(); in onAttachedToWindow()
91 long next = now + (1000 - now % 1000); in onAttachedToWindow()
/frameworks/base/core/java/android/webkit/
DCookieManager.java392 long now = System.currentTimeMillis(); in setCookie() local
404 if (cookie.expires < 0 || cookie.expires > now) { in setCookie()
410 cookieEntry.lastAcessTime = now; in setCookie()
411 cookieEntry.lastUpdateTime = now; in setCookie()
415 cookieEntry.lastUpdateTime = now; in setCookie()
425 if (!done && (cookie.expires < 0 || cookie.expires > now)) { in setCookie()
426 cookie.lastAcessTime = now; in setCookie()
427 cookie.lastUpdateTime = now; in setCookie()
431 toDelete.lastAcessTime = now; in setCookie()
520 long now = System.currentTimeMillis(); in getCookie() local
[all …]
/frameworks/base/services/java/com/android/server/am/
DServiceRecord.java156 void dumpStartList(PrintWriter pw, String prefix, List<StartItem> list, long now) { in dumpStartList() argument
162 if (now != 0) { in dumpStartList()
164 TimeUtils.formatDuration(si.deliveredTime, now, pw); in dumpStartList()
202 long now = SystemClock.uptimeMillis(); in dump() local
218 TimeUtils.formatDuration(lastActivity, now, pw); in dump()
221 TimeUtils.formatDuration(executingStart, now, pw); in dump()
223 TimeUtils.formatDuration(restartTime, now, pw); in dump()
236 TimeUtils.formatDuration(restartDelay, now, pw); in dump()
238 TimeUtils.formatDuration(nextRestartTime, now, pw); in dump()
243 dumpStartList(pw, prefix, deliveredStarts, now); in dump()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DDateView.java91 Date now = new Date(); in updateClock() local
92 CharSequence dow = DateFormat.format("EEEE", now); in updateClock()
93 CharSequence date = DateFormat.getLongDateFormat(context).format(now); in updateClock()
/frameworks/base/graphics/java/android/graphics/drawable/
DDrawableContainer.java280 final long now = SystemClock.uptimeMillis(); in selectDrawable() local
292 mExitAnimationEnd = now + mDrawableContainerState.mExitFadeDuration; in selectDrawable()
307 mEnterAnimationEnd = now + mDrawableContainerState.mEnterFadeDuration; in selectDrawable()
344 final long now = SystemClock.uptimeMillis(); in animate() local
348 if (mEnterAnimationEnd <= now) { in animate()
352 int animAlpha = (int)((mEnterAnimationEnd-now)*255) in animate()
364 if (mExitAnimationEnd <= now) { in animate()
369 int animAlpha = (int)((mExitAnimationEnd-now)*255) in animate()
381 scheduleSelf(mAnimationRunnable, now + 1000/60); in animate()
/frameworks/base/services/jni/
Dcom_android_server_PowerManagerService.cpp83 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); in android_server_PowerManagerService_userActivity() local
84 if (eventTime > now) { in android_server_PowerManagerService_userActivity()
85 eventTime = now; in android_server_PowerManagerService_userActivity()

12345678910