/system/timezone/input_tools/android/tzlookup_generator/src/test/java/com/android/libcore/timezone/tzlookup/zonetree/ |
D | ZoneOffsetPeriodTest.java | 26 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 …]
|
D | CountryZoneTreeTest.java | 23 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()
|
D | ZoneInfoTest.java | 26 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()
|
D | CountryZoneUsageTest.java | 21 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/ |
D | TimeZoneIdsTest.java | 27 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/ |
D | ZoneOffsetPeriod.java | 23 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()
|
D | CountryZoneUsage.java | 18 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()
|
D | CountryZoneTree.java | 29 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 …]
|
D | ZoneInfo.java | 22 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()
|
D | UniqueZonesVisualizer.java | 24 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/watchdog/src/ |
D | lib.rs | 29 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() 214 last_report: Instant::now(), in new() 227 let deadline = Instant::now().checked_add(timeout); in watch_with_optional() 258 deadline: Instant, in arm() argument [all …]
|
/system/extras/profcollectd/libprofcollectd/ |
D | lib.rs | 37 use std::time::{Duration, Instant}; 42 service_start_time: Instant, 53 let elapsed = Instant::now().duration_since(self.service_start_time); in onProviderReady() 77 ProviderStatusCallback { service_start_time: Instant::now() }, in init_service()
|
D | scheduler.rs | 26 use std::time::{Duration, Instant}; 141 let start_time = Instant::now(); in start_thread_waiting_for_provider_ready() 143 let elapsed = Instant::now().duration_since(start_time); in start_thread_waiting_for_provider_ready()
|
/system/librustutils/ |
D | system_properties.rs | 26 time::{Duration, Instant}, 130 fn wait_for_property_creation_until(&mut self, until: Option<Instant>) -> Result<()> { in wait_for_property_creation_until() 162 fn wait_for_property_change_until(&mut self, until: Option<Instant>) -> Result<()> { in wait_for_property_change_until() 195 let until = timeout.map(|timeout| Instant::now() + timeout); in wait() 205 let until = timeout.map(|timeout| Instant::now() + timeout); in wait_for_value() 239 fn remaining_time_until(until: Option<Instant>) -> Option<timespec> { in remaining_time_until() 241 duration_to_timespec(until.checked_duration_since(Instant::now()).unwrap_or_default()) in remaining_time_until()
|
/system/security/keystore2/src/ |
D | entropy.rs | 19 use std::time::{Duration, Instant}; 26 last_feed: Option<Instant>, 33 let now = Instant::now(); in register_feeder()
|
D | operation.rs | 149 time::Instant, 178 last_usage: Mutex<Instant>, 208 last_usage: Instant, 230 last_usage: Mutex::new(Instant::now()), in new() 265 fn prune(&self, last_usage: Instant) -> Result<(), Error> { in prune() 347 *self.last_usage.lock().expect("In touch.") = Instant::now(); in touch() 625 let now = Instant::now(); in prune() 650 last_usage: Instant, in prune()
|
D | apc.rs | 39 use std::time::{Duration, Instant}; 108 timestamp: Instant, 139 Self { counter: 0u32, timestamp: Instant::now() } in default() 152 start: Instant, 295 start: Instant::now(), in present_prompt()
|
/system/timezone/input_tools/android/tzids/src/main/java/com/android/timezone/tzids/ |
D | TimeZoneIds.java | 30 import java.time.Instant; 150 public Map<String, String> getCountryIdMap(String isoCode, Instant replacementThreshold) { in getCountryIdMap() 161 TzIdsProto.CountryMapping countryMapping, Instant replacementThreshold) { in createCountryIdMap() 204 Instant replacementThreshold) { in traverseReplacementList()
|
/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/ |
D | TzLookupFile.java | 26 import java.time.Instant; 217 Instant notUsedAfterInstant = timeZoneMapping.notUsedAfterInclusive; in createCountryMappingProto() 279 private final Instant notUsedAfterInclusive; 283 TimeZoneMapping(String olsonId, boolean showInPicker, Instant notUsedAfterInclusive, in TimeZoneMapping()
|
D | TzLookupGenerator.java | 40 import java.time.Instant; 65 public static final Instant ZONE_USAGE_CALCS_START = Instant.EPOCH; 74 public static final Instant ZONE_USAGE_NOT_AFTER_CUT_OFF = 75 Instant.ofEpochSecond(Integer.MAX_VALUE); 83 public static final Instant ZONE_USAGE_CALCS_END = 484 Instant notUsedAfterInstant = in processCountry()
|
/system/security/keystore2/legacykeystore/ |
D | lib.rs | 559 use std::time::Instant; 665 let test_begin = Instant::now(); in concurrent_legacy_keystore_entry_test() 674 if Instant::now().duration_since(test_begin) >= Duration::from_secs(15) { in concurrent_legacy_keystore_entry_test() 688 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test() 697 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test() 711 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test() 724 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test() 739 if Instant::now().duration_since(test_begin) >= Duration::from_secs(40) { in concurrent_legacy_keystore_entry_test()
|
/system/security/keystore2/selinux/src/ |
D | concurrency_test.rs | 22 time::{Duration, Instant}, 125 let run_time = Instant::now(); in test_concurrent_check_access()
|
/system/chre/apps/sensor_world/ |
D | sensor_world.cc | 252 Instant, enumerator 259 MotionMode motionMode = MotionMode::Instant; 262 motionMode = (motionMode == MotionMode::Instant) ? MotionMode::Stationary in getMotionSensorIndex() 263 : MotionMode::Instant; in getMotionSensorIndex() 435 motionSensorIndices[static_cast<size_t>(MotionMode::Instant)] = i; in nanoappStart()
|
/system/timezone/debug_tools/host/main/java/ |
D | TzFileDumper.java | 27 import java.time.Instant; 340 return Instant.ofEpochMilli(timeInMillis).toString(); in formatTimeSeconds()
|
/system/nfc/src/rust/nci/ |
D | nci.rs | 34 use tokio::time::{sleep, Duration, Instant}; 378 timeout.as_mut().reset(Instant::now() + Duration::from_millis(20)); in dispatch()
|