/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FileRotatorTest.java | 80 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/packages/SystemUI/tests/src/com/android/systemui/pip/phone/ |
D | PipTouchStateTest.java | 66 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() local 68 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 70 currentTime + PipTouchState.DOUBLE_TAP_TIMEOUT + 10, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 78 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapTimeout_timeoutCallbackCalled() local 80 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() 82 currentTime + PipTouchState.DOUBLE_TAP_TIMEOUT - 10, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() 97 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapDrag_doubleTapCanceled() local 99 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapDrag_doubleTapCanceled() 100 mTouchState.onTouchEvent(createMotionEvent(ACTION_MOVE, currentTime + 10, 500, 500)); in testDoubleTapDrag_doubleTapCanceled() 101 mTouchState.onTouchEvent(createMotionEvent(ACTION_UP, currentTime + 20, 500, 500)); in testDoubleTapDrag_doubleTapCanceled() [all …]
|
/frameworks/base/core/java/android/animation/ |
D | TimeAnimator.java | 40 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()
|
D | AnimationHandler.java | 138 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()
|
D | ValueAnimator.java | 675 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in setCurrentFraction() local 678 mStartTime = currentTime - seekTime; in setCurrentFraction() 1194 long currentTime = AnimationUtils.currentAnimationTimeMillis(); in reverse() local 1195 long currentPlayTime = currentTime - mStartTime; in reverse() 1197 mStartTime = currentTime - timeLeft; in reverse() 1324 boolean animateBasedOnTime(long currentTime) { in animateBasedOnTime() argument 1329 (float)(currentTime - mStartTime) / scaledDuration : 1f; in animateBasedOnTime() 1482 final long currentTime = Math.max(frameTime, mStartTime); in doAnimationFrame() local 1483 boolean finished = animateBasedOnTime(currentTime); in doAnimationFrame()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputDispatcher.h | 164 static bool isStaleEvent(nsecs_t currentTime, EventEntry* entry); 216 KeyEntry* synthesizeKeyRepeatLocked(nsecs_t currentTime) REQUIRES(mLock); 282 bool dispatchConfigurationChangedLocked(nsecs_t currentTime, ConfigurationChangedEntry* entry) 284 bool dispatchDeviceResetLocked(nsecs_t currentTime, DeviceResetEntry* entry) REQUIRES(mLock); 285 bool dispatchKeyLocked(nsecs_t currentTime, KeyEntry* entry, DropReason* dropReason, 287 bool dispatchMotionLocked(nsecs_t currentTime, MotionEntry* entry, DropReason* dropReason, 289 void dispatchEventLocked(nsecs_t currentTime, EventEntry* entry, 312 int32_t handleTargetsNotReadyLocked(nsecs_t currentTime, const EventEntry* entry, 323 nsecs_t getTimeSpentWaitingForApplicationLocked(nsecs_t currentTime) REQUIRES(mLock); 327 int32_t findFocusedWindowTargetsLocked(nsecs_t currentTime, const EventEntry* entry, [all …]
|
D | InputDispatcher.cpp | 268 nsecs_t currentTime = now(); in dispatchOnce() local 269 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce() 274 nsecs_t currentTime = now(); in dispatchOnceInnerLocked() local 294 bool isAppSwitchDue = mAppSwitchDueTime <= currentTime; in dispatchOnceInnerLocked() 312 if (currentTime >= mKeyRepeatState.nextRepeatTime) { in dispatchOnceInnerLocked() 313 mPendingEvent = synthesizeKeyRepeatLocked(currentTime); in dispatchOnceInnerLocked() 359 done = dispatchConfigurationChangedLocked(currentTime, typedEntry); in dispatchOnceInnerLocked() 366 done = dispatchDeviceResetLocked(currentTime, typedEntry); in dispatchOnceInnerLocked() 381 if (dropReason == DROP_REASON_NOT_DROPPED && isStaleEvent(currentTime, typedEntry)) { in dispatchOnceInnerLocked() 387 done = dispatchKeyLocked(currentTime, typedEntry, &dropReason, nextWakeupTime); in dispatchOnceInnerLocked() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | AutoScrollHelper.java | 774 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/libs/hwui/hwui/ |
D | AnimatedImageDrawable.cpp | 67 const nsecs_t currentTime = systemTime(CLOCK_MONOTONIC); in isDirty() local 70 mLastWallTime = currentTime; in isDirty() 76 mCurrentTime += currentTime - lastWallTime; in isDirty() 247 const nsecs_t currentTime = systemTime(CLOCK_MONOTONIC); in drawStaging() local 252 mCurrentTime = currentTime; in drawStaging() 255 mTimeToShowNextSnapshot += currentTime; in drawStaging() 257 mCurrentTime += currentTime - mLastWallTime; in drawStaging() 260 mLastWallTime = currentTime; in drawStaging()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManagerTest.java | 268 long currentTime = 0; in requestANQPElementsWithMaxRetries() local 272 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries() 279 currentTime += (currentHoldOffTime - 1); in requestANQPElementsWithMaxRetries() 282 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries() 287 currentTime += 1; in requestANQPElementsWithMaxRetries() 289 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries() 295 currentTime += (ANQPRequestManager.BASE_HOLDOFF_TIME_MILLISECONDS in requestANQPElementsWithMaxRetries() 298 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries() 302 currentTime += 1; in requestANQPElementsWithMaxRetries() 304 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries()
|
/frameworks/base/services/core/java/com/android/server/wm/animation/ |
D | ClipRectTBAnimation.java | 51 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/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsDispatchersController.java | 247 long currentTime = System.currentTimeMillis(); in reevaluateTimerStatus() local 255 mCurrentWaitElapsedDuration += (currentTime - mLastInServiceTime); in reevaluateTimerStatus() 259 logd("reevaluateTimerStatus: currentTime: " + currentTime in reevaluateTimerStatus() 268 handleInService(currentTime); in reevaluateTimerStatus() 270 handleOutOfService(currentTime); in reevaluateTimerStatus() 275 private void handleInService(long currentTime) { in handleInService() argument 282 if (mCurrentWaitStartTime == INVALID_TIME) mCurrentWaitStartTime = currentTime; in handleInService() 291 mLastInServiceTime = currentTime; in handleInService() 294 private void handleOutOfService(long currentTime) { in handleOutOfService() argument 296 logd("handleOutOfService: currentTime: " + currentTime in handleOutOfService() [all …]
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | MotionEventInjector.java | 201 long currentTime = SystemClock.uptimeMillis(); in injectEventsMainThread() local 203 (mSequencesInProgress.size() == 0) ? currentTime : mLastScheduledEventTime); in injectEventsMainThread() 216 mHandler.sendMessageDelayed(message, Math.max(0, event.getEventTime() - currentTime)); in injectEventsMainThread() 377 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendMoveEventIfNeeded() argument 392 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, MotionEvent.ACTION_MOVE, in appendMoveEventIfNeeded() 398 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendUpEvents() argument 411 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, action, in appendUpEvents() 426 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendDownEvents() argument 436 mDownTime = currentTime; in appendDownEvents() 439 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, action, in appendDownEvents()
|
D | KeyboardInterceptor.java | 118 final long currentTime = SystemClock.uptimeMillis(); in processQueuedEvents() local 119 while ((mEventQueueEnd != null) && (mEventQueueEnd.dispatchTime <= currentTime)) { in processQueuedEvents() 123 mEventQueueEnd.dispatchTime = currentTime + eventDelay; in processQueuedEvents()
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | KeyUtils.java | 93 long currentTime = System.currentTimeMillis(); in generateKeyEvent() local 94 return new KeyEvent(currentTime, currentTime, keyEventAction, keycode, in generateKeyEvent()
|
/frameworks/layoutlib/bridge/src/android/animation/ |
D | AnimationThread.java | 124 long currentTime = System.currentTimeMillis(); in run() local 125 if (currentTime < bundle.mUptimeMillis) { in run() 127 sleep(bundle.mUptimeMillis - currentTime); in run()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsService.java | 596 final long currentTime = mClock.millis(); 599 mDevRecorder.forcePersistLocked(currentTime); 600 mXtRecorder.forcePersistLocked(currentTime); 601 mUidRecorder.forcePersistLocked(currentTime); 602 mUidTagRecorder.forcePersistLocked(currentTime); 1013 final long currentTime = mClock.millis(); 1019 mDevRecorder.maybePersistLocked(currentTime); 1020 mXtRecorder.maybePersistLocked(currentTime); 1021 mUidRecorder.maybePersistLocked(currentTime); 1022 mUidTagRecorder.maybePersistLocked(currentTime); [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateStats.h | 106 nsecs_t currentTime = systemTime(); in flushTime() local 107 nsecs_t timeElapsed = currentTime - mPreviousRecordedTime; in flushTime() 109 mPreviousRecordedTime = currentTime; in flushTime()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManager.java | 161 long currentTime = mClock.getElapsedSinceBootMillis(); in canSendRequestNow() local 163 if (info != null && info.holdOffExpirationTime > currentTime) { in canSendRequestNow() 165 + (info.holdOffExpirationTime - currentTime) / 1000 + " seconds"); in canSendRequestNow()
|
/frameworks/base/core/jni/ |
D | android_hardware_UsbDeviceConnection.cpp | 235 steady_clock::time_point currentTime = steady_clock::now(); in android_hardware_UsbDeviceConnection_request_wait() local 236 steady_clock::time_point endTime = currentTime + std::chrono::milliseconds(timeoutMillis); in android_hardware_UsbDeviceConnection_request_wait() 243 - currentTime).count()); in android_hardware_UsbDeviceConnection_request_wait() 250 currentTime = steady_clock::now(); in android_hardware_UsbDeviceConnection_request_wait() 251 if (currentTime >= endTime) { in android_hardware_UsbDeviceConnection_request_wait()
|
/frameworks/base/services/core/java/com/android/server/display/whitebalance/ |
D | AmbientFilter.java | 235 final float currentTime = (buffer.getTime(i) - startTime) / 1000.0f; in getWeights() local 236 final float weight = calculateIntegral(previousTime, currentTime); in getWeights() 238 previousTime = currentTime; in getWeights()
|
/frameworks/native/services/inputflinger/tests/ |
D | InputDispatcher_test.cpp | 512 nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in injectKeyDown() local 517 AKEYCODE_A, KEY_A, AMETA_NONE, /* repeatCount */ 0, currentTime, currentTime); in injectKeyDown() 540 nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in injectMotionDown() local 546 /* yPrecision */ 0, currentTime, currentTime, /*pointerCount*/ 1, pointerProperties, in injectMotionDown() 557 nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in generateKeyArgs() local 559 NotifyKeyArgs args(/* sequenceNum */ 0, currentTime, DEVICE_ID, AINPUT_SOURCE_KEYBOARD, in generateKeyArgs() 561 AKEYCODE_A, KEY_A, AMETA_NONE, currentTime); in generateKeyArgs() 578 nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in generateMotionArgs() local 580 NotifyMotionArgs args(/* sequenceNum */ 0, currentTime, DEVICE_ID, source, displayId, in generateMotionArgs() 584 pointerCoords, /* xPrecision */ 0, /* yPrecision */ 0, currentTime, in generateMotionArgs()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
D | AlertingNotificationManager.java | 300 long currentTime = mClock.currentTimeMillis(); in updateEntry() local 301 mEarliestRemovaltime = currentTime + mMinimumDisplayTime; in updateEntry() 303 mPostTime = Math.max(mPostTime, currentTime); in updateEntry() 309 long removeDelay = Math.max(finishTime - currentTime, mMinimumDisplayTime); in updateEntry()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServiceLifetimeExtender.java | 58 long currentTime = System.currentTimeMillis(); in shouldExtendLifetime() local 59 return currentTime - entry.notification.getPostTime() < MIN_FGS_TIME_MS; in shouldExtendLifetime()
|
/frameworks/base/core/java/android/view/animation/ |
D | Animation.java | 901 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument 903 mStartTime = currentTime; in getTransformation() 910 normalizedTime = ((float) (currentTime - (mStartTime + startOffset))) / in getTransformation() 914 normalizedTime = currentTime < mStartTime ? 0.0f : 1.0f; in getTransformation() 1027 public boolean getTransformation(long currentTime, Transformation outTransformation, in getTransformation() argument 1030 return getTransformation(currentTime, outTransformation); in getTransformation()
|