/system/bt/gd/os/linux_generic/ |
D | alarm_unittest.cc | 62 …std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(delay_ms)); in TEST_F() 65 auto duration_ms = std::chrono::duration_cast<std::chrono::milliseconds>(after - before); in TEST_F() 70 …edule(BindOnce([]() { ASSERT_TRUE(false) << "Should not happen"; }), std::chrono::milliseconds(3)); in TEST_F() 72 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F() 76 …alarm_->Schedule(BindOnce(&Alarm::Cancel, common::Unretained(alarm_)), std::chrono::milliseconds(1… in TEST_F() 77 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F() 81 …edule(BindOnce([]() { ASSERT_TRUE(false) << "Should not happen"; }), std::chrono::milliseconds(1)); in TEST_F() 85 …Once(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(10)); in TEST_F() 90 …edule(BindOnce([]() { ASSERT_TRUE(false) << "Should not happen"; }), std::chrono::milliseconds(1)); in TEST_F() 93 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in TEST_F()
|
D | repeating_alarm_unittest.cc | 60 std::chrono::milliseconds(interval_between_tasks_ms)); in VerifyMultipleDelayedTasks() 79 std::this_thread::sleep_for(std::chrono::milliseconds(task_length_ms)); in verify_delayed_tasks() 101 …td::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(period_ms)); in TEST_F() 110 alarm_->Schedule(should_not_happen_, std::chrono::milliseconds(10)); in TEST_F() 112 std::this_thread::sleep_for(std::chrono::milliseconds(50)); in TEST_F() 117 …on::Bind(&RepeatingAlarm::Cancel, common::Unretained(this->alarm_)), std::chrono::milliseconds(1)); in TEST_F() 118 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F() 122 alarm_->Schedule(should_not_happen_, std::chrono::milliseconds(1)); in TEST_F() 126 …Bind(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(10)); in TEST_F() 132 alarm_->Schedule(should_not_happen_, std::chrono::milliseconds(1)); in TEST_F() [all …]
|
/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 | 37 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, 40 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, 41 std::chrono::milliseconds, const TaskCallback&)> 89 void SetTimerPeriod(std::chrono::milliseconds new_period); 104 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, 107 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, 108 std::chrono::milliseconds, const TaskCallback&)> 116 std::chrono::milliseconds timer_period_{};
|
D | async_manager.h | 66 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay, 74 std::chrono::milliseconds delay, 75 std::chrono::milliseconds period,
|
/system/core/fs_mgr/ |
D | file_wait.cpp | 41 bool PollForFile(const std::string& path, const std::chrono::milliseconds relative_timeout) { in PollForFile() 50 auto time_elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time); in PollForFile() 55 bool PollForFileDeleted(const std::string& path, const std::chrono::milliseconds relative_timeout) { in PollForFileDeleted() 64 auto time_elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time); in PollForFileDeleted() 73 const std::chrono::milliseconds relative_timeout); 89 std::chrono::milliseconds relative_timeout_; 94 const std::chrono::milliseconds relative_timeout) in OneShotInotify() 133 std::chrono::milliseconds timeout(RemainingMs()); in Wait() 210 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(remaining); in RemainingMs() 215 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout) { in WaitForFile() [all …]
|
/system/bt/gd/hci/ |
D | le_address_manager.h | 60 std::chrono::milliseconds minimum_rotation_time, 61 std::chrono::milliseconds maximum_rotation_time); 67 std::chrono::milliseconds minimum_rotation_time, 68 std::chrono::milliseconds maximum_rotation_time); 102 std::chrono::milliseconds get_next_private_address_interval_ms(); 136 std::chrono::milliseconds minimum_rotation_time_; 137 std::chrono::milliseconds maximum_rotation_time_;
|
D | acl_manager.h | 71 std::chrono::milliseconds minimum_rotation_time, 72 std::chrono::milliseconds maximum_rotation_time); 79 std::chrono::milliseconds minimum_rotation_time, 80 std::chrono::milliseconds maximum_rotation_time);
|
/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/core/fs_mgr/libdm/ |
D | utility.h | 25 bool WaitForFile(const std::string& path, const std::chrono::milliseconds& timeout_ms); 26 bool WaitForFileDeleted(const std::string& path, const std::chrono::milliseconds& timeout_ms); 28 const std::chrono::milliseconds& timeout_ms);
|
D | utility.cpp | 30 const std::chrono::milliseconds& timeout_ms) { in WaitForCondition() 40 auto time_elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time); in WaitForCondition() 45 bool WaitForFile(const std::string& path, const std::chrono::milliseconds& timeout_ms) { in WaitForFile() 61 bool WaitForFileDeleted(const std::string& path, const std::chrono::milliseconds& timeout_ms) { in WaitForFileDeleted()
|
D | loop_control.cpp | 42 bool LoopControl::Attach(int file_fd, const std::chrono::milliseconds& timeout_ms, in Attach() 52 auto time_elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time); in Attach() 136 LoopDevice::LoopDevice(android::base::borrowed_fd fd, const std::chrono::milliseconds& timeout_ms, in LoopDevice() 145 LoopDevice::LoopDevice(const std::string& path, const std::chrono::milliseconds& timeout_ms) in LoopDevice() 162 void LoopDevice::Init(const std::chrono::milliseconds& timeout_ms) { in Init()
|
/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()
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | loop_control.h | 40 bool Attach(int file_fd, const std::chrono::milliseconds& timeout_ms, 67 LoopDevice(android::base::borrowed_fd fd, const std::chrono::milliseconds& timeout_ms, 71 LoopDevice(const std::string& path, const std::chrono::milliseconds& timeout_ms); 83 void Init(const std::chrono::milliseconds& timeout_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/libbase/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/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/bt/gd/os/ |
D | alarm_benchmark.cc | 61 …auto duration_since_start = std::chrono::duration_cast<std::chrono::milliseconds>(end_time - start… in AlarmSleepAndCountDelayedTime() 64 std::this_thread::sleep_for(std::chrono::milliseconds(task_length_)); in AlarmSleepAndCountDelayedTime() 88 auto milliseconds = static_cast<int>(state.range(0)); in BENCHMARK_DEFINE_F() local 93 std::chrono::milliseconds(milliseconds)); in BENCHMARK_DEFINE_F() 123 std::chrono::milliseconds(task_interval_)); in BENCHMARK_DEFINE_F()
|
/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() 315 std::chrono::milliseconds duration = in TEST_F() 316 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() [all …]
|
/system/core/fs_mgr/include/fs_mgr/ |
D | file_wait.h | 26 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout); 31 bool WaitForFileDeleted(const std::string& path, const std::chrono::milliseconds relative_timeout);
|
/system/core/fs_mgr/libfiemap/include/libfiemap/ |
D | image_manager.h | 44 const std::chrono::milliseconds& timeout_ms); 74 const std::chrono::milliseconds& timeout_ms, std::string* path) = 0; 144 bool MapImageDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms, 172 bool MapWithLoopDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms, 175 const std::chrono::milliseconds& timeout_ms, std::string* path); 177 const std::chrono::milliseconds& timeout_ms, std::string* path); 194 const std::chrono::milliseconds& timeout_ms,
|
/system/bt/gd/l2cap/internal/ |
D | parameter_provider_mock.h | 30 MOCK_METHOD(std::chrono::milliseconds, GetClassicLinkIdleDisconnectTimeout, (), (override)); 31 MOCK_METHOD(std::chrono::milliseconds, GetLeLinkIdleDisconnectTimeout, (), (override));
|