Home
last modified time | relevance | path

Searched refs:millis (Results 1 – 25 of 57) sorted by relevance

123

/external/valgrind/unittest/
Dthread_wrappers_win.h104 bool ReaderLockWhenWithTimeout(Condition cond, int millis) in ReaderLockWhenWithTimeout() argument
105 { Lock(); return WaitLoopWithTimeout(cond, millis); } in ReaderLockWhenWithTimeout()
106 bool LockWhenWithTimeout(Condition cond, int millis) in LockWhenWithTimeout() argument
107 { Lock(); return WaitLoopWithTimeout(cond, millis); } in LockWhenWithTimeout()
108 bool AwaitWithTimeout(Condition cond, int millis) in AwaitWithTimeout() argument
109 { return WaitLoopWithTimeout(cond, millis); } in AwaitWithTimeout()
123 bool WaitLoopWithTimeout(Condition cond, int millis) { in WaitLoopWithTimeout() argument
126 while (cond.Eval() == false && GetTimeInMs() - start_time < millis) { in WaitLoopWithTimeout()
163 bool WaitWithTimeout(Mutex *mu, int millis) { in WaitWithTimeout() argument
166 while (!signaled_ && GetTimeInMs() - start_time < millis) { in WaitWithTimeout()
[all …]
Dthread_wrappers_pthread.h177 bool ReaderLockWhenWithTimeout(Condition cond, int millis) in ReaderLockWhenWithTimeout() argument
178 { Lock(); return WaitLoopWithTimeout(cond, millis); } in ReaderLockWhenWithTimeout()
179 bool LockWhenWithTimeout(Condition cond, int millis) in LockWhenWithTimeout() argument
180 { Lock(); return WaitLoopWithTimeout(cond, millis); } in LockWhenWithTimeout()
181 bool AwaitWithTimeout(Condition cond, int millis) in AwaitWithTimeout() argument
182 { return WaitLoopWithTimeout(cond, millis); } in AwaitWithTimeout()
194 bool WaitLoopWithTimeout(Condition cond, int millis) { in WaitLoopWithTimeout() argument
199 timeval2timespec(&now, &timeout, millis); in WaitLoopWithTimeout()
223 bool WaitWithTimeout(Mutex *mu, int millis) { in WaitWithTimeout() argument
227 timeval2timespec(&now, &timeout, millis); in WaitWithTimeout()
/external/icu4c/test/intltest/
Dsimplethread.cpp121 SimpleThread::sleep(int32_t millis) in sleep() argument
256 void SimpleThread::sleep(int32_t millis) in sleep() argument
258 ::Sleep(millis); in sleep()
289 SimpleThread::sleep(int32_t millis) in sleep() argument
426 void SimpleThread::sleep(int32_t millis) in sleep() argument
433 cma_sleep(millis/100); in sleep()
435 millis *= 1000; in sleep()
436 while(millis >= 1000000) { in sleep()
438 millis -= 1000000; in sleep()
440 if(millis > 0) { in sleep()
[all …]
Dcallimts.cpp52 CalendarLimitTest::test(UDate millis, icu::Calendar* cal, icu::DateFormat* fmt) in test() argument
58 cal->setTime(millis, exception); in test()
60 fmt->format(millis, theDate); in test()
63 if(! withinErr(dt, millis, kDrift)) { in test()
65 dt, millis, uprv_fabs(millis-dt), uprv_fabs(dt*kDrift)); in test()
68 logln(UnicodeString("OK: got ") + dt + ", wanted " + millis); in test()
329 UDate millis = ucal_getNow(); in doLimitsTest() local
330 UDate mark = millis + 5000; // 5 sec in doLimitsTest()
331 millis -= testDuration * 1000; // stop time if testDuration<0 in doLimitsTest()
335 : ucal_getNow() < millis; in doLimitsTest()
Ddadrfmt.cpp195 UnicodeString millis = UnicodeString(date, kMILLIS.length()); in testConvertDate() local
197 fromDate = udbg_stod(millis); in testConvertDate()
199 UnicodeString millis = UnicodeString(date, kRELATIVE_MILLIS.length()); in testConvertDate() local
201 fromDate = udbg_stod(millis) + now; in testConvertDate()
/external/mockito/src/org/mockito/verification/
DTimeout.java29 public Timeout(int millis, VerificationMode delegate) { in Timeout() argument
30 this(10, millis, delegate); in Timeout()
36 Timeout(int treshhold, int millis, VerificationMode delegate) { in Timeout() argument
37 this.impl = new VerificationWithTimeoutImpl(treshhold, millis, delegate); in Timeout()
/external/icu4c/i18n/
Dsimpletz.cpp393 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument
407 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset()
412 uint8_t dayOfWeek, int32_t millis, in getOffset() argument
431 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset()
439 uint8_t dayOfWeek, int32_t millis, in getOffset() argument
452 || millis < 0 in getOffset()
453 || millis >= U_MILLIS_PER_DAY in getOffset()
475 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset()
489 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset()
517 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY); in getOffsetFromLocal() local
[all …]
Dgregoimp.h240 static inline int32_t millisToJulianDay(double millis);
284 inline int32_t Grego::millisToJulianDay(double millis) { in millisToJulianDay() argument
285 return (int32_t) (kEpochStartAsJulianDay + ClockMath::floorDivide(millis, (double)kOneDay)); in millisToJulianDay()
Dvzone.cpp118 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) { in vzone_getOffset() argument
119 … return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, status); in vzone_getOffset()
124 uint8_t dayOfWeek, int32_t millis, in vzone_getOffset2() argument
126 …return ((VTimeZone*)zone)->VTimeZone::getOffset(era, year, month, day, dayOfWeek, millis, monthLen… in vzone_getOffset2()
Dolsontz.cpp330 int32_t millis, UErrorCode& ec) const { in getOffset() argument
337 return getOffset(era, year, month, dom, dow, millis, in getOffset()
348 int32_t millis, int32_t monthLength, in getOffset() argument
361 || millis < 0 in getOffset()
362 || millis >= U_MILLIS_PER_DAY in getOffset()
375 millis, monthLength, ec); in getOffset()
379 UDate date = (UDate)(Grego::fieldsToDay(year, month, dom) * U_MILLIS_PER_DAY + millis); in getOffset()
438 double millis=0; in printTime() local
439 double days = ClockMath::floorDivide(((double)ms), (double)U_MILLIS_PER_DAY, millis); in printTime()
443 year, month+1, dom, (millis/kOneHour))); in printTime()
Dvzone.h189 uint8_t dayOfWeek, int32_t millis, UErrorCode& status);
212 uint8_t dayOfWeek, int32_t millis,
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowTime.java67 long millis = time.toMillis(true); in isEpoch() local
68 return getJulianDay(millis, 0) == Time.EPOCH_JULIAN_DAY; in isEpoch()
73 public static int getJulianDay(long millis, long gmtoff) { in getJulianDay() argument
75 long julianDay = (millis + offsetMillis) / DAY_IN_MILLIS; in getJulianDay()
85 long millis = (julianDay - Time.EPOCH_JULIAN_DAY) * DAY_IN_MILLIS; in setJulianDay() local
86 set(millis); in setJulianDay()
90 int approximateDay = getJulianDay(millis, time.gmtoff); in setJulianDay()
98 millis = time.normalize(true); in setJulianDay()
99 return millis; in setJulianDay()
103 public void set(long millis) { in set() argument
[all …]
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
DTimeTest.java201 long millis = time.normalize(true); in testGetJulianDay() local
204 int julianDay = Time.getJulianDay(millis, time.gmtoff); in testGetJulianDay()
211 millis = time.normalize(true); in testGetJulianDay()
212 int day = Time.getJulianDay(millis, time.gmtoff); in testGetJulianDay()
224 long millis = time.normalize(true); in testSetJulianDay() local
226 int julianDay = Time.getJulianDay(millis, time.gmtoff); in testSetJulianDay()
233 millis = time.toMillis(false); in testSetJulianDay()
234 int day = Time.getJulianDay(millis, time.gmtoff); in testSetJulianDay()
/external/libusb_aah/libusb/os/
Dthreads_windows.c183 DWORD millis; in usbi_cond_timedwait() local
197 millis = 0; in usbi_cond_timedwait()
199 millis = delta_time.tv_usec/1000; in usbi_cond_timedwait()
200 millis += delta_time.tv_sec *1000; in usbi_cond_timedwait()
202 millis++; in usbi_cond_timedwait()
205 return usbi_cond_intwait(cond, mutex, millis); in usbi_cond_timedwait()
/external/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/execution/
DExecutionUtils.java42 public static void sleep(final int millis) { in sleep() argument
46 Thread.sleep(millis); in sleep()
56 public static void waitEventLoop(int millis) { in waitEventLoop() argument
59 long nanos = millis * 1000000L; in waitEventLoop()
68 sleep(millis); in waitEventLoop()
/external/icu4c/samples/date/
Ddate.c48 static UDate getWhen(const char *millis, const char *seconds, const char *format, UDateFormatStyle …
75 char *millis = NULL; in main() local
123 millis = argv[optInd]; in main()
161 when = getWhen(millis, seconds, format, style, parse, tz, &status); in main()
291 static UDate getWhen(const char *millis, const char *seconds, const char *format, in getWhen() argument
299 if(millis != NULL) { in getWhen()
300 sscanf(millis, "%lf", &when); in getWhen()
/external/valgrind/main/drd/tests/
Dtsan_thread_wrappers_pthread.h218 bool ReaderLockWhenWithTimeout(Condition cond, int millis) in ReaderLockWhenWithTimeout() argument
219 { Lock(); return WaitLoopWithTimeout(cond, millis); } in ReaderLockWhenWithTimeout()
220 bool LockWhenWithTimeout(Condition cond, int millis) in LockWhenWithTimeout() argument
221 { Lock(); return WaitLoopWithTimeout(cond, millis); } in LockWhenWithTimeout()
222 bool AwaitWithTimeout(Condition cond, int millis) in AwaitWithTimeout() argument
223 { return WaitLoopWithTimeout(cond, millis); } in AwaitWithTimeout()
235 bool WaitLoopWithTimeout(Condition cond, int millis) { in WaitLoopWithTimeout() argument
240 timeval2timespec(&now, &timeout, millis); in WaitLoopWithTimeout()
281 bool WaitWithTimeout(Mutex *mu, int millis) { in WaitWithTimeout() argument
285 timeval2timespec(&now, &timeout, millis); in WaitWithTimeout()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DJSR166TestCase.java485 static void delay(long millis) throws InterruptedException { in delay() argument
487 long ns = millis * 1000 * 1000; in delay()
489 if (millis > 0L) in delay()
490 Thread.sleep(millis); in delay()
495 millis = d / (1000 * 1000); in delay()
527 void assertThreadStaysAlive(Thread thread, long millis) { in assertThreadStaysAlive() argument
530 delay(millis); in assertThreadStaysAlive()
548 void assertThreadsStayAlive(long millis, Thread... threads) { in assertThreadsStayAlive() argument
551 delay(millis); in assertThreadsStayAlive()
709 void sleep(long millis) { in sleep() argument
[all …]
/external/junit/src/org/junit/rules/
DTimeout.java42 public Timeout(int millis) { in Timeout() argument
43 fMillis= millis; in Timeout()
/external/icu4c/test/threadtest/
Dthreadtest.cpp48 static void Sleep(int millis) {::Sleep(millis);}; in Sleep() argument
97 static void Sleep(int millis);
103 void ThreadFuncs::Sleep(int millis) in Sleep() argument
105 int seconds = millis/1000; in Sleep()
/external/mockito/src/org/mockito/internal/verification/
DVerificationWithTimeoutImpl.java17 public VerificationWithTimeoutImpl(int treshhold, int millis, VerificationMode delegate) { in VerificationWithTimeoutImpl() argument
19 this.timeout = millis; in VerificationWithTimeoutImpl()
/external/icu4c/test/testdata/
Dformat.txt26 // date: either 'MILLIS=####' where #### is millis,
28 … // or RELATIVE_MILLIS=### where ### is a signed value which is added to the current millis
231 // date: either 'MILLIS=####' where #### is millis,
233 … // or RELATIVE_MILLIS=### where ### is a signed value which is added to the current millis
441 // date: either 'MILLIS=####' where #### is millis,
443 … // or RELATIVE_MILLIS=### where ### is a signed value which is added to the current millis
542 // date: either 'MILLIS=####' where #### is millis,
544 … // or RELATIVE_MILLIS=### where ### is a signed value which is added to the current millis
574 // date: either 'MILLIS=####' where #### is millis,
576 … // or RELATIVE_MILLIS=### where ### is a signed value which is added to the current millis
/external/webkit/Source/WebKit2/Platform/qt/
DRunLoopQt.cpp121 int millis = static_cast<int>(nextFireInterval * 1000); in start() local
123 m_ID = m_runLoop->m_timerObject->startTimer(millis); in start()
/external/icu4c/i18n/unicode/
Drbtz.h149 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const;
171 uint8_t dayOfWeek, int32_t millis,
/external/icu4c/test/cintltst/
Dutmstest.c450 int64_t ticks, millis; in TestDotNet() local
465 millis = utmscale_toInt64(dt->ticks, UDTS_ICU4C_TIME, &errorCode); in TestDotNet()
469 if(millis != icuDate) { in TestDotNet()
472 …(int)i, (int)(millis/dayMillis), (int)(icuDate/dayMillis), (int)dt->year, (int)dt->month, (int)dt-… in TestDotNet()

123