Home
last modified time | relevance | path

Searched refs:Duration (Results 1 – 25 of 36) sorted by relevance

12

/system/security/keystore2/src/
Dasync_task.rs22 use std::{any::Any, any::TypeId, time::Duration};
92 timeout: Duration,
112 Self::new(Duration::from_secs(30)) in default()
118 pub fn new(timeout: Duration) -> Self { in new()
267 use std::time::Duration;
392 let at = AsyncTask::new(Duration::from_secs(3)); in test_async_task_idle()
402 std::thread::sleep(Duration::from_millis(500)); in test_async_task_idle()
405 std::thread::sleep(Duration::from_millis(500)); in test_async_task_idle()
416 idle_done_receiver.recv_timeout(Duration::from_secs(1)), in test_async_task_idle()
422 idle_done_receiver.recv_timeout(Duration::from_millis(50)).unwrap(); in test_async_task_idle()
[all …]
Dwatchdog.rs29 time::{Duration, Instant},
67 timeout: Duration,
74 fn update_overdue_and_find_next_timeout(&mut self) -> (bool, Option<Duration>) { in update_overdue_and_find_next_timeout() argument
76 let mut next_timeout: Option<Duration> = None; in update_overdue_and_find_next_timeout()
80 if timeout == Duration::new(0, 0) { in update_overdue_and_find_next_timeout()
120 .filter(|(_, r)| r.deadline.saturating_duration_since(now) == Duration::new(0, 0)) in log_report()
200 const NOISY_REPORT_TIMEOUT: Duration = Duration::from_secs(1);
205 pub fn new(timeout: Duration) -> Arc<Self> { in new()
225 timeout: Duration, in watch_with_optional() argument
243 timeout: Duration, in watch_with() argument
[all …]
Did_rotation.rs29 use std::time::Duration;
31 const ID_ROTATION_PERIOD: Duration = Duration::from_secs(30 * 24 * 60 * 60); // Thirty days.
Dapc.rs39 use std::time::{Duration, Instant};
140 const ONE_DAY: Duration = Duration::from_secs(60u64 * 60u64 * 24u64);
142 fn get_remaining_back_off(&self) -> Option<Duration> { in get_remaining_back_off() argument
147 3..=5 => Duration::from_secs(30), in get_remaining_back_off()
150 6..=16 => Duration::from_secs(60) in get_remaining_back_off()
Dentropy.rs19 use std::time::{Duration, Instant};
36 Some(last) => now.duration_since(last) > Duration::from_secs(MIN_FEED_INTERVAL_SECS), in register_feeder()
Drkpd_client.rs34 use std::time::Duration;
41 static RKPD_TIMEOUT: Duration = Duration::from_secs(10);
330 latency: Option<Duration>,
339 latency: Option<Duration>, in new_native_binder() argument
414 latency: Option<Duration>, in get_mock_registration() argument
557 let latency = RKPD_TIMEOUT + Duration::from_secs(1); in test_get_mock_key_timeout()
582 let latency = RKPD_TIMEOUT + Duration::from_secs(1); in test_store_mock_key_timeout()
Dshared_secret_negotiation.rs29 use std::time::Duration;
232 std::thread::sleep(Duration::from_millis(1000)); in connect_participants()
254 std::thread::sleep(Duration::from_millis(1000)); in negotiate_shared_secret()
Dutils.rs380 use std::time::Duration;
384 static ref WD: Arc<Watchdog> = Watchdog::new(Duration::from_secs(10));
389 Watchdog::watch(&WD, id, Duration::from_millis(millis)) in watch_millis()
399 Watchdog::watch_with(&WD, id, Duration::from_millis(millis), callback) in watch_millis_with()
/system/apex/tests/src/com/android/tests/apex/
DApexdHostTest.java41 import java.time.Duration;
87 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testOrphanedApexIsNotActivated()
93 Duration.ofMinutes(3)); in testOrphanedApexIsNotActivated()
108 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testApexWithoutPbIsNotActivated()
114 Duration.ofMinutes(3)); in testApexWithoutPbIsNotActivated()
128 getDevice().waitForBootComplete(Duration.ofMinutes(3).toMillis()); in testRemountApex()
139 Thread.sleep(Duration.ofSeconds(15).toMillis()); in testRemountApex()
160 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion()
170 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion()
180 Duration.ofMinutes(3)); in testApexWithoutPbIsNotActivated_ProductPartitionHasOlderVersion()
[all …]
DApexE2EBaseHostTest.java39 import java.time.Duration;
50 private static final Duration BOOT_COMPLETE_TIMEOUT = Duration.ofMinutes(2);
DApexRollbackTests.java41 import java.time.Duration;
278 getDevice().waitForBootComplete(Duration.ofMinutes(1).toMillis())).isTrue(); in testApexdDoesNotBootLoopDeviceIfThereIsNothingToRevert()
300 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testBootCompletedCleanupHappensEvenWhenThereIsCrashingProcess()
309 Duration.ofMinutes(3)); in testBootCompletedCleanupHappensEvenWhenThereIsCrashingProcess()
DSharedLibsApexTest.java36 import java.time.Duration;
516 + getInstalledApexFileName(ApexName.BAR, ApexVersion.ONE), Duration.ofMinutes(3)); in testHigherVersionOnSystemDeletesDataVersion()
518 + getInstalledApexFileName(ApexName.FOO, ApexVersion.ONE), Duration.ofMinutes(3)); in testHigherVersionOnSystemDeletesDataVersion()
521 Duration.ofMinutes(3)); in testHigherVersionOnSystemDeletesDataVersion()
/system/extras/profcollectd/libprofcollectd/
Dscheduler.rs26 use std::time::{Duration, Instant};
151 let sleep_duration = if elapsed < Duration::from_secs(10) { in start_thread_waiting_for_provider_ready()
152 Duration::from_millis(100) in start_thread_waiting_for_provider_ready()
153 } else if elapsed < Duration::from_secs(60 * 10) { in start_thread_waiting_for_provider_ready()
154 Duration::from_secs(10) in start_thread_waiting_for_provider_ready()
156 Duration::from_secs(60 * 10) in start_thread_waiting_for_provider_ready()
Dconfig.rs28 use std::time::Duration;
56 pub collection_interval: Duration,
58 pub sampling_period: Duration,
71 collection_interval: Duration::from_secs(get_device_config( in from_env()
75 sampling_period: Duration::from_millis(get_device_config("sampling_period", 500)?), in from_env()
Dlogging_trace_provider.rs21 use std::time::Duration;
39 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str) { in trace() argument
Dlib.rs36 use std::time::{Duration, Instant};
51 const TIMEOUT_TO_COLLECT_BOOT_PROFILE: Duration = Duration::from_secs(3); in onProviderReady()
Dtrace_provider.rs23 use std::time::Duration;
33 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str); in trace() argument
Dsimpleperf_etm_trace_provider.rs22 use std::time::Duration;
41 fn trace(&self, trace_dir: &Path, tag: &str, sampling_period: &Duration, binary_filter: &str) { in trace() argument
Dreport.rs26 use std::time::{Duration, SystemTime};
107 Ok(SystemTime::UNIX_EPOCH + Duration::new(uuid_ts.0, uuid_ts.1)) in get_report_ts()
Dservice.rs28 use std::time::Duration;
156 if report_age > Duration::from_secs(REPORT_RETENTION_SECS) { in new()
/system/security/keystore2/selinux/src/
Dconcurrency_test.rs22 time::{Duration, Instant},
118 thread::sleep(Duration::from_millis(5)); in test_concurrent_check_access()
133 thread::sleep(Duration::from_millis(SLEEP_MILLISECONDS)); in test_concurrent_check_access()
163 thread::sleep(Duration::from_millis(SLEEP_MILLISECONDS)); in test_concurrent_check_access()
/system/extras/simpleperf/rust/
Dlib.rs22 use std::time::Duration;
51 pub fn record(trace_file: &Path, duration: &Duration, binary_filter: &str, scope: RecordScope) { in record() argument
/system/apex/tests/src/com/android/tests/apex/host/
DApexCompressionTests.java43 import java.time.Duration;
289 mHostUtils.waitForFileDeleted(filePath, Duration.ofSeconds(15)); in testUnusedDecompressedApexIsCleanedUp_HigherVersion()
308 mHostUtils.waitForFileDeleted(filePath, Duration.ofSeconds(15)); in testUnusedDecompressedApexIsCleanedUp_SameVersion()
344 getDevice().waitForBootComplete(Duration.ofMinutes(2).toMillis())).isTrue(); in testFailsToActivateApexOnDataFallbacksToPreInstalled()
383 mHostUtils.waitForFileDeleted(filePath, Duration.ofSeconds(15)); in testCapexToApexSwitch()
437 mHostUtils.waitForFileDeleted(filePath, Duration.ofSeconds(15)); in testOrphanedDecompressedApexInActiveDirIsIgnored()
/system/security/keystore2/legacykeystore/
Dlib.rs72 std::thread::sleep(std::time::Duration::from_micros(500)); in with_transaction()
558 use std::time::Duration;
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/nfc/src/rust/nci/
Dnci.rs28 use tokio::time::{sleep, Duration, Instant};
167 let timeout = sleep(Duration::MAX); in dispatch()
211 timeout.as_mut().reset(Instant::now() + Duration::from_millis(20)); in dispatch()

12