/frameworks/base/libs/common_time/ |
H A D | clock_recovery.cpp | 195 // now. 338 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);
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | AnqpCache.java | 175 long now = mClock.currentTimeMillis(); 179 mLastSweep = now; 181 else if (now > mLastSweep + CACHE_RECHECK) { 184 if (entry.getValue().expired(now)) { 194 mLastSweep = now;
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | SwipeProgressBar.java | 148 long now = AnimationUtils.currentAnimationTimeMillis(); 149 long elapsed = (now - mStartTime) % ANIMATION_DURATION_MS; 150 long iterations = (now - mStartTime) / ANIMATION_DURATION_MS; 158 if ((now - mFinishTime) >= FINISH_ANIMATION_DURATION_MS) { 166 long finishElapsed = (now - mFinishTime) % FINISH_ANIMATION_DURATION_MS;
|
/frameworks/base/core/java/com/android/internal/app/procstats/ |
H A D | ProcessStats.java | 241 long now = SystemClock.uptimeMillis(); 244 thisProc = thisProc.clone(now); 332 public void computeTotalMemoryUse(TotalMemoryUseCollection data, long now) { argument 356 memTime += now - mStartTime; 390 proc.aggregatePss(data, now); 402 if (DEBUG) Slog.d(TAG, "State reset; now " + mTimePeriodStartClockStr); 410 final long now = SystemClock.uptimeMillis(); 431 ps.resetSafely(now); 442 ss.resetSafely(now); 478 ps.resetSafely(now); 707 writeToParcel(Parcel out, long now, int flags) argument 1219 dumpLocked(PrintWriter pw, String reqPackage, long now, boolean dumpSummary, boolean dumpAll, boolean activeOnly) argument 1407 dumpSummaryLocked(PrintWriter pw, String reqPackage, long now, boolean activeOnly) argument 1448 dumpTotalsLocked(PrintWriter pw, long now) argument 1513 dumpFilteredSummaryLocked(PrintWriter pw, String header, String prefix, int[] screenStates, int[] memStates, int[] procStates, int[] sortProcStates, long now, long totalTime, String reqPackage, boolean activeOnly) argument 1528 collectProcessesLocked(int[] screenStates, int[] memStates, int[] procStates, int sortProcStates[], long now, String reqPackage, boolean activeOnly) argument [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | ScreenRotationAnimation.java | 744 private boolean stepAnimation(long now) { argument 745 if (now > mHalfwayPoint) { 749 if (DEBUG_STATE) Slog.v(TAG, "Step: finish anim now ready"); 750 mFinishAnimStartTime = now; 756 mMoreStartExit = mStartExitAnimation.getTransformation(now, mStartExitTransformation); 762 mMoreStartEnter = mStartEnterAnimation.getTransformation(now, mStartEnterTransformation); 769 mMoreStartFrame = mStartFrameAnimation.getTransformation(now, mStartFrameTransformation); 774 long finishNow = mFinishAnimReady ? (now - mFinishAnimStartTime) : 0; 800 mMoreRotateExit = mRotateExitAnimation.getTransformation(now, mRotateExitTransformation); 806 mMoreRotateEnter = mRotateEnterAnimation.getTransformation(now, mRotateEnterTransformatio 969 stepAnimationLocked(long now) argument [all...] |
/frameworks/base/core/java/com/android/internal/midi/ |
H A D | EventScheduler.java | 216 long now = System.nanoTime(); 219 if (lowestTime <= now) { 224 long nanosToWait = lowestTime - now;
|
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | TextProgressBar.java | 139 long now = SystemClock.elapsedRealtime(); 140 if (now >= mDurationBase) { 145 int remaining = (int) (mDurationBase - now);
|
/frameworks/base/services/core/java/com/android/server/am/ |
H A D | AppTimeTracker.java | 49 long now = SystemClock.elapsedRealtime(); 51 mStartedTime = now; 55 long elapsedTime = now - mStartedTime;
|
H A D | ServiceRecord.java | 177 void dumpStartList(PrintWriter pw, String prefix, List<StartItem> list, long now) { argument 183 if (now != 0) { 185 TimeUtils.formatDuration(si.deliveredTime, now, pw); 216 long now = SystemClock.uptimeMillis(); 243 TimeUtils.formatDuration(startingBgTimeout, now, pw); 246 TimeUtils.formatDuration(lastActivity, now, pw); 248 TimeUtils.formatDuration(restartTime, now, pw); 261 TimeUtils.formatDuration(executingStart, now, pw); 267 TimeUtils.formatDuration(destroyTime, now, pw); 274 TimeUtils.formatDuration(restartDelay, now, p 353 makeRestarting(int memFactor, long now) argument [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_power_PowerManagerService.cpp | 81 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 82 if (eventTime > now) { 83 eventTime = now;
|
/frameworks/base/tests/UsageStatsTest/src/com/android/tests/usagestats/ |
H A D | UsageStatsActivity.java | 85 long now = System.currentTimeMillis(); 86 long beginTime = now - USAGE_STATS_PERIOD; 88 beginTime, now);
|
/frameworks/native/opengl/libs/EGL/ |
H A D | egl.cpp | 221 nsecs_t now = systemTime(); local 223 if ((now - sLogPrintTime) > NSECS_DURATION) { 224 sLogPrintTime = now;
|
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | HttpHeaderParser.java | 40 long now = System.currentTimeMillis(); 101 softExpire = now + maxAge * 1000; 107 softExpire = now + (serverExpires - serverDate);
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
H A D | AutoclickController.java | 291 long now = SystemClock.uptimeMillis(); 293 if (now < mScheduledClickTime) { 294 mHandler.postDelayed(this, mScheduledClickTime - now); 350 * @param delay Delay (from now) after which click should occur. 440 final long now = SystemClock.uptimeMillis(); 442 MotionEvent downEvent = MotionEvent.obtain(now, now, MotionEvent.ACTION_DOWN, 1,
|
/frameworks/base/core/java/android/provider/ |
H A D | SearchRecentSuggestions.java | 190 long now = System.currentTimeMillis(); 200 values.put(SuggestionColumns.DATE, now);
|
/frameworks/base/core/java/android/widget/ |
H A D | DateTimeView.java | 229 long now = System.currentTimeMillis(); 230 long duration = Math.abs(now - mTimeMillis); 233 boolean past = (now >= mTimeMillis); 258 count = Math.max(Math.abs(dayDistance(timeZone, mTimeMillis, now)), 1); 342 long now = System.currentTimeMillis(); 343 long duration = Math.abs(now - mTimeMillis); 345 boolean past = (now >= mTimeMillis); 370 count = Math.max(Math.abs(dayDistance(timeZone, mTimeMillis, now)), 1);
|
H A D | Chronometer.java | 256 private synchronized void updateText(long now) { argument 257 mNow = now; 258 long seconds = mCountDown ? mBase - now : now - mBase;
|
H A D | SlidingDrawer.java | 525 // We are expanded and are now going to animate away. 550 long now = SystemClock.uptimeMillis(); 551 mAnimationLastTime = now; 552 mCurrentAnimationTime = now + ANIMATION_FRAME_DURATION; 571 long now = SystemClock.uptimeMillis(); 572 mAnimationLastTime = now; 573 mCurrentAnimationTime = now + ANIMATION_FRAME_DURATION; 716 long now = SystemClock.uptimeMillis(); 717 float t = (now - mAnimationLastTime) / 1000.0f; // ms -> s 723 mAnimationLastTime = now; // m [all...] |
/frameworks/base/core/java/android/os/ |
H A D | MessageQueue.java | 100 final long now = SystemClock.uptimeMillis(); 101 return mMessages == null || now < mMessages.when; 327 final long now = SystemClock.uptimeMillis(); 338 if (now < msg.when) { 340 nextPollTimeoutMillis = (int) Math.min(msg.when - now, Integer.MAX_VALUE); 359 // Process the quit message now that all pending messages have been handled. 369 && (mMessages == null || now < mMessages.when)) { 733 final long now = SystemClock.uptimeMillis(); 736 if (p.when > now) { 745 if (n.when > now) { [all...] |
/frameworks/base/core/java/android/service/notification/ |
H A D | Condition.java | 170 final boolean now = (flags & FLAG_RELEVANT_NOW) != 0; 172 if (!now && !always) return "NONE"; 173 if (now && always) return "NOW, ALWAYS"; 174 return now ? "NOW" : "ALWAYS";
|
/frameworks/ex/common/java/com/android/common/ |
H A D | OperationScheduler.java | 162 long now = currentTimeMillis(); 163 long lastSuccessTimeMillis = getTimeBefore(PREFIX + "lastSuccessTimeMillis", now); 164 long lastErrorTimeMillis = getTimeBefore(PREFIX + "lastErrorTimeMillis", now); 166 long moratoriumSetMillis = getTimeBefore(PREFIX + "moratoriumSetTimeMillis", now);
|
/frameworks/native/cmds/dumpsys/ |
H A D | dumpsys.cpp | 213 auto end = std::chrono::steady_clock::now() + timeout; 225 auto now = std::chrono::steady_clock::now(); 226 auto diff = std::chrono::duration_cast<std::chrono::milliseconds>(end - now);
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneInfo.java | 131 final long now = nowMinute * DateUtils.MINUTE_IN_MILLIS; 132 final int gmtOffset = mTz.getOffset(now); 159 DateUtils.formatDateRange(context, mFormatter, now, now, flags, mTzId);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
H A D | DataUsageController.java | 131 final long now = System.currentTimeMillis(); 151 end = now; 152 start = now - DateUtils.WEEK_IN_MILLIS * 4; 155 final NetworkStatsHistory.Entry entry = history.getValues(start, end, now, null); 157 if (DEBUG) Log.d(TAG, String.format("history call from %s to %s now=%s took %sms: %s", 158 new Date(start), new Date(end), new Date(now), callEnd - callStart,
|
/frameworks/av/media/libstagefright/ |
H A D | FrameRenderTracker.cpp | 97 nsecs_t now = systemTime(SYSTEM_TIME_MONOTONIC); local 98 if (systemNano > now) {
|