/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpLeaseRepository.java | 191 final long currentTime = mClock.elapsedRealtime(); in getOffer() local 192 final long expTime = currentTime + mLeaseTimeMs; in getOffer() 194 removeExpiredLeases(currentTime); in getOffer() 281 final long currentTime = mClock.elapsedRealtime(); in requestLease() local 282 removeExpiredLeases(currentTime); in requestLease() 309 checkClientAndMakeLease(clientId, hwAddr, leaseAddr, hostname, currentTime); in requestLease() 327 @NonNull Inet4Address addr, @Nullable String hostname, long currentTime) in checkClientAndMakeLease() argument 329 final long expTime = currentTime + mLeaseTimeMs; in checkClientAndMakeLease() 475 private <T> long removeExpired(long currentTime, @NonNull Map<Inet4Address, T> map, in removeExpired() argument 482 if (expTime <= currentTime) { in removeExpired() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.kt | 86 val currentTime: Calendar in <lambda>() constant 191 private val currentTime: Calendar in <lambda>() constant 195 sCurrentTimeFactory!!.currentTime in <lambda>() 327 var nextRepeatedInstance = alarm.createInstanceAfter(currentTime) in <lambda>() 722 val currentTime = currentTime in <lambda>() constant 737 val hasTimeout = timeoutTime != null && currentTime.after(timeoutTime) in <lambda>() 743 if (currentTime.before(alarmTime)) { in <lambda>() 762 if (currentTime.before(alarmTime)) { in <lambda>() 771 if (currentTime.after(missedTTL)) { in <lambda>() 774 } else if (currentTime.after(alarmTime)) { in <lambda>() [all …]
|
D | AlarmStateManager.java | 658 final Calendar currentTime = getCurrentTime(); in registerInstance() local 673 boolean hasTimeout = timeoutTime != null && currentTime.after(timeoutTime); in registerInstance() 679 if (currentTime.before(alarmTime)) { in registerInstance() 698 if (currentTime.before(alarmTime)) { in registerInstance() 707 if (currentTime.after(missedTTL)) { in registerInstance() 710 } else if (currentTime.after(alarmTime)) { in registerInstance() 717 if (currentTime.before(alarmBuffer)) { in registerInstance() 728 } else if (currentTime.after(highNotificationTime)) { in registerInstance() 730 } else if (currentTime.after(lowNotificationTime)) { in registerInstance() 793 final Calendar currentTime = getCurrentTime(); in fixAlarmInstances() local [all …]
|
/packages/apps/Camera2/src/android/util/ |
D | CameraPerformanceTracker.java | 66 long currentTime = System.currentTimeMillis(); in onEvent() local 69 sInstance.mAppStartTime = currentTime; in onEvent() 75 sInstance.mAppResumeTime = currentTime; in onEvent() 82 currentTime - sInstance.mAppStartTime; in onEvent() 86 currentTime - sInstance.mAppResumeTime; in onEvent() 90 sInstance.mModeSwitchDuration = currentTime - sInstance.mModeSwitchStartTime; in onEvent() 95 sInstance.mModeSwitchStartTime = currentTime; in onEvent()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | Alarm.java | 45 long currentTime = SystemClock.uptimeMillis(); in setAlarm() local 48 mAlarmTriggerTime = currentTime + millisecondsInFuture; in setAlarm() 56 mHandler.postDelayed(this, mAlarmTriggerTime - currentTime); in setAlarm() 69 long currentTime = SystemClock.uptimeMillis(); in run() local 70 if (mAlarmTriggerTime > currentTime) { in run() 73 mHandler.postDelayed(this, Math.max(0, mAlarmTriggerTime - currentTime)); in run()
|
D | FirstFrameAnimatorHelper.java | 81 final long currentTime = System.currentTimeMillis(); in onAnimationUpdate() local 84 mStartTime = currentTime; in onAnimationUpdate() 103 if (frameNum == 0 && currentTime < mStartTime + MAX_DELAY && currentPlayTime > 0) { in onAnimationUpdate() 113 if (frameNum == 1 && currentTime < mStartTime + MAX_DELAY && in onAnimationUpdate() 115 currentTime > mStartTime + singleFrameMS && in onAnimationUpdate()
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | Alarm.kt | 176 fun getPreviousAlarmTime(currentTime: Calendar): Calendar? { in getPreviousAlarmTime() 177 val previousInstanceTime = Calendar.getInstance(currentTime.timeZone) in getPreviousAlarmTime() 178 previousInstanceTime[Calendar.YEAR] = currentTime[Calendar.YEAR] in getPreviousAlarmTime() 179 previousInstanceTime[Calendar.MONTH] = currentTime[Calendar.MONTH] in getPreviousAlarmTime() 180 previousInstanceTime[Calendar.DAY_OF_MONTH] = currentTime[Calendar.DAY_OF_MONTH] in getPreviousAlarmTime() 195 fun getNextAlarmTime(currentTime: Calendar): Calendar { in getNextAlarmTime() 196 val nextInstanceTime = Calendar.getInstance(currentTime.timeZone) in getNextAlarmTime() 197 nextInstanceTime[Calendar.YEAR] = currentTime[Calendar.YEAR] in getNextAlarmTime() 198 nextInstanceTime[Calendar.MONTH] = currentTime[Calendar.MONTH] in getNextAlarmTime() 199 nextInstanceTime[Calendar.DAY_OF_MONTH] = currentTime[Calendar.DAY_OF_MONTH] in getNextAlarmTime() [all …]
|
D | Alarm.java | 394 public Calendar getPreviousAlarmTime(Calendar currentTime) { 395 final Calendar previousInstanceTime = Calendar.getInstance(currentTime.getTimeZone()); 396 previousInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR)); 397 previousInstanceTime.set(Calendar.MONTH, currentTime.get(Calendar.MONTH)); 398 previousInstanceTime.set(Calendar.DAY_OF_MONTH, currentTime.get(Calendar.DAY_OF_MONTH)); 413 public Calendar getNextAlarmTime(Calendar currentTime) { 414 final Calendar nextInstanceTime = Calendar.getInstance(currentTime.getTimeZone()); 415 nextInstanceTime.set(Calendar.YEAR, currentTime.get(Calendar.YEAR)); 416 nextInstanceTime.set(Calendar.MONTH, currentTime.get(Calendar.MONTH)); 417 nextInstanceTime.set(Calendar.DAY_OF_MONTH, currentTime.get(Calendar.DAY_OF_MONTH)); [all …]
|
/packages/modules/NetworkStack/tests/integration/src/android/net/ip/ |
D | IpClientIntegrationTest.java | 805 final long currentTime = System.currentTimeMillis(); 813 assertIpMemoryStoreNetworkAttributes(TEST_LEASE_DURATION_S, currentTime, mtu); 861 final long currentTime = System.currentTimeMillis(); 927 assertIpMemoryStoreNetworkAttributes(TEST_LEASE_DURATION_S, currentTime, TEST_DEFAULT_MTU); 964 final long currentTime = System.currentTimeMillis(); 1002 assertIpMemoryStoreNetworkAttributes(TEST_LEASE_DURATION_S, currentTime, 1036 final long currentTime = System.currentTimeMillis(); 1041 assertIpMemoryStoreNetworkAttributes(TEST_LEASE_DURATION_S, currentTime, TEST_DEFAULT_MTU); 1056 final long currentTime = System.currentTimeMillis(); 1061 assertIpMemoryStoreNetworkAttributes(INFINITE_LEASE, currentTime, TEST_DEFAULT_MTU); [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.java | 199 private static float computeVolume(long currentTime, long stopTime, long duration) { 201 final float elapsedCrescendoTime = stopTime - currentTime; 417 final long currentTime = Utils.now(); 418 if (currentTime > mCrescendoStopTime) { 426 final float volume = computeVolume(currentTime, mCrescendoStopTime, mCrescendoDuration); 624 final long currentTime = Utils.now(); 625 if (currentTime > mCrescendoStopTime) { 632 final float volume = computeVolume(currentTime, mCrescendoStopTime, mCrescendoDuration);
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | VideoUtils.java | 267 double currentTime = 0; in trimUsingMp4Parser() local 277 if (currentTime <= startTime) { in trimUsingMp4Parser() 281 if (currentTime <= endTime) { in trimUsingMp4Parser() 289 currentTime += (double) entry.getDelta() in trimUsingMp4Parser() 304 double currentTime = 0; in correctTimeToSyncSample() local 312 track.getSyncSamples(), currentSample + 1)] = currentTime; in correctTimeToSyncSample() 314 currentTime += (double) entry.getDelta() in correctTimeToSyncSample()
|
/packages/apps/Dialer/java/com/android/dialer/performancereport/ |
D | PerformanceReport.java | 92 long currentTime = SystemClock.elapsedRealtime(); in recordClick() local 93 if (currentTime - lastActionTimeMillis > ACTIVE_DURATION) { in recordClick() 99 lastActionTimeMillis = currentTime; in recordClick() 101 firstClickTimeMillis = currentTime; in recordClick() 104 actionTimestamps.add(currentTime - appLaunchTimeMillis); in recordClick()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SearchSettingsImpl.java | 153 long currentTime = System.currentTimeMillis(); in haveVoiceSearchHintsExpired() local 159 .putLong(FIRST_VOICE_HINT_DISPLAY_TIME, currentTime)); in haveVoiceSearchHintsExpired() 160 firstHintTime = currentTime; in haveVoiceSearchHintsExpired() 162 if (currentTime - firstHintTime > getConfig().getVoiceSearchHintActivePeriod()) { in haveVoiceSearchHintsExpired()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarLocationService.java | 337 long currentTime = location.getTime(); in storeLocation() local 340 currentTime - currentTime % GRANULARITY_ONE_DAY_MS); in storeLocation() 357 long currentTime = System.currentTimeMillis(); in loadLocation() local 358 if (location.getTime() + TTL_THIRTY_DAYS_MS < currentTime) { in loadLocation() 362 location.setTime(currentTime); in loadLocation()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | ContactsManager.java | 84 void computeAffinity(final int maxTimesContacted, final long currentTime) { in computeAffinity() argument 87 Math.max(0, currentTime - mLastContactedTime), in computeAffinity() 181 final long currentTime = System.currentTimeMillis(); in getValidNames() local 183 contact.computeAffinity(maxTimesContacted, currentTime); in getValidNames()
|
/packages/apps/Car/libs/car-media-common/src/com/android/car/media/common/ |
D | MetadataController.java | 92 @Nullable TextView outerSeparator, @Nullable TextView currentTime, in MetadataController() argument 131 ViewUtils.setVisible(currentTime, hasTime); in MetadataController() 135 if (currentTime != null) { in MetadataController() 136 currentTime.setText(playbackProgress.getCurrentTimeText()); in MetadataController()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarLocationServiceTest.java | 212 long currentTime = System.currentTimeMillis(); in testLoadsLocationWithHeadlessSystemUser() local 214 long pastTime = currentTime - 60000; in testLoadsLocationWithHeadlessSystemUser() 228 assertTrue(location.getTime() >= currentTime); in testLoadsLocationWithHeadlessSystemUser() 326 long currentTime = System.currentTimeMillis(); in testStoresLocationUponShutdownPrepare() local 332 timbuktu.setTime(currentTime); in testStoresLocationUponShutdownPrepare() 345 long granularCurrentTime = (currentTime / oneDayMs) * oneDayMs; in testStoresLocationUponShutdownPrepare()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | HighUsageDataParserTest.java | 50 mFirstItem.currentTime = 0; in setUp() 53 mSecondItem.currentTime = PERIOD_ONE_MINUTE_MS; in setUp() 56 mThirdItem.currentTime = END_TIME_MS; in setUp()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 72 jint currentTime) { in latinime_BinaryDictionaryUtils_setCurrentTimeForTest() argument 73 if (currentTime >= 0) { in latinime_BinaryDictionaryUtils_setCurrentTimeForTest() 74 TimeKeeper::startTestModeWithForceCurrentTime(currentTime); in latinime_BinaryDictionaryUtils_setCurrentTimeForTest()
|
/packages/apps/Launcher3/src/com/android/launcher3/util/ |
D | OverScroller.java | 803 final long currentTime = time - mStartTime; in update() local 805 if (currentTime == 0) { in update() 809 if (currentTime > mDuration) { in update() 816 final float t = (float) currentTime / mSplineDuration; in update() 835 final float t = currentTime / 1000.0f; in update() 842 final float t = (float) (currentTime) / mDuration; in update()
|
/packages/apps/TV/tuner/src/com/android/tv/tuner/tvinput/debug/ |
D | TunerDebug.java | 114 long currentTime = SystemClock.elapsedRealtime(); in calculateDiff() local 115 long duration = currentTime - sTunerDebug.mLastCheckTimestampMs; in calculateDiff() 130 sTunerDebug.mLastCheckTimestampMs = currentTime; in calculateDiff()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | BinaryDictionaryUtils.java | 47 private static native int setCurrentTimeForTestNative(int currentTime); in setCurrentTimeForTestNative() argument 125 public static int setCurrentTimeForTest(final int currentTime) { in setCurrentTimeForTest() argument 126 return setCurrentTimeForTestNative(currentTime); in setCurrentTimeForTest()
|
/packages/apps/DeskClock/src/com/android/deskclock/timer/ |
D | TimerItemFragment.kt | 88 val currentTime: Long = this@TimerItemFragment.timer!!.remainingTime in onClick() constant 89 if (currentTime > 0) { in onClick() 91 context, R.string.timer_accessibility_one_minute_added, currentTime, in onClick()
|
D | TimerItemFragment.java | 107 final long currentTime = getTimer().getRemainingTime(); in onClick() local 108 if (currentTime > 0) { in onClick() 110 context, R.string.timer_accessibility_one_minute_added, currentTime, in onClick()
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/suggestions/ |
D | SuggestionParser.java | 138 final long currentTime = System.currentTimeMillis(); in isExclusiveCategoryExpired() local 141 .putLong(keySetupTime, currentTime) in isExclusiveCategoryExpired() 149 final long elapsedTime = currentTime - setupTime; in isExclusiveCategoryExpired()
|