/frameworks/base/services/java/com/android/server/power/ |
H A D | DisplayPowerController.java | 851 final long now = SystemClock.uptimeMillis(); 852 if (mPendingProximityDebounceTime <= now) { 1061 final long now = System.currentTimeMillis(); 1063 getTwilightGamma(now, state.getYesterdaySunset(), state.getTodaySunrise()); 1065 getTwilightGamma(now, state.getTodaySunset(), state.getTomorrowSunrise()); 1100 private static float getTwilightGamma(long now, long lastSunset, long nextSunrise) { argument 1102 || now < lastSunset || now > nextSunrise) { 1106 if (now < lastSunset + TWILIGHT_ADJUSTMENT_TIME) { 1108 (float)(now [all...] |
H A D | PowerManagerService.java | 830 final long now = SystemClock.uptimeMillis(); 837 if (now >= mLastWarningAboutUserActivityPermission + (5 * 60 * 1000)) { 838 mLastWarningAboutUserActivityPermission = now; 1107 final long now = SystemClock.uptimeMillis(); 1115 updateUserActivitySummaryLocked(now, dirtyPhase1); 1179 final long now = SystemClock.uptimeMillis(); 1182 wakeUpNoUpdateLocked(now); 1185 now, PowerManager.USER_ACTIVITY_EVENT_OTHER, 0, Process.SYSTEM_UID); 1313 private void updateUserActivitySummaryLocked(long now, int dirty) { argument 1327 if (now < nextTimeou [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/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/downloadmanagertests/ |
H A D | DownloadManagerBaseTest.java | 371 long now = SystemClock.elapsedRealtime(); 372 long end = now + poll; 375 while (now < end) { 377 Thread.sleep(end - now); 381 now = SystemClock.elapsedRealtime();
|
/frameworks/opt/photoviewer/src/com/android/ex/photo/views/ |
H A D | PhotoView.java | 1008 long now = System.currentTimeMillis(); 1009 long ellapsed = now - mStartTime; 1079 long now = System.currentTimeMillis(); 1080 float delta = (mLastRunTime != NEVER) ? (now - mLastRunTime) / 1000f : 0f; 1082 mLastRunTime = now; 1175 long now = System.currentTimeMillis(); 1176 float delta = (mStartRunTime != NEVER) ? (now - mStartRunTime) : 0f; 1179 mStartRunTime = now; 1267 long now = System.currentTimeMillis(); 1268 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/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);
|
H A D | StrictMode.java | 1249 // violation fired and now (after the violating code ran) due 1285 long now = SystemClock.uptimeMillis(); 1286 mLastViolationTime.put(crashFingerprint, now); 1288 Long.MAX_VALUE : (now - lastViolationTime); 1454 long now = SystemClock.uptimeMillis(); 1455 if (now - sLastInstanceCountCheckMillis > 30 * 1000) { 1456 sLastInstanceCountCheckMillis = now; 1601 final long now = SystemClock.uptimeMillis(); 1607 timeSinceLastViolationMillis = now - lastViolationTime; 1610 sLastVmViolationTime.put(fingerprint, now); [all...] |
/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/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/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 | BootReceiver.java | 116 String now = Long.toString(System.currentTimeMillis()); 117 SystemProperties.set("ro.runtime.firstboot", now);
|
H A D | NetworkTimeUpdateService.java | 214 * @param interval when to trigger the alarm, starting from now. 218 long now = SystemClock.elapsedRealtime(); 219 long next = now + interval;
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
H A D | NotificationTestList.java | 208 new Test("Bad Icon #1 (when=now)") { 218 new Test("Null Icon #1 (when=now)") { 238 new Test("Bad resource #1 (when=now)") { 266 long now = System.currentTimeMillis(); 268 timeNotification(7, "24 hours from now", now+(1000*60*60*24)); 269 timeNotification(6, "12:01:00 from now", now+(1000*60*60*12)+(60*1000)); 270 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/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/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 | 747 * @deprecated setType is now ignored. 822 long now = SystemClock.uptimeMillis(); 824 if (nextTime > now) { 826 Thread.sleep(nextTime-now); 829 now = SystemClock.uptimeMillis(); 831 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 | 52 * We now monitor the quality of the last hop on WiFi using packet loss ratio as 808 long now = SystemClock.elapsedRealtime(); 809 if (now - mCurrentBssid.mLastTimeSample < LINK_SAMPLING_INTERVAL_MS * 2) { 845 mCurrentBssid.mLastTimeSample = now; 1115 long now = SystemClock.elapsedRealtime(); 1116 long lastGood = now - mLastTimeGood; 1117 long lastPoor = now - mLastTimePoor; 1141 mBssidAvoidTimeMax = now + avoidMax;
|
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
H A D | HWComposer.cpp | 426 nsecs_t now = systemTime(CLOCK_MONOTONIC); local 427 return now - ((now - mLastHwVSync) % mDisplayData[disp].refresh); 1068 const nsecs_t now = systemTime(CLOCK_MONOTONIC); 1070 nsecs_t sleep = next_vsync - now; 1073 sleep = (period - ((now - next_vsync) % period)); 1074 next_vsync = now + sleep;
|