Home
last modified time | relevance | path

Searched refs:elapsedTime (Results 1 – 24 of 24) sorted by relevance

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DGestureTrailDrawingPoints.java99 final int elapsedTime = (int)(downTime - mCurrentTimeBase); in addStrokeLocked() local
102 eventTimes[i] -= elapsedTime; in addStrokeLocked()
122 private static int getAlpha(final int elapsedTime, final GestureTrailDrawingParams params) { in getAlpha() argument
123 if (elapsedTime < params.mFadeoutStartDelay) { in getAlpha()
127 * (elapsedTime - params.mFadeoutStartDelay) in getAlpha()
141 private static float getWidth(final int elapsedTime, final GestureTrailDrawingParams params) { in getWidth() argument
143 return params.mTrailStartWidth - (deltaWidth * elapsedTime) / params.mTrailLingerDuration; in getWidth()
180 final int elapsedTime = sinceDown - eventTimes[startIndex]; in drawGestureTrailLocked() local
182 if (elapsedTime < params.mTrailLingerDuration) { in drawGestureTrailLocked()
197 final int elapsedTime = sinceDown - eventTimes[i]; in drawGestureTrailLocked() local
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
Ddbregtest.cpp208 double elapsedTime = (ts2.tv_sec - ts1.tv_sec)*1000.0; // sec to ms in main() local
209 elapsedTime += (ts2.tv_usec - ts1.tv_usec)/1000.0; // us to ms in main()
210 cout <<"\nelapsedTime for Reg<< "<<elapsedTime<<" ms >>>>>>>>>>>>>\n"; in main()
242 elapsedTime = (ts4.tv_sec - ts3.tv_sec)*1000.0; // sec to ms in main()
243 elapsedTime += (ts4.tv_usec - ts3.tv_usec)/1000.0; // us to ms in main()
244 cout <<"\nelapsedTime for Warp <<"<<elapsedTime<<" ms >>>>>>>>>>>>>\n"; in main()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Ddynamic_language_model_probability_utils.h44 const int elapsedTime = TimeKeeper::peekCurrentTime() - historicalInfo.getTimestamp(); in getDecayedProbability() local
45 if (elapsedTime < 0) { in getDecayedProbability()
56 const int elapsedTime = TimeKeeper::peekCurrentTime() - historicalInfo.getTimestamp(); in shouldRemoveEntryDuringGC() local
57 return elapsedTime > DURATION_TO_DISCARD_ENTRY_IN_SECONDS; in shouldRemoveEntryDuringGC()
/packages/apps/Settings/src/com/android/settings/dashboard/
DControllerTask.java74 final int elapsedTime = (int) (SystemClock.elapsedRealtime() - t); in run() local
75 if (elapsedTime > CONTROLLER_UPDATESTATE_TIME_THRESHOLD) { in run()
76 Log.w(TAG, "The updateState took " + elapsedTime + " ms in Controller " in run()
81 mController.getClass().getSimpleName(), elapsedTime); in run()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNsdManagerTest.java195 long elapsedTime = 0; in waitForCallback() local
197 while (elapsedTime < TIMEOUT ) { in waitForCallback()
208 mEventCache.wait(TIMEOUT - elapsedTime); in waitForCallback()
209 elapsedTime = android.os.SystemClock.uptimeMillis() - startTime; in waitForCallback()
224 long elapsedTime = 0; in waitForNewEvents() local
227 while (elapsedTime < TIMEOUT ) { in waitForNewEvents()
235 mEventCache.wait(TIMEOUT - elapsedTime); in waitForNewEvents()
236 elapsedTime = android.os.SystemClock.uptimeMillis() - startTime; in waitForNewEvents()
/packages/services/Car/cpp/powerpolicy/client/src/
DPowerPolicyClientBase.cpp118 int64_t elapsedTime = uptimeMillis() - currentUptime; in connectToDaemon() local
119 if (elapsedTime > kPowerPolicyDaemomFindMarginalTimeMs.count()) { in connectToDaemon()
120 LOG(WARNING) << "Finding power policy daemon took too long(" << elapsedTime << " ms)"; in connectToDaemon()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/
DSuggestionParser.java149 final long elapsedTime = currentTime - setupTime; in isExclusiveCategoryExpired() local
150 Log.d(TAG, "Day " + elapsedTime / DateUtils.DAY_IN_MILLIS + " for " in isExclusiveCategoryExpired()
152 return elapsedTime > category.getExclusiveExpireDaysInMillis(); in isExclusiveCategoryExpired()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWakeupLock.java117 long elapsedTime = timestampMillis - mLockTimestamp; in maybeSetInitializedByTimeout() local
118 boolean shouldBeInitialized = elapsedTime > MAX_LOCK_TIME_MILLIS; in maybeSetInitializedByTimeout()
123 Log.d(TAG, "Lock initialized by timeout. Elapsed time: " + elapsedTime); in maybeSetInitializedByTimeout()
DWifiWakeMetrics.java350 public Event(int numScans, long elapsedTime) { in Event() argument
352 mElapsedTime = elapsedTime; in Event()
DWifiDataStall.java475 long elapsedTime = mClock.getElapsedSinceBootMillis() - mDataStallStartTimeMs; in detectConsecutiveTwoDataStalls() local
476 if (elapsedTime >= mDeviceConfigFacade.getDataStallDurationMs()) { in detectConsecutiveTwoDataStalls()
478 if (elapsedTime <= VALIDITY_PERIOD_OF_DATA_STALL_START_MS) { in detectConsecutiveTwoDataStalls()
DWifiMetrics.java6420 long elapsedTime = mClock.getElapsedSinceBootMillis() - mScoreBreachLowTimeMillis;
6421 if (elapsedTime >= MIN_SCORE_BREACH_TO_GOOD_STATS_WAIT_TIME_MS) {
6423 if (elapsedTime <= VALIDITY_PERIOD_OF_SCORE_BREACH_LOW_MS) {
DClientModeImpl.java5222 long elapsedTime = mClock.getElapsedSinceBootMillis()
5224 if (elapsedTime >= DURATION_TO_WAIT_ADD_STATS_AFTER_DATA_STALL_MS) {
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DOverScroller.java300 final long elapsedTime = time - mScrollerX.mStartTime; in computeScrollOffset() local
303 if (elapsedTime < duration) { in computeScrollOffset()
304 float q = (float) (elapsedTime) / duration; in computeScrollOffset()
711 final int elapsedTime = (int) (time - mStartTime); in extendDuration() local
712 mDuration = elapsedTime + extend; in extendDuration()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/services/
DTestCopyJobProcessTracker.java76 void updateProgressAndRemainingTime(long elapsedTime) { in updateProgressAndRemainingTime() argument
77 mTimeSupplier.mValue = elapsedTime; in updateProgressAndRemainingTime()
/packages/apps/LegacyCamera/src/com/android/camera/ui/
DIndicatorControlWheel.java318 int elapsedTime = (int) (SystemClock.uptimeMillis() - mAnimationStartTime); in rotateWheel() local
319 if (elapsedTime >= ANIMATION_TIME) { in rotateWheel()
320 elapsedTime = ANIMATION_TIME; in rotateWheel()
325 int expectedAngle = startAngle + (totalDegrees * elapsedTime / ANIMATION_TIME); in rotateWheel()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java211 long elapsedTime = SystemClock.elapsedRealtimeNanos(); in testLoadsLocationWithHeadlessSystemUser() local
227 assertTrue(location.getElapsedRealtimeNanos() >= elapsedTime); in testLoadsLocationWithHeadlessSystemUser()
325 long elapsedTime = SystemClock.elapsedRealtimeNanos(); in testStoresLocationUponShutdownPrepare() local
331 timbuktu.setElapsedRealtimeNanos(elapsedTime); in testStoresLocationUponShutdownPrepare()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DImportantNoticeUtils.java129 final long elapsedTime = currentTimeInMillis - firstDisplayTimeInMillis; in hasContactsNoticeTimeoutPassed() local
130 return elapsedTime >= TIMEOUT_OF_IMPORTANT_NOTICE; in hasContactsNoticeTimeoutPassed()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiWakeMetricsTest.java333 private void verifyEventProto(WifiWakeStats.Session.Event event, int scans, int elapsedTime) { in verifyEventProto() argument
336 assertEquals(event.elapsedTimeMillis, elapsedTime); in verifyEventProto()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/model/
DQuickstepModelDelegate.java141 String elapsedTime = formatElapsedTime((now - lastSnapshotTimeMillis) / 1000); in modelLoadComplete() local
144 elapsedTime)); in modelLoadComplete()
/packages/services/Car/service/src/com/android/car/
DCarLocationService.java377 long elapsedTime = SystemClock.elapsedRealtimeNanos(); in loadLocation() local
378 location.setElapsedRealtimeNanos(elapsedTime); in loadLocation()
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DCopyJob.java1016 final long elapsedTime = currentTime - mStartTime; in estimateRemainingTime() local
1017 final long sampleDuration = Math.max(elapsedTime - mSampleTime, 1L); // avoid dividing 0 in estimateRemainingTime()
1030 mSampleTime = elapsedTime; in estimateRemainingTime()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
DTimerCircleView.kt130 mTimer!!.elapsedTime.toFloat() / mTimer!!.totalLength.toFloat()) in onDraw()
/packages/apps/DeskClock/src/com/android/deskclock/data/
DTimer.kt133 val elapsedTime: Long in <lambda>() constant in com.android.deskclock.data.Timer
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/
DAbstractContactAggregator.java491 long elapsedTime = System.currentTimeMillis() - start; in aggregateInTransaction() local
492 EventLog.writeEvent(LOG_SYNC_CONTACTS_AGGREGATION, elapsedTime, actualCount); in aggregateInTransaction()
496 (actualCount == 0 ? "" : ", " + (elapsedTime / actualCount) in aggregateInTransaction()