/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | FileRotatorTest.java | 77 long currentTime = TEST_TIME; in testEmpty() local 80 rotate1.combineActive(reader, writer("foo"), currentTime); in testEmpty() 93 long currentTime = TEST_TIME; in testCombine() local 96 rotate.combineActive(reader, writer("foo"), currentTime); in testCombine() 102 currentTime += SECOND_IN_MILLIS; in testCombine() 104 rotate.combineActive(reader, writer("bar"), currentTime); in testCombine() 114 long currentTime = TEST_TIME; in testRotate() local 117 rotate.combineActive(reader, writer("foo"), currentTime); in testRotate() 123 currentTime += MINUTE_IN_MILLIS; in testRotate() 124 rotate.combineActive(reader, writer("bar"), currentTime); in testRotate() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
D | PipTouchStateTest.java | 67 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() local 69 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 71 currentTime + PipTouchState.DOUBLE_TAP_TIMEOUT + 10, 0, 0)); in testDoubleTapLongSingleTap_notDoubleTapAndNotWaiting() 79 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapTimeout_timeoutCallbackCalled() local 81 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() 83 currentTime + PipTouchState.DOUBLE_TAP_TIMEOUT - 10, 0, 0)); in testDoubleTapTimeout_timeoutCallbackCalled() 96 final long currentTime = SystemClock.uptimeMillis(); in testDoubleTapDrag_doubleTapCanceled() local 98 mTouchState.onTouchEvent(createMotionEvent(ACTION_DOWN, currentTime, 0, 0)); in testDoubleTapDrag_doubleTapCanceled() 99 mTouchState.onTouchEvent(createMotionEvent(ACTION_MOVE, currentTime + 10, 500, 500)); in testDoubleTapDrag_doubleTapCanceled() 100 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()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | AirplaneModeStats.java | 77 long currentTime = SystemClock.elapsedRealtime(); in onAirplaneModeChanged() local 78 if (currentTime < GRACE_PERIOD_MILLIS) { in onAirplaneModeChanged() 82 boolean isShortToggle = calculateShortToggle(currentTime, isAirplaneModeOn); in onAirplaneModeChanged() 92 private boolean calculateShortToggle(long currentTime, boolean isAirplaneModeOn) { in calculateShortToggle() argument 97 mLastActivationTime = currentTime; in calculateShortToggle() 102 long duration = currentTime - mLastActivationTime; in calculateShortToggle()
|
D | PersistAtomsStorage.java | 784 long currentTime = getWallTimeMillis(); in makeNewPersistAtoms() local 786 atoms.voiceCallRatUsagePullTimestampMillis = currentTime; in makeNewPersistAtoms() 787 atoms.voiceCallSessionPullTimestampMillis = currentTime; in makeNewPersistAtoms() 788 atoms.incomingSmsPullTimestampMillis = currentTime; in makeNewPersistAtoms() 789 atoms.outgoingSmsPullTimestampMillis = currentTime; in makeNewPersistAtoms() 791 atoms.dataCallSessionPullTimestampMillis = currentTime; in makeNewPersistAtoms() 792 atoms.cellularServiceStatePullTimestampMillis = currentTime; in makeNewPersistAtoms() 793 atoms.cellularDataServiceSwitchPullTimestampMillis = currentTime; in makeNewPersistAtoms() 794 atoms.imsRegistrationStatsPullTimestampMillis = currentTime; in makeNewPersistAtoms() 795 atoms.imsRegistrationTerminationPullTimestampMillis = currentTime; in makeNewPersistAtoms() [all …]
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | HighBrightnessModeController.java | 197 final long currentTime = mClock.uptimeMillis(); in onBrightnessChanged() local 199 mRunningStartTimeMillis = currentTime; in onBrightnessChanged() 201 mEvents.addFirst(new HbmEvent(mRunningStartTimeMillis, currentTime)); in onBrightnessChanged() 277 final long currentTime = mClock.uptimeMillis(); in dumpLocal() local 278 long lastStartTime = currentTime; in dumpLocal() 280 lastStartTime = dumpHbmEvent(pw, new HbmEvent(mRunningStartTimeMillis, currentTime)); in dumpLocal() 319 private long calculateRemainingTime(long currentTime) { in calculateRemainingTime() argument 329 if (mRunningStartTimeMillis > currentTime) { in calculateRemainingTime() 330 Slog.e(TAG, "Start time set to the future. curr: " + currentTime in calculateRemainingTime() 332 mRunningStartTimeMillis = currentTime; in calculateRemainingTime() [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/core/java/com/android/internal/policy/ |
D | ClipRectTBAnimation.java | 50 public boolean getTransformation(long currentTime, Transformation outTransformation) { in getTransformation() argument 59 normalizedTime = ((float) (currentTime - (getStartTime() + startOffset))) / in getTransformation() 63 normalizedTime = currentTime < getStartTime() ? 0.0f : 1.0f; in getTransformation() 66 return super.getTransformation(currentTime, outTransformation); in getTransformation()
|
/frameworks/base/libs/hwui/hwui/ |
D | AnimatedImageDrawable.cpp | 71 const nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in isDirty() local 74 mLastWallTime = currentTime; in isDirty() 80 mCurrentTime += currentTime - lastWallTime; in isDirty() 290 const nsecs_t currentTime = systemTime(SYSTEM_TIME_MONOTONIC); in drawStaging() local 295 mCurrentTime = currentTime; in drawStaging() 298 mTimeToShowNextSnapshot += currentTime; in drawStaging() 300 mCurrentTime += currentTime - mLastWallTime; in drawStaging() 303 mLastWallTime = currentTime; in drawStaging()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | LockSettingsStrongAuthTest.java | 167 final long currentTime = 1000; in testReportSuccessfulStrongAuthUnlock_schedulePrimaryAuthTimeout() local 169 final long nextAlarmTime = currentTime + timeout; in testReportSuccessfulStrongAuthUnlock_schedulePrimaryAuthTimeout() 170 when(mInjector.getElapsedRealtimeMs()).thenReturn(currentTime); in testReportSuccessfulStrongAuthUnlock_schedulePrimaryAuthTimeout() 185 final long currentTime = 1000; in testReportSuccessfulStrongAuthUnlock_testRefreshStrongAuthTimeout() local 187 final long nextAlarmTime = currentTime + oldTimeout; in testReportSuccessfulStrongAuthUnlock_testRefreshStrongAuthTimeout() 188 when(mInjector.getElapsedRealtimeMs()).thenReturn(currentTime); in testReportSuccessfulStrongAuthUnlock_testRefreshStrongAuthTimeout() 195 assertEquals(currentTime, alarm.getLatestStrongAuthTime()); in testReportSuccessfulStrongAuthUnlock_testRefreshStrongAuthTimeout() 203 verifyAlarm(currentTime + newTimeout, STRONG_AUTH_TIMEOUT_ALARM_TAG, alarm); in testReportSuccessfulStrongAuthUnlock_testRefreshStrongAuthTimeout()
|
/frameworks/native/services/inputflinger/dispatcher/ |
D | InputDispatcher.h | 271 std::shared_ptr<KeyEntry> synthesizeKeyRepeatLocked(nsecs_t currentTime) REQUIRES(mLock); 385 bool dispatchConfigurationChangedLocked(nsecs_t currentTime, 387 bool dispatchDeviceResetLocked(nsecs_t currentTime, const DeviceResetEntry& entry) 389 bool dispatchKeyLocked(nsecs_t currentTime, std::shared_ptr<KeyEntry> entry, 391 bool dispatchMotionLocked(nsecs_t currentTime, std::shared_ptr<MotionEntry> entry, 393 void dispatchFocusLocked(nsecs_t currentTime, std::shared_ptr<FocusEntry> entry) 396 nsecs_t currentTime, const std::shared_ptr<PointerCaptureChangedEntry>& entry, 398 void dispatchEventLocked(nsecs_t currentTime, std::shared_ptr<EventEntry> entry, 400 void dispatchSensorLocked(nsecs_t currentTime, std::shared_ptr<SensorEntry> entry, 402 void dispatchDragLocked(nsecs_t currentTime, std::shared_ptr<DragEntry> entry) REQUIRES(mLock); [all …]
|
D | InputDispatcher.cpp | 249 static std::string dumpQueue(const std::deque<DispatchEntry*>& queue, nsecs_t currentTime) { in dumpQueue() argument 269 ns2ms(currentTime - entry.eventEntry->eventTime)); in dumpQueue() 272 dump += StringPrintf(", wait=%" PRId64 "ms", ns2ms(currentTime - entry.deliveryTime)); in dumpQueue() 313 static bool isStaleEvent(nsecs_t currentTime, const EventEntry& entry) { in isStaleEvent() argument 314 return currentTime - entry.eventTime >= STALE_EVENT_TIMEOUT; in isStaleEvent() 603 nsecs_t currentTime = now(); in dispatchOnce() local 604 int timeoutMillis = toMillisecondTimeoutDelay(currentTime, nextWakeupTime); in dispatchOnce() 641 const nsecs_t currentTime = now(); in processAnrsLocked() local 645 if (currentTime >= *mNoFocusedWindowTimeoutTime) { in processAnrsLocked() 658 if (currentTime < nextAnrCheck) { // most likely scenario in processAnrsLocked() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryUsageStatsStoreTest.java | 58 mMockClocks.currentTime = 123; in setup() 78 mMockClocks.currentTime = 1_600_000; in testStoreSnapshot() 104 mMockClocks.currentTime = 10_000_000; in testGarbageCollectOldSnapshots() 114 mMockClocks.currentTime += 10_000_000; in testGarbageCollectOldSnapshots() 140 mMockClocks.realtime, mMockClocks.uptime, mMockClocks.currentTime); in prepareBatteryStats() 144 mMockClocks.currentTime + 500_000); in prepareBatteryStats()
|
D | MockClocks.java | 25 public long currentTime; field in MockClocks 39 return currentTime; in currentTimeMillis()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | SmsDispatchersController.java | 246 long currentTime = System.currentTimeMillis(); in reevaluateTimerStatus() local 254 mCurrentWaitElapsedDuration += (currentTime - mLastInServiceTime); in reevaluateTimerStatus() 258 logd("reevaluateTimerStatus: currentTime: " + currentTime in reevaluateTimerStatus() 267 handleInService(currentTime); in reevaluateTimerStatus() 269 handleOutOfService(currentTime); in reevaluateTimerStatus() 274 private void handleInService(long currentTime) { in handleInService() argument 281 if (mCurrentWaitStartTime == INVALID_TIME) mCurrentWaitStartTime = currentTime; in handleInService() 290 mLastInServiceTime = currentTime; in handleInService() 293 private void handleOutOfService(long currentTime) { in handleOutOfService() argument 295 logd("handleOutOfService: currentTime: " + currentTime in handleOutOfService() [all …]
|
/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/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/ |
D | BluetoothMidiDecoderTest.java | 68 long currentTime = actualTimestamps[i]; in compareWithExpected() local 69 Log.d(TAG, "previousTime = " + previousTime + ", currentTime = " + currentTime); in compareWithExpected() 70 assertTrue(currentTime >= previousTime); in compareWithExpected() 71 previousTime = currentTime; in compareWithExpected()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | MotionEventInjector.java | 207 long currentTime = SystemClock.uptimeMillis(); in injectEventsMainThread() local 209 (mSequencesInProgress.size() == 0) ? currentTime : mLastScheduledEventTime); in injectEventsMainThread() 223 mHandler.sendMessageDelayed(message, Math.max(0, event.getEventTime() - currentTime)); in injectEventsMainThread() 385 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendMoveEventIfNeeded() argument 400 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, MotionEvent.ACTION_MOVE, in appendMoveEventIfNeeded() 406 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendUpEvents() argument 419 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, action, in appendUpEvents() 434 TouchPoint[] currentTouchPoints, int currentTouchPointsSize, long currentTime) { in appendDownEvents() argument 444 mDownTime = currentTime; in appendDownEvents() 447 motionEvents.add(obtainMotionEvent(mDownTime, currentTime, action, in appendDownEvents()
|
/frameworks/native/services/inputflinger/benchmarks/ |
D | InputDispatcher_benchmarks.cpp | 227 const nsecs_t currentTime = now(); in generateMotionEvent() local 238 AMOTION_EVENT_INVALID_DISPLAY_SIZE, currentTime, currentTime, in generateMotionEvent() 255 const nsecs_t currentTime = now(); in generateMotionArgs() local 257 NotifyMotionArgs args(IInputConstants::INVALID_INPUT_EVENT_ID, currentTime, currentTime, in generateMotionArgs() 265 AMOTION_EVENT_INVALID_CURSOR_POSITION, currentTime, /* videoFrames */ {}); in generateMotionArgs()
|
/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 | 600 final long currentTime = mClock.millis(); 603 mDevRecorder.forcePersistLocked(currentTime); 604 mXtRecorder.forcePersistLocked(currentTime); 605 mUidRecorder.forcePersistLocked(currentTime); 606 mUidTagRecorder.forcePersistLocked(currentTime); 1025 final long currentTime = mClock.millis(); 1031 mDevRecorder.maybePersistLocked(currentTime); 1032 mXtRecorder.maybePersistLocked(currentTime); 1033 mUidRecorder.maybePersistLocked(currentTime); 1034 mUidTagRecorder.maybePersistLocked(currentTime); [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateStats.h | 105 nsecs_t currentTime = systemTime(); in flushTime() local 106 nsecs_t timeElapsed = currentTime - mPreviousRecordedTime; in flushTime() 108 mPreviousRecordedTime = currentTime; in flushTime()
|
/frameworks/base/services/core/java/com/android/server/display/utils/ |
D | AmbientFilter.java | 232 final float currentTime = (buffer.getTime(i) - startTime) / 1000.0f; in getWeights() local 233 final float weight = calculateIntegral(previousTime, currentTime); in getWeights() 235 previousTime = currentTime; in getWeights()
|
/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()
|