Home
last modified time | relevance | path

Searched refs:currentTime (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFileRotatorTest.java78 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/
DTimeAnimator.java22 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()
DValueAnimator.java518 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in setCurrentPlayTime() local
523 mStartTime = currentTime - playTime; in setCurrentPlayTime()
524 doAnimationFrame(currentTime); in setCurrentPlayTime()
1026 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in reverse() local
1027 long currentPlayTime = currentTime - mStartTime; in reverse()
1029 mStartTime = currentTime - timeLeft; in reverse()
1105 private boolean delayedAnimationFrame(long currentTime) { in delayedAnimationFrame() argument
1108 mDelayStartTime = currentTime; in delayedAnimationFrame()
1112 mPauseTime = currentTime; in delayedAnimationFrame()
1119 mDelayStartTime += (currentTime - mPauseTime); in delayedAnimationFrame()
[all …]
/frameworks/support/v4/java/android/support/v4/widget/
DAutoScrollHelper.java775 final long currentTime = AnimationUtils.currentAnimationTimeMillis(); in requestStop() local
776 mEffectiveRampDown = constrain((int) (currentTime - mStartTime), 0, mRampDownDuration); in requestStop()
777 mStopValue = getValueAt(currentTime); in requestStop()
778 mStopTime = currentTime; in requestStop()
786 private float getValueAt(long currentTime) { in getValueAt() argument
787 if (currentTime < mStartTime) { in getValueAt()
789 } else if (mStopTime < 0 || currentTime < mStopTime) { in getValueAt()
790 final long elapsedSinceStart = currentTime - mStartTime; in getValueAt()
793 final long elapsedSinceEnd = currentTime - mStopTime; in getValueAt()
822 final long currentTime = AnimationUtils.currentAnimationTimeMillis(); in computeScrollDelta() local
[all …]
/frameworks/base/services/java/com/android/server/wm/
DAppWindowAnimator.java145 private void stepThumbnailAnimation(long currentTime) { in stepThumbnailAnimation() argument
147 thumbnailAnimation.getTransformation(currentTime, thumbnailTransformation); in stepThumbnailAnimation()
180 private boolean stepAnimation(long currentTime) { in stepAnimation() argument
185 final boolean more = animation.getTransformation(currentTime, transformation); in stepAnimation()
192 TAG, "Finished animation in " + mAppToken + " @ " + currentTime); in stepAnimation()
199 boolean stepAnimationLocked(long currentTime) { in stepAnimationLocked() argument
216 " @ " + currentTime + " scale=" + mService.mTransitionAnimationScale in stepAnimationLocked()
218 animation.setStartTime(currentTime); in stepAnimationLocked()
222 thumbnailAnimation.setStartTime(currentTime); in stepAnimationLocked()
225 if (stepAnimation(currentTime)) { in stepAnimationLocked()
[all …]
/frameworks/base/core/java/com/android/internal/widget/
DAutoScrollHelper.java774 final long currentTime = AnimationUtils.currentAnimationTimeMillis(); in requestStop() local
775 mEffectiveRampDown = constrain((int) (currentTime - mStartTime), 0, mRampDownDuration); in requestStop()
776 mStopValue = getValueAt(currentTime); in requestStop()
777 mStopTime = currentTime; in requestStop()
785 private float getValueAt(long currentTime) { in getValueAt() argument
786 if (currentTime < mStartTime) { in getValueAt()
788 } else if (mStopTime < 0 || currentTime < mStopTime) { in getValueAt()
789 final long elapsedSinceStart = currentTime - mStartTime; in getValueAt()
792 final long elapsedSinceEnd = currentTime - mStopTime; in getValueAt()
821 final long currentTime = AnimationUtils.currentAnimationTimeMillis(); in computeScrollDelta() local
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DFirstFrameAnimatorHelper.java82 final long currentTime = System.currentTimeMillis(); in onAnimationUpdate() local
85 mStartTime = currentTime; in onAnimationUpdate()
98 if (frameNum == 0 && currentTime < mStartTime + MAX_DELAY) { in onAnimationUpdate()
107 } else if (frameNum == 1 && currentTime < mStartTime + MAX_DELAY && in onAnimationUpdate()
109 currentTime > mStartTime + IDEAL_FRAME_DURATION) { in onAnimationUpdate()
/frameworks/base/services/input/
DInputDispatcher.h718 void synthesizeCancelationEvents(nsecs_t currentTime,
875 static bool isStaleEventLocked(nsecs_t currentTime, EventEntry* entry);
907 KeyEntry* synthesizeKeyRepeatLocked(nsecs_t currentTime);
973 nsecs_t currentTime, ConfigurationChangedEntry* entry);
975 nsecs_t currentTime, DeviceResetEntry* entry);
977 nsecs_t currentTime, KeyEntry* entry,
980 nsecs_t currentTime, MotionEntry* entry,
982 void dispatchEventLocked(nsecs_t currentTime, EventEntry* entry,
1005 int32_t handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry,
1011 nsecs_t getTimeSpentWaitingForApplicationLocked(nsecs_t currentTime);
[all …]
DInputDispatcher.cpp243 nsecs_t currentTime = now(); in dispatchOnce() local
244 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce()
249 nsecs_t currentTime = now(); in dispatchOnceInnerLocked() local
269 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime; in dispatchOnceInnerLocked()
287 if (currentTime >= mKeyRepeatState.nextRepeatTime) { in dispatchOnceInnerLocked()
288 mPendingEvent = synthesizeKeyRepeatLocked(currentTime); in dispatchOnceInnerLocked()
334 done = dispatchConfigurationChangedLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
342 done = dispatchDeviceResetLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
358 && isStaleEventLocked(currentTime, typedEntry)) { in dispatchOnceInnerLocked()
364 done = dispatchKeyLocked(currentTime, typedEntry, &dropReason, nextWakeupTime); in dispatchOnceInnerLocked()
[all …]
/frameworks/base/services/java/com/android/server/net/
DNetworkStatsService.java375 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in shutdownLocked() local
379 mDevRecorder.forcePersistLocked(currentTime); in shutdownLocked()
380 mXtRecorder.forcePersistLocked(currentTime); in shutdownLocked()
381 mUidRecorder.forcePersistLocked(currentTime); in shutdownLocked()
382 mUidTagRecorder.forcePersistLocked(currentTime); in shutdownLocked()
677 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in advisePersistThreshold() local
684 mDevRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
685 mXtRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
686 mUidRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
687 mUidTagRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
[all …]
DNetworkPolicyManagerService.java635 final long currentTime = currentTimeMillis(); in updateNotificationsLocked() local
641 final long start = computeLastCycleBoundary(currentTime, policy); in updateNotificationsLocked()
642 final long end = currentTime; in updateNotificationsLocked()
914 final long currentTime = currentTimeMillis(); in updateNetworkEnabledLocked() local
922 final long start = computeLastCycleBoundary(currentTime, policy); in updateNetworkEnabledLocked()
923 final long end = currentTime; in updateNetworkEnabledLocked()
1019 final long currentTime = currentTimeMillis(); local
1026 start = computeLastCycleBoundary(currentTime, policy);
1027 totalBytes = getTotalBytes(policy.template, start, currentTime);
1485 final long currentTime = currentTimeMillis(); in performSnooze() local
[all …]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
DClusterManager.java111 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/
DAnimationThread.java125 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/
DNetworkPolicyManager.java156 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/
DNetworkTimeUpdateService.java160 final long currentTime = System.currentTimeMillis(); in onPollNetworkTime() local
161 if (DBG) Log.d(TAG, "System time = " + currentTime); in onPollNetworkTime()
178 if (Math.abs(ntp - currentTime) > mTimeErrorThresholdMs in onPollNetworkTime()
182 && Math.abs(ntp - currentTime) <= mTimeErrorThresholdMs) { in onPollNetworkTime()
183 Log.d(TAG, "For initial setup, rtc = " + currentTime); in onPollNetworkTime()
DTwilightService.java441 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/
DAnimation.java833 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()
/frameworks/ex/carousel/java/com/android/ex/carousel/
Dcarousel.rs379 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/
DComprehensiveCountryDetector.java469 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/
Dredundant_redundant.jd40 <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/
DOverScroller.java904 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/
DNetworkPolicyManagerServiceTest.java449 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/
DhwcStress.cpp246 struct timeval startTime, currentTime, delta; in main() local
392 gettimeofday(&currentTime, NULL); in main()
393 delta = tvDelta(&startTime, &currentTime); in main()
/frameworks/base/core/java/android/view/
DScaleGestureDetector.java223 final long currentTime = SystemClock.uptimeMillis(); in addTouchHistory() local
225 boolean accept = currentTime - mTouchHistoryLastAcceptedTime >= TOUCH_STABILIZE_TIME; in addTouchHistory()
/frameworks/base/core/java/android/text/format/
DDateUtils.java431 Time currentTime = new Time(); in getRelativeDayString() local
432 currentTime.set(today); in getRelativeDayString()
433 int currentDay = Time.getJulianDay(today, currentTime.gmtoff); in getRelativeDayString()

12