Home
last modified time | relevance | path

Searched refs:waitTime (Results 1 – 5 of 5) sorted by relevance

/system/chre/platform/linux/tests/
Dtask_test.cc34 std::chrono::milliseconds waitTime(1000); in TEST() local
35 Task task(incrementGVar, waitTime, 0); in TEST()
37 std::this_thread::sleep_for(waitTime); in TEST()
47 waitTime.count()); in TEST()
54 std::chrono::milliseconds waitTime(0); in TEST() local
55 Task task(incrementGVar, waitTime, 0); in TEST()
/system/libfmq/
DEventFlag.cpp224 void EventFlag::addNanosecondsToCurrentTime(int64_t nanoSeconds, struct timespec* waitTime) { in addNanosecondsToCurrentTime() argument
227 clock_gettime(CLOCK_MONOTONIC, waitTime); in addNanosecondsToCurrentTime()
228 waitTime->tv_sec += nanoSeconds / kNanosPerSecond; in addNanosecondsToCurrentTime()
229 waitTime->tv_nsec += nanoSeconds % kNanosPerSecond; in addNanosecondsToCurrentTime()
231 if (waitTime->tv_nsec >= kNanosPerSecond) { in addNanosecondsToCurrentTime()
232 waitTime->tv_sec++; in addNanosecondsToCurrentTime()
233 waitTime->tv_nsec -= kNanosPerSecond; in addNanosecondsToCurrentTime()
/system/chre/platform/linux/task_util/
Dtask_manager.cc116 auto waitTime = in run() local
118 if (waitTime.count() > 0) { in run()
119 mConditionVariable.wait_for(lock, waitTime); in run()
/system/extras/tests/workloads/
Dsystemapps.sh29 waitTime=3.0
41 (-W) waitTime=$2; shift; ret=1;;
182 sleep $waitTime
/system/libfmq/tests/
Dfmq_unit_tests.cpp624 struct timespec waitTime = {0, 100 * 1000000}; in TYPED_TEST() local
625 ASSERT_EQ(0, nanosleep(&waitTime, NULL)); in TYPED_TEST()
635 ASSERT_EQ(0, nanosleep(&waitTime, NULL)); in TYPED_TEST()