Home
last modified time | relevance | path

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

12

/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/
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()
75 Instant.ofEpochSecond(183542400L); /* 1975-10-26T08:00:00Z */ 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()
[all …]
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()
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()
DCountryZoneUsageTest.java21 import java.time.Instant;
60 Instant instant = Instant.ofEpochSecond(1234); in testWithEntry()
/system/timezone/input_tools/android/tzids/src/test/java/com/android/timezone/tzids/
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()
68 Instant tellCityFrom = LocalDateTime.of(2006, Month.APRIL, 2, 8, 0).toInstant(UTC); in getCountryIdMap_replacements()
92 assertEquals(expectedMap, tzIds.getCountryIdMap("us", Instant.EPOCH)); in getCountryIdMap_replacements()
[all …]
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/
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()
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()
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()
260 Instant toSplitInstant = iPeriod.getStartInstant(); in addExtraPeriodSplits()
336 Instant startInclusive, Instant endExclusive, boolean compress) { in create()
[all …]
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()
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()
/system/security/keystore2/src/
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 …]
Dentropy.rs19 use std::time::{Duration, Instant};
26 last_feed: Option<Instant>,
33 let now = Instant::now(); in register_feeder()
Dapc.rs37 use std::time::{Duration, Instant};
131 timestamp: Instant,
162 Self { counter: 0u32, timestamp: Instant::now() } in default()
175 start: Instant,
323 start: Instant::now(), in present_prompt()
Doperation.rs145 time::Instant,
174 last_usage: Mutex<Instant>,
204 last_usage: Instant,
226 last_usage: Mutex::new(Instant::now()), in new()
261 fn prune(&self, last_usage: Instant) -> Result<(), Error> { in prune()
355 *self.last_usage.lock().expect("In touch.") = Instant::now(); in touch()
644 let now = Instant::now(); in prune()
669 last_usage: Instant, in prune()
/system/bt/gd/rust/common/src/
Dtime.rs86 use std::time::{Duration, Instant};
92 let timer = Instant::now(); in alarm_simple_case()
107 let timer = Instant::now(); in alarm_clear_ready_after_expired()
134 let timer = Instant::now(); in interval_simple_case()
/system/timezone/input_tools/android/tzids/src/main/java/com/android/timezone/tzids/
DTimeZoneIds.java30 import java.time.Instant;
149 public Map<String, String> getCountryIdMap(String isoCode, Instant replacementThreshold) { in getCountryIdMap()
160 TzIdsProto.CountryMapping countryMapping, Instant replacementThreshold) { in createCountryIdMap()
203 Instant replacementThreshold) { in traverseReplacementList()
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/
DTzLookupFile.java26 import java.time.Instant;
195 Instant notUsedAfterInstant = timeZoneMapping.notUsedAfterInclusive; in createCountryMappingProto()
257 private final Instant notUsedAfterInclusive;
261 TimeZoneMapping(String olsonId, boolean showInPicker, Instant notUsedAfterInclusive, in TimeZoneMapping()
DTzLookupGenerator.java34 import java.time.Instant;
57 public static final Instant ZONE_USAGE_CALCS_START = Instant.EPOCH;
66 public static final Instant ZONE_USAGE_NOT_AFTER_CUT_OFF =
67 Instant.ofEpochSecond(Integer.MAX_VALUE);
75 public static final Instant ZONE_USAGE_CALCS_END =
420 Instant notUsedAfterInstant = in processCountry()
/system/chre/apps/sensor_world/
Dsensor_world.cc238 Instant, enumerator
245 MotionMode motionMode = MotionMode::Instant;
248 motionMode = (motionMode == MotionMode::Instant) ? MotionMode::Stationary in getMotionSensorIndex()
249 : MotionMode::Instant; in getMotionSensorIndex()
318 motionSensorIndices[static_cast<size_t>(MotionMode::Instant)] = i; in nanoappStart()
/system/security/keystore2/legacykeystore/
Dlib.rs527 use std::time::Instant;
633 let test_begin = Instant::now(); in concurrent_legacy_keystore_entry_test()
642 if Instant::now().duration_since(test_begin) >= Duration::from_secs(15) { in concurrent_legacy_keystore_entry_test()
656 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test()
665 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test()
679 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test()
692 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test()
707 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test()
/system/timezone/debug_tools/host/main/java/
DTzFileDumper.java27 import java.time.Instant;
320 return Instant.ofEpochMilli(timeInMillis).toString(); in formatTimeSeconds()
/system/sepolicy/prebuilts/api/30.0/private/
Duntrusted_app_all.te109 # Android Studio Instant Run has the application connect to a
/system/sepolicy/prebuilts/api/31.0/private/
Duntrusted_app_all.te105 # Android Studio Instant Run has the application connect to a
/system/sepolicy/private/
Duntrusted_app_all.te105 # Android Studio Instant Run has the application connect to a
/system/sepolicy/prebuilts/api/29.0/private/
Duntrusted_app_all.te118 # Android Studio Instant Run has the application connect to a

12