Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DFileRotatorTest.java80 long currentTime = TEST_TIME; in testEmpty() local
83 rotate1.combineActive(reader, writer("foo"), currentTime); in testEmpty()
96 long currentTime = TEST_TIME; in testCombine() local
99 rotate.combineActive(reader, writer("foo"), currentTime); in testCombine()
105 currentTime += SECOND_IN_MILLIS; in testCombine()
107 rotate.combineActive(reader, writer("bar"), currentTime); in testCombine()
117 long currentTime = TEST_TIME; in testRotate() local
120 rotate.combineActive(reader, writer("foo"), currentTime); in testRotate()
126 currentTime += MINUTE_IN_MILLIS; in testRotate()
127 rotate.combineActive(reader, writer("bar"), currentTime); in testRotate()
[all …]
/frameworks/base/core/java/android/animation/
DTimeAnimator.java40 boolean animationFrame(long currentTime) { in animationFrame() argument
42 long totalTime = currentTime - mStartTime; in animationFrame()
43 long deltaTime = (mPreviousTime < 0) ? 0 : (currentTime - mPreviousTime); in animationFrame()
44 mPreviousTime = currentTime; in animationFrame()
52 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in setCurrentPlayTime() local
53 mStartTime = Math.max(mStartTime, currentTime - playTime); in setCurrentPlayTime()
54 animationFrame(currentTime); in setCurrentPlayTime()
DValueAnimator.java593 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in setCurrentFraction() local
594 mStartTime = currentTime - seekTime; in setCurrentFraction()
1131 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in reverse() local
1132 long currentPlayTime = currentTime - mStartTime; in reverse()
1134 mStartTime = currentTime - timeLeft; in reverse()
1222 private boolean delayedAnimationFrame(long currentTime) { in delayedAnimationFrame() argument
1225 mDelayStartTime = currentTime; in delayedAnimationFrame()
1229 mPauseTime = currentTime; in delayedAnimationFrame()
1236 mDelayStartTime += (currentTime - mPauseTime); in delayedAnimationFrame()
1239 long deltaTime = currentTime - mDelayStartTime; 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/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/core/java/com/android/server/wm/
DAppWindowAnimator.java175 private void stepThumbnailAnimation(long currentTime) { in stepThumbnailAnimation() argument
177 thumbnailAnimation.getTransformation(currentTime, thumbnailTransformation); in stepThumbnailAnimation()
214 private boolean stepAnimation(long currentTime) { in stepAnimation() argument
219 boolean hasMoreFrames = animation.getTransformation(currentTime, transformation); in stepAnimation()
234 TAG, "Finished animation in " + mAppToken + " @ " + currentTime); in stepAnimation()
242 boolean stepAnimationLocked(long currentTime) { in stepAnimationLocked() argument
259 " @ " + currentTime + " scale=" in stepAnimationLocked()
262 animation.setStartTime(currentTime); in stepAnimationLocked()
266 thumbnailAnimation.setStartTime(currentTime); in stepAnimationLocked()
269 if (stepAnimation(currentTime)) { in stepAnimationLocked()
[all …]
/frameworks/native/services/inputflinger/
DInputDispatcher.h716 void synthesizeCancelationEvents(nsecs_t currentTime,
873 static bool isStaleEventLocked(nsecs_t currentTime, EventEntry* entry);
905 KeyEntry* synthesizeKeyRepeatLocked(nsecs_t currentTime);
985 nsecs_t currentTime, ConfigurationChangedEntry* entry);
987 nsecs_t currentTime, DeviceResetEntry* entry);
989 nsecs_t currentTime, KeyEntry* entry,
992 nsecs_t currentTime, MotionEntry* entry,
994 void dispatchEventLocked(nsecs_t currentTime, EventEntry* entry,
1017 int32_t handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry,
1023 nsecs_t getTimeSpentWaitingForApplicationLocked(nsecs_t currentTime);
[all …]
DInputDispatcher.cpp246 nsecs_t currentTime = now(); in dispatchOnce() local
247 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce()
252 nsecs_t currentTime = now(); in dispatchOnceInnerLocked() local
272 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime; in dispatchOnceInnerLocked()
290 if (currentTime >= mKeyRepeatState.nextRepeatTime) { in dispatchOnceInnerLocked()
291 mPendingEvent = synthesizeKeyRepeatLocked(currentTime); in dispatchOnceInnerLocked()
337 done = dispatchConfigurationChangedLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
345 done = dispatchDeviceResetLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
361 && isStaleEventLocked(currentTime, typedEntry)) { in dispatchOnceInnerLocked()
367 done = dispatchKeyLocked(currentTime, typedEntry, &dropReason, nextWakeupTime); in dispatchOnceInnerLocked()
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java351 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in shutdownLocked() local
355 mDevRecorder.forcePersistLocked(currentTime); in shutdownLocked()
356 mXtRecorder.forcePersistLocked(currentTime); in shutdownLocked()
357 mUidRecorder.forcePersistLocked(currentTime); in shutdownLocked()
358 mUidTagRecorder.forcePersistLocked(currentTime); in shutdownLocked()
641 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in advisePersistThreshold() local
648 mDevRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
649 mXtRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
650 mUidRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
651 mUidTagRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
[all …]
DNetworkPolicyManagerService.java696 final long currentTime = currentTimeMillis(); in updateNotificationsLocked() local
703 final long start = computeLastCycleBoundary(currentTime, policy); in updateNotificationsLocked()
704 final long end = currentTime; in updateNotificationsLocked()
987 final long currentTime = currentTimeMillis(); in updateNetworkEnabledLocked() local
996 final long start = computeLastCycleBoundary(currentTime, policy); in updateNetworkEnabledLocked()
997 final long end = currentTime; in updateNetworkEnabledLocked()
1097 final long currentTime = currentTimeMillis(); local
1105 start = computeLastCycleBoundary(currentTime, policy);
1106 totalBytes = getTotalBytes(policy.template, start, currentTime);
1652 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/services/core/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()
/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.java190 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { in computeLastCycleBoundary() argument
196 now.set(currentTime); in computeLastCycleBoundary()
220 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { in computeNextCycleBoundary() argument
226 now.set(currentTime); in computeNextCycleBoundary()
/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/base/services/core/java/com/android/server/twilight/
DTwilightService.java339 Time currentTime = new Time(); in retrieveLocation() local
340 currentTime.set(System.currentTimeMillis()); in retrieveLocation()
342 (currentTime.gmtoff - (currentTime.isDst > 0 ? 3600 : 0)); in retrieveLocation()
/frameworks/base/core/java/android/widget/
DOverScroller.java905 final long currentTime = time - mStartTime; in update() local
907 if (currentTime == 0) { in update()
911 if (currentTime > mDuration) { in update()
918 final float t = (float) currentTime / mSplineDuration; in update()
937 final float t = currentTime / 1000.0f; in update()
944 final float t = (float) (currentTime) / mDuration; in update()
/frameworks/base/services/core/java/com/android/server/location/
DComprehensiveCountryDetector.java468 long currentTime = SystemClock.elapsedRealtime(); in toString() local
474 currentSessionLength = currentTime - mStartTime; in toString()
483 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/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/av/media/libstagefright/codecs/aacdec/
DSoftAAC2.cpp624 int64_t currentTime = mBufferTimestamps.top(); in onQueueFilled() local
625 currentTime += mStreamInfo->aacSamplesPerFrame * in onQueueFilled()
627 mBufferTimestamps.add(currentTime); in onQueueFilled()
858 int64_t currentTime = 0; in onQueueFilled() local
867 currentTime = *nextTimeStamp; in onQueueFilled()
920 outHeader->nTimeStamp = currentTime; in onQueueFilled()
/frameworks/base/core/java/android/hardware/camera2/
DDngCreator.java89 long currentTime = System.currentTimeMillis(); in DngCreator() local
92 long bootTimeMillis = currentTime - SystemClock.elapsedRealtime(); in DngCreator()
96 long captureTime = currentTime; in DngCreator()
/frameworks/native/opengl/tests/hwc/
DhwcStress.cpp245 struct timeval startTime, currentTime, delta; in main() local
391 gettimeofday(&currentTime, NULL); in main()
392 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()

12