Home
last modified time | relevance | path

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

123456

/system/chre/platform/linux/tests/
Dtask_manager_test.cc48 taskManager.addTask(incrementGVar, std::chrono::milliseconds(0)); in TEST()
49 std::this_thread::sleep_for(std::chrono::milliseconds(50)); in TEST()
60 taskManager.addTask(incrementGVar, std::chrono::milliseconds(0)); in TEST()
61 std::this_thread::sleep_for(std::chrono::milliseconds(50)); in TEST()
65 incrementGVar, std::chrono::milliseconds(millisecondsToRepeat)); in TEST()
69 std::chrono::milliseconds(millisecondsToRepeat * taskRepeatTimesMax)); in TEST()
80 taskManager.addTask(incrementGVar, std::chrono::milliseconds(0)); in TEST()
81 std::this_thread::sleep_for(std::chrono::milliseconds(50)); in TEST()
85 incrementGVar, std::chrono::milliseconds(millisecondsToRepeat)); in TEST()
89 std::chrono::milliseconds(millisecondsToRepeat * taskRepeatTimesMax)); in TEST()
Dtask_test.cc34 std::chrono::milliseconds waitTime(1000); in TEST()
46 std::chrono::duration_cast<std::chrono::milliseconds>(timeDiff).count() <= in TEST()
54 std::chrono::milliseconds waitTime(0); in TEST()
65 Task tasks[numTasks] = {Task(incrementGVar, std::chrono::milliseconds(0), 0), in TEST()
66 Task(incrementGVar, std::chrono::milliseconds(1), 1), in TEST()
67 Task(incrementGVar, std::chrono::milliseconds(2), 2), in TEST()
68 Task(incrementGVar, std::chrono::milliseconds(3), 3), in TEST()
69 Task(incrementGVar, std::chrono::milliseconds(4), 4), in TEST()
70 Task(incrementGVar, std::chrono::milliseconds(5), 5)}; in TEST()
/system/core/fs_mgr/
Dfile_wait.cpp41 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()
209 if (relative_timeout_ == std::chrono::milliseconds::max()) { in RemainingMs()
210 return std::chrono::milliseconds::max().count(); in RemainingMs()
[all …]
/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/core/fs_mgr/libdm/
Dutility.h25 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);
Dutility.cpp30 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()
Dloop_control.cpp42 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()
146 LoopDevice::LoopDevice(android::base::borrowed_fd fd, const std::chrono::milliseconds& timeout_ms, in LoopDevice()
155 LoopDevice::LoopDevice(const std::string& path, const std::chrono::milliseconds& timeout_ms) in LoopDevice()
172 void LoopDevice::Init(const std::chrono::milliseconds& timeout_ms) { in Init()
/system/core/fs_mgr/libdm/include/libdm/
Dloop_control.h40 bool Attach(int file_fd, const std::chrono::milliseconds& timeout_ms,
70 LoopDevice(android::base::borrowed_fd fd, const std::chrono::milliseconds& timeout_ms,
74 LoopDevice(const std::string& path, const std::chrono::milliseconds& timeout_ms);
86 void Init(const std::chrono::milliseconds& timeout_ms);
/system/chre/chpp/test/
Dapp_test.cpp57 std::this_thread::sleep_for(std::chrono::milliseconds(2000)); in TEST_F()
64 std::this_thread::sleep_for(std::chrono::milliseconds(300)); in TEST_F()
71 std::this_thread::sleep_for(std::chrono::milliseconds(300)); in TEST_F()
78 std::this_thread::sleep_for(std::chrono::milliseconds(300)); in TEST_F()
85 std::this_thread::sleep_for(std::chrono::milliseconds(300)); in TEST_F()
150 std::this_thread::sleep_for(std::chrono::milliseconds(100)); in TEST_F()
152 std::this_thread::sleep_for(std::chrono::milliseconds(100)); in TEST_F()
Dfake_link.h40 std::chrono::duration_cast<std::chrono::milliseconds>(
63 bool waitForTxPacket(std::chrono::milliseconds timeout = kDefaultTimeout);
/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/core/trusty/storage/proxy/
Dwatchdog.cpp42 std::chrono::milliseconds Elapsed(clock::time_point end);
82 std::chrono::milliseconds watcher::Elapsed(watcher::clock::time_point end) { in Elapsed()
83 return std::chrono::duration_cast<std::chrono::milliseconds>(end - start_); in Elapsed()
90 static constexpr std::chrono::milliseconds kDefaultTimeoutMs = std::chrono::milliseconds(500);
91 static constexpr std::chrono::milliseconds kMaxTimeoutMs = std::chrono::seconds(10);
169 std::chrono::milliseconds timeout = kDefaultTimeoutMs; in WatchdogLoop()
/system/libbase/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());
Dchrono_utils.h42 std::chrono::milliseconds duration() const { in duration()
43 return std::chrono::duration_cast<std::chrono::milliseconds>(boot_clock::now() - start_); in duration()
/system/chre/platform/linux/
Dpal_ble.cc40 std::chrono::milliseconds gScanInterval(1400);
46 gScanInterval = std::chrono::milliseconds(1400); in updateScanInterval()
49 gScanInterval = std::chrono::milliseconds(1400); in updateScanInterval()
52 gScanInterval = std::chrono::milliseconds(700); in updateScanInterval()
55 gScanInterval = std::chrono::milliseconds(100); in updateScanInterval()
Dpal_gnss.cc80 std::chrono::milliseconds(0)); in startSendingLocationEvents()
83 sendLocationEvents, std::chrono::milliseconds(minIntervalMs)); in startSendingLocationEvents()
182 std::chrono::milliseconds(0)); in chrePalControlMeasurementSession()
188 sendMeasurementEvents, std::chrono::milliseconds(minIntervalMs)); in chrePalControlMeasurementSession()
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspend.h65 std::chrono::milliseconds baseSleepTime;
66 std::chrono::milliseconds maxSleepTime;
69 std::chrono::milliseconds shortSuspendThreshold;
98 std::chrono::milliseconds getSleepTime() const;
134 std::chrono::milliseconds mSleepTime;
/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()
79 duration_cast<milliseconds>(120s)) || in llkdSleepPeriod()
82 duration_cast<milliseconds>(10s))) { in llkdSleepPeriod()
117 milliseconds llkTimeoutMs = LLK_TIMEOUT_MS_DEFAULT; in llkdSleepPeriod()
127 milliseconds llkCheckMs = llkTimeoutMs / LLK_CHECKS_PER_TIMEOUT_DEFAULT; in llkdSleepPeriod()
192 << duration_cast<milliseconds>(sleepfor).count() << "ms work cycle\n"; in llkd_driver_ABA()
/system/core/fs_mgr/include/fs_mgr/
Dfile_wait.h29 bool WaitForFile(const std::string& path, const std::chrono::milliseconds relative_timeout);
34 bool WaitForFileDeleted(const std::string& path, const std::chrono::milliseconds relative_timeout);
/system/core/fs_mgr/libfiemap/include/libfiemap/
Dimage_manager.h50 const std::chrono::milliseconds& timeout_ms,
81 const std::chrono::milliseconds& timeout_ms, std::string* path) = 0;
153 bool MapImageDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms,
186 bool MapWithLoopDevice(const std::string& name, const std::chrono::milliseconds& timeout_ms,
189 const std::chrono::milliseconds& timeout_ms, std::string* path);
191 const std::chrono::milliseconds& timeout_ms, std::string* path);
211 const std::chrono::milliseconds& timeout_ms,
/system/chre/platform/linux/include/chre/platform/linux/task_util/
Dtask_manager.h65 std::chrono::milliseconds repeatInterval = std::chrono::milliseconds(0));
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/
Dtime_impl.h46 constexpr Milliseconds::Milliseconds(uint64_t milliseconds) in Milliseconds() argument
47 : mMilliseconds(milliseconds) {} in Milliseconds()
111 constexpr Nanoseconds::Nanoseconds(Milliseconds milliseconds) in Nanoseconds() argument
112 : mNanoseconds(milliseconds.toRawNanoseconds()) {} in Nanoseconds()
/system/chre/util/include/chre/util/
Dtime_impl.h46 constexpr Milliseconds::Milliseconds(uint64_t milliseconds) in Milliseconds() argument
47 : mMilliseconds(milliseconds) {} in Milliseconds()
111 constexpr Nanoseconds::Nanoseconds(Milliseconds milliseconds) in Nanoseconds() argument
112 : mNanoseconds(milliseconds.toRawNanoseconds()) {} in Nanoseconds()
/system/libbase/
Dproperties.cpp155 static void DurationToTimeSpec(timespec& ts, const std::chrono::milliseconds d) { in DurationToTimeSpec()
164 static void UpdateTimeSpec(timespec& ts, std::chrono::milliseconds relative_timeout, in UpdateTimeSpec()
167 auto time_elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start_time); in UpdateTimeSpec()
181 const std::chrono::milliseconds& relative_timeout, in WaitForPropertyCreation()
197 std::chrono::milliseconds relative_timeout) { in WaitForProperty()
219 std::chrono::milliseconds relative_timeout) { in WaitForPropertyCreation()
/system/memory/libmemunreachable/
DScopedDisableMalloc.h74 explicit ScopedDisableMallocTimeout(std::chrono::milliseconds timeout = std::chrono::seconds(10))
100 std::chrono::milliseconds timeout_;

123456