/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 1012 long now = System.currentTimeMillis(); 1013 long ellapsed = now - mStartTime; 1083 long now = System.currentTimeMillis(); 1084 float delta = (mLastRunTime != NEVER) ? (now - mLastRunTime) / 1000f : 0f; 1086 mLastRunTime = now; 1179 long now = System.currentTimeMillis(); 1180 float delta = (mStartRunTime != NEVER) ? (now - mStartRunTime) : 0f; 1183 mStartRunTime = now; 1271 long now = System.currentTimeMillis(); 1272 long delta = mLastRuntime != NEVER ? now [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteConnectionPool.java | 530 Log.e(TAG, "Failed to close connection, its fate is now in the hands " 689 final long now = SystemClock.uptimeMillis(); 690 if (now < nextBusyTimeoutTime) { 691 busyTimeoutMillis = now - nextBusyTimeoutTime; 693 logConnectionPoolBusyLocked(now - waiter.mStartTime, connectionFlags); 695 nextBusyTimeoutTime = now + busyTimeoutMillis; 843 // If the primary connection is available, acquire it now. 954 // with other journal modes. For now, enabling connection pooling and 1040 final long now = SystemClock.uptimeMillis(); 1044 + ((now [all...] |
/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 345 * Returns a string describing 'time' as a time relative to 'now'. 351 * @param now the current time in milliseconds 356 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution) { argument 358 return getRelativeTimeSpanString(time, now, minResolution, flags); 362 * Returns a string describing 'time' as a time relative to 'now'. 371 * @param now the current time in milliseconds 381 public static CharSequence getRelativeTimeSpanString(long time, long now, long minResolution, argument 386 boolean past = (now >= time); 387 long duration = Math.abs(now - time); 437 count = getNumberOfDaysPassed(time, now); 726 formatSameDayTime(long then, long now, int dateStyle, int timeStyle) argument [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/base/core/java/android/os/ |
H A D | RecoverySystem.java | 286 long now = System.currentTimeMillis(); 289 now - lastPublishTime > PUBLISH_PROGRESS_INTERVAL_MS) { 291 lastPublishTime = now;
|
H A D | Message.java | 435 String toString(long now) { argument 442 TimeUtils.formatDuration(when-now, b);
|
/frameworks/base/core/java/android/widget/ |
H A D | EdgeEffect.java | 205 final long now = AnimationUtils.currentAnimationTimeMillis(); 206 if (mState == STATE_PULL_DECAY && now - mStartTime < mDuration) { 214 mStartTime = now;
|
/frameworks/base/services/java/com/android/server/pm/ |
H A D | UserManagerService.java | 714 long now = System.currentTimeMillis(); 715 userInfo.creationTime = (now > EPOCH_PLUS_30_YEARS) ? now : 0; 754 // on next startup, in case the runtime stops now before stopping and 889 long now = System.currentTimeMillis(); 894 if (now > EPOCH_PLUS_30_YEARS) { 895 user.lastLoggedInTime = now; 933 long now = System.currentTimeMillis(); 949 TimeUtils.formatDuration(now - user.creationTime, sb); 958 TimeUtils.formatDuration(now [all...] |
/frameworks/compile/libbcc/tools/build/ |
H A D | gen-build-info.py | 107 build_time = datetime.datetime.now().strftime('%Y/%m/%d %H:%M:%S')
|
/frameworks/base/core/java/android/accounts/ |
H A D | AccountManagerService.java | 653 protected String toDebugString(long now) { argument 654 return super.toDebugString(now) + ", hasFeatures" 701 protected String toDebugString(long now) { argument 702 return super.toDebugString(now) + ", removeAccount" 1034 protected String toDebugString(long now) { 1035 return super.toDebugString(now) + ", getAuthTokenLabel" 1116 protected String toDebugString(long now) { 1118 return super.toDebugString(now) + ", getAuthToken" 1286 protected String toDebugString(long now) { 1287 return super.toDebugString(now) 1492 toDebugString(long now) argument 1725 toDebugString(long now) argument [all...] |
/frameworks/base/core/java/android/content/ |
H A D | AsyncTaskLoader.java | 214 long now = SystemClock.uptimeMillis(); 215 if (now < (mLastLoadCompleteTime+mUpdateThrottle)) { 233 if (DEBUG) Slog.v(TAG, "Cancelled task is now canceled!");
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkStatsHistory.java | 387 for (long now = start; now < end; now += bucketDuration) { 389 final int index = Arrays.binarySearch(bucketStart, 0, bucketCount, now); 392 insertBucket(~index, now); 479 public Entry getValues(long start, long end, long now, Entry recycle) { argument 501 final boolean activeBucket = curStart < now && curEnd > now;
|
/frameworks/base/services/java/com/android/server/ |
H A D | NetworkTimeUpdateService.java | 205 * @param interval when to trigger the alarm, starting from now. 209 long now = SystemClock.elapsedRealtime(); 210 long next = now + interval;
|
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 | BroadcastQueue.java | 358 // We will process the next receiver right now if this is finishing 550 long now = SystemClock.uptimeMillis(); 552 (now > r.dispatchTime + (2*mTimeoutPeriod*numReceivers))) { 555 + " now=" + now 841 long now = SystemClock.uptimeMillis(); 859 if (timeoutTime > now) { 866 + mQueueName + "] @ " + now + ": resetting BROADCAST_TIMEOUT_MSG for " 874 + ", started " + (now - r.receiverTime) + "ms ago"); 875 r.receiverTime = now; [all...] |
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | NotificationTestList.java | 211 new Test("Bad Icon #1 (when=now)") { 221 new Test("Null Icon #1 (when=now)") { 241 new Test("Bad resource #1 (when=now)") { 269 long now = System.currentTimeMillis(); 271 timeNotification(7, "24 hours from now", now+(1000*60*60*24)); 272 timeNotification(6, "12:01:00 from now", now+(1000*60*60*12)+(60*1000)); 273 timeNotification(5, "12 hours from now", now [all...] |
/frameworks/compile/mclinker/lib/Support/Unix/ |
H A D | PathV3.inc | 47 // -> erase P+1 to now 225 // An iterator now is staying at the end of cache. (a temporal end)
|
/frameworks/support/v4/java/android/support/v4/content/ |
H A D | AsyncTaskLoader.java | 183 long now = SystemClock.uptimeMillis(); 184 if (now < (mLastLoadCompleteTime+mUpdateThrottle)) { 202 if (DEBUG) Log.v(TAG, "Cancelled task is now canceled!");
|
/frameworks/support/volley/src/com/android/volley/toolbox/ |
H A D | BasicNetwork.java | 196 long now = SystemClock.elapsedRealtime(); 197 VolleyLog.v("HTTP ERROR(%s) %d ms to fetch %s", what, (now - start), url);
|
/frameworks/base/services/java/com/android/server/power/ |
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/core/java/android/gesture/ |
H A D | GestureOverlayView.java | 463 final long now = SystemClock.uptimeMillis(); 464 final MotionEvent event = MotionEvent.obtain(now, now, 738 final long now = AnimationUtils.currentAnimationTimeMillis(); 739 final long duration = now - mFadingStart;
|
/frameworks/base/core/java/android/view/ |
H A D | SurfaceView.java | 745 * @deprecated setType is now ignored. 796 long now = SystemClock.uptimeMillis(); 798 if (nextTime > now) { 800 Thread.sleep(nextTime-now); 803 now = SystemClock.uptimeMillis(); 805 mLastLockTime = now;
|
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | DownloadManagerBaseTest.java | 727 long now = SystemClock.elapsedRealtime(); 728 long end = now + poll; 731 while (now < end) { 733 Thread.sleep(end - now); 737 now = SystemClock.elapsedRealtime();
|
/frameworks/base/wifi/java/android/net/wifi/ |
H A D | WifiWatchdogStateMachine.java | 51 * We now monitor the quality of the last hop on WiFi using packet loss ratio as 806 long now = SystemClock.elapsedRealtime(); 807 if (now - mCurrentBssid.mLastTimeSample < LINK_SAMPLING_INTERVAL_MS * 2) { 843 mCurrentBssid.mLastTimeSample = now; 1121 long now = SystemClock.elapsedRealtime(); 1122 long lastGood = now - mLastTimeGood; 1123 long lastPoor = now - mLastTimePoor; 1147 mBssidAvoidTimeMax = now + avoidMax;
|
/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;
|