/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() 209 if (relative_timeout_ == std::chrono::milliseconds::max()) { in RemainingMs() 210 return std::chrono::milliseconds::max().count(); in RemainingMs() [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() 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/libbase/include/android-base/ |
D | properties.h | 63 std::chrono::milliseconds relative_timeout = std::chrono::milliseconds::max()); 70 bool WaitForPropertyCreation(const std::string& key, std::chrono::milliseconds relative_timeout = 71 std::chrono::milliseconds::max()); 99 std::chrono::milliseconds relative_timeout = std::chrono::milliseconds::max());
|
D | chrono_utils.h | 42 std::chrono::milliseconds duration() const { in duration() 43 return std::chrono::duration_cast<std::chrono::milliseconds>(boot_clock::now() - start_); in duration()
|
/system/chre/chpp/test/ |
D | app_test.cpp | 57 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() 154 std::this_thread::sleep_for(std::chrono::milliseconds(100)); in TEST_F() 156 std::this_thread::sleep_for(std::chrono::milliseconds(100)); in TEST_F()
|
D | fake_link.h | 40 std::chrono::duration_cast<std::chrono::milliseconds>( 63 bool waitForTxPacket(std::chrono::milliseconds timeout = kDefaultTimeout);
|
/system/core/fs_mgr/libdm/include/libdm/ |
D | loop_control.h | 40 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/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/core/trusty/storage/proxy/ |
D | watchdog.cpp | 42 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/hardware/interfaces/suspend/1.0/default/ |
D | SystemSuspend.h | 65 std::chrono::milliseconds baseSleepTime; 66 std::chrono::milliseconds maxSleepTime; 69 std::chrono::milliseconds shortSuspendThreshold; 98 std::chrono::milliseconds getSleepTime() const; 135 std::chrono::milliseconds mSleepTime;
|
/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() 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/ |
D | file_wait.h | 29 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/ |
D | image_manager.h | 50 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/core/fs_mgr/libsnapshot/snapuserd/include/snapuserd/ |
D | snapuserd_client.h | 46 void WaitForServiceToTerminate(std::chrono::milliseconds timeout_ms); 55 std::chrono::milliseconds timeout_ms); 59 std::chrono::milliseconds timeout_ms);
|
/system/chre/platform/linux/ |
D | pal_ble.cc | 46 std::chrono::nanoseconds gScanInterval = std::chrono::milliseconds(1400); 53 gScanInterval = std::chrono::milliseconds(1400); in updateScanInterval() 56 gScanInterval = std::chrono::milliseconds(1400); in updateScanInterval() 59 gScanInterval = std::chrono::milliseconds(700); in updateScanInterval() 62 gScanInterval = std::chrono::milliseconds(100); in updateScanInterval() 124 std::chrono::milliseconds(gReportDelayMs.value()))); in startScan()
|
/system/chre/apps/nearby/third_party/contexthub/chre/util/include/chre/util/ |
D | time_impl.h | 46 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/ |
D | time_impl.h | 46 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/ |
D | properties.cpp | 155 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() 283 const char* CachedProperty::WaitForChange(std::chrono::milliseconds relative_timeout) { in WaitForChange()
|
D | properties_test.cpp | 185 ASSERT_GE(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 200ms); in TEST() 187 ASSERT_LT(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 600ms); in TEST() 255 ASSERT_GE(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 200ms); in TEST() 257 ASSERT_LT(std::chrono::duration_cast<std::chrono::milliseconds>(t1 - t0), 600ms); in TEST() 288 void SetAfter(const std::string& key, const std::string& value, std::chrono::milliseconds delay) { in SetAfter() 298 std::chrono::system_clock::now().time_since_epoch() / std::chrono::milliseconds(1); in TEST() 328 std::chrono::system_clock::now().time_since_epoch() / std::chrono::milliseconds(1); in TEST()
|
/system/memory/libmemunreachable/ |
D | ScopedDisableMalloc.h | 74 explicit ScopedDisableMallocTimeout(std::chrono::milliseconds timeout = std::chrono::seconds(10)) 100 std::chrono::milliseconds timeout_;
|
/system/core/fs_mgr/libsnapshot/snapuserd/ |
D | snapuserd_client.cpp | 68 std::chrono::milliseconds timeout_ms) { in TryConnect() 88 const auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start); in TryConnect() 102 std::chrono::milliseconds timeout_ms) { in Connect() 115 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start); in Connect() 131 void SnapuserdClient::WaitForServiceToTerminate(std::chrono::milliseconds timeout_ms) { in WaitForServiceToTerminate() 135 auto elapsed = std::chrono::duration_cast<std::chrono::milliseconds>(now - start); in WaitForServiceToTerminate()
|
/system/core/fs_mgr/libsnapshot/include/libsnapshot/ |
D | snapshot.h | 236 const std::string& super_device, const std::chrono::milliseconds& timeout_ms = {}) = 0; 241 virtual bool MapAllSnapshots(const std::chrono::milliseconds& timeout_ms = {}) = 0; 371 const std::chrono::milliseconds& timeout_ms = {}) override; 380 bool MapAllSnapshots(const std::chrono::milliseconds& timeout_ms = {}) override; 457 bool EnsureSnapuserdConnected(std::chrono::milliseconds timeout_ms = 10s); 515 const std::string& cow_device, const std::chrono::milliseconds& timeout_ms, 521 const std::chrono::milliseconds& timeout_ms, std::string* path); 525 const std::chrono::milliseconds& timeout_ms, std::string* path); 529 const std::chrono::milliseconds& timeout_ms); 677 const std::chrono::milliseconds& timeout_ms); [all …]
|