/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | FileRotatorTest.java | 78 long currentTime = TEST_TIME; in testEmpty() local 81 rotate1.combineActive(reader, writer("foo"), currentTime); in testEmpty() 94 long currentTime = TEST_TIME; in testCombine() local 97 rotate.combineActive(reader, writer("foo"), currentTime); in testCombine() 103 currentTime += SECOND_IN_MILLIS; in testCombine() 105 rotate.combineActive(reader, writer("bar"), currentTime); in testCombine() 115 long currentTime = TEST_TIME; in testRotate() local 118 rotate.combineActive(reader, writer("foo"), currentTime); in testRotate() 124 currentTime += MINUTE_IN_MILLIS; in testRotate() 125 rotate.combineActive(reader, writer("bar"), currentTime); in testRotate() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | TimeAnimator.java | 22 boolean animationFrame(long currentTime) { in animationFrame() argument 24 long totalTime = currentTime - mStartTime; in animationFrame() 25 long deltaTime = (mPreviousTime < 0) ? 0 : (currentTime - mPreviousTime); in animationFrame() 26 mPreviousTime = currentTime; in animationFrame()
|
D | ValueAnimator.java | 504 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in setCurrentPlayTime() local 509 mStartTime = currentTime - playTime; in setCurrentPlayTime() 510 doAnimationFrame(currentTime); in setCurrentPlayTime() 993 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in reverse() local 994 long currentPlayTime = currentTime - mStartTime; in reverse() 996 mStartTime = currentTime - timeLeft; in reverse() 1057 private boolean delayedAnimationFrame(long currentTime) { in delayedAnimationFrame() argument 1060 mDelayStartTime = currentTime; in delayedAnimationFrame() 1062 long deltaTime = currentTime - mDelayStartTime; in delayedAnimationFrame() 1066 mStartTime = currentTime - (deltaTime - mStartDelay); in delayedAnimationFrame() [all …]
|
/frameworks/base/services/java/com/android/server/wm/ |
D | AppWindowAnimator.java | 146 private void stepThumbnailAnimation(long currentTime) { in stepThumbnailAnimation() argument 148 thumbnailAnimation.getTransformation(currentTime, thumbnailTransformation); in stepThumbnailAnimation() 181 private boolean stepAnimation(long currentTime) { in stepAnimation() argument 186 final boolean more = animation.getTransformation(currentTime, transformation); in stepAnimation() 193 TAG, "Finished animation in " + mAppToken + " @ " + currentTime); in stepAnimation() 200 boolean stepAnimationLocked(long currentTime) { in stepAnimationLocked() argument 217 " @ " + currentTime + " scale=" + mService.mTransitionAnimationScale in stepAnimationLocked() 219 animation.setStartTime(currentTime); in stepAnimationLocked() 223 thumbnailAnimation.setStartTime(currentTime); in stepAnimationLocked() 226 if (stepAnimation(currentTime)) { in stepAnimationLocked() [all …]
|
D | WindowStateAnimator.java | 236 private boolean stepAnimation(long currentTime) { in stepAnimation() argument 241 final boolean more = mAnimation.getTransformation(currentTime, mTransformation); in stepAnimation() 250 boolean stepAnimationLocked(long currentTime) { in stepAnimationLocked() argument 263 " @ " + currentTime + ": ww=" + mWin.mFrame.width() + in stepAnimationLocked() 272 mAnimation.setStartTime(currentTime); in stepAnimationLocked() 277 if (stepAnimation(currentTime)) { in stepAnimationLocked() 283 " @ " + currentTime); in stepAnimationLocked() 460 boolean commitFinishDrawingLocked(long currentTime) { in commitFinishDrawingLocked() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
D | FirstFrameAnimatorHelper.java | 81 final long currentTime = System.currentTimeMillis(); in onAnimationUpdate() local 84 mStartTime = currentTime; in onAnimationUpdate() 93 if (frameNum == 0 && currentTime < mStartTime + MAX_DELAY) { in onAnimationUpdate() 102 } else if (frameNum == 1 && currentTime < mStartTime + MAX_DELAY && in onAnimationUpdate() 104 currentTime > mStartTime + IDEAL_FRAME_DURATION) { in onAnimationUpdate()
|
/frameworks/base/services/input/ |
D | InputDispatcher.h | 716 void synthesizeCancelationEvents(nsecs_t currentTime, 869 static bool isStaleEventLocked(nsecs_t currentTime, EventEntry* entry); 901 KeyEntry* synthesizeKeyRepeatLocked(nsecs_t currentTime); 967 nsecs_t currentTime, ConfigurationChangedEntry* entry); 969 nsecs_t currentTime, DeviceResetEntry* entry); 971 nsecs_t currentTime, KeyEntry* entry, 974 nsecs_t currentTime, MotionEntry* entry, 976 void dispatchEventLocked(nsecs_t currentTime, EventEntry* entry, 999 int32_t handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry, 1005 nsecs_t getTimeSpentWaitingForApplicationLocked(nsecs_t currentTime); [all …]
|
D | InputDispatcher.cpp | 241 nsecs_t currentTime = now(); in dispatchOnce() local 242 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce() 247 nsecs_t currentTime = now(); in dispatchOnceInnerLocked() local 267 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime; in dispatchOnceInnerLocked() 285 if (currentTime >= mKeyRepeatState.nextRepeatTime) { in dispatchOnceInnerLocked() 286 mPendingEvent = synthesizeKeyRepeatLocked(currentTime); in dispatchOnceInnerLocked() 332 done = dispatchConfigurationChangedLocked(currentTime, typedEntry); in dispatchOnceInnerLocked() 340 done = dispatchDeviceResetLocked(currentTime, typedEntry); in dispatchOnceInnerLocked() 356 && isStaleEventLocked(currentTime, typedEntry)) { in dispatchOnceInnerLocked() 362 done = dispatchKeyLocked(currentTime, typedEntry, &dropReason, nextWakeupTime); in dispatchOnceInnerLocked() [all …]
|
/frameworks/base/services/java/com/android/server/net/ |
D | NetworkStatsService.java | 376 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in shutdownLocked() local 380 mDevRecorder.forcePersistLocked(currentTime); in shutdownLocked() 381 mXtRecorder.forcePersistLocked(currentTime); in shutdownLocked() 382 mUidRecorder.forcePersistLocked(currentTime); in shutdownLocked() 383 mUidTagRecorder.forcePersistLocked(currentTime); in shutdownLocked() 680 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in advisePersistThreshold() local 687 mDevRecorder.maybePersistLocked(currentTime); in advisePersistThreshold() 688 mXtRecorder.maybePersistLocked(currentTime); in advisePersistThreshold() 689 mUidRecorder.maybePersistLocked(currentTime); in advisePersistThreshold() 690 mUidTagRecorder.maybePersistLocked(currentTime); in advisePersistThreshold() [all …]
|
D | NetworkPolicyManagerService.java | 636 final long currentTime = currentTimeMillis(); in updateNotificationsLocked() local 642 final long start = computeLastCycleBoundary(currentTime, policy); in updateNotificationsLocked() 643 final long end = currentTime; in updateNotificationsLocked() 915 final long currentTime = currentTimeMillis(); in updateNetworkEnabledLocked() local 923 final long start = computeLastCycleBoundary(currentTime, policy); in updateNetworkEnabledLocked() 924 final long end = currentTime; in updateNetworkEnabledLocked() 1020 final long currentTime = currentTimeMillis(); local 1027 start = computeLastCycleBoundary(currentTime, policy); 1028 totalBytes = getTotalBytes(policy.template, start, currentTime); 1486 final long currentTime = currentTimeMillis(); in performSnooze() local [all …]
|
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
D | ClusterManager.java | 111 long currentTime = location.getTime() / 1000; // measure time in seconds in addSample() local 146 mConsolidateRef = currentTime; in addSample() 147 mRefreshRef = currentTime; in addSample() 154 long collectDuration = currentTime - mConsolidateRef; in addSample() 159 mConsolidateRef = currentTime; in addSample() 161 long refreshDuration = currentTime - mRefreshRef; in addSample() 165 mRefreshRef = currentTime; in addSample()
|
/frameworks/base/tools/layoutlib/bridge/src/android/animation/ |
D | AnimationThread.java | 125 long currentTime = System.currentTimeMillis(); in run() local 126 if (currentTime < bundle.mUptimeMillis) { in run() 128 sleep(bundle.mUptimeMillis - currentTime); in run()
|
/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 156 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { in computeLastCycleBoundary() argument 162 now.set(currentTime); in computeLastCycleBoundary() 186 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { in computeNextCycleBoundary() argument 192 now.set(currentTime); in computeNextCycleBoundary()
|
/frameworks/base/services/java/com/android/server/ |
D | NetworkTimeUpdateService.java | 161 final long currentTime = System.currentTimeMillis(); in onPollNetworkTime() local 162 if (DBG) Log.d(TAG, "System time = " + currentTime); in onPollNetworkTime() 179 if (Math.abs(ntp - currentTime) > mTimeErrorThresholdMs in onPollNetworkTime() 183 && Math.abs(ntp - currentTime) <= mTimeErrorThresholdMs) { in onPollNetworkTime() 184 Log.d(TAG, "For initial setup, rtc = " + currentTime); in onPollNetworkTime()
|
D | TwilightService.java | 441 Time currentTime = new Time(); in retrieveLocation() local 442 currentTime.set(System.currentTimeMillis()); in retrieveLocation() 444 (currentTime.gmtoff - (currentTime.isDst > 0 ? 3600 : 0)); in retrieveLocation()
|
/frameworks/base/core/java/android/view/animation/ |
D | Animation.java | 833 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument 835 mStartTime = currentTime; in getTransformation() 842 normalizedTime = ((float) (currentTime - (mStartTime + startOffset))) / in getTransformation() 846 normalizedTime = currentTime < mStartTime ? 0.0f : 1.0f; in getTransformation() 937 public boolean getTransformation(long currentTime, Transformation outTransformation, in getTransformation() argument 940 return getTransformation(currentTime, outTransformation); in getTransformation()
|
D | AnimationSet.java | 369 public boolean getTransformation(long currentTime, Transformation t) { in getTransformation() argument 384 more = a.getTransformation(currentTime, temp, getScaleFactor()) || more; in getTransformation()
|
/frameworks/ex/carousel/java/com/android/ex/carousel/ |
D | carousel.rs | 379 static float getAnimatedAlpha(int64_t startTime, int64_t currentTime, int64_t duration) 381 double timeElapsed = (double) (currentTime - startTime); // in ms 719 static bool drawCards(int64_t currentTime) 727 float animatedAlpha = getAnimatedAlpha(cards[i].textureTimeStamp, currentTime, 729 float overallAlpha = getAnimatedAlpha(cards[i].geometryTimeStamp, currentTime, 830 static bool drawDetails(int64_t currentTime) 919 currentTime, fadeInDuration); 1210 int64_t currentTime = rsUptimeMillis(); 1328 static bool doAutoscroll(float currentTime) 1335 autoscrollStartTime = currentTime; [all …]
|
/frameworks/base/services/java/com/android/server/location/ |
D | ComprehensiveCountryDetector.java | 469 long currentTime = SystemClock.elapsedRealtime(); in toString() local 475 currentSessionLength = currentTime - mStartTime; in toString() 484 sb.append("currentTime=" + currentTime + ", "); in toString()
|
/frameworks/base/docs/html/training/efficient-downloads/ |
D | redundant_redundant.jd | 40 <pre>long currentTime = System.currentTimeMillis()); 44 long expires = conn.getHeaderFieldDate("Expires", currentTime); 45 long lastModified = conn.getHeaderFieldDate("Last-Modified", currentTime);
|
/frameworks/base/core/java/android/widget/ |
D | OverScroller.java | 904 final long currentTime = time - mStartTime; in update() local 906 if (currentTime > mDuration) { in update() 913 final float t = (float) currentTime / mSplineDuration; in update() 932 final float t = currentTime / 1000.0f; in update() 939 final float t = (float) (currentTime) / mDuration; in update()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 449 final long currentTime = parseTime("2007-11-14T00:00:00.000Z"); in testLastCycleBoundaryThisMonth() local 454 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonth() 460 final long currentTime = parseTime("2007-11-14T00:00:00.000Z"); in testLastCycleBoundaryLastMonth() local 465 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonth() 471 final long currentTime = parseTime("2007-02-14T00:00:00.000Z"); in testLastCycleBoundaryThisMonthFebruary() local 476 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonthFebruary() 482 final long currentTime = parseTime("2007-03-14T00:00:00.000Z"); in testLastCycleBoundaryLastMonthFebruary() local 487 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonthFebruary()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcStress.cpp | 246 struct timeval startTime, currentTime, delta; in main() local 392 gettimeofday(¤tTime, NULL); in main() 393 delta = tvDelta(&startTime, ¤tTime); in main()
|
/frameworks/base/core/java/android/view/ |
D | ScaleGestureDetector.java | 180 final long currentTime = SystemClock.uptimeMillis(); in addTouchHistory() local 182 boolean accept = currentTime - mTouchHistoryLastAcceptedTime >= TOUCH_STABILIZE_TIME; in addTouchHistory()
|
/frameworks/base/core/java/android/text/format/ |
D | DateUtils.java | 476 Time currentTime = new Time(); in getRelativeDayString() local 477 currentTime.set(today); in getRelativeDayString() 478 int currentDay = Time.getJulianDay(today, currentTime.gmtoff); in getRelativeDayString() 1050 Time currentTime = new Time(); in formatDateRange() local 1051 currentTime.setToNow(); in formatDateRange() 1052 showYear = startYear != currentTime.year; in formatDateRange()
|