Searched defs:currentTime (Results 1 - 25 of 29) sorted by relevance

12

/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.java663 long currentTime = AnimationUtils.currentAnimationTimeMillis();
666 mStartTime = currentTime - seekTime;
1182 long currentTime = AnimationUtils.currentAnimationTimeMillis();
1183 long currentPlayTime = currentTime - mStartTime;
1185 mStartTime = currentTime - timeLeft;
1302 * currentTime parameter is the timing pulse sent by the handler, used to calculate the
1308 * @param currentTime The current time, as tracked by the static timing handler
1312 boolean animateBasedOnTime(long currentTime) { argument
1317 (float)(currentTime - mStartTime) / scaledDuration : 1f;
1470 final long 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/base/libs/hwui/hwui/
H A DAnimatedImageDrawable.cpp66 const nsecs_t currentTime = systemTime(CLOCK_MONOTONIC); local
69 mLastWallTime = currentTime;
75 mCurrentTime += currentTime - lastWallTime;
246 const nsecs_t currentTime = systemTime(CLOCK_MONOTONIC); local
251 mCurrentTime = currentTime;
254 mTimeToShowNextSnapshot += currentTime;
256 mCurrentTime += currentTime - mLastWallTime;
259 mLastWallTime = currentTime;
/frameworks/support/dynamic-animation/src/main/java/androidx/dynamicanimation/animation/
H A DAnimationHandler.java147 long currentTime = SystemClock.uptimeMillis();
153 if (isCallbackDue(callback, currentTime)) {
166 private boolean isCallbackDue(AnimationFrameCallback callback, long currentTime) { argument
171 if (startTime < currentTime) {
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/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;
/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/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileServiceManager.java189 public void calculateBindPriority(long currentTime) { argument
206 long timeSinceUpdate = currentTime - mLastUpdate;
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/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;
/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java369 public boolean getTransformation(long currentTime, Transformation t) { argument
384 more = a.getTransformation(currentTime, temp, getScaleFactor()) || more;
H A DAnimation.java864 * @param currentTime Where we are in the animation. This is wall clock time.
869 public boolean getTransformation(long currentTime, Transformation outTransformation) { argument
871 mStartTime = currentTime;
878 normalizedTime = ((float) (currentTime - (mStartTime + startOffset))) /
882 normalizedTime = currentTime < mStartTime ? 0.0f : 1.0f;
970 * @param currentTime Where we are in the animation. This is wall clock time.
977 public boolean getTransformation(long currentTime, Transformation outTransformation, argument
980 return getTransformation(currentTime, outTransformation);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DMotionEventInjector.java192 long currentTime = SystemClock.uptimeMillis();
194 (mSequencesInProgress.size() == 0) ? currentTime : mLastScheduledEventTime);
207 mHandler.sendMessageDelayed(message, Math.max(0, event.getEventTime() - currentTime));
368 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) {
383 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, MotionEvent.ACTION_MOVE,
389 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) {
402 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, action,
417 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) {
427 mDownTime = currentTime;
430 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, actio
367 appendMoveEventIfNeeded(List<MotionEvent> motionEvents, TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) argument
388 appendUpEvents(List<MotionEvent> motionEvents, TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) argument
416 appendDownEvents(List<MotionEvent> motionEvents, TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) argument
[all...]
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsObservers.java107 VpnInfo[] vpnArray, long currentTime) {
109 activeUidIfaces, vpnArray, currentTime);
436 VpnInfo[] vpnArray, long currentTime) {
442 mCurrentTime = currentTime;
104 updateStats(NetworkStats xtSnapshot, NetworkStats uidSnapshot, ArrayMap<String, NetworkIdentitySet> activeIfaces, ArrayMap<String, NetworkIdentitySet> activeUidIfaces, VpnInfo[] vpnArray, long currentTime) argument
433 StatsContext(NetworkStats xtSnapshot, NetworkStats uidSnapshot, ArrayMap<String, NetworkIdentitySet> activeIfaces, ArrayMap<String, NetworkIdentitySet> activeUidIfaces, VpnInfo[] vpnArray, long currentTime) argument
H A DNetworkStatsService.java443 final long currentTime = mClock.millis();
446 mDevRecorder.forcePersistLocked(currentTime);
447 mXtRecorder.forcePersistLocked(currentTime);
448 mUidRecorder.forcePersistLocked(currentTime);
449 mUidTagRecorder.forcePersistLocked(currentTime);
882 final long currentTime = mClock.millis();
888 mDevRecorder.maybePersistLocked(currentTime);
889 mXtRecorder.maybePersistLocked(currentTime);
890 mUidRecorder.maybePersistLocked(currentTime);
891 mUidTagRecorder.maybePersistLocked(currentTime);
1185 recordSnapshotLocked(long currentTime) argument
[all...]
/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/av/media/libstagefright/codecs/aacdec/
H A DSoftAAC2.cpp739 int64_t currentTime = mBufferTimestamps.top(); local
740 currentTime += mStreamInfo->aacSamplesPerFrame *
742 mBufferTimestamps.add(currentTime);
973 int64_t currentTime = 0; local
982 currentTime = *nextTimeStamp;
1035 outHeader->nTimeStamp = currentTime;
/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/services/tests/servicestests/src/com/android/server/timezone/
H A DPackageTrackerTest.java1482 private long currentTime = 1000; field in class:PackageTrackerTest.FakeClock
1486 return currentTime;
1490 currentTime += millis;
/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsService.java549 private static boolean validRange(long currentTime, long beginTime, long endTime) { argument
550 return beginTime <= currentTime && beginTime < endTime;
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger/
H A DSoundTriggerService.java613 * @param currentTime Current elapsed time since boot in ns
615 void clearOldOps(long currentTime) { argument
617 long numHoursSinceBoot = TimeUnit.HOURS.convert(currentTime, TimeUnit.NANOSECONDS);
633 * @param currentTime Current elapsed time since boot in ns
635 void addOp(long currentTime) { argument
637 long numHoursSinceBoot = TimeUnit.HOURS.convert(currentTime, TimeUnit.NANOSECONDS);
960 long currentTime = System.nanoTime();
961 mNumOps.clearOldOps(currentTime);
982 mNumOps.addOp(currentTime);
/frameworks/support/compat/src/main/java/androidx/core/widget/
H A DAutoScrollHelper.java788 final long currentTime = AnimationUtils.currentAnimationTimeMillis();
789 mEffectiveRampDown = constrain((int) (currentTime - mStartTime), 0, mRampDownDuration);
790 mStopValue = getValueAt(currentTime);
791 mStopTime = currentTime;
799 private float getValueAt(long currentTime) { argument
800 if (currentTime < mStartTime) {
802 } else if (mStopTime < 0 || currentTime < mStopTime) {
803 final long elapsedSinceStart = currentTime - mStartTime;
806 final long elapsedSinceEnd = currentTime - mStopTime;
835 final long currentTime
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java834 private static long computeLastCycleBoundary(long currentTime, NetworkPolicy policy) { argument
835 RecurrenceRule.sClock = Clock.fixed(Instant.ofEpochMilli(currentTime),
840 if (cycle.getLower().toInstant().toEpochMilli() < currentTime) {
845 "Failed to find current cycle for " + policy + " at " + currentTime);
848 private static long computeNextCycleBoundary(long currentTime, NetworkPolicy policy) { argument
849 RecurrenceRule.sClock = Clock.fixed(Instant.ofEpochMilli(currentTime),
857 final long currentTime = parseTime("2007-11-14T00:00:00.000Z");
862 final long actualCycle = computeLastCycleBoundary(currentTime, policy);
869 final long currentTime = parseTime("2007-11-14T00:00:00.000Z");
874 final long actualCycle = computeLastCycleBoundary(currentTime, polic
[all...]
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DFragmentManager.java4076 public boolean getTransformation(long currentTime, Transformation t) { argument
4080 boolean more = super.getTransformation(currentTime, t);
4089 public boolean getTransformation(long currentTime, Transformation outTransformation, argument
4094 boolean more = super.getTransformation(currentTime, outTransformation, scale);
/frameworks/native/services/inputflinger/
H A DInputDispatcher.cpp289 nsecs_t currentTime = now(); local
290 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime);
295 nsecs_t currentTime = now(); local
315 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime;
333 if (currentTime >= mKeyRepeatState.nextRepeatTime) {
334 mPendingEvent = synthesizeKeyRepeatLocked(currentTime);
380 done = dispatchConfigurationChangedLocked(currentTime, typedEntry);
388 done = dispatchDeviceResetLocked(currentTime, typedEntry);
404 && isStaleEventLocked(currentTime, typedEntry)) {
410 done = dispatchKeyLocked(currentTime, typedEntr
623 isStaleEventLocked(nsecs_t currentTime, EventEntry* entry) argument
692 synthesizeKeyRepeatLocked(nsecs_t currentTime) argument
724 dispatchConfigurationChangedLocked( nsecs_t currentTime, ConfigurationChangedEntry* entry) argument
740 dispatchDeviceResetLocked( nsecs_t currentTime, DeviceResetEntry* entry) argument
754 dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) argument
864 dispatchMotionLocked( nsecs_t currentTime, MotionEntry* entry, DropReason* dropReason, nsecs_t* nextWakeupTime) argument
958 dispatchEventLocked(nsecs_t currentTime, EventEntry* eventEntry, const Vector<InputTarget>& inputTargets) argument
985 handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry, const sp<InputApplicationHandle>& applicationHandle, const sp<InputWindowHandle>& windowHandle, nsecs_t* nextWakeupTime, const char* reason) argument
1091 getTimeSpentWaitingForApplicationLocked( nsecs_t currentTime) argument
1109 findFocusedWindowTargetsLocked(nsecs_t currentTime, const EventEntry* entry, Vector<InputTarget>& inputTargets, nsecs_t* nextWakeupTime) argument
1166 findTouchedWindowTargetsLocked(nsecs_t currentTime, const MotionEntry* entry, Vector<InputTarget>& inputTargets, nsecs_t* nextWakeupTime, bool* outConflictingPointerActions) argument
1698 checkWindowReadyForMoreInputLocked(nsecs_t currentTime, const sp<InputWindowHandle>& windowHandle, const EventEntry* eventEntry, const char* targetType) argument
1837 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument
1885 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument
1999 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument
2115 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument
2133 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument
2194 nsecs_t currentTime = now(); local
2266 nsecs_t currentTime = now(); local
3288 nsecs_t currentTime = now(); local
3471 nsecs_t currentTime = now(); local
3499 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument
3509 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument
3519 onANRLocked( nsecs_t currentTime, const sp<InputApplicationHandle>& applicationHandle, const sp<InputWindowHandle>& windowHandle, nsecs_t eventTime, nsecs_t waitStartTime, const char* reason) argument
3863 updateDispatchStatisticsLocked(nsecs_t currentTime, const EventEntry* entry, int32_t injectionResult, nsecs_t timeSpentWaitingForApplication) argument
4338 synthesizeCancelationEvents(nsecs_t currentTime, Vector<EventEntry*>& outEvents, const CancelationOptions& options) argument
[all...]

Completed in 7604 milliseconds

12