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

123

/frameworks/base/core/java/android/animation/
H A DTimeAnimator.java40 boolean animateBasedOnTime(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);
55 animateBasedOnTime(currentTime);
H A DAnimationHandler.java138 long currentTime = SystemClock.uptimeMillis();
145 if (isCallbackDue(callback, currentTime)) {
174 private boolean isCallbackDue(AnimationFrameCallback callback, long currentTime) { argument
179 if (startTime < currentTime) {
H A DValueAnimator.java643 long currentTime = AnimationUtils.currentAnimationTimeMillis();
646 mStartTime = currentTime - seekTime;
1159 long currentTime = AnimationUtils.currentAnimationTimeMillis();
1160 long currentPlayTime = currentTime - mStartTime;
1162 mStartTime = currentTime - timeLeft;
1279 * currentTime parameter is the timing pulse sent by the handler, used to calculate the
1285 * @param currentTime The current time, as tracked by the static timing handler
1289 boolean animateBasedOnTime(long currentTime) { argument
1294 (float)(currentTime - mStartTime) / scaledDuration : 1f;
1445 final long currentTime
[all...]
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DFileRotatorTest.java80 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/services/core/java/com/android/server/wm/animation/
H A DClipRectTBAnimation.java51 public boolean getTransformation(long currentTime, Transformation outTransformation) { argument
60 normalizedTime = ((float) (currentTime - (getStartTime() + startOffset))) /
64 normalizedTime = currentTime < getStartTime() ? 0.0f : 1.0f;
67 return super.getTransformation(currentTime, outTransformation);
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DAutoScrollHelper.java777 final long currentTime = AnimationUtils.currentAnimationTimeMillis();
778 mEffectiveRampDown = constrain((int) (currentTime - mStartTime), 0, mRampDownDuration);
779 mStopValue = getValueAt(currentTime);
780 mStopTime = currentTime;
788 private float getValueAt(long currentTime) { argument
789 if (currentTime < mStartTime) {
791 } else if (mStopTime < 0 || currentTime < mStopTime) {
792 final long elapsedSinceStart = currentTime - mStartTime;
795 final long elapsedSinceEnd = currentTime - mStopTime;
824 final long currentTime
[all...]
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/util/
H A DKeyboardUtil.java68 final long currentTime = System.currentTimeMillis();
69 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, 0, metaState);
73 final long currentTime = System.currentTimeMillis();
74 return new KeyEvent(currentTime, currentTime, KeyEvent.ACTION_DOWN, keycode, 0);
/frameworks/base/core/tests/coretests/src/android/util/
H A DKeyUtils.java99 long currentTime = System.currentTimeMillis();
100 return new KeyEvent(currentTime, currentTime, keyEventAction, keycode,
/frameworks/base/services/core/java/com/android/server/wm/
H A DAppWindowAnimator.java254 private void stepThumbnailAnimation(long currentTime) { argument
256 final long animationFrameTime = getAnimationFrameTime(thumbnailAnimation, currentTime);
299 private long getAnimationFrameTime(Animation animation, long currentTime) { argument
301 animation.setStartTime(currentTime);
302 return currentTime + 1;
304 return currentTime;
307 private boolean stepAnimation(long currentTime) { argument
312 final long animationFrameTime = getAnimationFrameTime(animation, currentTime);
331 + currentTime);
352 boolean stepAnimationLocked(long currentTime) { argument
493 getTransformation(long currentTime, Transformation outTransformation) argument
[all...]
/frameworks/support/dynamic-animation/src/android/support/animation/
H A DAnimationHandler.java136 long currentTime = SystemClock.uptimeMillis();
142 if (isCallbackDue(callback, currentTime)) {
155 private boolean isCallbackDue(AnimationFrameCallback callback, long currentTime) { argument
160 if (startTime < currentTime) {
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
H A DANQPRequestManagerTest.java268 long currentTime = 0;
272 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime);
279 currentTime += (currentHoldOffTime - 1);
282 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime);
287 currentTime += 1;
289 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime);
295 currentTime += (ANQPRequestManager.BASE_HOLDOFF_TIME_MILLISECONDS
298 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime);
302 currentTime += 1;
304 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime);
[all...]
/frameworks/base/core/java/com/android/internal/widget/
H A DAutoScrollHelper.java774 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/tools/layoutlib/bridge/src/android/animation/
H A DAnimationThread.java124 long currentTime = System.currentTimeMillis();
125 if (currentTime < bundle.mUptimeMillis) {
127 sleep(bundle.mUptimeMillis - currentTime);
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DANQPRequestManager.java161 long currentTime = mClock.getElapsedSinceBootMillis();
163 if (info != null && info.holdOffExpirationTime > currentTime) {
165 + (info.holdOffExpirationTime - currentTime) / 1000 + " seconds");
/frameworks/base/core/java/android/net/
H A DNetworkPolicyManager.java260 public static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { argument
266 cal.setTimeInMillis(currentTime);
269 if (cal.getTimeInMillis() >= currentTime) {
280 public static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { argument
286 cal.setTimeInMillis(currentTime);
289 if (cal.getTimeInMillis() <= currentTime) {
/frameworks/native/services/inputflinger/
H A DInputDispatcher.cpp250 nsecs_t currentTime = now(); local
251 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime);
256 nsecs_t currentTime = now(); local
276 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime;
294 if (currentTime >= mKeyRepeatState.nextRepeatTime) {
295 mPendingEvent = synthesizeKeyRepeatLocked(currentTime);
341 done = dispatchConfigurationChangedLocked(currentTime, typedEntry);
349 done = dispatchDeviceResetLocked(currentTime, typedEntry);
365 && isStaleEventLocked(currentTime, typedEntry)) {
371 done = dispatchKeyLocked(currentTime, typedEntr
584 isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) argument
653 synthesizeKeyRepeatLocked(nsecs_t currentTime) argument
685 dispatchConfigurationChangedLocked( nsecs_t currentTime, ConfigurationChangedEntry* entry) argument
701 dispatchDeviceResetLocked( nsecs_t currentTime, DeviceResetEntry* entry) argument
714 dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) argument
824 dispatchMotionLocked( nsecs_t currentTime, MotionEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) argument
921 dispatchEventLocked(nsecs_t currentTime, EventEntry* eventEntry, const Vector<InputTarget>& inputTargets) argument
948 handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry, const sp<InputApplicationHandle>& applicationHandle, const sp<InputWindowHandle>& windowHandle, nsecs_t* nextWakeupTime, const char* reason) argument
1054 getTimeSpentWaitingForApplicationLocked( nsecs_t currentTime) argument
1072 findFocusedWindowTargetsLocked(nsecs_t currentTime, const EventEntry* entry, Vector<InputTarget>& inputTargets, nsecs_t* nextWakeupTime) argument
1129 findTouchedWindowTargetsLocked(nsecs_t currentTime, const MotionEntry* entry, Vector<InputTarget>& inputTargets, nsecs_t* nextWakeupTime, bool* outConflictingPointerActions) argument
1663 checkWindowReadyForMoreInputLocked(nsecs_t currentTime, const sp<InputWindowHandle>& windowHandle, const EventEntry* eventEntry, const char* targetType) argument
1802 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument
1850 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument
1964 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument
2080 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument
2098 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument
2159 nsecs_t currentTime = now(); local
2231 nsecs_t currentTime = now(); local
3232 nsecs_t currentTime = now(); local
3414 nsecs_t currentTime = now(); local
3442 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument
3452 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument
3462 onANRLocked( nsecs_t currentTime, const sp<InputApplicationHandle>& applicationHandle, const sp<InputWindowHandle>& windowHandle, nsecs_t eventTime, nsecs_t waitStartTime, const char* reason) argument
3801 updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry, int32_t injectionResult, nsecs_t timeSpentWaitingForApplication) argument
4277 synthesizeCancelationEvents(nsecs_t currentTime, Vector<EventEntry*>& outEvents, const CancelationOptions& options) argument
[all...]
H A 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...]
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DClusterManager.java111 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/media/tests/NativeMidiDemo/java/com/example/android/nativemididemo/
H A DNativeMidi.java63 long currentTime = System.currentTimeMillis();
65 if (currentTime - mLastTime >= checkIntervalMs) {
68 ((float)(currentTime - mLastTime) / (float)1000));
74 mLastTime = currentTime;
85 if (mLastUntouchedTime == 0) mLastUntouchedTime = currentTime;
86 if (currentTime - mLastUntouchedTime > 3000) {
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsService.java391 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis()
395 mDevRecorder.forcePersistLocked(currentTime);
396 mXtRecorder.forcePersistLocked(currentTime);
397 mUidRecorder.forcePersistLocked(currentTime);
398 mUidTagRecorder.forcePersistLocked(currentTime);
767 final long currentTime = mTime.hasCache() ? mTime.currentTimeMillis()
774 mDevRecorder.maybePersistLocked(currentTime);
775 mXtRecorder.maybePersistLocked(currentTime);
776 mUidRecorder.maybePersistLocked(currentTime);
777 mUidTagRecorder.maybePersistLocked(currentTime);
1040 recordSnapshotLocked(long currentTime) argument
[all...]
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMotionEventInjector.java212 long currentTime = SystemClock.uptimeMillis();
214 (mSequencesInProgress.size() == 0) ? currentTime : mLastScheduledEventTime);
227 mHandler.sendMessageDelayed(message, Math.max(0, event.getEventTime() - currentTime));
381 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) {
396 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, MotionEvent.ACTION_MOVE,
402 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) {
415 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, action,
430 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) {
440 mDownTime = currentTime;
443 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, actio
380 appendMoveEventIfNeeded(List<MotionEvent> motionEvents, TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) argument
401 appendUpEvents(List<MotionEvent> motionEvents, TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) argument
429 appendDownEvents(List<MotionEvent> motionEvents, TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp235 steady_clock::time_point currentTime = steady_clock::now(); local
236 steady_clock::time_point endTime = currentTime + std::chrono::milliseconds(timeoutMillis);
243 - currentTime).count());
250 currentTime = steady_clock::now();
251 if (currentTime >= endTime) {
/frameworks/base/services/core/java/com/android/server/
H A DNetworkTimeUpdateService.java181 final long currentTime = System.currentTimeMillis();
182 if (DBG) Log.d(TAG, "System time = " + currentTime);
199 if (Math.abs(ntp - currentTime) > mTimeErrorThresholdMs
203 && Math.abs(ntp - currentTime) <= mTimeErrorThresholdMs) {
204 Log.d(TAG, "For initial setup, rtc = " + currentTime);
/frameworks/base/core/java/android/view/animation/
H A DAnimation.java837 * @param currentTime Where we are in the animation. This is wall clock time.
842 public boolean getTransformation(long currentTime, Transformation outTransformation) { argument
844 mStartTime = currentTime;
851 normalizedTime = ((float) (currentTime - (mStartTime + startOffset))) /
855 normalizedTime = currentTime < mStartTime ? 0.0f : 1.0f;
943 * @param currentTime Where we are in the animation. This is wall clock time.
950 public boolean getTransformation(long currentTime, Transformation outTransformation, argument
953 return getTransformation(currentTime, outTransformation);
/frameworks/support/v7/mediarouter/src/android/support/v7/app/
H A DOverlayListView.java225 * @param currentTime Current time.in millis
227 public boolean update(long currentTime) { argument
231 float normalizedTime = (currentTime - mStartTime) / (float) mDuration;

Completed in 1018 milliseconds

123