/packages/modules/Bluetooth/system/common/ |
D | repeating_timer_unittest.cc | 56 std::this_thread::sleep_for(std::chrono::milliseconds(sleep_ms)); in SleepAndIncreaseCounter() 65 auto actual_delay = std::chrono::duration_cast<std::chrono::milliseconds>( in VerifyDelayTimeAndSleep() 73 std::this_thread::sleep_for(std::chrono::milliseconds(task_length_ms)); in VerifyDelayTimeAndSleep() 90 std::chrono::milliseconds(interval_between_tasks_ms)); in VerifyMultipleDelayedTasks() 147 std::chrono::milliseconds(delay_ms)); in TEST_F() 163 std::chrono::milliseconds(interval_ms))); in TEST_F() 164 std::this_thread::sleep_for(std::chrono::milliseconds(delay_error_ms)); in TEST_F() 177 std::chrono::milliseconds(delay_ms)); in TEST_F() 180 std::this_thread::sleep_for(std::chrono::milliseconds(delay_error_ms)); in TEST_F() 190 std::chrono::milliseconds(delay_ms)); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/os/linux_generic/ |
D | alarm_unittest.cc | 74 …std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(delay_ms)); in TEST_F() 81 …edule(BindOnce([]() { ASSERT_TRUE(false) << "Should not happen"; }), std::chrono::milliseconds(3)); in TEST_F() 83 std::this_thread::sleep_for(std::chrono::milliseconds(5)); in TEST_F() 98 std::chrono::milliseconds(1)); in TEST_F() 105 …edule(BindOnce([]() { ASSERT_TRUE(false) << "Should not happen"; }), std::chrono::milliseconds(1)); in TEST_F() 109 …Once(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(10)); in TEST_F() 115 …edule(BindOnce([]() { ASSERT_TRUE(false) << "Should not happen"; }), std::chrono::milliseconds(1)); in TEST_F() 117 std::this_thread::sleep_for(std::chrono::milliseconds(10)); in TEST_F() 148 std::chrono::milliseconds(10)); in TEST_F() 153 std::chrono::milliseconds(1)); in TEST_F() [all …]
|
D | repeating_alarm_unittest.cc | 64 std::chrono::milliseconds(interval_between_tasks_ms)); in VerifyMultipleDelayedTasks() 105 …td::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(period_ms)); in TEST_F() 113 alarm_->Schedule(should_not_happen_, std::chrono::milliseconds(10)); in TEST_F() 129 std::chrono::milliseconds(1)); in TEST_F() 135 alarm_->Schedule(should_not_happen_, std::chrono::milliseconds(1)); in TEST_F() 139 …Bind(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseconds(10)); in TEST_F() 146 alarm_->Schedule(should_not_happen_, std::chrono::milliseconds(1)); in TEST_F()
|
D | queue_unittest.cc | 98 std::this_thread::sleep_for(std::chrono::milliseconds(delay_)); in EnqueueCallbackForTest() 164 std::this_thread::sleep_for(std::chrono::milliseconds(delay_)); in DequeueCallbackForTest() 232 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in TEST_F() 245 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in TEST_F() 280 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in TEST_F() 412 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in TEST_F() 454 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in TEST_F() 549 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in TEST_F() 628 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in TEST_F() 668 std::this_thread::sleep_for(std::chrono::milliseconds(20)); in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/hci/ |
D | le_address_manager.h | 31 constexpr std::chrono::milliseconds kUnregisterSyncTimeoutInMs = std::chrono::milliseconds(10); 65 std::chrono::milliseconds minimum_rotation_time, 66 std::chrono::milliseconds maximum_rotation_time); 72 std::chrono::milliseconds minimum_rotation_time, 73 std::chrono::milliseconds maximum_rotation_time); 82 std::chrono::milliseconds timeout = kUnregisterSyncTimeoutInMs); 100 std::chrono::milliseconds GetNextPrivateAddressIntervalMs(); 109 std::chrono::milliseconds minimum_rotation_time_; 110 std::chrono::milliseconds maximum_rotation_time_; 133 std::chrono::milliseconds minimum_rotation_time; [all …]
|
D | acl_manager_unittest.cc | 59 constexpr auto kMinimumRotationTime = std::chrono::milliseconds(7 * 60 * 1000); 60 constexpr auto kMaximumRotationTime = std::chrono::milliseconds(15 * 60 * 1000); 174 fake_registry_.SynchronizeModuleHandler(&AclManager::Factory, std::chrono::milliseconds(20)); in TearDown() 251 fake_registry_.SynchronizeModuleHandler(&HciLayer::Factory, std::chrono::milliseconds(20)); in TearDown() 252 fake_registry_.SynchronizeModuleHandler(&AclManager::Factory, std::chrono::milliseconds(20)); in TearDown() 253 fake_registry_.SynchronizeModuleHandler(&HciLayer::Factory, std::chrono::milliseconds(20)); in TearDown() 332 fake_registry_.SynchronizeModuleHandler(&HciLayer::Factory, std::chrono::milliseconds(20)); in TearDown() 333 fake_registry_.SynchronizeModuleHandler(&AclManager::Factory, std::chrono::milliseconds(20)); in TearDown() 450 fake_registry_.SynchronizeModuleHandler(&HciLayer::Factory, std::chrono::milliseconds(20)); in TearDown() 451 fake_registry_.SynchronizeModuleHandler(&AclManager::Factory, std::chrono::milliseconds(20)); in TearDown() [all …]
|
D | acl_manager.h | 100 std::chrono::milliseconds minimum_rotation_time, 101 std::chrono::milliseconds maximum_rotation_time); 108 std::chrono::milliseconds minimum_rotation_time, 109 std::chrono::milliseconds maximum_rotation_time);
|
D | le_address_manager_test.cc | 63 auto result = resume_future.wait_for(std::chrono::milliseconds(1000)); in WaitForResume() 135 auto minimum_rotation_time = std::chrono::milliseconds(1000); in TEST_F() 136 auto maximum_rotation_time = std::chrono::milliseconds(3000); in TEST_F() 157 auto minimum_rotation_time = std::chrono::milliseconds(1000); in TEST_F() 158 auto maximum_rotation_time = std::chrono::milliseconds(3000); in TEST_F() 181 auto minimum_rotation_time = std::chrono::milliseconds(1000); in TEST_F() 182 auto maximum_rotation_time = std::chrono::milliseconds(3000); in TEST_F() 219 auto minimum_rotation_time = std::chrono::milliseconds(1000); in SetUp() 220 auto maximum_rotation_time = std::chrono::milliseconds(3000); in SetUp()
|
/packages/modules/Bluetooth/tools/rootcanal/model/setup/ |
D | test_model.h | 44 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, 47 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, 48 std::chrono::milliseconds, const TaskCallback&)> 108 void SetTimerPeriod(std::chrono::milliseconds new_period); 132 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, 135 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, 136 std::chrono::milliseconds, const TaskCallback&)> 145 std::chrono::milliseconds timer_period_{};
|
D | test_model.cc | 37 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, in TestModel() argument 41 std::function<AsyncTaskId(AsyncUserId, std::chrono::milliseconds, in TestModel() 42 std::chrono::milliseconds, const TaskCallback&)> in TestModel() 64 void TestModel::SetTimerPeriod(std::chrono::milliseconds new_period) { in SetTimerPeriod() 79 schedule_periodic_task_(model_user_id_, std::chrono::milliseconds(0), in StartTimer() 191 schedule_task_(user_id, std::chrono::milliseconds(0), in AddLinkLayerConnection() 221 schedule_task_(user_id, std::chrono::milliseconds(0), in AddHciConnection() 284 schedule_task_(model_user_id_, std::chrono::milliseconds(0), [this]() { in Reset()
|
D | async_manager.cc | 293 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay, in ExecAsync() 300 std::chrono::milliseconds delay, in ExecAsyncPeriodically() 301 std::chrono::milliseconds period, in ExecAsyncPeriodically() 363 std::chrono::milliseconds period, const TaskCallback& callback, in Task() 391 std::chrono::milliseconds period{}; 571 std::chrono::milliseconds delay, in ExecAsync() 577 AsyncUserId user_id, std::chrono::milliseconds delay, in ExecAsyncPeriodically() 578 std::chrono::milliseconds period, const TaskCallback& callback) { in ExecAsyncPeriodically()
|
D | async_manager.h | 84 AsyncTaskId ExecAsync(AsyncUserId user_id, std::chrono::milliseconds delay, 92 std::chrono::milliseconds delay, 93 std::chrono::milliseconds period,
|
/packages/modules/Bluetooth/system/gd/hal/ |
D | hci_hal_android_test.cc | 33 static std::chrono::milliseconds initialization_delay; 43 [callbacks](std::chrono::milliseconds delay) { in initialize() 66 std::chrono::milliseconds TestBackend::initialization_delay = std::chrono::milliseconds(0); 103 TestBackend::initialization_delay = std::chrono::milliseconds(100); in TEST_F() 109 TestBackend::initialization_delay = std::chrono::milliseconds(0); in TEST_F()
|
D | hci_hal_fake.h | 64 std::chrono::milliseconds timeout = std::chrono::seconds(1)); 67 std::chrono::milliseconds timeout = std::chrono::seconds(1)); 70 std::chrono::milliseconds timeout = std::chrono::seconds(1)); 73 std::chrono::milliseconds timeout = std::chrono::seconds(1));
|
D | hci_hal_fake.cc | 43 std::optional<hci::CommandView> TestHciHal::GetSentCommand(std::chrono::milliseconds timeout) { in GetSentCommand() 53 std::optional<hci::AclView> TestHciHal::GetSentAcl(std::chrono::milliseconds timeout) { in GetSentAcl() 63 std::optional<hci::ScoView> TestHciHal::GetSentSco(std::chrono::milliseconds timeout) { in GetSentSco() 73 std::optional<hci::IsoView> TestHciHal::GetSentIso(std::chrono::milliseconds timeout) { in GetSentIso()
|
/packages/modules/Bluetooth/system/common/test/ |
D | thread_performance_test.cc | 135 std::chrono::milliseconds duration = in TEST_F() 136 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() 180 std::chrono::milliseconds duration = in TEST_F() 181 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() 226 std::chrono::milliseconds duration = in TEST_F() 227 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() 267 std::chrono::milliseconds duration = in TEST_F() 268 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() 317 std::chrono::milliseconds duration = in TEST_F() 318 std::chrono::duration_cast<std::chrono::milliseconds>(end_time - in TEST_F() [all …]
|
/packages/modules/Bluetooth/system/gd/ |
D | stack_manager.cc | 50 auto init_status = future.wait_for(std::chrono::milliseconds( in StartUp() 77 auto stop_status = future.wait_for(std::chrono::milliseconds( in ShutDown() 89 handler_->WaitUntilStopped(std::chrono::milliseconds(2000)); in ShutDown() 99 std::chrono::milliseconds StackManager::get_gd_stack_timeout_ms(bool is_start) { in get_gd_stack_timeout_ms() 103 return std::chrono::milliseconds( in get_gd_stack_timeout_ms()
|
/packages/modules/StatsD/lib/libstatspull/tests/ |
D | stats_subscription_test.cpp | 155 sleep_for(std::chrono::milliseconds(WAIT_MS)); in TEST_F() 160 sleep_for(std::chrono::milliseconds(WAIT_MS)); in TEST_F() 171 sleep_for(std::chrono::milliseconds(WAIT_MS)); in TEST_F() 226 sleep_for(std::chrono::milliseconds(WAIT_MS)); in TEST_F() 231 sleep_for(std::chrono::milliseconds(WAIT_MS)); in TEST_F() 253 sleep_for(std::chrono::milliseconds(WAIT_MS)); in TEST_F() 259 sleep_for(std::chrono::milliseconds(70'000)); in TEST_F() 280 sleep_for(std::chrono::milliseconds(WAIT_MS)); in TEST_F() 285 sleep_for(std::chrono::milliseconds(WAIT_MS)); in TEST_F()
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | WatchdogPerfService.h | 76 std::chrono::time_point<std::chrono::system_clock, std::chrono::milliseconds>; 85 std::chrono::milliseconds mBoottimeIntervalMillis = std::chrono::milliseconds(0); 86 std::chrono::milliseconds mPeriodicIntervalMillis = std::chrono::milliseconds(0); 87 std::chrono::milliseconds mUserSwitchIntervalMillis = std::chrono::milliseconds(0); 88 std::chrono::milliseconds mWakeUpIntervalMillis = std::chrono::milliseconds(0); 89 std::chrono::milliseconds mCustomIntervalMillis = std::chrono::milliseconds(0);
|
/packages/modules/Bluetooth/system/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()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/ |
D | Settings.java | 306 final int milliseconds = prefs.getInt( in readKeyLongpressTimeout() local 308 return (milliseconds != UNDEFINED_PREFERENCE_VALUE_INT) ? milliseconds in readKeyLongpressTimeout() 318 final int milliseconds = prefs.getInt( in readKeypressVibrationDuration() local 320 return (milliseconds != UNDEFINED_PREFERENCE_VALUE_INT) ? milliseconds in readKeypressVibrationDuration() 341 final int milliseconds = prefs.getInt(prefKey, UNDEFINED_PREFERENCE_VALUE_INT); in readKeyPreviewAnimationDuration() local 342 return (milliseconds != UNDEFINED_PREFERENCE_VALUE_INT) ? milliseconds : defaultValue; in readKeyPreviewAnimationDuration()
|
/packages/modules/adb/fdevent/ |
D | fdevent.h | 63 std::optional<std::chrono::milliseconds> timeout; 96 void SetTimeout(fdevent* fde, std::optional<std::chrono::milliseconds> timeout); 99 std::optional<std::chrono::milliseconds> CalculatePollDuration(); 150 void fdevent_set_timeout(fdevent* fde, std::optional<std::chrono::milliseconds> timeout);
|
D | fdevent.cpp | 120 void fdevent_context::SetTimeout(fdevent* fde, std::optional<std::chrono::milliseconds> timeout) { in SetTimeout() 127 std::optional<std::chrono::milliseconds> fdevent_context::CalculatePollDuration() { in CalculatePollDuration() 128 std::optional<std::chrono::milliseconds> result = std::nullopt; in CalculatePollDuration() 138 auto time_left = duration_cast<std::chrono::milliseconds>(deadline - now); in CalculatePollDuration() 250 void fdevent_set_timeout(fdevent* fde, std::optional<std::chrono::milliseconds> timeout) { in fdevent_set_timeout()
|
/packages/services/Car/cpp/computepipe/runner/graph/ |
D | GrpcGraph.cpp | 96 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in initialize() 142 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in handleConfigPhase() 197 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in handleExecutionPhase() 236 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in handleStopWithFlushPhase() 279 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in handleStopImmediatePhase() 320 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in handleResetPhase() 361 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in StartGraphProfiling() 385 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in StopGraphProfiling() 408 std::chrono::milliseconds(kRpcDeadlineMilliseconds)); in GetDebugInfo()
|
/packages/modules/Bluetooth/system/gd/storage/ |
D | storage_module_test.cc | 49 static const std::chrono::milliseconds kTestConfigSaveDelay = std::chrono::milliseconds(100); 56 std::chrono::milliseconds config_save_delay, in TestStorageModule() 126 void FakeTimerAdvance(std::chrono::milliseconds time) { in FakeTimerAdvance() 131 bool WaitForReactorIdle(std::chrono::milliseconds time) { in WaitForReactorIdle() 311 ASSERT_TRUE(WaitForReactorIdle(std::chrono::milliseconds(1))); in TEST_F()
|