/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Grego.java | 223 int millis = fields[5]; in timeToString() local 224 int hour = millis / MILLIS_PER_HOUR; in timeToString() 225 millis = millis % MILLIS_PER_HOUR; in timeToString() 226 int min = millis / MILLIS_PER_MINUTE; in timeToString() 227 millis = millis % MILLIS_PER_MINUTE; in timeToString() 228 int sec = millis / MILLIS_PER_SECOND; in timeToString() 229 millis = millis % MILLIS_PER_SECOND; in timeToString() 232 fields[0], fields[1] + 1, fields[2], hour, min, sec, millis); in timeToString()
|
/external/icu/icu4c/source/test/intltest/ |
D | simplethread.cpp | 123 SimpleThread::sleep(int32_t millis) in sleep() argument 258 void SimpleThread::sleep(int32_t millis) in sleep() argument 260 ::Sleep(millis); in sleep() 291 SimpleThread::sleep(int32_t millis) in sleep() argument 428 void SimpleThread::sleep(int32_t millis) in sleep() argument 435 cma_sleep(millis/100); in sleep() 437 millis *= 1000; in sleep() 438 while(millis >= 1000000) { in sleep() 440 millis -= 1000000; in sleep() 442 if(millis > 0) { in sleep() [all …]
|
D | callimts.cpp | 52 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() 330 UDate millis = ucal_getNow(); in doLimitsTest() local 331 UDate mark = millis + 5000; // 5 sec in doLimitsTest() 332 millis -= testDuration * 1000; // stop time if testDuration<0 in doLimitsTest() 336 : ucal_getNow() < millis; in doLimitsTest()
|
/external/slf4j/slf4j-ext/src/test/java/org/slf4j/profiler/ |
D | ProfilerTest.java | 111 private void doX(int millis) { in doX() argument 112 delay(millis); in doX() 115 private void doY(int millis) { in doY() argument 116 delay(millis); in doY() 119 private void doZ(int millis) { in doZ() argument 120 delay(millis); in doZ() 132 void delay(int millis) { in delay() argument 134 Thread.sleep(millis); in delay()
|
D | BasicProfilerDemo.java | 81 static private void delay(int millis) { in delay() argument 83 Thread.sleep(millis); in delay()
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | ICUDurationTest.java | 42 ICUTestDuration(long millis) { in ICUTestDuration() argument 44 if (millis > 0) { in ICUTestDuration() 46 } else if (millis == 0) { in ICUTestDuration() 51 millis = -millis; in ICUTestDuration() 53 long d = millis / 86400000L; in ICUTestDuration() 54 millis %= 86400000L; in ICUTestDuration() 58 long h = millis / 3600000L; in ICUTestDuration() 59 millis %= 3600000L; in ICUTestDuration() 63 long m = millis / 60000L; in ICUTestDuration() 64 millis %= 60000L; in ICUTestDuration() [all …]
|
/external/mockito/src/org/mockito/verification/ |
D | Timeout.java | 29 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/icu/icu4c/source/i18n/ |
D | simpletz.cpp | 394 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument 408 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset() 413 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 432 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 440 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 453 || millis < 0 in getOffset() 454 || millis >= U_MILLIS_PER_DAY in getOffset() 476 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 490 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 518 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY); in getOffsetFromLocal() local [all …]
|
D | chnsecal.cpp | 482 double millis = days * (double)kOneDay; in daysToMillis() local 486 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in daysToMillis() 488 return millis - (double)(rawOffset + dstOffset); in daysToMillis() 491 return millis - (double)CHINA_OFFSET; in daysToMillis() 499 double ChineseCalendar::millisToDays(double millis) const { in millisToDays() 503 fZoneAstroCalc->getOffset(millis, FALSE, rawOffset, dstOffset, status); in millisToDays() 505 return ClockMath::floorDivide(millis + (double)(rawOffset + dstOffset), kOneDay); in millisToDays() 508 return ClockMath::floorDivide(millis + (double)CHINA_OFFSET, kOneDay); in millisToDays()
|
D | gregoimp.h | 240 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()
|
D | vzone.cpp | 118 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()
|
/external/robolectric/src/main/java/com/xtremelabs/robolectric/shadows/ |
D | ShadowTime.java | 67 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/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | SimpleTimeZone.java | 643 int dayOfWeek, int millis) in getOffset() argument 656 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset() 665 int dayOfWeek, int millis, in getOffset() argument 678 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 683 int dayOfWeek, int millis, in getOffset() argument 697 || millis < 0 in getOffset() 698 || millis >= Grego.MILLIS_PER_DAY in getOffset() 752 day, dayOfWeek, millis, in getOffset() 769 day, dayOfWeek, millis, in getOffset() 846 int dayOfWeek, int millis, int millisDelta, in compareToRule() argument [all …]
|
D | DateTimeRule.java | 298 int millis = time % 1000; in toString() local 319 buf.append(millis/100); in toString() 320 buf.append((millis/10)%10); in toString() 321 buf.append(millis%10); in toString()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | OkHttpClient.java | 235 long millis = unit.toMillis(timeout); in setConnectTimeout() local 236 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setConnectTimeout() 237 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setConnectTimeout() 238 connectTimeout = (int) millis; in setConnectTimeout() 255 long millis = unit.toMillis(timeout); in setReadTimeout() local 256 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setReadTimeout() 257 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setReadTimeout() 258 readTimeout = (int) millis; in setReadTimeout() 273 long millis = unit.toMillis(timeout); in setWriteTimeout() local 274 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setWriteTimeout() [all …]
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | TimeTest.java | 201 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/eclipse-windowbuilder/propertysheet/src/org/eclipse/wb/internal/core/utils/execution/ |
D | ExecutionUtils.java | 42 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/icu/icu4c/source/samples/date/ |
D | date.c | 48 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/drd/tests/ |
D | tsan_thread_wrappers_pthread.h | 218 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/ |
D | JSR166TestCase.java | 487 static void delay(long millis) throws InterruptedException { in delay() argument 489 long ns = millis * 1000 * 1000; in delay() 491 if (millis > 0L) in delay() 492 Thread.sleep(millis); in delay() 497 millis = d / (1000 * 1000); in delay() 529 void assertThreadStaysAlive(Thread thread, long millis) { in assertThreadStaysAlive() argument 532 delay(millis); in assertThreadStaysAlive() 550 void assertThreadsStayAlive(long millis, Thread... threads) { in assertThreadsStayAlive() argument 553 delay(millis); in assertThreadsStayAlive() 711 void sleep(long millis) { in sleep() argument [all …]
|
/external/junit/src/org/junit/rules/ |
D | Timeout.java | 42 public Timeout(int millis) { in Timeout() argument 43 fMillis= millis; in Timeout()
|
/external/icu/icu4c/source/test/threadtest/ |
D | threadtest.cpp | 48 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/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/timescale/ |
D | TimeScaleDataTest.java | 217 long ticks, millis; in TestDotNet() local 227 …millis = UniversalTimeScale.toLong(dotNetDateTimeTicks[i + kTicks], UniversalTimeScale.ICU4C_TIME); in TestDotNet() 233 if(millis != icuDate) { in TestDotNet() 236 (millis/dayMillis) + " != " + (icuDate/dayMillis) + in TestDotNet()
|
/external/mockito/src/org/mockito/internal/verification/ |
D | VerificationWithTimeoutImpl.java | 17 public VerificationWithTimeoutImpl(int treshhold, int millis, VerificationMode delegate) { in VerificationWithTimeoutImpl() argument 19 this.timeout = millis; in VerificationWithTimeoutImpl()
|
/external/icu/icu4c/source/test/testdata/ |
D | format.txt | 26 // 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
|