Home
last modified time | relevance | path

Searched refs:milliseconds (Results 1 – 25 of 132) sorted by relevance

123456

/system/bt/gd/os/linux_generic/
Dalarm_unittest.cc54 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(delay_ms)); in TEST_F()
57 auto duration_ms = std::chrono::duration_cast<std::chrono::milliseconds>(after - before); in TEST_F()
62 …alarm_->Schedule([]() { ASSERT_TRUE(false) << "Should not happen"; }, std::chrono::milliseconds(3)… in TEST_F()
64 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F()
68 alarm_->Schedule([this]() { this->alarm_->Cancel(); }, std::chrono::milliseconds(1)); in TEST_F()
69 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F()
73 …alarm_->Schedule([]() { ASSERT_TRUE(false) << "Should not happen"; }, std::chrono::milliseconds(1)… in TEST_F()
76 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(10)); in TEST_F()
81 …alarm_->Schedule([]() { ASSERT_TRUE(false) << "Should not happen"; }, std::chrono::milliseconds(1)… in TEST_F()
84 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in TEST_F()
Drepeating_alarm_unittest.cc55 std::this_thread::sleep_for(std::chrono::milliseconds(task_length_ms)); in VerifyMultipleDelayedTasks()
57 std::chrono::milliseconds(interval_between_tasks_ms)); in VerifyMultipleDelayedTasks()
77 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(period_ms)); in TEST_F()
86 alarm_->Schedule([]() { ASSERT_TRUE(false); }, std::chrono::milliseconds(1)); in TEST_F()
88 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F()
92 alarm_->Schedule([this]() { this->alarm_->Cancel(); }, std::chrono::milliseconds(1)); in TEST_F()
93 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F()
97 alarm_->Schedule([]() { ASSERT_TRUE(false); }, std::chrono::milliseconds(1)); in TEST_F()
100 alarm_->Schedule([&promise]() { promise.set_value(); }, std::chrono::milliseconds(10)); in TEST_F()
106 alarm_->Schedule([]() { ASSERT_TRUE(false); }, std::chrono::milliseconds(1)); in TEST_F()
[all …]
Dhandler_unittest.cc49 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in TEST_F()
57 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F()
63 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F()
66 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in TEST_F()
/system/extras/libperfmgr/tests/
DFileNodeTest.cc32 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count();
114 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
116 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
122 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
132 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
135 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
141 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
147 EXPECT_NEAR(std::chrono::milliseconds(300).count(), expire_time.count(), in TEST()
153 EXPECT_EQ(std::chrono::milliseconds::max(), expire_time); in TEST()
162 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
[all …]
DPropertyNodeTest.cc33 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count();
122 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
125 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
131 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
137 EXPECT_NEAR(std::chrono::milliseconds(300).count(), expire_time.count(), in TEST()
143 EXPECT_EQ(std::chrono::milliseconds::max(), expire_time); in TEST()
152 std::chrono::milliseconds expire_time = t.Update(true); in TEST()
155 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
161 EXPECT_NEAR(std::chrono::milliseconds(200).count(), expire_time.count(), in TEST()
167 EXPECT_NEAR(std::chrono::milliseconds(500).count(), expire_time.count(), in TEST()
[all …]
DRequestGroupTest.cc29 constexpr double kTIMING_TOLERANCE_MS = std::chrono::milliseconds(25).count();
47 std::chrono::milliseconds expire_time; in TEST()
60 std::chrono::milliseconds expire_time; in TEST()
62 auto expect = std::chrono::duration_cast<std::chrono::milliseconds>( in TEST()
80 std::chrono::milliseconds expire_time; in TEST()
82 EXPECT_EQ(std::chrono::milliseconds::max(), expire_time); in TEST()
93 std::chrono::milliseconds expire_time; in TEST()
123 std::chrono::milliseconds expire_time; in TEST()
138 std::chrono::milliseconds expire_time; in TEST()
140 EXPECT_EQ(std::chrono::milliseconds::max(), expire_time); in TEST()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/setup/
Dtest_model.h35 TestModel(std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> evtScheduler,
36 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…
73 void SetTimerPeriod(std::chrono::milliseconds new_period);
87 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> schedule_task_;
88 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…
94 std::chrono::milliseconds timer_period_;
Dasync_manager.h61 AsyncTaskId ExecAsync(std::chrono::milliseconds delay, const TaskCallback& callback);
67 …AsyncTaskId ExecAsyncPeriodically(std::chrono::milliseconds delay, std::chrono::milliseconds perio…
/system/core/llkd/include/
Dllkd.h77 std::chrono::milliseconds llkCheck(bool checkRunning = false);
80 #define LLK_TIMEOUT_MS_DEFAULT std::chrono::duration_cast<milliseconds>(std::chrono::minutes(10))
81 #define LLK_TIMEOUT_MS_MINIMUM std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::…
82 #define LLK_CHECK_MS_MINIMUM std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::…
/system/extras/libperfmgr/
DRequestGroup.cc44 bool RequestGroup::GetExpireTime(std::chrono::milliseconds* expire_time) { in GetExpireTime()
46 *expire_time = std::chrono::milliseconds::max(); in GetExpireTime()
50 auto duration = std::chrono::duration_cast<std::chrono::milliseconds>( in GetExpireTime()
52 if (duration <= std::chrono::milliseconds::zero()) { in GetExpireTime()
DFileNode.cc41 std::chrono::milliseconds FileNode::Update(bool log_error) { in Update()
43 std::chrono::milliseconds expire_time = std::chrono::milliseconds::max(); in Update()
67 expire_time = std::min(expire_time, std::chrono::milliseconds(500)); in Update()
DPropertyNode.cc40 std::chrono::milliseconds PropertyNode::Update(bool) { in Update()
42 std::chrono::milliseconds expire_time = std::chrono::milliseconds::max(); in Update()
/system/core/base/include/android-base/
Dproperties.h62 std::chrono::milliseconds relative_timeout = std::chrono::milliseconds::max());
69 bool WaitForPropertyCreation(const std::string& key, std::chrono::milliseconds relative_timeout =
70 std::chrono::milliseconds::max());
/system/bt/vendor_libs/test_vendor_lib/model/devices/
Ddevice.h61 void SetAdvertisementInterval(std::chrono::milliseconds ms) { in SetAdvertisementInterval()
67 virtual bool IsAdvertisementAvailable(std::chrono::milliseconds scan_time) const;
86 std::chrono::milliseconds page_scan_delay_ms_;
90 std::chrono::milliseconds advertising_interval_ms_;
/system/netd/server/
DTcpSocketMonitor.h38 using std::chrono::milliseconds;
45 static const milliseconds kDefaultPollingInterval;
81 void setPollingInterval(milliseconds duration);
100 milliseconds mNextSleepDurationMs GUARDED_BY(mLock);
/system/bt/gd/os/
Dalarm_benchmark.cc57 …auto duration_since_start = std::chrono::duration_cast<std::chrono::milliseconds>(end_time - start… in AlarmSleepAndCountDelayedTime()
60 std::this_thread::sleep_for(std::chrono::milliseconds(task_length_)); in AlarmSleepAndCountDelayedTime()
83 auto milliseconds = static_cast<int>(state.range(0)); in BENCHMARK_DEFINE_F() local
86 alarm_->Schedule([this] { return TimerFire(); }, std::chrono::milliseconds(milliseconds)); in BENCHMARK_DEFINE_F()
112 …_->Schedule([this] { AlarmSleepAndCountDelayedTime(); }, std::chrono::milliseconds(task_interval_)… in BENCHMARK_DEFINE_F()
/system/bt/common/
Drepeating_timer_unittest.cc55 std::this_thread::sleep_for(std::chrono::milliseconds(sleep_ms)); in SleepAndIncreaseCounter()
64 auto actual_delay = std::chrono::duration_cast<std::chrono::milliseconds>( in VerifyDelayTimeAndSleep()
72 std::this_thread::sleep_for(std::chrono::milliseconds(task_length_ms)); in VerifyDelayTimeAndSleep()
163 std::this_thread::sleep_for(std::chrono::milliseconds(delay_error_ms)); in TEST_F()
179 std::this_thread::sleep_for(std::chrono::milliseconds(delay_error_ms)); in TEST_F()
190 std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms)); in TEST_F()
210 std::chrono::milliseconds(delay_ms + delay_error_ms)); in TEST_F()
213 std::chrono::milliseconds(delay_ms + delay_error_ms)); in TEST_F()
247 std::chrono::milliseconds(delay_ms + delay_error_ms)); in TEST_F()
250 std::chrono::milliseconds(delay_ms + delay_error_ms)); in TEST_F()
Donce_timer_unittest.cc55 std::this_thread::sleep_for(std::chrono::milliseconds(sleep_ms)); in SleepAndIncreaseCounter()
104 std::this_thread::sleep_for(std::chrono::milliseconds(delay_error_ms)); in TEST_F()
139 std::this_thread::sleep_for(std::chrono::milliseconds(delay_error_ms)); in TEST_F()
153 std::this_thread::sleep_for(std::chrono::milliseconds(delay_error_ms)); in TEST_F()
184 std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms - 2)); in TEST_F()
189 std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms)); in TEST_F()
200 std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms)); in TEST_F()
205 std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms)); in TEST_F()
218 std::this_thread::sleep_for(std::chrono::milliseconds(delay_ms)); in TEST_F()
/system/core/fs_mgr/include/
Dfs_mgr_dm_linear.h61 const std::chrono::milliseconds& timeout_ms, std::string* path);
67 const std::chrono::milliseconds& timeout_ms, std::string* path);
71 bool DestroyLogicalPartition(const std::string& name, const std::chrono::milliseconds& timeout_ms);
/system/bt/common/test/
Dthread_performance_test.cc133 std::chrono::milliseconds duration = in TEST_F()
134 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F()
178 std::chrono::milliseconds duration = in TEST_F()
179 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F()
224 std::chrono::milliseconds duration = in TEST_F()
225 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F()
265 std::chrono::milliseconds duration = in TEST_F()
266 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F()
314 std::chrono::milliseconds duration = in TEST_F()
315 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F()
[all …]
/system/core/fs_mgr/
Dfs_mgr_dm_linear.cpp112 bool force_writable, const std::chrono::milliseconds& timeout_ms, in CreateLogicalPartition()
130 if (timeout_ms > std::chrono::milliseconds::zero()) { in CreateLogicalPartition()
173 const std::chrono::milliseconds& timeout_ms, std::string* path) { in CreateLogicalPartition()
186 const std::chrono::milliseconds& timeout_ms, std::string* path) { in CreateLogicalPartition()
196 bool UnmapDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms) { in UnmapDevice()
199 if (timeout_ms > std::chrono::milliseconds::zero()) { in UnmapDevice()
212 bool DestroyLogicalPartition(const std::string& name, const std::chrono::milliseconds& timeout_ms) { in DestroyLogicalPartition()
/system/core/libmemunreachable/
DScopedDisableMalloc.h75 std::chrono::milliseconds timeout = std::chrono::milliseconds(2000))
101 std::chrono::milliseconds timeout_;
/system/extras/libperfmgr/include/perfmgr/
DNodeLooperThread.h37 std::chrono::milliseconds timeout_ms) in NodeAction()
43 std::chrono::milliseconds timeout_ms; // 0ms for forever
85 static constexpr auto kMaxUpdatePeriod = std::chrono::milliseconds::max();
/system/core/llkd/tests/
Dllkd_test.cpp41 milliseconds GetUintProperty(const std::string& key, milliseconds def) { in GetUintProperty()
42 return milliseconds(android::base::GetUintProperty(key, static_cast<uint64_t>(def.count()), in GetUintProperty()
83 duration_cast<milliseconds>(120s)) || in llkdSleepPeriod()
86 duration_cast<milliseconds>(10s))) { in llkdSleepPeriod()
124 milliseconds llkTimeoutMs = LLK_TIMEOUT_MS_DEFAULT; in llkdSleepPeriod()
134 milliseconds llkCheckMs = llkTimeoutMs / LLK_CHECKS_PER_TIMEOUT_DEFAULT; in llkdSleepPeriod()
199 << duration_cast<milliseconds>(sleepfor).count() << "ms work cycle\n"; in llkd_driver_ABA()
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dlink_layer_controller.h94 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> event_scheduler);
97 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…
102 void AddControllerEvent(std::chrono::milliseconds delay, const TaskCallback& task);
167 void StartInquiry(std::chrono::milliseconds timeout);
213 std::chrono::milliseconds timer_period_ = std::chrono::milliseconds(100);
216 std::function<AsyncTaskId(std::chrono::milliseconds, const TaskCallback&)> schedule_task_;
217 …std::function<AsyncTaskId(std::chrono::milliseconds, std::chrono::milliseconds, const TaskCallback…

123456