Home
last modified time | relevance | path

Searched refs:currentTimestamp (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DPeriodicJobManagerTest.java79 final long currentTimestamp = in getTriggerAtMillis_halfFullHourTimeZoneWithoutOffset_returnsExpectedResult() local
82 currentTimestamp + Duration.ofMinutes(60 - minutesOffset).toMillis(); in getTriggerAtMillis_halfFullHourTimeZoneWithoutOffset_returnsExpectedResult()
86 /* currentTimeMillis= */ currentTimestamp, /* fromBoot= */ false)) in getTriggerAtMillis_halfFullHourTimeZoneWithoutOffset_returnsExpectedResult()
93 final long currentTimestamp = in getTriggerAtMillis_halfFullHourTimeZoneWithOffset_returnsExpectedResult() local
96 currentTimestamp + Duration.ofMinutes(60 - minutesOffset).toMillis(); in getTriggerAtMillis_halfFullHourTimeZoneWithOffset_returnsExpectedResult()
100 /* currentTimeMillis= */ currentTimestamp, /* fromBoot= */ false)) in getTriggerAtMillis_halfFullHourTimeZoneWithOffset_returnsExpectedResult()
109 final long currentTimestamp = in getTriggerAtMillis_halfFullHourTimeZoneWithBroadcastDelay_returnsExpectedResult() local
112 currentTimestamp + Duration.ofMinutes(60 * 2 - minutesOffset).toMillis(); in getTriggerAtMillis_halfFullHourTimeZoneWithBroadcastDelay_returnsExpectedResult()
116 /* currentTimeMillis= */ currentTimestamp, /* fromBoot= */ true)) in getTriggerAtMillis_halfFullHourTimeZoneWithBroadcastDelay_returnsExpectedResult()
123 final long currentTimestamp = in getTriggerAtMillis_fullHourTimeZoneWithoutOffset_returnsExpectedResult() local
[all …]
DBatteryUsageContentProviderTest.java478 final long currentTimestamp = currentTime.toMillis(); in insertBatteryState() local
481 mContext, currentTimestamp - 6, PACKAGE_NAME1, /* isFullChargeStart= */ true); in insertBatteryState()
483 mContext, currentTimestamp - 2, PACKAGE_NAME2); in insertBatteryState()
484 BatteryTestUtils.insertDataToBatteryStateTable(mContext, currentTimestamp, PACKAGE_NAME3); in insertBatteryState()
DDataProcessorTest.java2512 final long currentTimestamp, in verifyExpectedTimestampSlots() argument
2518 DataProcessor.getTimestampSlots(timestampSlots, currentTimestamp); in verifyExpectedTimestampSlots()
/packages/services/Car/tools/emulator/
Ddiagnostic_injector.py77 currentTimestamp = event['timestamp']
79 assert currentTimestamp >= lastTimestamp
85 time.sleep((currentTimestamp-lastTimestamp)/1000000000)
86 lastTimestamp = currentTimestamp
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/adselection/
DUpdateAdCounterHistogramWorker.java121 final Instant currentTimestamp = mClock.instant(); in updateAdCounterHistogram() local
126 submitUpdateAdCounterHistogram(inputParams, currentTimestamp), in updateAdCounterHistogram()
153 @NonNull UpdateAdCounterHistogramInput inputParams, @NonNull Instant currentTimestamp) { in submitUpdateAdCounterHistogram() argument
156 sLogger.v("Updating ad counter histogram with timestamp %s", currentTimestamp); in submitUpdateAdCounterHistogram()
161 currentTimestamp); in submitUpdateAdCounterHistogram()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/common/
DConsentNotificationJobService.java87 long currentTimestamp = System.currentTimeMillis(); in schedule() local
89 sharedPref.getLong(FIRST_ENTRY_REQUEST_TIMESTAMP, currentTimestamp); in schedule()
90 if (firstEntryRequestTimestamp == currentTimestamp) { in schedule()
94 editor.putLong(FIRST_ENTRY_REQUEST_TIMESTAMP, currentTimestamp); in schedule()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDiscoverableEnabler.java281 long currentTimestamp = System.currentTimeMillis(); in updateCountdownSummary() local
284 if (currentTimestamp > endTimestamp) { in updateCountdownSummary()
290 int timeLeft = (int) ((endTimestamp - currentTimestamp) / 1000L); in updateCountdownSummary()
/packages/modules/StatsD/statsd/src/metrics/duration_helper/
DMaxDurationTracker.cpp311 const int64_t currentTimestamp) const { in predictAnomalyTimestampNs()
318 it->second.lastDuration + (currentTimestamp - it->second.lastStartTime); in predictAnomalyTimestampNs()
324 int64_t anomalyTimeNs = currentTimestamp + anomalyTracker.getAnomalyThreshold() - maxElapsed; in predictAnomalyTimestampNs()
DMaxDurationTracker.h59 const int64_t currentTimestamp) const override;
DOringDurationTracker.h57 const int64_t currentTimestamp) const override;
DDurationTracker.h132 const int64_t currentTimestamp) const = 0;
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/personalization/
DPersonalizationHelper.java21 public static void currentTimeChangedForTesting(final int currentTimestamp) { in currentTimeChangedForTesting() argument
/packages/modules/ExtServices/java/src/android/ext/services/common/
DAdServicesAppsearchDeleteJob.java346 long currentTimestamp = System.currentTimeMillis(); in hasMinMinutesPassed() local
348 long minutesPassed = (currentTimestamp - timestampToCheckInMillis) in hasMinMinutesPassed()
350 Log.d(TAG, "The minutes from current date " + currentTimestamp in hasMinMinutesPassed()
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DRealtimeRowProcessor.java153 long currentTimestamp = System.currentTimeMillis(); in writePhoneLookupHistory()
166 contentValues.put(PhoneLookupHistory.LAST_MODIFIED, currentTimestamp); in writePhoneLookupHistory()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DAudioJitterBuffer.cpp674 uint32_t lostSeq, uint32_t currentTimestamp, uint32_t offset, DataEntry** entry) in GetPartialRedundancyFrame() argument
713 if (tempEntry->nTimestamp > (currentTimestamp + offset * 20)) in GetPartialRedundancyFrame()
719 tempEntry->nTimestamp, currentTimestamp); in GetPartialRedundancyFrame()
/packages/modules/ImsMedia/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/include/audio/
DAudioJitterBuffer.h90 bool GetPartialRedundancyFrame(const uint32_t currentSeq, uint32_t currentTimestamp,
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DMeasurementDaoTest.java2489 long currentTimestamp = System.currentTimeMillis(); in testInstallAttribution_selectHighestPriority() local
2493 "IA1", currentTimestamp, 100, -1, false, DEFAULT_ENROLLMENT_ID) in testInstallAttribution_selectHighestPriority()
2498 createSourceForIATest("IA2", currentTimestamp, 50, -1, false, DEFAULT_ENROLLMENT_ID) in testInstallAttribution_selectHighestPriority()
2507 INSTALLED_PACKAGE, currentTimestamp); in testInstallAttribution_selectHighestPriority()
2517 long currentTimestamp = System.currentTimeMillis(); in testInstallAttribution_selectLatest() local
2519 createSourceForIATest("IA1", currentTimestamp, -1, 10, false, DEFAULT_ENROLLMENT_ID) in testInstallAttribution_selectLatest()
2524 createSourceForIATest("IA2", currentTimestamp, -1, 5, false, DEFAULT_ENROLLMENT_ID) in testInstallAttribution_selectLatest()
2533 INSTALLED_PACKAGE, currentTimestamp); in testInstallAttribution_selectLatest()
2544 long currentTimestamp = System.currentTimeMillis(); in installAttribution_noCooldownWindow_ignoredToBeMarked() local
2546 createSourceForIATest("IA1", currentTimestamp, -1, 10, false, DEFAULT_ENROLLMENT_ID) in installAttribution_noCooldownWindow_ignoredToBeMarked()
[all …]
/packages/services/Car/tests/BugReportApp/src/com/android/car/bugreport/
DBugStorageUtils.java331 "Upload time: " + currentTimestamp()); in setUploadSuccess()
425 private static String currentTimestamp() { in currentTimestamp() method in BugStorageUtils
/packages/apps/Dialer/java/com/android/dialer/calllog/datasources/phonelookup/
DPhoneLookupDataSource.java265 long currentTimestamp = System.currentTimeMillis(); in writePhoneLookupHistory() local
271 contentValues.put(PhoneLookupHistory.LAST_MODIFIED, currentTimestamp); in writePhoneLookupHistory()