Home
last modified time | relevance | path

Searched refs:waitTimes (Results 1 – 2 of 2) sorted by relevance

/system/tools/aidl/tests/lazy_test/
Dmain.cpp97 static std::vector<size_t> waitTimes(size_t numTimes, size_t maxWait) { in waitTimes() function
105 static void testWithTimes(const std::vector<size_t>& waitTimes, bool beforeGet) { in testWithTimes() argument
107 for (size_t i = 0; i < waitTimes.size(); i++) { in testWithTimes()
110 std::cout << "Thread waiting " << waitTimes.at(i) << " while not holding service." in testWithTimes()
112 sleep(waitTimes.at(i)); in testWithTimes()
118 std::cout << "Thread waiting " << waitTimes.at(i) << " while holding service." << std::endl; in testWithTimes()
119 sleep(waitTimes.at(i)); in testWithTimes()
135 threadWaitTimes.at(i) = waitTimes(NUM_TIMES_GET_RELEASE * nServices, MAX_WAITING_DURATION); in testConcurrentThreadsWithDelays()
/system/tools/hidl/test/lazy_test/
Dhidl_lazy_test.cpp109 static std::vector<size_t> waitTimes(size_t numTimes, size_t maxWait) { in waitTimes() function
117 static void testWithTimes(const std::vector<size_t>& waitTimes, const FqInstance& instance) { in testWithTimes() argument
119 << std::accumulate(waitTimes.begin(), waitTimes.end(), 0) << " second(s)." in testWithTimes()
122 for (size_t sleepTime : waitTimes) { in testWithTimes()
140 threadWaitTimes[i] = waitTimes(NUM_TIMES_GET_UNGET, MAX_WAITING_DURATION); in TEST_F()