/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 170 final long now = System.currentTimeMillis(); in testSummaryUpdate_onePlan_basic() local 171 final DataUsageController.DataUsageInfo info = createTestDataUsageInfo(now); in testSummaryUpdate_onePlan_basic() 176 setupTestDataUsage(LIMIT1, USAGE1, now - UPDATE_BACKOFF_MS); in testSummaryUpdate_onePlan_basic() 189 now - UPDATE_BACKOFF_MS, in testSummaryUpdate_onePlan_basic() 198 final long now = System.currentTimeMillis(); in testSummaryUpdate_noPlan_basic() local 199 final DataUsageController.DataUsageInfo info = createTestDataUsageInfo(now); in testSummaryUpdate_noPlan_basic() 204 setupTestDataUsage(LIMIT1, USAGE1, now - UPDATE_BACKOFF_MS); in testSummaryUpdate_noPlan_basic() 226 final long now = System.currentTimeMillis(); in testSummaryUpdate_noCarrier_basic() local 227 final DataUsageController.DataUsageInfo info = createTestDataUsageInfo(now); in testSummaryUpdate_noCarrier_basic() 253 final long now = System.currentTimeMillis(); in testSummaryUpdate_noPlanData_basic() local [all …]
|
/packages/apps/Calendar/tests/src/com/android/calendar/widget/ |
D | CalendarAppWidgetServiceTest.java | 44 long now; field in CalendarAppWidgetServiceTest 88 now = time.normalize(false); in setUp() 107 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title, location, 0)); in testGetAppWidgetModel_1Event() 114 eventInfo.when = Utils.formatDateRange(getContext(), now + ONE_HOUR, now + TWO_HOURS, in testGetAppWidgetModel_1Event() 141 eventInfo.when = Utils.formatDateRange(context, now + ONE_HOUR, now + TWO_HOURS, in testGetAppWidgetModel_AllDayEventLater() 146 cursor.addRow(getRow(0, now + ONE_HOUR, now + TWO_HOURS, title + i, location + i, 0)); in testGetAppWidgetModel_AllDayEventLater() 151 time.set(now); in testGetAppWidgetModel_AllDayEventLater()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/ |
D | DotsPageIndicator.java | 557 private void setSelectedPage(int now) { in setSelectedPage() argument 558 if (now == currentPage || pageCount == 0) { in setSelectedPage() 563 currentPage = now; in setSelectedPage() 573 final int steps = Math.abs(now - was); in setSelectedPage() 574 moveAnimation = createMoveSelectedAnimator(dotCenterX[now], was, now, steps); in setSelectedPage() 581 joiningAnimations[i] = createJoiningAnimator(now > was ? was + i : was - 1 - i, in setSelectedPage() 592 private ValueAnimator createMoveSelectedAnimator(final float moveTo, int was, int now, in createMoveSelectedAnimator() argument 598 retreatAnimation = new PendingRetreatAnimator(was, now, steps, in createMoveSelectedAnimator() 599 now > was in createMoveSelectedAnimator() 759 public PendingRetreatAnimator(int was, int now, int steps, StartPredicate predicate) { in PendingRetreatAnimator() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/widget/ |
D | DotsPageIndicator.java | 557 private void setSelectedPage(int now) { in setSelectedPage() argument 558 if (now == currentPage || pageCount == 0) { in setSelectedPage() 563 currentPage = now; in setSelectedPage() 573 final int steps = Math.abs(now - was); in setSelectedPage() 574 moveAnimation = createMoveSelectedAnimator(dotCenterX[now], was, now, steps); in setSelectedPage() 581 joiningAnimations[i] = createJoiningAnimator(now > was ? was + i : was - 1 - i, in setSelectedPage() 592 private ValueAnimator createMoveSelectedAnimator(final float moveTo, int was, int now, in createMoveSelectedAnimator() argument 598 retreatAnimation = new PendingRetreatAnimator(was, now, steps, in createMoveSelectedAnimator() 599 now > was in createMoveSelectedAnimator() 759 public PendingRetreatAnimator(int was, int now, int steps, StartPredicate predicate) { in PendingRetreatAnimator() argument [all …]
|
/packages/apps/Calendar/src/com/android/calendar/widget/ |
D | CalendarAppWidgetService.java | 250 final long now = System.currentTimeMillis(); 251 if (!eventInfo.allDay && eventInfo.start <= now && now <= eventInfo.end) { 401 long now = System.currentTimeMillis(); 403 long begin = now - DateUtils.DAY_IN_MILLIS; 404 long end = now + SEARCH_DURATION + DateUtils.DAY_IN_MILLIS; 421 private long calculateUpdateTime(CalendarAppWidgetModel model, long now, String timeZone) { 431 if (now < start) { 433 } else if (now < end) { 490 final long now = System.currentTimeMillis(); 511 long triggerTime = calculateUpdateTime(mModel, now, tz); [all …]
|
/packages/modules/NetworkStack/src/android/net/ip/ |
D | IpClientLinkObserver.java | 365 private synchronized void updatePref64(IpPrefix prefix, final long now, in updatePref64() argument 372 if (expiry > now) { in updatePref64() 384 if (mNat64PrefixExpiry > now) return; in updatePref64() 387 if (expiry > now) { in updatePref64() 400 private void processPref64Option(StructNdOptPref64 opt, final long now) { in processPref64Option() argument 401 final long expiry = now + TimeUnit.SECONDS.toMillis(opt.lifetime); in processPref64Option() 402 updatePref64(opt.prefix, now, expiry); in processPref64Option() 514 long now = System.currentTimeMillis(); in addServers() local 515 long expiry = now + 1000 * lifetime; in addServers() 530 if (expiry > now) { in addServers() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/util/ |
D | Dates.java | 66 final long now = System.currentTimeMillis(); in getRelativeTimeSpanString() local 67 if (now - time < DateUtils.MINUTE_IN_MILLIS) { in getRelativeTimeSpanString() 77 return DateUtils.getRelativeTimeSpanString(time, now, DateUtils.MINUTE_IN_MILLIS, in getRelativeTimeSpanString() 127 public static CharSequence getTimestamp(final long time, final long now, in getTimestamp() argument 130 final long timeDiff = now - time; in getTimestamp() 136 } else if (getNumberOfDaysPassed(time, now) == 0) { in getTimestamp() 239 final long now = System.currentTimeMillis(); in getShortRelativeTimeSpanString() local 240 final long duration = Math.abs(now - time); in getShortRelativeTimeSpanString() 254 count = getNumberOfDaysPassed(time, now); in getShortRelativeTimeSpanString()
|
/packages/modules/DnsResolver/ |
D | DnsTlsDispatcher.cpp | 191 auto now = std::chrono::steady_clock::now(); in query() local 195 xport->lastUsed = now; in query() 196 cleanup(now); in query() 203 void DnsTlsDispatcher::cleanup(std::chrono::time_point<std::chrono::steady_clock> now) { in cleanup() argument 206 if (now - mLastCleanup < IDLE_TIMEOUT) { in cleanup() 211 if (s->useCount == 0 && now - s->lastUsed > IDLE_TIMEOUT) { in cleanup() 217 mLastCleanup = now; in cleanup()
|
/packages/services/BuiltInPrintService/jni/plugins/ |
D | wprint_mupdf.c | 36 struct timespec now; in get_millis() local 37 clock_gettime(CLOCK_MONOTONIC, &now); in get_millis() 38 return (long) (((int64_t) now.tv_sec * 1000000000LL + now.tv_nsec) / 1000000); in get_millis() 75 long now = get_millis(); in _mupdf_get_hdr() local 84 LOGI("Render complete in %ld ms", get_millis() - now); in _mupdf_get_hdr()
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
D | GLRootView.java | 161 long now = SystemClock.uptimeMillis(); in setContentPane() local 163 now, now, MotionEvent.ACTION_CANCEL, 0, 0, 0); in setContentPane() 328 long now = System.nanoTime(); in outputFps() local 330 mFrameCountingStart = now; in outputFps() 331 } else if ((now - mFrameCountingStart) > 1000000000) { in outputFps() 333 * 1000000000 / (now - mFrameCountingStart)); in outputFps() 334 mFrameCountingStart = now; in outputFps() 419 long now = AnimationTime.get(); in onDrawFrameLocked() local 421 mAnimations.get(i).setStartTime(now); in onDrawFrameLocked()
|
D | ProgressSpinner.java | 60 long now = AnimationTime.get(); in draw() local 61 if (mAnimationTimestamp == -1) mAnimationTimestamp = now; in draw() 62 mOuterDegree += (now - mAnimationTimestamp) * ROTATE_SPEED_OUTER; in draw() 63 mInnerDegree += (now - mAnimationTimestamp) * ROTATE_SPEED_INNER; in draw() 65 mAnimationTimestamp = now; in draw()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | Timer.java | 28 import static com.android.deskclock.Utils.now; 152 final long timeSinceStart = now() - mLastStartTime; in getRemainingTime() 198 return new Timer(mId, RUNNING, mLength, mTotalLength, now(), wallClock(), mRemainingTime, in start() 226 return new Timer(mId, EXPIRED, mLength, 0L, now(), wallClock(), remainingTime, mLabel, in expire() 239 return new Timer(mId, MISSED, mLength, 0L, now(), wallClock(), remainingTime, mLabel, in miss() 263 final long timeSinceBoot = now(); in updateAfterReboot() 281 final long timeSinceBoot = now(); in updateAfterTimeSet() 348 lastStartTime = now(); in setRemainingTime()
|
D | Stopwatch.java | 19 import static com.android.deskclock.Utils.now; 74 final long timeSinceStart = now() - mLastStartTime; in getTotalTime() 93 return new Stopwatch(RUNNING, now(), wallClock(), getTotalTime()); in start() 123 final long timeSinceBoot = now(); in updateAfterReboot() 140 final long timeSinceBoot = now(); in updateAfterTimeSet()
|
/packages/apps/Car/Calendar/src/com/android/car/calendar/common/ |
D | EventsLiveData.java | 106 ZonedDateTime now = ZonedDateTime.now(mClock); in getEventsUntilTomorrow() local 109 ZonedDateTime startDateTime = now.truncatedTo(DAYS); in getEventsUntilTomorrow() 125 if (event.getDayEndInstant().isBefore(now.toInstant()) in getEventsUntilTomorrow() 272 ZonedDateTime now = ZonedDateTime.now(mClock); in updateAndScheduleNext() local 273 ZonedDateTime truncatedNowTime = now.truncatedTo(MINUTES); in updateAndScheduleNext() 275 long delayMs = updateTime.toInstant().toEpochMilli() - now.toInstant().toEpochMilli(); in updateAndScheduleNext()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/ |
D | DateTimeFragment.java | 147 final Calendar now = Calendar.getInstance(); in updateTimeAndDateDisplay() local 148 mDummyDate.setTimeZone(now.getTimeZone()); in updateTimeAndDateDisplay() 151 mDummyDate.set(now.get(Calendar.YEAR), 11, 31, 13, 0, 0); in updateTimeAndDateDisplay() 153 mDatePref.setSummary(DateFormat.getLongDateFormat(context).format(now.getTime())); in updateTimeAndDateDisplay() 154 mTimePref.setSummary(DateFormat.getTimeFormat(getActivity()).format(now.getTime())); in updateTimeAndDateDisplay() 156 now.getTimeZone(), now.getTime())); in updateTimeAndDateDisplay()
|
/packages/apps/DeskClock/src/com/android/deskclock/uidata/ |
D | PeriodicCallbackModel.java | 138 static long getDelay(long now, Period period, long offset) { in getDelay() argument 139 final long periodStart = now - offset; in getDelay() 145 return nextMinute - now + offset; in getDelay() 150 return nextQuarterHour - now + offset; in getDelay() 155 return nextHour - now + offset; in getDelay() 165 return nextMidnight.getTimeInMillis() - now + offset; in getDelay()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | ContactsManagerTest.java | 97 final long now = System.currentTimeMillis(); in testGetValidNamesAffinity() local 98 final long month_ago = now - TimeUnit.MILLISECONDS.convert(31, TimeUnit.DAYS); in testGetValidNamesAffinity() 100 mMatrixCursor.addRow(new Object[] { i, "name" + i, i, now, 1 }); in testGetValidNamesAffinity() 116 final long now = System.currentTimeMillis(); in testComputeAffinity() local 117 final long month_ago = now - TimeUnit.MILLISECONDS.convert(31, TimeUnit.DAYS); in testComputeAffinity() 127 contact.computeAffinity(2, now); in testComputeAffinity()
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
D | ProcessPendingMessagesAction.java | 222 final long now = System.currentTimeMillis(); in getHavePendingMessages() local 225 final String toSendMessageId = findNextMessageToSend(db, now, subId); in getHavePendingMessages() 229 final String toDownloadMessageId = findNextMessageToDownload(db, now, subId); in getHavePendingMessages() 262 final long now = System.currentTimeMillis(); in queueActions() local 269 final String toSendMessageId = findNextMessageToSend(db, now, subId); in queueActions() 270 final String toDownloadMessageId = findNextMessageToDownload(db, now, subId); in queueActions() 336 private static String findNextMessageToSend(final DatabaseWrapper db, final long now, in findNextMessageToSend() argument 390 if (message.getInResendWindow(now)) { in findNextMessageToSend() 447 private static String findNextMessageToDownload(final DatabaseWrapper db, final long now, in findNextMessageToDownload() argument
|
D | SyncMessagesAction.java | 81 final long now = System.currentTimeMillis(); in fullSync() local 83 final long startTimestamp = now - smsSyncBackoffTimeMillis; in fullSync() 99 final long now = System.currentTimeMillis(); in sync() local 101 final long startTimestamp = now - smsSyncBackoffTimeMillis; in sync() 111 final long now = System.currentTimeMillis(); in immediateSync() local 113 final long startTimestamp = now; in immediateSync() 464 final long now = System.currentTimeMillis(); in processBackgroundResponse() local 467 final SyncCursorPair recents = new SyncCursorPair(startTimestamp, now); in processBackgroundResponse() 476 new SyncMessagesAction(startTimestamp, now, 0, startTimestamp); in processBackgroundResponse() 477 syncManager.startSyncBatch(now); in processBackgroundResponse()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | FadeTexture.java | 40 mStartTime = now(); in FadeTexture() 66 if (now() - mStartTime >= DURATION) { in isAnimating() 74 float r = (float)(now() - mStartTime) / DURATION; in getRatio() 78 private long now() { in now() method in FadeTexture
|
/packages/services/Car/computepipe/runner/graph/ |
D | GrpcGraph.cpp | 95 context.set_deadline(std::chrono::system_clock::now() + in initialize() 141 context.set_deadline(std::chrono::system_clock::now() + in handleConfigPhase() 196 context.set_deadline(std::chrono::system_clock::now() + in handleExecutionPhase() 235 context.set_deadline(std::chrono::system_clock::now() + in handleStopWithFlushPhase() 278 context.set_deadline(std::chrono::system_clock::now() + in handleStopImmediatePhase() 319 context.set_deadline(std::chrono::system_clock::now() + in handleResetPhase() 360 context.set_deadline(std::chrono::system_clock::now() + in StartGraphProfiling() 384 context.set_deadline(std::chrono::system_clock::now() + in StopGraphProfiling() 407 context.set_deadline(std::chrono::system_clock::now() + in GetDebugInfo()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmTimeClickHandler.java | 106 final Calendar now = Calendar.getInstance(); in setAlarmRepeatEnabled() local 107 final Calendar oldNextAlarmTime = alarm.getNextAlarmTime(now); in setAlarmRepeatEnabled() 128 final Calendar newNextAlarmTime = alarm.getNextAlarmTime(now); in setAlarmRepeatEnabled() 136 final Calendar now = Calendar.getInstance(); in setDayOfWeekEnabled() local 137 final Calendar oldNextAlarmTime = alarm.getNextAlarmTime(now); in setDayOfWeekEnabled() 143 final Calendar newNextAlarmTime = alarm.getNextAlarmTime(now); in setDayOfWeekEnabled()
|
/packages/services/Car/evs/manager/1.1/stats/ |
D | CameraUsageStats.cpp | 43 const auto now = android::uptimeMillis(); in updateFrameStatsOnArrival() local 47 mBufferHistory.emplace(b.bufferId, now); in updateFrameStatsOnArrival() 49 it->second.timestamp = now; in updateFrameStatsOnArrival() 57 const auto now = android::uptimeMillis(); in updateFrameStatsOnReturn() local 64 const auto roundtrip = now - it->second.timestamp; in updateFrameStatsOnReturn()
|
/packages/apps/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | OpUsageLiveData.kt | 45 val now = System.currentTimeMillis() in loadDataAndPostValue() constant 67 lastAccessTime + lastAccessDuration > (now - usageDurationMs)) { in loadDataAndPostValue() 78 "${opEntry.isRunning} current time $now, duration $lastAccessDuration") in loadDataAndPostValue() 83 "${opEntry.isRunning} current time $now, duration $lastAccessDuration") in loadDataAndPostValue()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | BinaryDictDecoderEncoderTests.java | 163 long now = -1, diff = -1; in timeWritingDictToFile() local 168 now = System.currentTimeMillis(); in timeWritingDictToFile() 173 diff = System.currentTimeMillis() - now; in timeWritingDictToFile() 215 long now, diff = -1; in timeReadingAndCheckDict() local 221 now = System.currentTimeMillis(); in timeReadingAndCheckDict() 223 diff = System.currentTimeMillis() - now; in timeReadingAndCheckDict() 413 long now = -1, diff = -1; 417 now = System.currentTimeMillis(); 419 diff = System.currentTimeMillis() - now; 512 final long now = System.nanoTime(); [all …]
|