/system/bt/gd/os/linux_generic/ |
D | alarm_unittest.cc | 54 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()
|
D | repeating_alarm_unittest.cc | 55 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 …]
|
D | handler_unittest.cc | 49 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/ |
D | FileNodeTest.cc | 32 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 …]
|
D | PropertyNodeTest.cc | 33 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 …]
|
D | RequestGroupTest.cc | 29 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/ |
D | test_model.h | 35 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_;
|
D | async_manager.h | 61 AsyncTaskId ExecAsync(std::chrono::milliseconds delay, const TaskCallback& callback); 67 …AsyncTaskId ExecAsyncPeriodically(std::chrono::milliseconds delay, std::chrono::milliseconds perio…
|
/system/core/llkd/include/ |
D | llkd.h | 77 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/ |
D | RequestGroup.cc | 44 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()
|
D | FileNode.cc | 41 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()
|
D | PropertyNode.cc | 40 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/ |
D | properties.h | 62 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/ |
D | device.h | 61 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/ |
D | TcpSocketMonitor.h | 38 using std::chrono::milliseconds; 45 static const milliseconds kDefaultPollingInterval; 81 void setPollingInterval(milliseconds duration); 100 milliseconds mNextSleepDurationMs GUARDED_BY(mLock);
|
/system/bt/gd/os/ |
D | alarm_benchmark.cc | 57 …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/ |
D | repeating_timer_unittest.cc | 55 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()
|
D | once_timer_unittest.cc | 55 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/ |
D | fs_mgr_dm_linear.h | 61 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/ |
D | thread_performance_test.cc | 133 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/ |
D | fs_mgr_dm_linear.cpp | 112 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/ |
D | ScopedDisableMalloc.h | 75 std::chrono::milliseconds timeout = std::chrono::milliseconds(2000)) 101 std::chrono::milliseconds timeout_;
|
/system/extras/libperfmgr/include/perfmgr/ |
D | NodeLooperThread.h | 37 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/ |
D | llkd_test.cpp | 41 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/ |
D | link_layer_controller.h | 94 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…
|