/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/ |
D | AdFiltererImpl.java | 73 Instant currentTime = mClock.instant(); in filterCustomAudiences() local 74 sLogger.v("Applying filters to %d CAs with current time %s.", cas.size(), currentTime); in filterCustomAudiences() 82 ad, ca.getBuyer(), ca.getOwner(), ca.getName(), currentTime)) { in filterCustomAudiences() 108 Instant currentTime = mClock.instant(); in filterContextualAds() local 111 contextualAds.getAdsWithBid().size(), currentTime); in filterContextualAds() 119 if (doesAdPassFilters(dbAdData, contextualAds.getBuyer(), null, null, currentTime)) { in filterContextualAds() 138 Instant currentTime) { in doesAdPassFilters() argument 144 ad, buyer, customAudienceOwner, customAudienceName, currentTime); in doesAdPassFilters() 168 Instant currentTime) { in doesAdPassFrequencyCapFilters() argument 188 currentTime)) { in doesAdPassFrequencyCapFilters() [all …]
|
/packages/services/Car/cpp/watchdog/server/tests/ |
D | IoOveruseMonitorTest.cpp | 367 time_t currentTime = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); in TEST_F() local 368 const auto [startTime, durationInSeconds] = calculateStartAndDuration(currentTime); in TEST_F() 370 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F() 417 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F() 471 currentTime += (24 * 60 * 60); // Change collection time to next day. in TEST_F() 472 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::NORMAL_MODE, in TEST_F() 476 const auto [nextDayStartTime, nextDayDuration] = calculateStartAndDuration(currentTime); in TEST_F() 531 time_t currentTime = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now()); in TEST_F() local 532 const auto [startTime, durationInSeconds] = calculateStartAndDuration(currentTime); in TEST_F() 534 ASSERT_RESULT_OK(mIoOveruseMonitor->onPeriodicCollection(currentTime, SystemState::GARAGE_MODE, in TEST_F() [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 | 46 long currentTime = SystemClock.uptimeMillis(); in setAlarm() local 49 mAlarmTriggerTime = currentTime + millisecondsInFuture; in setAlarm() 58 mHandler.postDelayed(this, mAlarmTriggerTime - currentTime); in setAlarm() 71 long currentTime = SystemClock.uptimeMillis(); in run() local 72 if (mAlarmTriggerTime > currentTime) { in run() 75 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/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/ |
D | AudioJitterBuffer.cpp | 255 uint32_t* pnTimestamp, bool* pbMark, uint32_t* pnSeqNum, uint32_t currentTime, in Get() argument 262 mPrevGetTime = currentTime; in Get() 266 IMLOGD_PACKET1(IM_PACKET_LOG_JITTER, "[Get] time diff[%d]", currentTime - mPrevGetTime); in Get() 267 mPrevGetTime = currentTime; in Get() 293 mJitterAnalyzer.GetNextJitterBufferSize(mCurrJitterBufferSize, currentTime); in Get() 327 int32_t dropRate = GetDropVoiceRateInDuration(DROP_WINDOW, currentTime); in Get() 337 mTimeStarted = currentTime; in Get() 362 if (currentTime - mTimeStarted < mInitJitterBufferSize * FRAME_INTERVAL) in Get() 381 pEntry->nSeqNum, mCurrJitterBufferSize, currentTime - pEntry->arrivalTime, in Get() 410 if (currentTime - mTimeStarted < 3000) in Get() [all …]
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/customaudience/ |
D | CustomAudienceTimestampValidator.java | 87 Instant currentTime = mClock.instant(); in addValidation() local 90 if (activationTime == null || activationTime.isBefore(currentTime)) { in addValidation() 91 calculatedActivationTime = currentTime; in addValidation() 95 Instant maxActivationTime = currentTime.plus(mCustomAudienceMaxActivateIn); in addValidation() 101 currentTime, in addValidation() 106 if (!expirationTime.isAfter(currentTime)) { in addValidation() 121 currentTime, in addValidation()
|
/packages/modules/NetworkStack/src/android/net/dhcp/ |
D | DhcpLeaseRepository.java | 195 final long currentTime = mClock.elapsedRealtime(); in getOffer() local 196 final long expTime = currentTime + mLeaseTimeMs; in getOffer() 198 removeExpiredLeases(currentTime); in getOffer() 285 final long currentTime = mClock.elapsedRealtime(); in requestLease() local 286 removeExpiredLeases(currentTime); in requestLease() 313 checkClientAndMakeLease(clientId, hwAddr, leaseAddr, hostname, currentTime); in requestLease() 331 @NonNull Inet4Address addr, @Nullable String hostname, long currentTime) in checkClientAndMakeLease() argument 333 final long expTime = currentTime + mLeaseTimeMs; in checkClientAndMakeLease() 479 private <T> long removeExpired(long currentTime, @NonNull Map<Inet4Address, T> map, in removeExpired() argument 486 if (expTime <= currentTime) { in removeExpired() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 867 long currentTime = SystemClock.uptimeMillis(); in injectKeyEvent_throwsSecurityExceptionWithoutInjectEventsPermission() local 868 KeyEvent event = new KeyEvent(/* downTime= */ currentTime, in injectKeyEvent_throwsSecurityExceptionWithoutInjectEventsPermission() 869 /* eventTime= */ currentTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER, in injectKeyEvent_throwsSecurityExceptionWithoutInjectEventsPermission() 880 long currentTime = SystemClock.uptimeMillis(); in injectKeyEvent_delegatesToOnKeyEvent() local 881 KeyEvent event = new KeyEvent(/* downTime= */ currentTime, in injectKeyEvent_delegatesToOnKeyEvent() 882 /* eventTime= */ currentTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER, in injectKeyEvent_delegatesToOnKeyEvent() 895 long currentTime = SystemClock.uptimeMillis(); in injectKeyEvent_sendingKeyEventWithDefaultDisplayAgainstClusterDisplayType() local 896 KeyEvent event = new KeyEvent(/* downTime= */ currentTime, in injectKeyEvent_sendingKeyEventWithDefaultDisplayAgainstClusterDisplayType() 897 /* eventTime= */ currentTime, KeyEvent.ACTION_DOWN, KeyEvent.KEYCODE_ENTER, in injectKeyEvent_sendingKeyEventWithDefaultDisplayAgainstClusterDisplayType() 943 long currentTime = SystemClock.uptimeMillis(); in onKeyEvent_unknownSeat_throwsException() local [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | EmergencyCallDiagnosticLogger.java | 262 long currentTime = mClockProxy.currentTimeMillis(); in onStartCreateConnection() local 264 Log.i(this, "Tracking call %s timestamp: %d", call.getId(), currentTime); in onStartCreateConnection() 265 mEmergencyCallsMap.put(call, new CallEventTimestamps(currentTime)); in onStartCreateConnection() 290 long currentTime = mClockProxy.currentTimeMillis(); in onCallRemoved() local 291 ts.setCallRemovedTime(currentTime); in onCallRemoved() 343 long currentTime = mClockProxy.currentTimeMillis(); in onCallStateChanged() local 344 ts.setCallActiveTime(currentTime); in onCallStateChanged() 353 long currentTime = mClockProxy.currentTimeMillis(); in dumpDiagnosticDataFromDropbox() local 355 currentTime - (mTimeoutAdapter.getDaysBackToSearchEmergencyDiagnosticEntries() * 24 in dumpDiagnosticDataFromDropbox() 357 Log.i(this, "current time: %d entriesafter: %d", currentTime, entriesAfterTime); in dumpDiagnosticDataFromDropbox()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.kt | 85 val currentTime: Calendar in <lambda>() constant 190 private val currentTime: Calendar in <lambda>() constant 194 sCurrentTimeFactory!!.currentTime in <lambda>() 326 var nextRepeatedInstance = alarm.createInstanceAfter(currentTime) in <lambda>() 721 val currentTime = currentTime in <lambda>() constant 736 val hasTimeout = timeoutTime != null && currentTime.after(timeoutTime) in <lambda>() 742 if (currentTime.before(alarmTime)) { in <lambda>() 761 if (currentTime.before(alarmTime)) { in <lambda>() 770 if (currentTime.after(missedTTL)) { in <lambda>() 773 } else if (currentTime.after(alarmTime)) { in <lambda>() [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/fixtures/java/android/adservices/common/ |
D | CommonFixture.java | 88 long currentTime = System.currentTimeMillis(); in doSleep() local 89 long wakeupTime = currentTime + timeout; in doSleep() 90 while (wakeupTime - currentTime > 0) { in doSleep() 91 Log.i(LOG_TAG, "Time left to sleep: " + (wakeupTime - currentTime) + " ms"); in doSleep() 93 Thread.sleep(wakeupTime - currentTime); in doSleep() 97 currentTime = System.currentTimeMillis(); in doSleep()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManagerTest.java | 291 long currentTime = 0; in requestANQPElementsWithMaxRetries() local 295 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries() 303 currentTime += (currentHoldOffTime - 1); in requestANQPElementsWithMaxRetries() 306 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries() 312 currentTime += 1; in requestANQPElementsWithMaxRetries() 314 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries() 321 currentTime += (ANQPRequestManager.BASE_HOLDOFF_TIME_MILLISECONDS in requestANQPElementsWithMaxRetries() 324 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries() 329 currentTime += 1; in requestANQPElementsWithMaxRetries() 331 when(mClock.getElapsedSinceBootMillis()).thenReturn(currentTime); in requestANQPElementsWithMaxRetries()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageContentProviderTest.java | 147 final Duration currentTime = Duration.ofHours(52); in query_batteryState_returnsExpectedResult() local 148 final long expiredTimeCutoff = currentTime.toMillis() - 8; in query_batteryState_returnsExpectedResult() 150 final Cursor cursor = insertBatteryState(currentTime, Long.toString(expiredTimeCutoff)); in query_batteryState_returnsExpectedResult() 173 final Duration currentTime = Duration.ofHours(52); in query_batteryStateTimestamp_returnsExpectedResult() local 174 final long expiredTimeCutoff = currentTime.toMillis() - 2; in query_batteryStateTimestamp_returnsExpectedResult() 176 final Cursor cursor = insertBatteryState(currentTime, Long.toString(expiredTimeCutoff)); in query_batteryStateTimestamp_returnsExpectedResult() 195 final Duration currentTime = Duration.ofHours(52); in query_getBatteryStateLatestTimestamp_returnsExpectedResult() local 196 insertBatteryState(currentTime, Long.toString(currentTime.toMillis())); in query_getBatteryStateLatestTimestamp_returnsExpectedResult() 198 final Cursor cursor1 = getCursorOfBatteryStateLatestTimestamp(currentTime.toMillis() - 5); in query_getBatteryStateLatestTimestamp_returnsExpectedResult() 202 assertThat(latestTimestamp1).isEqualTo(currentTime.toMillis() - 6); in query_getBatteryStateLatestTimestamp_returnsExpectedResult() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/provider/ |
D | Alarm.kt | 175 fun getPreviousAlarmTime(currentTime: Calendar): Calendar? { in getPreviousAlarmTime() 176 val previousInstanceTime = Calendar.getInstance(currentTime.timeZone) in getPreviousAlarmTime() 177 previousInstanceTime[Calendar.YEAR] = currentTime[Calendar.YEAR] in getPreviousAlarmTime() 178 previousInstanceTime[Calendar.MONTH] = currentTime[Calendar.MONTH] in getPreviousAlarmTime() 179 previousInstanceTime[Calendar.DAY_OF_MONTH] = currentTime[Calendar.DAY_OF_MONTH] in getPreviousAlarmTime() 194 fun getNextAlarmTime(currentTime: Calendar): Calendar { in getNextAlarmTime() 195 val nextInstanceTime = Calendar.getInstance(currentTime.timeZone) in getNextAlarmTime() 196 nextInstanceTime[Calendar.YEAR] = currentTime[Calendar.YEAR] in getNextAlarmTime() 197 nextInstanceTime[Calendar.MONTH] = currentTime[Calendar.MONTH] in getNextAlarmTime() 198 nextInstanceTime[Calendar.DAY_OF_MONTH] = currentTime[Calendar.DAY_OF_MONTH] in getNextAlarmTime() [all …]
|
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/ |
D | JitterNetworkAnalyser.cpp | 177 uint32_t nCurrJitterBufferSize, uint32_t currentTime) in GetNextJitterBufferSize() argument 213 (currentTime - mBadStatusChangedTime) >= mBufferIncThreshold) in GetNextJitterBufferSize() 230 mBadStatusChangedTime = currentTime; in GetNextJitterBufferSize() 239 mGoodStatusEnteringTime = currentTime; in GetNextJitterBufferSize() 243 uint32_t nTimeDiff = currentTime - mGoodStatusEnteringTime; in GetNextJitterBufferSize() 247 currentTime - mTimeLateArrivals > mBufferDecThreshold)) in GetNextJitterBufferSize()
|
/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/TvSettings/Settings/src/com/android/tv/settings/privacy/ |
D | RecentlyAccessedByUtils.java | 53 long currentTime = System.currentTimeMillis(); in getAppList() local 75 App recentApp = getRecentRequestFromOps(packageManager, currentTime, ops, in getAppList() 88 private static App getRecentRequestFromOps(PackageManager packageManager, long currentTime, in getRecentRequestFromOps() argument 92 long recentAccessCutoffTime = currentTime - RECENT_TIME_INTERVAL_MILLIS; in getRecentRequestFromOps() 101 mostRecentAccessEnd = currentTime; in getRecentRequestFromOps()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/privacy/ |
D | RecentlyAccessedByUtils.java | 53 long currentTime = System.currentTimeMillis(); in getAppList() local 75 App recentApp = getRecentRequestFromOps(packageManager, currentTime, ops, in getAppList() 88 private static App getRecentRequestFromOps(PackageManager packageManager, long currentTime, in getRecentRequestFromOps() argument 92 long recentAccessCutoffTime = currentTime - RECENT_TIME_INTERVAL_MILLIS; in getRecentRequestFromOps() 101 mostRecentAccessEnd = currentTime; in getRecentRequestFromOps()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | AsyncRingtonePlayer.kt | 357 val currentTime = Utils.now() in <lambda>() constant 358 if (currentTime > mCrescendoStopTime) { in <lambda>() 366 val volume = computeVolume(currentTime, mCrescendoStopTime, mCrescendoDuration) in <lambda>() 563 val currentTime = Utils.now() in <lambda>() constant 564 if (currentTime > mCrescendoStopTime) { in <lambda>() 571 val volume = computeVolume(currentTime, mCrescendoStopTime, mCrescendoDuration) in <lambda>() 620 private fun computeVolume(currentTime: Long, stopTime: Long, duration: Long): Float { in <lambda>() 622 val elapsedCrescendoTime = stopTime - currentTime.toFloat() in <lambda>()
|
/packages/apps/Gallery2/src/com/android/gallery3d/app/ |
D | VideoUtils.java | 272 double currentTime = 0; in trimUsingMp4Parser() local 282 if (currentTime <= startTime) { in trimUsingMp4Parser() 286 if (currentTime <= endTime) { in trimUsingMp4Parser() 294 currentTime += (double) entry.getDelta() in trimUsingMp4Parser() 309 double currentTime = 0; in correctTimeToSyncSample() local 317 track.getSyncSamples(), currentSample + 1)] = currentTime; in correctTimeToSyncSample() 319 currentTime += (double) entry.getDelta() in correctTimeToSyncSample()
|
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/data/customaudience/ |
D | DBCustomAudience.java | 156 @NonNull Instant currentTime, in fromServiceObject() argument 161 Objects.requireNonNull(currentTime); in fromServiceObject() 168 currentTime); in fromServiceObject() 169 if (activationTime.isBefore(currentTime)) { in fromServiceObject() 170 activationTime = currentTime; in fromServiceObject() 180 ? Instant.EPOCH : currentTime; in fromServiceObject() 190 .setCreationTime(currentTime) in fromServiceObject()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | SearchSettingsImpl.kt | 90 val currentTime: Long = System.currentTimeMillis() in haveVoiceSearchHintsExpired() constant 98 .putLong(FIRST_VOICE_HINT_DISPLAY_TIME, currentTime) in haveVoiceSearchHintsExpired() 100 firstHintTime = currentTime in haveVoiceSearchHintsExpired() 102 if (currentTime - firstHintTime > config!!.voiceSearchHintActivePeriod) { in haveVoiceSearchHintsExpired()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/builtin/view/ |
D | InputEventHelperTest.java | 43 long currentTime = SystemClock.uptimeMillis(); in testAssignDisplayId_toMotionEvent() local 45 currentTime /* downTime */, in testAssignDisplayId_toMotionEvent() 46 currentTime /* eventTime */, in testAssignDisplayId_toMotionEvent()
|
/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()
|