/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/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 | test_model.cc | 48 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, in TestModel() argument 52 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, in TestModel() 53 std::chrono::milliseconds, const TaskCallback&)> in TestModel() 77 void TestModel::SetTimerPeriod(std::chrono::milliseconds new_period) { in SetTimerPeriod() 90 model_user_id_, std::chrono::milliseconds(0), timer_period_, in StartTimer() 110 schedule_task_(model_user_id_, std::chrono::milliseconds(0), in Del() 129 model_user_id_, std::chrono::milliseconds(0), in DelPhy() 159 schedule_task_(model_user_id_, std::chrono::milliseconds(0), in DelDeviceFromPhy() 204 dev->RegisterTaskScheduler([user_id, this](std::chrono::milliseconds delay, in IncomingHciConnection() 210 schedule_task_(user_id, std::chrono::milliseconds(0), in IncomingHciConnection() [all …]
|
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/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/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); 90 std::chrono::milliseconds GetNextPrivateAddressIntervalMs(); 140 std::chrono::milliseconds minimum_rotation_time_; 141 std::chrono::milliseconds maximum_rotation_time_;
|
/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/chre/chpp/test/ |
D | app_test.cpp | 54 std::this_thread::sleep_for(std::chrono::milliseconds(2000)); in TEST_F() 61 std::this_thread::sleep_for(std::chrono::milliseconds(300)); in TEST_F() 68 std::this_thread::sleep_for(std::chrono::milliseconds(300)); in TEST_F() 75 std::this_thread::sleep_for(std::chrono::milliseconds(300)); in TEST_F() 82 std::this_thread::sleep_for(std::chrono::milliseconds(300)); in TEST_F() 146 std::this_thread::sleep_for(std::chrono::milliseconds(100)); in TEST_F() 148 std::this_thread::sleep_for(std::chrono::milliseconds(100)); in TEST_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/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/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 | 134 std::chrono::milliseconds duration = in TEST_F() 135 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() 179 std::chrono::milliseconds duration = in TEST_F() 180 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() 225 std::chrono::milliseconds duration = in TEST_F() 226 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() 266 std::chrono::milliseconds duration = in TEST_F() 267 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() 316 std::chrono::milliseconds duration = in TEST_F() 317 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/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));
|
D | parameter_provider.h | 33 virtual std::chrono::milliseconds GetClassicLinkIdleDisconnectTimeout() { in GetClassicLinkIdleDisconnectTimeout() 36 virtual std::chrono::milliseconds GetLeLinkIdleDisconnectTimeout() { in GetLeLinkIdleDisconnectTimeout()
|
/system/hardware/interfaces/suspend/1.0/default/ |
D | SystemSuspend.h | 68 std::chrono::milliseconds baseSleepTime; 69 std::chrono::milliseconds maxSleepTime; 72 std::chrono::milliseconds shortSuspendThreshold; 116 std::chrono::milliseconds getSleepTime() const; 136 std::chrono::milliseconds mSleepTime;
|
/system/bt/gd/security/test/ |
D | fake_storage_module.h | 26 static const std::chrono::milliseconds kTestConfigSaveDelay = std::chrono::milliseconds(100);
|
/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() 125 milliseconds llkTimeoutMs = LLK_TIMEOUT_MS_DEFAULT; in llkdSleepPeriod() 135 milliseconds llkCheckMs = llkTimeoutMs / LLK_CHECKS_PER_TIMEOUT_DEFAULT; in llkdSleepPeriod() 200 << duration_cast<milliseconds>(sleepfor).count() << "ms work cycle\n"; in llkd_driver_ABA()
|