/frameworks/support/v4/java/android/support/v4/util/ |
H A D | TimeUtils.java | 168 public static void formatDuration(long time, long now, PrintWriter pw) { argument 173 formatDuration(time-now, pw, 0);
|
/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.c | 48 time_t now = time(NULL); local 60 strftime(date, sizeof(date), "%Y-%m-%d %H:%M:%S", localtime(&now)); 423 time_t now = time(NULL); local 424 strftime(date, sizeof(date), "-%Y-%m-%d-%H-%M-%S", localtime(&now)); 465 /* rename the (now complete) .tmp file to its final location */
|
/frameworks/native/libs/utils/ |
H A D | BlobCache.cpp | 43 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 45 srand(now); 47 mRandState[0] = (now >> 0) & 0xFFFF; 48 mRandState[1] = (now >> 16) & 0xFFFF; 49 mRandState[2] = (now >> 32) & 0xFFFF; 51 ALOGV("initializing random seed using %lld", now);
|
H A D | Looper.cpp | 200 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 201 int messageTimeoutMillis = toMillisecondTimeoutDelay(now, mNextMessageUptime); 208 this, mNextMessageUptime - now, timeoutMillis); 276 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 278 if (messageEnvelope.uptime <= now) { 351 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 352 timeoutMillis = toMillisecondTimeoutDelay(now, endTime); 482 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 483 sendMessageAtTime(now, handler, message); 488 nsecs_t now local [all...] |
/frameworks/native/libs/utils/tests/ |
H A D | Looper_test.cpp | 561 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 563 mLooper->sendMessageAtTime(now + ms2ns(100), handler, Message(MSG_TEST1)); 598 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 600 mLooper->sendMessageAtTime(now - ms2ns(1000), handler, Message(MSG_TEST1)); 617 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 619 mLooper->sendMessageAtTime(now, handler, Message(MSG_TEST1));
|
/frameworks/native/opengl/tests/fillrate/ |
H A D | fillrate.cpp | 142 nsecs_t now = systemTime(); local 147 nsecs_t t = systemTime() - now;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.cpp | 418 nsecs_t now = systemTime(CLOCK_MONOTONIC); local 419 return now - ((now - mLastHwVSync) % mDisplayData[disp].refresh); 1017 const nsecs_t now = systemTime(CLOCK_MONOTONIC); local 1019 nsecs_t sleep = next_vsync - now; 1022 sleep = (period - ((now - next_vsync) % period)); 1023 next_vsync = now + sleep;
|
/frameworks/native/services/surfaceflinger/ |
H A D | SurfaceFlinger.cpp | 210 const nsecs_t now = systemTime(); local 211 const nsecs_t duration = now - mBootTime; 223 // formerly we would just kill the process, but we now ask it to exit so it 528 // We're now ready to accept clients... 999 const nsecs_t now = systemTime(); local 1000 mDebugInSwapBuffers = now; 1033 mLastSwapBufferTime = systemTime() - now; 1042 const nsecs_t now = systemTime(); local 1043 mDebugInTransaction = now; 1054 mLastTransactionTime = systemTime() - now; 2266 const nsecs_t now = systemTime(); local [all...] |
/frameworks/base/voip/java/com/android/server/sip/ |
H A D | SipWakeupTimer.java | 127 long now = SystemClock.elapsedRealtime(); 129 event.mTriggerTime = now + event.mPeriod; 138 interval -= (int) (firstEvent.mTriggerTime - now); 143 long triggerTime = now + event.mPeriod; 165 long now = SystemClock.elapsedRealtime(); 166 MyEvent event = new MyEvent(period, callback, now); 177 + showTime(triggerTime) + " at " + showTime(now) 305 MyEvent(int period, Runnable callback, long now) { argument 308 mLastTriggerTime = now;
|
/frameworks/base/services/common_time/ |
H A D | clock_recovery.cpp | 194 // now. 337 int64_t now = local_clock_->getLocalTime(); local 344 time_to_cur_slew_.a_zero = now; 373 int64_t now = local_clock_->getLocalTime(); local 376 if (now >= slew_change_end_time_) { 380 time_to_cur_slew_.doForwardTransform(now, &tmp);
|
H A D | common_time_server.cpp | 274 // Success! We are now joining a new network (either coming 426 // TODO: add proper support for IPv6. Right now, we block IPv6 addresses at 1471 int64_t now = mLocalClock.getLocalTime(); local 1472 int64_t delta = now - (mClient_LastGoodSyncRX
|
/frameworks/base/services/input/ |
H A D | InputDispatcher.cpp | 88 static inline nsecs_t now() { function in namespace:android 241 nsecs_t currentTime = now(); 247 nsecs_t currentTime = now(); 996 mInputTargetWaitTimeoutTime = now() + newTimeout; 1113 nsecs_t startTime = now(); 2122 nsecs_t currentTime = now(); 2187 nsecs_t currentTime = now(); 2547 nsecs_t endTime = now() + milliseconds_to_nanoseconds(timeoutMillis); 2670 nsecs_t remainingTimeout = endTime - now(); 2690 nsecs_t remainingTimeout = endTime - now(); [all...] |
H A D | InputReader.cpp | 263 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 264 timeoutMillis = toMillisecondTimeoutDelay(now, mNextTimeout); 279 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 280 if (now >= mNextTimeout) { 282 ALOGD("Timeout expired, latency=%0.3fms", (now - mNextTimeout) * 0.000001f); 285 timeoutExpiredLocked(now); 499 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 506 device->configure(now, &mConfig, changes); 529 bool InputReader::shouldDropVirtualKeyLocked(nsecs_t now, argument 531 if (now < mDisableVirtualKeysTimeou 794 shouldDropVirtualKey(nsecs_t now, InputDevice* device, int32_t keyCode, int32_t scanCode) argument 1943 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local [all...] |
/frameworks/base/services/input/tests/ |
H A D | InputReader_test.cpp | 755 virtual bool shouldDropVirtualKey(nsecs_t now, argument
|
/frameworks/base/services/java/com/android/server/ |
H A D | AlarmManagerService.java | 142 // now that we have initied the driver schedule the alarm 475 final long now = System.currentTimeMillis(); 478 pw.print(" Realtime wakeup (now="); 479 pw.print(sdf.format(new Date(now))); pw.println("):"); 481 dumpAlarmList(pw, mRtcWakeupAlarms, " ", "RTC_WAKEUP", now); 484 dumpAlarmList(pw, mRtcAlarms, " ", "RTC", now); 488 final long now = SystemClock.elapsedRealtime(); 490 pw.print(" Elapsed realtime wakeup (now="); 491 TimeUtils.formatDuration(now, pw); pw.println("):"); 493 dumpAlarmList(pw, mElapsedRealtimeWakeupAlarms, " ", "ELAPSED_WAKEUP", now); 522 dumpAlarmList(PrintWriter pw, ArrayList<Alarm> list, String prefix, String label, long now) argument 538 triggerAlarmsLocked(ArrayList<Alarm> alarmList, ArrayList<Alarm> triggerList, long now) argument 643 dump(PrintWriter pw, String prefix, long now) argument [all...] |
H A D | LocationManagerService.java | 865 * has been deprecated as well. So this method now uses 1549 Location loc, Location lastLoc, UpdateRecord record, long now) { 1576 if (record.mRequest.getExpireAt() < now) { 1586 long now = SystemClock.elapsedRealtime(); 1659 if ((lastLoc == null) || shouldBroadcastSafe(notifyLocation, lastLoc, r, now)) { 1686 if (r.mRequest.getNumUpdates() <= 0 || r.mRequest.getExpireAt() < now) { 1548 shouldBroadcastSafe( Location loc, Location lastLoc, UpdateRecord record, long now) argument
|
H A D | ThrottleService.java | 426 // if we poll now we won't have network connectivity or even imsi access 502 long now = SystemClock.elapsedRealtime(); 503 long next = now + mPolicyPollPeriodSec * 1000; 645 long now = System.currentTimeMillis(); 646 long timeUsed = now - start; 712 private Calendar calculatePeriodEnd(long now) { argument 714 end.setTimeInMillis(now); 733 end.setTimeInMillis(now); 769 final long now = mTime.currentTimeMillis(); 770 Calendar end = calculatePeriodEnd(now); [all...] |
/frameworks/base/services/java/com/android/server/am/ |
H A D | ServiceRecord.java | 161 void dumpStartList(PrintWriter pw, String prefix, List<StartItem> list, long now) { argument 167 if (now != 0) { 169 TimeUtils.formatDuration(si.deliveredTime, now, pw); 207 long now = SystemClock.uptimeMillis(); 226 TimeUtils.formatDuration(lastActivity, now, pw); 229 TimeUtils.formatDuration(executingStart, now, pw); 231 TimeUtils.formatDuration(restartTime, now, pw); 244 TimeUtils.formatDuration(restartDelay, now, pw); 246 TimeUtils.formatDuration(nextRestartTime, now, pw); 251 dumpStartList(pw, prefix, deliveredStarts, now); [all...] |
/frameworks/base/services/java/com/android/server/power/ |
H A D | DisplayPowerController.java | 852 final long now = SystemClock.uptimeMillis(); 853 if (mPendingProximityDebounceTime <= now) { 1062 final long now = System.currentTimeMillis(); 1064 getTwilightGamma(now, state.getYesterdaySunset(), state.getTodaySunrise()); 1066 getTwilightGamma(now, state.getTodaySunset(), state.getTomorrowSunrise()); 1101 private static float getTwilightGamma(long now, long lastSunset, long nextSunrise) { argument 1103 || now < lastSunset || now > nextSunrise) { 1107 if (now < lastSunset + TWILIGHT_ADJUSTMENT_TIME) { 1109 (float)(now [all...] |
H A D | PowerManagerService.java | 791 final long now = SystemClock.uptimeMillis(); 798 if (now >= mLastWarningAboutUserActivityPermission + (5 * 60 * 1000)) { 799 mLastWarningAboutUserActivityPermission = now; 1068 final long now = SystemClock.uptimeMillis(); 1076 updateUserActivitySummaryLocked(now, dirtyPhase1); 1136 final long now = SystemClock.uptimeMillis(); 1138 wakeUpNoUpdateLocked(now); 1141 now, PowerManager.USER_ACTIVITY_EVENT_OTHER, 0, Process.SYSTEM_UID); 1278 private void updateUserActivitySummaryLocked(long now, int dirty) { argument 1292 if (now < nextTimeou [all...] |
/frameworks/base/services/java/com/android/server/wm/ |
H A D | ScreenRotationAnimation.java | 681 private boolean stepAnimation(long now) { argument 682 if (now > mHalfwayPoint) { 686 if (DEBUG_STATE) Slog.v(TAG, "Step: finish anim now ready"); 687 mFinishAnimStartTime = now; 693 mMoreStartExit = mStartExitAnimation.getTransformation(now, mStartExitTransformation); 699 mMoreStartEnter = mStartEnterAnimation.getTransformation(now, mStartEnterTransformation); 706 mMoreStartFrame = mStartFrameAnimation.getTransformation(now, mStartFrameTransformation); 711 long finishNow = mFinishAnimReady ? (now - mFinishAnimStartTime) : 0; 737 mMoreRotateExit = mRotateExitAnimation.getTransformation(now, mRotateExitTransformation); 743 mMoreRotateEnter = mRotateEnterAnimation.getTransformation(now, mRotateEnterTransformatio 903 stepAnimationLocked(long now) argument [all...] |
/frameworks/base/services/jni/ |
H A D | com_android_server_power_PowerManagerService.cpp | 97 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 98 if (eventTime > now) { 99 eventTime = now;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
H A D | DeadZone.java | 88 private float getSize(long now) { argument 91 long dt = (now - mLastPokeTime);
|
/frameworks/base/libs/androidfw/ |
H A D | KeyCharacterMap.cpp | 298 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 312 addMetaKeys(outEvents, deviceId, metaState, true, now, ¤tMetaState); 313 addKey(outEvents, deviceId, keyCode, currentMetaState, true, now); 314 addKey(outEvents, deviceId, keyCode, currentMetaState, false, now); 315 addMetaKeys(outEvents, deviceId, metaState, false, now, ¤tMetaState);
|
/frameworks/av/media/libstagefright/wifi-display/sink/ |
H A D | WifiDisplaySink.cpp | 175 // The control connection is dead now. 186 ALOGI("We're now connected."); 628 time_t now = time(NULL); local 629 struct tm *now2 = gmtime(&now);
|