/frameworks/base/core/java/android/animation/ |
H A D | TimeAnimator.java | 40 boolean animationFrame(long currentTime) { argument 42 long totalTime = currentTime - mStartTime; 43 long deltaTime = (mPreviousTime < 0) ? 0 : (currentTime - mPreviousTime); 44 mPreviousTime = currentTime; 52 long currentTime = AnimationUtils.currentAnimationTimeMillis(); 53 mStartTime = Math.max(mStartTime, currentTime - playTime); 54 animationFrame(currentTime);
|
H A D | ValueAnimator.java | 593 long currentTime = AnimationUtils.currentAnimationTimeMillis(); 594 mStartTime = currentTime - seekTime; 1131 long currentTime = AnimationUtils.currentAnimationTimeMillis(); 1132 long currentPlayTime = currentTime - mStartTime; 1134 mStartTime = currentTime - timeLeft; 1217 * @param currentTime The current animation time, used to calculate whether the animation 1222 private boolean delayedAnimationFrame(long currentTime) { argument 1225 mDelayStartTime = currentTime; 1229 mPauseTime = currentTime; 1236 mDelayStartTime += (currentTime 1262 animationFrame(long currentTime) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | FileRotatorTest.java | 80 long currentTime = TEST_TIME; 83 rotate1.combineActive(reader, writer("foo"), currentTime); 96 long currentTime = TEST_TIME; 99 rotate.combineActive(reader, writer("foo"), currentTime); 105 currentTime += SECOND_IN_MILLIS; 107 rotate.combineActive(reader, writer("bar"), currentTime); 117 long currentTime = TEST_TIME; 120 rotate.combineActive(reader, writer("foo"), currentTime); 126 currentTime += MINUTE_IN_MILLIS; 127 rotate.combineActive(reader, writer("bar"), currentTime); [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/ |
H A D | FirstFrameAnimatorHelper.java | 82 final long currentTime = System.currentTimeMillis(); 85 mStartTime = currentTime; 98 if (frameNum == 0 && currentTime < mStartTime + MAX_DELAY) { 107 } else if (frameNum == 1 && currentTime < mStartTime + MAX_DELAY && 109 currentTime > mStartTime + IDEAL_FRAME_DURATION) {
|
/frameworks/support/v4/java/android/support/v4/widget/ |
H A D | AutoScrollHelper.java | 775 final long currentTime = AnimationUtils.currentAnimationTimeMillis(); 776 mEffectiveRampDown = constrain((int) (currentTime - mStartTime), 0, mRampDownDuration); 777 mStopValue = getValueAt(currentTime); 778 mStopTime = currentTime; 786 private float getValueAt(long currentTime) { argument 787 if (currentTime < mStartTime) { 789 } else if (mStopTime < 0 || currentTime < mStopTime) { 790 final long elapsedSinceStart = currentTime - mStartTime; 793 final long elapsedSinceEnd = currentTime - mStopTime; 822 final long currentTime [all...] |
/frameworks/base/core/java/com/android/internal/widget/ |
H A D | AutoScrollHelper.java | 774 final long currentTime = AnimationUtils.currentAnimationTimeMillis(); 775 mEffectiveRampDown = constrain((int) (currentTime - mStartTime), 0, mRampDownDuration); 776 mStopValue = getValueAt(currentTime); 777 mStopTime = currentTime; 785 private float getValueAt(long currentTime) { argument 786 if (currentTime < mStartTime) { 788 } else if (mStopTime < 0 || currentTime < mStopTime) { 789 final long elapsedSinceStart = currentTime - mStartTime; 792 final long elapsedSinceEnd = currentTime - mStopTime; 821 final long currentTime [all...] |
/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | AppWindowAnimator.java | 175 private void stepThumbnailAnimation(long currentTime) { argument 177 thumbnailAnimation.getTransformation(currentTime, thumbnailTransformation); 214 private boolean stepAnimation(long currentTime) { argument 219 boolean hasMoreFrames = animation.getTransformation(currentTime, transformation); 234 TAG, "Finished animation in " + mAppToken + " @ " + currentTime); 242 boolean stepAnimationLocked(long currentTime) { argument 259 " @ " + currentTime + " scale=" 262 animation.setStartTime(currentTime); 266 thumbnailAnimation.setStartTime(currentTime); 269 if (stepAnimation(currentTime)) { 388 getTransformation(long currentTime, Transformation outTransformation) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/animation/ |
H A D | AnimationThread.java | 125 long currentTime = System.currentTimeMillis(); 126 if (currentTime < bundle.mUptimeMillis) { 128 sleep(bundle.mUptimeMillis - currentTime);
|
/frameworks/native/services/inputflinger/ |
H A D | InputDispatcher.cpp | 246 nsecs_t currentTime = now(); local 247 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); 252 nsecs_t currentTime = now(); local 272 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime; 290 if (currentTime >= mKeyRepeatState.nextRepeatTime) { 291 mPendingEvent = synthesizeKeyRepeatLocked(currentTime); 337 done = dispatchConfigurationChangedLocked(currentTime, typedEntry); 345 done = dispatchDeviceResetLocked(currentTime, typedEntry); 361 && isStaleEventLocked(currentTime, typedEntry)) { 367 done = dispatchKeyLocked(currentTime, typedEntr 577 isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) argument 646 synthesizeKeyRepeatLocked(nsecs_t currentTime) argument 678 dispatchConfigurationChangedLocked( nsecs_t currentTime, ConfigurationChangedEntry* entry) argument 694 dispatchDeviceResetLocked( nsecs_t currentTime, DeviceResetEntry* entry) argument 707 dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) argument 817 dispatchMotionLocked( nsecs_t currentTime, MotionEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) argument 907 dispatchEventLocked(nsecs_t currentTime, EventEntry* eventEntry, const Vector<InputTarget>& inputTargets) argument 934 handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry, const sp<InputApplicationHandle>& applicationHandle, const sp<InputWindowHandle>& windowHandle, nsecs_t* nextWakeupTime, const char* reason) argument 1040 getTimeSpentWaitingForApplicationLocked( nsecs_t currentTime) argument 1058 findFocusedWindowTargetsLocked(nsecs_t currentTime, const EventEntry* entry, Vector<InputTarget>& inputTargets, nsecs_t* nextWakeupTime) argument 1115 findTouchedWindowTargetsLocked(nsecs_t currentTime, const MotionEntry* entry, Vector<InputTarget>& inputTargets, nsecs_t* nextWakeupTime, bool* outConflictingPointerActions) argument 1620 checkWindowReadyForMoreInputLocked(nsecs_t currentTime, const sp<InputWindowHandle>& windowHandle, const EventEntry* eventEntry, const char* targetType) argument 1759 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1807 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1918 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument 2034 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 2052 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument 2113 nsecs_t currentTime = now(); local 2178 nsecs_t currentTime = now(); local 3175 nsecs_t currentTime = now(); local 3357 nsecs_t currentTime = now(); local 3385 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 3395 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument 3405 onANRLocked( nsecs_t currentTime, const sp<InputApplicationHandle>& applicationHandle, const sp<InputWindowHandle>& windowHandle, nsecs_t eventTime, nsecs_t waitStartTime, const char* reason) argument 3744 updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry, int32_t injectionResult, nsecs_t timeSpentWaitingForApplication) argument 4232 synthesizeCancelationEvents(nsecs_t currentTime, Vector<EventEntry*>& outEvents, const CancelationOptions& options) argument [all...] |
H A D | InputDispatcher.h | 716 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...] |
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkStatsService.java | 351 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() 355 mDevRecorder.forcePersistLocked(currentTime); 356 mXtRecorder.forcePersistLocked(currentTime); 357 mUidRecorder.forcePersistLocked(currentTime); 358 mUidTagRecorder.forcePersistLocked(currentTime); 641 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis() 648 mDevRecorder.maybePersistLocked(currentTime); 649 mXtRecorder.maybePersistLocked(currentTime); 650 mUidRecorder.maybePersistLocked(currentTime); 651 mUidTagRecorder.maybePersistLocked(currentTime); [all...] |
H A D | NetworkPolicyManagerService.java | 696 final long currentTime = currentTimeMillis(); 703 final long start = computeLastCycleBoundary(currentTime, policy); 704 final long end = currentTime; 987 final long currentTime = currentTimeMillis(); 996 final long start = computeLastCycleBoundary(currentTime, policy); 997 final long end = currentTime; 1097 final long currentTime = currentTimeMillis(); 1105 start = computeLastCycleBoundary(currentTime, policy); 1106 totalBytes = getTotalBytes(policy.template, start, currentTime); 1652 final long currentTime [all...] |
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/ |
H A D | ClusterManager.java | 111 long currentTime = location.getTime() / 1000; // measure time in seconds 146 mConsolidateRef = currentTime; 147 mRefreshRef = currentTime; 154 long collectDuration = currentTime - mConsolidateRef; 159 mConsolidateRef = currentTime; 161 long refreshDuration = currentTime - mRefreshRef; 165 mRefreshRef = currentTime;
|
/frameworks/base/services/core/java/com/android/server/ |
H A D | NetworkTimeUpdateService.java | 160 final long currentTime = System.currentTimeMillis(); 161 if (DBG) Log.d(TAG, "System time = " + currentTime); 178 if (Math.abs(ntp - currentTime) > mTimeErrorThresholdMs 182 && Math.abs(ntp - currentTime) <= mTimeErrorThresholdMs) { 183 Log.d(TAG, "For initial setup, rtc = " + currentTime);
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkPolicyManager.java | 190 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { argument 196 now.set(currentTime); 220 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { argument 226 now.set(currentTime);
|
/frameworks/base/core/java/android/view/animation/ |
H A D | Animation.java | 828 * @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);
|
/frameworks/base/services/core/java/com/android/server/twilight/ |
H A D | TwilightService.java | 339 Time currentTime = new Time(); 340 currentTime.set(System.currentTimeMillis()); 342 (currentTime.gmtoff - (currentTime.isDst > 0 ? 3600 : 0));
|
/frameworks/base/core/java/android/widget/ |
H A D | OverScroller.java | 905 final long currentTime = time - mStartTime; 907 if (currentTime == 0) { 911 if (currentTime > mDuration) { 918 final float t = (float) currentTime / mSplineDuration; 937 final float t = currentTime / 1000.0f; 944 final float t = (float) (currentTime) / mDuration;
|
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | ComprehensiveCountryDetector.java | 468 long currentTime = SystemClock.elapsedRealtime(); 474 currentSessionLength = currentTime - mStartTime; 483 sb.append("currentTime=" + currentTime + ", ");
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkPolicyManagerServiceTest.java | 449 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);
|
/frameworks/base/core/java/android/hardware/camera2/ |
H A D | DngCreator.java | 89 long currentTime = System.currentTimeMillis(); 92 long bootTimeMillis = currentTime - SystemClock.elapsedRealtime(); 96 long captureTime = currentTime;
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcStress.cpp | 245 struct timeval startTime, currentTime, delta; local 391 gettimeofday(¤tTime, NULL); 392 delta = tvDelta(&startTime, ¤tTime);
|
/frameworks/base/core/java/android/view/ |
H A D | ScaleGestureDetector.java | 223 final long currentTime = SystemClock.uptimeMillis(); 225 boolean accept = currentTime - mTouchHistoryLastAcceptedTime >= TOUCH_STABILIZE_TIME;
|
/frameworks/av/media/libstagefright/codecs/aacdec/ |
H A D | SoftAAC2.cpp | 624 int64_t currentTime = mBufferTimestamps.top(); local 625 currentTime += mStreamInfo->aacSamplesPerFrame * 627 mBufferTimestamps.add(currentTime); 858 int64_t currentTime = 0; local 867 currentTime = *nextTimeStamp; 920 outHeader->nTimeStamp = currentTime;
|
/frameworks/base/core/java/android/text/format/ |
H A D | DateUtils.java | 430 Time currentTime = new Time(); 431 currentTime.set(today); 432 int currentDay = Time.getJulianDay(today, currentTime.gmtoff);
|