Searched refs:currentTime (Results 1 - 25 of 30) sorted by relevance

12

/frameworks/base/core/java/android/animation/
H A DTimeAnimator.java22 boolean animationFrame(long currentTime) { argument
24 long totalTime = currentTime - mStartTime;
25 long deltaTime = (mPreviousTime < 0) ? 0 : (currentTime - mPreviousTime);
26 mPreviousTime = currentTime;
H A DValueAnimator.java503 long currentTime = AnimationUtils.currentAnimationTimeMillis();
508 mStartTime = currentTime - playTime;
509 doAnimationFrame(currentTime);
985 long currentTime = AnimationUtils.currentAnimationTimeMillis();
986 long currentPlayTime = currentTime - mStartTime;
988 mStartTime = currentTime - timeLeft;
1039 * @param currentTime The current animation time, used to calculate whether the animation
1044 private boolean delayedAnimationFrame(long currentTime) { argument
1047 mDelayStartTime = currentTime;
1049 long deltaTime = currentTime
1073 animationFrame(long currentTime) argument
[all...]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
H A DFileRotatorTest.java78 long currentTime = TEST_TIME;
81 rotate1.combineActive(reader, writer("foo"), currentTime);
94 long currentTime = TEST_TIME;
97 rotate.combineActive(reader, writer("foo"), currentTime);
103 currentTime += SECOND_IN_MILLIS;
105 rotate.combineActive(reader, writer("bar"), currentTime);
115 long currentTime = TEST_TIME;
118 rotate.combineActive(reader, writer("foo"), currentTime);
124 currentTime += MINUTE_IN_MILLIS;
125 rotate.combineActive(reader, writer("bar"), currentTime);
[all...]
/frameworks/base/services/java/com/android/server/wm/
H A DAppWindowAnimator.java134 private void stepThumbnailAnimation(long currentTime) { argument
136 thumbnailAnimation.getTransformation(currentTime, thumbnailTransformation);
169 private boolean stepAnimation(long currentTime) { argument
174 final boolean more = animation.getTransformation(currentTime, transformation);
181 TAG, "Finished animation in " + mAppToken + " @ " + currentTime);
188 boolean stepAnimationLocked(long currentTime, int dw, int dh) { argument
205 " @ " + currentTime + ": dw=" + dw + " dh=" + dh
211 animation.setStartTime(currentTime);
215 thumbnailAnimation.setStartTime(currentTime);
218 if (stepAnimation(currentTime)) {
319 getTransformation(long currentTime, Transformation outTransformation) argument
[all...]
H A DDimAnimator.java71 void updateParameters(final Resources res, final Parameters params, final long currentTime) { argument
112 mLastDimAnimTime = currentTime;
140 boolean updateSurface(boolean dimming, long currentTime, boolean displayFrozen) { argument
148 mLastDimAnimTime = currentTime;
157 * (currentTime-mLastDimAnimTime);
177 mLastDimAnimTime = currentTime;
H A DWindowStateAnimator.java233 private boolean stepAnimation(long currentTime) { argument
238 final boolean more = mAnimation.getTransformation(currentTime, mTransformation);
247 boolean stepAnimationLocked(long currentTime) { argument
260 " @ " + currentTime + ": ww=" + mWin.mFrame.width() +
269 mAnimation.setStartTime(currentTime);
274 if (stepAnimation(currentTime)) {
280 " @ " + currentTime);
457 boolean commitFinishDrawingLocked(long currentTime) { argument
/frameworks/base/tools/layoutlib/bridge/src/android/animation/
H A DAnimationThread.java125 long currentTime = System.currentTimeMillis();
126 if (currentTime < bundle.mUptimeMillis) {
128 sleep(bundle.mUptimeMillis - currentTime);
/frameworks/base/services/input/
H A DInputDispatcher.cpp241 nsecs_t currentTime = now(); local
242 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime);
247 nsecs_t currentTime = now(); local
267 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime;
285 if (currentTime >= mKeyRepeatState.nextRepeatTime) {
286 mPendingEvent = synthesizeKeyRepeatLocked(currentTime);
332 done = dispatchConfigurationChangedLocked(currentTime, typedEntry);
340 done = dispatchDeviceResetLocked(currentTime, typedEntry);
356 && isStaleEventLocked(currentTime, typedEntry)) {
362 done = dispatchKeyLocked(currentTime, typedEntr
567 isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) argument
635 synthesizeKeyRepeatLocked(nsecs_t currentTime) argument
667 dispatchConfigurationChangedLocked( nsecs_t currentTime, ConfigurationChangedEntry* entry) argument
683 dispatchDeviceResetLocked( nsecs_t currentTime, DeviceResetEntry* entry) argument
696 dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) argument
806 dispatchMotionLocked( nsecs_t currentTime, MotionEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) argument
896 dispatchEventLocked(nsecs_t currentTime, EventEntry* eventEntry, const Vector<InputTarget>& inputTargets) argument
923 handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry, const sp<InputApplicationHandle>& applicationHandle, const sp<InputWindowHandle>& windowHandle, nsecs_t* nextWakeupTime, const char* reason) argument
1022 getTimeSpentWaitingForApplicationLocked( nsecs_t currentTime) argument
1040 findFocusedWindowTargetsLocked(nsecs_t currentTime, const EventEntry* entry, Vector<InputTarget>& inputTargets, nsecs_t* nextWakeupTime) argument
1104 findTouchedWindowTargetsLocked(nsecs_t currentTime, const MotionEntry* entry, Vector<InputTarget>& inputTargets, nsecs_t* nextWakeupTime, bool* outConflictingPointerActions) argument
1662 isWindowReadyForMoreInputLocked(nsecs_t currentTime, const sp<InputWindowHandle>& windowHandle, const EventEntry* eventEntry) argument
1768 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument
1816 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument
1927 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument
2043 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument
2061 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument
2122 nsecs_t currentTime = now(); local
2187 nsecs_t currentTime = now(); local
3160 nsecs_t currentTime = now(); local
3305 nsecs_t currentTime = now(); local
3333 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument
3343 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument
3353 onANRLocked( nsecs_t currentTime, const sp<InputApplicationHandle>& applicationHandle, const sp<InputWindowHandle>& windowHandle, nsecs_t eventTime, nsecs_t waitStartTime, const char* reason) argument
3690 updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry, int32_t injectionResult, nsecs_t timeSpentWaitingForApplication) argument
4137 synthesizeCancelationEvents(nsecs_t currentTime, Vector<EventEntry*>& outEvents, const CancelationOptions& options) argument
[all...]
H A DInputDispatcher.h714 void synthesizeCancelationEvents(nsecs_t currentTime,
867 static bool isStaleEventLocked(nsecs_t currentTime, EventEntry* entry);
899 KeyEntry* synthesizeKeyRepeatLocked(nsecs_t currentTime);
965 nsecs_t currentTime, ConfigurationChangedEntry* entry);
967 nsecs_t currentTime, DeviceResetEntry* entry);
969 nsecs_t currentTime, KeyEntry* entry,
972 nsecs_t currentTime, MotionEntry* entry,
974 void dispatchEventLocked(nsecs_t currentTime, EventEntry* entry,
997 int32_t handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry,
1003 nsecs_t getTimeSpentWaitingForApplicationLocked(nsecs_t currentTime);
[all...]
/frameworks/base/services/java/com/android/server/net/
H A DNetworkStatsService.java376 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis()
380 mDevRecorder.forcePersistLocked(currentTime);
381 mXtRecorder.forcePersistLocked(currentTime);
382 mUidRecorder.forcePersistLocked(currentTime);
383 mUidTagRecorder.forcePersistLocked(currentTime);
680 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis()
687 mDevRecorder.maybePersistLocked(currentTime);
688 mXtRecorder.maybePersistLocked(currentTime);
689 mUidRecorder.maybePersistLocked(currentTime);
690 mUidTagRecorder.maybePersistLocked(currentTime);
[all...]
H A DNetworkPolicyManagerService.java642 final long currentTime = currentTimeMillis();
648 final long start = computeLastCycleBoundary(currentTime, policy);
649 final long end = currentTime;
921 final long currentTime = currentTimeMillis();
929 final long start = computeLastCycleBoundary(currentTime, policy);
930 final long end = currentTime;
1026 final long currentTime = currentTimeMillis();
1033 start = computeLastCycleBoundary(currentTime, policy);
1034 totalBytes = getTotalBytes(policy.template, start, currentTime);
1492 final long currentTime
[all...]
/frameworks/base/services/java/com/android/server/
H A DNetworkTimeUpdateService.java152 final long currentTime = System.currentTimeMillis();
153 if (DBG) Log.d(TAG, "System time = " + currentTime);
170 if (Math.abs(ntp - currentTime) > TIME_ERROR_THRESHOLD_MS
174 && Math.abs(ntp - currentTime) <= TIME_ERROR_THRESHOLD_MS) {
175 Log.d(TAG, "For initial setup, rtc = " + currentTime);
H A DTwilightService.java441 Time currentTime = new Time();
442 currentTime.set(System.currentTimeMillis());
444 (currentTime.gmtoff - (currentTime.isDst > 0 ? 3600 : 0));
H A DAlarmManagerService.java960 final long currentTime = System.currentTimeMillis();
961 calendar.setTimeInMillis(currentTime);
968 final long tickEventDelay = calendar.getTimeInMillis() - currentTime;
/frameworks/base/core/java/android/net/
H A DNetworkPolicyManager.java156 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { argument
162 now.set(currentTime);
186 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { argument
192 now.set(currentTime);
/frameworks/base/core/java/android/view/animation/
H A DAnimation.java828 * @param currentTime Where we are in the animation. This is wall clock time.
833 public boolean getTransformation(long currentTime, Transformation outTransformation) { argument
835 mStartTime = currentTime;
842 normalizedTime = ((float) (currentTime - (mStartTime + startOffset))) /
846 normalizedTime = currentTime < mStartTime ? 0.0f : 1.0f;
930 * @param currentTime Where we are in the animation. This is wall clock time.
937 public boolean getTransformation(long currentTime, Transformation outTransformation, argument
940 return getTransformation(currentTime, outTransformation);
H A DAnimationSet.java369 public boolean getTransformation(long currentTime, Transformation t) { argument
384 more = a.getTransformation(currentTime, temp, getScaleFactor()) || more;
/frameworks/ex/carousel/java/com/android/ex/carousel/
H A 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/
H A DComprehensiveCountryDetector.java469 long currentTime = SystemClock.elapsedRealtime();
475 currentSessionLength = currentTime - mStartTime;
484 sb.append("currentTime=" + currentTime + ", ");
/frameworks/base/core/java/android/view/
H A DScaleGestureDetector.java180 final long currentTime = SystemClock.uptimeMillis();
182 boolean accept = currentTime - mTouchHistoryLastAcceptedTime >= TOUCH_STABILIZE_TIME;
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java449 final long currentTime = parseTime("2007-11-14T00:00:00.000Z");
454 final long actualCycle = computeLastCycleBoundary(currentTime, policy);
460 final long currentTime = parseTime("2007-11-14T00:00:00.000Z");
465 final long actualCycle = computeLastCycleBoundary(currentTime, policy);
471 final long currentTime = parseTime("2007-02-14T00:00:00.000Z");
476 final long actualCycle = computeLastCycleBoundary(currentTime, policy);
482 final long currentTime = parseTime("2007-03-14T00:00:00.000Z");
487 final long actualCycle = computeLastCycleBoundary(currentTime, policy);
H A DThrottleServiceTest.java272 public void expectTime(long currentTime) throws Exception { argument
275 expect(mMockTime.currentTimeMillis()).andReturn(currentTime).anyTimes();
/frameworks/base/core/java/android/widget/
H A DOverScroller.java904 final long currentTime = time - mStartTime;
906 if (currentTime > mDuration) {
913 final float t = (float) currentTime / mSplineDuration;
932 final float t = currentTime / 1000.0f;
939 final float t = (float) (currentTime) / mDuration;
/frameworks/native/opengl/tests/hwc/
H A DhwcStress.cpp246 struct timeval startTime, currentTime, delta; local
392 gettimeofday(&currentTime, NULL);
393 delta = tvDelta(&startTime, &currentTime);
/frameworks/base/core/java/android/text/format/
H A DDateUtils.java545 Time currentTime = new Time();
546 currentTime.set(today);
549 int currentDay = Time.getJulianDay(today, currentTime.gmtoff);
1315 Time currentTime = new Time();
1316 currentTime.setToNow();
1317 showYear = startYear != currentTime.year;

Completed in 1928 milliseconds

12