Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/utiltests/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 animateBasedOnTime(long currentTime) { in animateBasedOnTime() argument
42 long totalTime = currentTime - mStartTime; in animateBasedOnTime()
43 long deltaTime = (mPreviousTime < 0) ? 0 : (currentTime - mPreviousTime); in animateBasedOnTime()
44 mPreviousTime = currentTime; in animateBasedOnTime()
52 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in setCurrentPlayTime() local
53 mStartTime = Math.max(mStartTime, currentTime - playTime); in setCurrentPlayTime()
55 animateBasedOnTime(currentTime); in setCurrentPlayTime()
DAnimationHandler.java139 long currentTime = SystemClock.uptimeMillis(); in doAnimationFrame() local
145 if (isCallbackDue(callback, currentTime)) { in doAnimationFrame()
174 private boolean isCallbackDue(AnimationFrameCallback callback, long currentTime) { in isCallbackDue() argument
179 if (startTime < currentTime) { in isCallbackDue()
DValueAnimator.java602 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in setCurrentFraction() local
603 mStartTime = currentTime - seekTime; in setCurrentFraction()
1106 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in reverse() local
1107 long currentPlayTime = currentTime - mStartTime; in reverse()
1109 mStartTime = currentTime - timeLeft; in reverse()
1233 boolean animateBasedOnTime(long currentTime) { in animateBasedOnTime() argument
1238 (float)(currentTime - mStartTime) / scaledDuration : 1f; in animateBasedOnTime()
1306 final long currentTime = Math.max(frameTime, mStartTime); in doAnimationFrame() local
1307 boolean finished = animateBasedOnTime(currentTime); in doAnimationFrame()
/frameworks/support/core-ui/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/core/java/com/android/server/wm/
DAppWindowAnimator.java256 private void stepThumbnailAnimation(long currentTime) { in stepThumbnailAnimation() argument
258 final long animationFrameTime = getAnimationFrameTime(thumbnailAnimation, currentTime); in stepThumbnailAnimation()
301 private long getAnimationFrameTime(Animation animation, long currentTime) { in getAnimationFrameTime() argument
303 animation.setStartTime(currentTime); in getAnimationFrameTime()
304 return currentTime + 1; in getAnimationFrameTime()
306 return currentTime; in getAnimationFrameTime()
309 private boolean stepAnimation(long currentTime) { in stepAnimation() argument
314 final long animationFrameTime = getAnimationFrameTime(animation, currentTime); in stepAnimation()
333 + currentTime); in stepAnimation()
354 boolean stepAnimationLocked(long currentTime, final int displayId) { in stepAnimationLocked() argument
[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/services/core/java/com/android/server/wm/animation/
DClipRectTBAnimation.java51 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument
60 normalizedTime = ((float) (currentTime - (getStartTime() + startOffset))) / in getTransformation()
64 normalizedTime = currentTime < getStartTime() ? 0.0f : 1.0f; in getTransformation()
67 return super.getTransformation(currentTime, outTransformation); in getTransformation()
/frameworks/native/services/inputflinger/
DInputDispatcher.h730 void synthesizeCancelationEvents(nsecs_t currentTime,
889 static bool isStaleEventLocked(nsecs_t currentTime, EventEntry* entry);
921 KeyEntry* synthesizeKeyRepeatLocked(nsecs_t currentTime);
1001 nsecs_t currentTime, ConfigurationChangedEntry* entry);
1003 nsecs_t currentTime, DeviceResetEntry* entry);
1005 nsecs_t currentTime, KeyEntry* entry,
1008 nsecs_t currentTime, MotionEntry* entry,
1010 void dispatchEventLocked(nsecs_t currentTime, EventEntry* entry,
1033 int32_t handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry,
1039 nsecs_t getTimeSpentWaitingForApplicationLocked(nsecs_t currentTime);
[all …]
DInputDispatcher.cpp250 nsecs_t currentTime = now(); in dispatchOnce() local
251 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce()
256 nsecs_t currentTime = now(); in dispatchOnceInnerLocked() local
276 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime; in dispatchOnceInnerLocked()
294 if (currentTime >= mKeyRepeatState.nextRepeatTime) { in dispatchOnceInnerLocked()
295 mPendingEvent = synthesizeKeyRepeatLocked(currentTime); in dispatchOnceInnerLocked()
341 done = dispatchConfigurationChangedLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
349 done = dispatchDeviceResetLocked(currentTime, typedEntry); in dispatchOnceInnerLocked()
365 && isStaleEventLocked(currentTime, typedEntry)) { in dispatchOnceInnerLocked()
371 done = dispatchKeyLocked(currentTime, typedEntry, &dropReason, nextWakeupTime); in dispatchOnceInnerLocked()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/method/
DKeyListenerTestCase.java58 long currentTime = System.currentTimeMillis(); in getKey() local
59 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, in getKey()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java386 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in shutdownLocked() local
390 mDevRecorder.forcePersistLocked(currentTime); in shutdownLocked()
391 mXtRecorder.forcePersistLocked(currentTime); in shutdownLocked()
392 mUidRecorder.forcePersistLocked(currentTime); in shutdownLocked()
393 mUidTagRecorder.forcePersistLocked(currentTime); in shutdownLocked()
756 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() in advisePersistThreshold() local
763 mDevRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
764 mXtRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
765 mUidRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
766 mUidTagRecorder.maybePersistLocked(currentTime); in advisePersistThreshold()
[all …]
DNetworkStatsObservers.java111 VpnInfo[] vpnArray, long currentTime) { in updateStats() argument
113 activeUidIfaces, vpnArray, currentTime); in updateStats()
440 VpnInfo[] vpnArray, long currentTime) { in StatsContext() argument
446 mCurrentTime = currentTime; in StatsContext()
/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java251 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { in computeLastCycleBoundary() argument
257 cal.setTimeInMillis(currentTime); in computeLastCycleBoundary()
260 if (cal.getTimeInMillis() >= currentTime) { in computeLastCycleBoundary()
271 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { in computeNextCycleBoundary() argument
277 cal.setTimeInMillis(currentTime); in computeNextCycleBoundary()
280 if (cal.getTimeInMillis() <= currentTime) { in computeNextCycleBoundary()
/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/services/core/java/com/android/server/
DNetworkTimeUpdateService.java180 final long currentTime = System.currentTimeMillis(); in onPollNetworkTimeUnderWakeLock() local
181 if (DBG) Log.d(TAG, "System time = " + currentTime); in onPollNetworkTimeUnderWakeLock()
198 if (Math.abs(ntp - currentTime) > mTimeErrorThresholdMs in onPollNetworkTimeUnderWakeLock()
202 && Math.abs(ntp - currentTime) <= mTimeErrorThresholdMs) { in onPollNetworkTimeUnderWakeLock()
203 Log.d(TAG, "For initial setup, rtc = " + currentTime); in onPollNetworkTimeUnderWakeLock()
/frameworks/base/core/java/android/accessibilityservice/
DGestureDescription.java544 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendMoveEventIfNeeded() argument
559 motionEvents.add(obtainMotionEvent(downTime, currentTime, MotionEvent.ACTION_MOVE, in appendMoveEventIfNeeded()
566 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendUpEvents() argument
579 motionEvents.add(obtainMotionEvent(downTime, currentTime, action, in appendUpEvents()
593 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendDownEvents() argument
601 long downTime = (action == MotionEvent.ACTION_DOWN) ? currentTime : in appendDownEvents()
604 motionEvents.add(obtainMotionEvent(downTime, currentTime, action, in appendDownEvents()
/frameworks/base/core/java/android/view/animation/
DAnimation.java841 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument
843 mStartTime = currentTime; in getTransformation()
850 normalizedTime = ((float) (currentTime - (mStartTime + startOffset))) / in getTransformation()
854 normalizedTime = currentTime < mStartTime ? 0.0f : 1.0f; in getTransformation()
949 public boolean getTransformation(long currentTime, Transformation outTransformation, in getTransformation() argument
952 return getTransformation(currentTime, outTransformation); in getTransformation()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/
DBatteryInfo.java237 if (rec.currentTime > (lastWallTime + (180 * 24 * 60 * 60 * 1000L)) in parse()
241 lastWallTime = rec.currentTime; in parse()
283 if (rec.currentTime >= startWalltime) { in parse()
284 curWalltime = rec.currentTime; in parse()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java407 final long currentTime = parseTime("2007-11-14T00:00:00.000Z"); in testLastCycleBoundaryThisMonth() local
412 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonth()
418 final long currentTime = parseTime("2007-11-14T00:00:00.000Z"); in testLastCycleBoundaryLastMonth() local
423 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonth()
429 final long currentTime = parseTime("2007-02-14T00:00:00.000Z"); in testLastCycleBoundaryThisMonthFebruary() local
434 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryThisMonthFebruary()
440 final long currentTime = parseTime("2007-03-14T00:00:00.000Z"); in testLastCycleBoundaryLastMonthFebruary() local
445 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryLastMonthFebruary()
538 final long currentTime = parseTime("1989-01-02T07:30:00.000"); in testLastCycleBoundaryDST() local
543 final long actualCycle = computeLastCycleBoundary(currentTime, policy); in testLastCycleBoundaryDST()
/frameworks/base/core/java/android/widget/
DOverScroller.java906 final long currentTime = time - mStartTime; in update() local
908 if (currentTime == 0) { in update()
912 if (currentTime > mDuration) { in update()
919 final float t = (float) currentTime / mSplineDuration; in update()
938 final float t = currentTime / 1000.0f; in update()
945 final float t = (float) (currentTime) / mDuration; in update()
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
DOverlayListView.java227 public boolean update(long currentTime) { in update() argument
231 float normalizedTime = (currentTime - mStartTime) / (float) 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);

12