/system/chre/platform/linux/tests/ |
D | task_manager_test.cc | 48 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()
|
D | task_test.cc | 34 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/ |
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/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/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() 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()
|
D | fake_link.h | 40 std::chrono::duration_cast<std::chrono::milliseconds>( 63 bool waitForTxPacket(std::chrono::milliseconds timeout = kDefaultTimeout);
|
/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/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());
|
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/platform/linux/ |
D | pal_ble.cc | 40 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()
|
D | pal_gnss.cc | 80 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/ |
D | SystemSuspend.h | 65 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/ |
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/chre/platform/linux/include/chre/platform/linux/task_util/ |
D | task_manager.h | 65 std::chrono::milliseconds repeatInterval = std::chrono::milliseconds(0));
|
/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()
|
/system/memory/libmemunreachable/ |
D | ScopedDisableMalloc.h | 74 explicit ScopedDisableMallocTimeout(std::chrono::milliseconds timeout = std::chrono::seconds(10)) 100 std::chrono::milliseconds timeout_;
|