Home
last modified time | relevance | path

Searched refs:Instant (Results 1 – 25 of 169) sorted by relevance

1234567

/aosp12/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/
H A DZoneOffsetPeriodTest.java26 import java.time.Instant;
40 Instant startInstant = Instant.ofEpochSecond(152092800L); /* 1974-10-27T08:00:00Z */ in testEqualPeriods_withDstTransitions()
41 Instant expectedPeriod0End = Instant.ofEpochSecond(162378000L); /* 1975-02-23T09:00:00Z */ in testEqualPeriods_withDstTransitions()
44 Instant endInstant = Instant.ofEpochSecond(631152000L); /* 1990-01-01T00:00:00Z */ in testEqualPeriods_withDstTransitions()
73 Instant expectedPeriod1Start = expectedPeriod0End; in testEqualPeriods_withDstTransitions()
74 Instant expectedPeriod1End = in testEqualPeriods_withDstTransitions()
105 Instant startInstant = Instant.EPOCH; /* 1970-01-01T00:00:00Z */ in testEqualPeriods_withoutDstTransitions()
108 Instant endInstant = Instant.ofEpochSecond(631152000L); /* 1990-01-01T00:00:00Z */ in testEqualPeriods_withoutDstTransitions()
153 Instant startInstant = Instant.EPOCH; /* 1970-01-01T00:00:00Z */ in testSplitAtTime()
156 Instant endInstant = Instant.ofEpochSecond(631152000L); /* 1990-01-01T00:00:00Z */ in testSplitAtTime()
[all …]
H A DCountryZoneTreeTest.java23 import java.time.Instant;
36 private static final Instant RULES_START_INSTANT = Instant.EPOCH;
38 private static final Instant NOT_USED_AFTER_CUT_OFF = Instant.ofEpochSecond(946684800L);
40 private static final Instant RULES_END_INSTANT =
107 Instant expectedNotUsedAfterInstant = in testCountryWithPriority()
108 Instant.ofEpochSecond(338950800); /* 1980-09-28T01:00:00Z */ in testCountryWithPriority()
155 Instant expectedNotUsedAfterInstant = in australiaTreeTest()
156 Instant.ofEpochSecond(762883200); /* 1994-03-05T16:00:00Z */ in australiaTreeTest()
H A DZoneInfoTest.java26 import java.time.Instant;
36 private static final Instant START_INSTANT = Instant.EPOCH;
38 private static final Instant END_INSTANT = Instant.ofEpochSecond(631152000L);
57 assertEquals(Instant.ofEpochSecond(57722400L) /* 1971-10-31T02:00:00Z */, in testCreate()
63 Instant.ofEpochSecond(57722400L) /* 1971-10-31T02:00:00Z */, END_INSTANT); in testCreate()
64 assertEquals(Instant.ofEpochSecond(69818400L) /* 1972-03-19T02:00:00Z */, in testCreate()
70 Instant.ofEpochSecond(625626000L) /* 1989-10-29T01:00:00Z */, END_INSTANT); in testCreate()
117 Instant invalidSplitInstant = toSplit.getStartInstant().minus(1, ChronoUnit.DAYS); in testSplit()
125 Instant splitInstant = toSplit.getStartInstant().plus(5, ChronoUnit.DAYS); in testSplit()
/aosp12/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/
H A DUceRequestDispatcher.java25 import java.time.Instant;
43 private Optional<Instant> mExecutingTime;
59 public void setExecutingTime(Instant instant) { in setExecutingTime()
63 public Optional<Instant> getExecutingTime() { in getExecutingTime()
169 Instant lastRequestTime = getLastRequestTime(); in notifyStartOfRequest()
170 Instant baseTime; in notifyStartOfRequest()
174 baseTime = Instant.now(); in notifyStartOfRequest()
198 private Instant getLastRequestTime() { in getLastRequestTime()
200 return Instant.MIN; in getLastRequestTime()
203 Instant lastTime = Instant.MIN; in getLastRequestTime()
[all …]
H A DContactThrottlingList.java24 import java.time.Instant;
38 Instant mThrottleEndTimestamp;
40 public ContactInfo(Uri contactUri, int sipCode, Instant timestamp) { in ContactInfo()
64 Instant timestamp = Instant.now().plusSeconds(expiration); in addToThrottlingList()
100 .filter(contactInfo -> Instant.now() in cleanUpExpiredContacts()
/aosp12/packages/apps/Car/Calendar/src/com/android/car/calendar/common/
H A DEvent.java22 import java.time.Instant;
73 private final Instant mStartInstant;
75 private final Instant mEndInstant;
76 private final Instant mDayEndInstant;
85 Instant startInstant, in Event()
86 Instant dayStartInstant, in Event()
87 Instant endInstant, in Event()
88 Instant dayEndInstant, in Event()
106 public Instant getStartInstant() { in getStartInstant()
114 public Instant getDayEndInstant() { in getDayEndInstant()
[all …]
H A DEventsLiveData.java42 import java.time.Instant;
216 Instant startInstant = Instant.ofEpochMilli(startTimeMs); in createEventsForRow()
217 Instant endInstant = Instant.ofEpochMilli(endTimeMs); in createEventsForRow()
252 Instant dayStartInstant = in createEventsForRow()
254 Instant dayEndInstant; in createEventsForRow()
274 private Instant utcToDefaultTimeZone(Instant instant) { in utcToDefaultTimeZone()
/aosp12/system/timezone/input_tools/android/tzids/src/test/java/com/android/timezone/tzids/
H A DTimeZoneIdsTest.java27 import java.time.Instant;
53 assertEquals(expectedMap, tzIds.getCountryIdMap("Gb", Instant.EPOCH)); in getCountryIdMap_links()
54 assertEquals(expectedMap, tzIds.getCountryIdMap("GB", Instant.EPOCH)); in getCountryIdMap_links()
55 assertEquals(expectedMap, tzIds.getCountryIdMap("gB", Instant.EPOCH)); in getCountryIdMap_links()
57 assertEquals(expectedMap, tzIds.getCountryIdMap("gb", Instant.MIN)); in getCountryIdMap_links()
58 assertEquals(expectedMap, tzIds.getCountryIdMap("gb", Instant.EPOCH)); in getCountryIdMap_links()
59 assertEquals(expectedMap, tzIds.getCountryIdMap("gb", Instant.MAX)); in getCountryIdMap_links()
67 Instant knoxFrom = LocalDateTime.of(1991, Month.OCTOBER, 27, 7, 0).toInstant(UTC); in getCountryIdMap_replacements()
92 assertEquals(expectedMap, tzIds.getCountryIdMap("us", Instant.EPOCH)); in getCountryIdMap_replacements()
114 tzIds.getCountryIdMap("us", Instant.ofEpochMilli(Long.MAX_VALUE))); in getCountryIdMap_replacements()
[all …]
/aosp12/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/
H A DPublishProcessorState.java25 import java.time.Instant;
103 private Optional<Instant> mLastPublishedTime;
106 private Optional<Instant> mPublishAllowedTime;
114 public void setLastPublishedTime(Instant lastPublishedTime) { in setLastPublishedTime()
163 return (Instant.now().isBefore(mPublishAllowedTime.get())) ? false : true; in isPublishAllowedAtThisTime()
172 mPublishAllowedTime = Optional.of(Instant.now()); in updatePublishingAllowedTime()
204 Instant.now().plus(Duration.ofMillis(retryDelay))); in calcLatestPublishAllowedTime()
209 Instant lastPublishedTime = mLastPublishedTime.get(); in calcLatestPublishAllowedTime()
210 Instant defaultAllowedTime = lastPublishedTime.plus( in calcLatestPublishAllowedTime()
220 Instant retryDelayTime = Instant.now().plus(Duration.ofMillis(retryDelay)); in calcLatestPublishAllowedTime()
[all …]
/aosp12/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/
H A DZoneOffsetPeriod.java23 import java.time.Instant;
32 private final Instant start;
34 private final Instant end;
42 private ZoneOffsetPeriod(Instant start, Instant end, int rawOffsetMillis, int dstOffsetMillis, in ZoneOffsetPeriod()
55 Instant minTime, Instant maxTime) { in create()
60 Instant end; in create()
70 end = Instant.ofEpochMilli(endTimeMillis); in create()
88 Instant partitionInstant) { in splitAtTime()
108 public Instant getStartInstant() { in getStartInstant()
112 public Instant getEndInstant() { in getEndInstant()
H A DCountryZoneTree.java29 import java.time.Instant;
106 Instant getStartInstant() { in getStartInstant()
112 Instant getEndInstant() { in getEndInstant()
133 private final Instant startInclusive;
134 private final Instant endExclusive;
137 String countryIso, ZoneNode root, Instant startInclusive, Instant endExclusive) { in CountryZoneTree()
148 Country country, Instant startInclusive, Instant endExclusive) { in create()
157 Country country, Instant startInclusive, Instant endExclusive, boolean compress) { in create()
336 Instant startInclusive, Instant endExclusive, boolean compress) { in create()
513 Instant endInstant = node.getEndInstant(); in calculateCountryZoneUsage()
[all …]
H A DCountryZoneUsage.java18 import java.time.Instant;
38 void addEntry(String zoneId, Instant notUsedAfterInstant, String notUsedReplacementId) { in addEntry()
50 public Instant getNotUsedAfterInstant(String zoneId) { in getNotUsedAfterInstant()
70 final Instant notUsedAfter;
73 Entry(String zoneId, Instant notUsedAfter, String notUsedReplacementId) { in Entry()
H A DZoneInfo.java22 import java.time.Instant;
63 Instant startInclusive, Instant endExclusive) { in create()
67 Instant start = startInclusive; in create()
84 TimeZoneNames timeZoneNames, ZoneInfo zoneInfo, int index, Instant partitionInstant) { in splitZoneOffsetPeriodAtTime()
H A DUniqueZonesVisualizer.java24 import java.time.Instant;
64 Instant startInclusive = TzLookupGenerator.ZONE_USAGE_CALCS_START; in main()
65 Instant endExclusive = TzLookupGenerator.ZONE_USAGE_CALCS_END; in main()
79 private void createGraphvizFile(String countryIso, Instant startInclusive, Instant endExclusive, in createGraphvizFile()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
H A DTimeDetectorStrategyImplTest.java47 import java.time.Instant;
86 Instant testTime = ARBITRARY_TEST_TIME; in testSuggestTelephonyTime_autoTimeEnabled()
176 Instant slotIndex1Time = ARBITRARY_TEST_TIME; in testSuggestTelephonyTime_multipleSlotIndexsAndBucketing()
265 Instant testTime = ARBITRARY_TEST_TIME; in testSuggestTelephonyTime_invalidNitzReferenceTimesIgnored()
344 Instant testTime = ARBITRARY_TEST_TIME; in testSuggestTelephonyTime_timeDetectionToggled()
402 Instant testTime = ARBITRARY_TEST_TIME; in testSuggestTelephonyTime_maxSuggestionAge()
452 Instant testTime = ARBITRARY_TEST_TIME; in testSuggestManualTime_retainsAutoSignal()
764 Instant gnssTime1 = ARBITRARY_TEST_TIME; in highPrioritySuggestionsBeatLowerPrioritySuggestions_networkGnssOrigins()
970 Instant networkTime = ARBITRARY_TEST_TIME; in whenAllTimeSuggestionsAreAvailable_higherPriorityWins_lowerPriorityComesFirst()
1063 Instant testTime = ARBITRARY_TEST_TIME; in suggestionsFromTelephonyOriginNotInPriorityList_areIgnored()
[all …]
/aosp12/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/
H A DUceDeviceState.java31 import java.time.Instant;
90 final Optional<Instant> mRequestRetryTime;
91 final Optional<Instant> mExitStateTime;
94 Optional<Instant> requestRetryTime, Optional<Instant> exitStateTime) { in DeviceStateResult()
123 public Optional<Instant> getRequestRetryTime() { in getRequestRetryTime()
135 public Optional<Instant> getExitStateTime() { in getExitStateTime()
170 private Optional<Instant> mRequestRetryTime;
171 private Optional<Instant> mExitStateTime;
206 long expirySec = ChronoUnit.SECONDS.between(Instant.now(), mExitStateTime.get()); in checkSendResetDeviceStateTimer()
346 mRequestRetryTime = Optional.of(Instant.now().plusMillis(retryInterval)); in setupRequestRetryTime()
[all …]
/aosp12/system/security/keystore2/src/
H A Dwatchdog.rs29 time::{Duration, Instant},
59 started: Instant,
60 deadline: Instant,
69 last_report: Instant,
75 let now = Instant::now(); in update_overdue_and_find_next_timeout()
112 self.last_report = Instant::now(); in log_report()
116 let now = Instant::now(); in log_report()
180 last_report: Instant::now(), in new()
193 let deadline = Instant::now().checked_add(timeout); in watch_with_optional()
224 deadline: Instant, in arm() argument
[all …]
/aosp12/packages/services/Car/service/src/com/android/car/storagemonitoring/
H A DWearEstimateRecord.java24 import java.time.Instant;
40 private final Instant mUnixTimestamp;
45 @NonNull Instant unixTimestamp) { in WearEstimateRecord()
56 mUnixTimestamp = Instant.ofEpochMilli(json.getLong("unixTimestamp")); in WearEstimateRecord()
81 public Instant getUnixTimestamp() { in getUnixTimestamp()
138 private Instant mUnixTimestamp = null;
164 public Builder atTimestamp(@NonNull Instant now) { in atTimestamp()
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/core/models/
H A DUserAccount.java25 import java.time.Instant;
36 @NonNull private final Instant mConnectionTime;
39 int id, @NonNull String name, @Nullable String iccId, @NonNull Instant connectionTime) { in UserAccount()
50 this.mConnectionTime = (Instant) in.readSerializable(); in UserAccount()
98 public Instant getConnectionTime() { in getConnectionTime()
/aosp12/packages/apps/Car/Messenger/src/com/android/car/messenger/impl/datamodels/
H A DNewMessageLiveData.java39 import java.time.Instant;
55 @NonNull private final HashMap<Integer, Instant> mOffsetMap = new HashMap<>();
100 Instant offset = in onDataChange()
133 Instant offset = in postNewMessageIfFound()
134 Instant.ofEpochMilli(ConversationUtil.getConversationTimestamp(conversation)); in postNewMessageIfFound()
142 private Cursor getMmsCursor(@NonNull UserAccount userAccount, @NonNull Instant offset) { in getMmsCursor()
148 private Cursor getSmsCursor(@NonNull UserAccount userAccount, @NonNull Instant offset) { in getSmsCursor()
/aosp12/frameworks/base/core/tests/coretests/src/android/util/
H A DRecurrenceRuleTest.java24 import java.time.Instant;
47 private void setClock(Instant instant) { in setClock()
52 setClock(Instant.parse("2015-11-20T10:15:30.00Z")); in testSimpleMonth()
72 setClock(Instant.parse("2015-01-01T10:15:30.00Z")); in testSimpleDays()
93 setClock(Instant.parse("2015-01-01T10:15:30.00Z")); in testNotRecurring()
110 setClock(Instant.parse("2015-01-01T10:15:30.00Z")); in testNever()
/aosp12/packages/services/Telephony/src/com/android/services/telephony/rcs/
H A DSipDialog.java24 import java.time.Instant;
68 private Instant mLastInteraction;
95 mLastInteraction = Instant.now(); in SipDialog()
145 mLastInteraction = Instant.now(); in earlyResponse()
161 mLastInteraction = Instant.now(); in confirm()
173 mLastInteraction = Instant.now(); in close()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/fuelgauge/
H A DEstimate.kt22 import java.time.Instant
47 Instant.now()) > Duration.ofMinutes(1)) {
86 fun getLastCacheUpdateTime(context: Context): Instant {
87 return Instant.ofEpochMilli(
/aosp12/packages/modules/GeoTZ/data_pipeline/src/main/java/com/android/timezone/location/data_pipeline/steps/
H A DCanonicalizeTzS2Polygons.java32 import java.time.Instant;
73 private final Instant mReplacementThreshold;
80 File inputDir, File tzIdsFile, Instant replacementThreshold, in CanonicalizeTzS2Polygons()
115 Instant replacementThreshold() { in replacementThreshold()
116 return Instant.parse(replacementThreshold); in replacementThreshold()
132 Instant replacementThreshold = arguments.replacementThreshold(); in main()
/aosp12/frameworks/base/core/java/android/os/
H A DSimpleClock.java20 import java.time.Instant;
50 public Instant instant() {
51 return Instant.ofEpochMilli(millis());

1234567