/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | Grego.java | 225 int millis = fields[5]; in timeToString() local 226 int hour = millis / MILLIS_PER_HOUR; in timeToString() 227 millis = millis % MILLIS_PER_HOUR; in timeToString() 228 int min = millis / MILLIS_PER_MINUTE; in timeToString() 229 millis = millis % MILLIS_PER_MINUTE; in timeToString() 230 int sec = millis / MILLIS_PER_SECOND; in timeToString() 231 millis = millis % MILLIS_PER_SECOND; in timeToString() 234 fields[0], fields[1] + 1, fields[2], hour, min, sec, millis); in timeToString()
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | Grego.java | 227 int millis = fields[5]; in timeToString() local 228 int hour = millis / MILLIS_PER_HOUR; in timeToString() 229 millis = millis % MILLIS_PER_HOUR; in timeToString() 230 int min = millis / MILLIS_PER_MINUTE; in timeToString() 231 millis = millis % MILLIS_PER_MINUTE; in timeToString() 232 int sec = millis / MILLIS_PER_SECOND; in timeToString() 233 millis = millis % MILLIS_PER_SECOND; in timeToString() 236 fields[0], fields[1] + 1, fields[2], hour, min, sec, millis); in timeToString()
|
/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()
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
D | ShadowSystemClock.java | 33 protected static void sleep(long millis) { in sleep() argument 38 nanoTime = millis * MILLIS_PER_NANO; in sleep() 39 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceBy(millis); in sleep() 43 protected static boolean setCurrentTimeMillis(long millis) { in setCurrentTimeMillis() argument 48 if (now() > millis) { in setCurrentTimeMillis() 51 nanoTime = millis * MILLIS_PER_NANO; in setCurrentTimeMillis() 52 ShadowApplication.getInstance().getForegroundThreadScheduler().advanceTo(millis); in setCurrentTimeMillis()
|
D | ShadowTime.java | 73 long millis = time.toMillis(true); in isEpoch() local 74 return getJulianDay(millis, 0) == Time.EPOCH_JULIAN_DAY; in isEpoch() 78 protected static int getJulianDay(long millis, long gmtoff) { in getJulianDay() argument 80 long julianDay = (millis + offsetMillis) / DAY_IN_MILLIS; in getJulianDay() 90 long millis = (julianDay - Time.EPOCH_JULIAN_DAY) * DAY_IN_MILLIS; in setJulianDay() local 91 set(millis); in setJulianDay() 95 int approximateDay = getJulianDay(millis, time.gmtoff); in setJulianDay() 103 millis = time.normalize(true); in setJulianDay() 104 return millis; in setJulianDay() 108 protected void set(long millis) { in set() argument [all …]
|
D | ShadowDropBoxManager.java | 46 protected DropBoxManager.Entry getNextEntry(String tag, long millis) { in getNextEntry() argument 47 for (DropBoxManager.Entry entry : entries.tailMap(millis).values()) { in getNextEntry() 48 if ((tag != null && !entry.getTag().equals(tag)) || entry.getTimeMillis() <= millis) { in getNextEntry()
|
/external/libusb/libusb/os/ |
D | threads_windows.c | 27 DWORD millis; in usbi_cond_timedwait() local 29 millis = (DWORD)(tv->tv_sec * 1000L) + (tv->tv_usec / 1000L); in usbi_cond_timedwait() 32 millis++; in usbi_cond_timedwait() 34 if (SleepConditionVariableCS(cond, mutex, millis)) in usbi_cond_timedwait()
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
D | ICUDurationTest.java | 52 ICUTestDuration(long millis) { in ICUTestDuration() argument 54 if (millis > 0) { in ICUTestDuration() 56 } else if (millis == 0) { in ICUTestDuration() 61 millis = -millis; in ICUTestDuration() 63 long d = millis / 86400000L; in ICUTestDuration() 64 millis %= 86400000L; in ICUTestDuration() 68 long h = millis / 3600000L; in ICUTestDuration() 69 millis %= 3600000L; in ICUTestDuration() 73 long m = millis / 60000L; in ICUTestDuration() 74 millis %= 60000L; in ICUTestDuration() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/duration/ |
D | ICUDurationTest.java | 49 ICUTestDuration(long millis) { in ICUTestDuration() argument 51 if (millis > 0) { in ICUTestDuration() 53 } else if (millis == 0) { in ICUTestDuration() 58 millis = -millis; in ICUTestDuration() 60 long d = millis / 86400000L; in ICUTestDuration() 61 millis %= 86400000L; in ICUTestDuration() 65 long h = millis / 3600000L; in ICUTestDuration() 66 millis %= 3600000L; in ICUTestDuration() 70 long m = millis / 60000L; in ICUTestDuration() 71 millis %= 60000L; in ICUTestDuration() [all …]
|
/external/junit/src/main/java/org/junit/rules/ |
D | Timeout.java | 66 public Timeout(int millis) { in Timeout() argument 67 this(millis, TimeUnit.MILLISECONDS); in Timeout() 101 public static Timeout millis(long millis) { in millis() method in Timeout 102 return new Timeout(millis, TimeUnit.MILLISECONDS); in millis()
|
/external/llvm-project/lld/Common/ |
D | Timer.cpp | 40 double totalDuration = static_cast<double>(root().millis()); in print() 50 root().print(0, root().millis(), false); in print() 53 double Timer::millis() const { in millis() function in Timer 60 double p = 100.0 * millis() / totalDuration; in print() 65 stream << format("%-30s%7d ms (%5.1f%%)", s.c_str(), (int)millis(), p); in print()
|
/external/rust/crates/chrono/src/offset/ |
D | mod.rs | 354 fn timestamp_millis(&self, millis: i64) -> DateTime<Self> { in timestamp_millis() 355 self.timestamp_millis_opt(millis).unwrap() in timestamp_millis() 375 fn timestamp_millis_opt(&self, millis: i64) -> LocalResult<DateTime<Self>> { in timestamp_millis_opt() 376 let (mut secs, mut millis) = (millis / 1000, millis % 1000); in timestamp_millis_opt() 377 if millis < 0 { in timestamp_millis_opt() 379 millis += 1000; in timestamp_millis_opt() 381 self.timestamp_opt(secs, millis as u32 * 1_000_000) in timestamp_millis_opt() 497 for (millis, expected) in &[ in test_negative_millis() 502 match Utc.timestamp_millis_opt(*millis) { in test_negative_millis()
|
/external/mockito/src/main/java/org/mockito/verification/ |
D | Timeout.java | 28 public Timeout(long millis, VerificationMode delegate) { in Timeout() argument 29 this(10, millis, delegate); in Timeout() 35 Timeout(long pollingPeriodMillis, long millis, VerificationMode delegate) { in Timeout() argument 36 this(new VerificationOverTimeImpl(pollingPeriodMillis, millis, delegate, true)); in Timeout()
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
D | OkHttpClient.java | 189 long millis = unit.toMillis(timeout); in setConnectTimeout() local 190 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setConnectTimeout() 191 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setConnectTimeout() 192 connectTimeout = (int) millis; in setConnectTimeout() 209 long millis = unit.toMillis(timeout); in setReadTimeout() local 210 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setReadTimeout() 211 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setReadTimeout() 212 readTimeout = (int) millis; in setReadTimeout() 227 long millis = unit.toMillis(timeout); in setWriteTimeout() local 228 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setWriteTimeout() [all …]
|
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/ |
D | OkHttpClient.java | 195 long millis = unit.toMillis(timeout); in setConnectTimeout() local 196 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setConnectTimeout() 197 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setConnectTimeout() 198 connectTimeout = (int) millis; in setConnectTimeout() 215 long millis = unit.toMillis(timeout); in setReadTimeout() local 216 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setReadTimeout() 217 if (millis == 0 && timeout > 0) throw new IllegalArgumentException("Timeout too small."); in setReadTimeout() 218 readTimeout = (int) millis; in setReadTimeout() 233 long millis = unit.toMillis(timeout); in setWriteTimeout() local 234 if (millis > Integer.MAX_VALUE) throw new IllegalArgumentException("Timeout too large."); in setWriteTimeout() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | simpletz.cpp | 397 uint8_t dayOfWeek, int32_t millis, UErrorCode& status) const in getOffset() argument 411 …return getOffset(era, year, month, day, dayOfWeek, millis, Grego::monthLength(year, month), status… in getOffset() 416 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 435 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 443 uint8_t dayOfWeek, int32_t millis, in getOffset() argument 456 || millis < 0 in getOffset() 457 || millis >= U_MILLIS_PER_DAY in getOffset() 479 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 493 (int8_t)day, (int8_t)dayOfWeek, millis, in getOffset() 521 int32_t millis = (int32_t) (date - day * U_MILLIS_PER_DAY); in getOffsetFromLocal() local [all …]
|
/external/conscrypt/libcore-stub/src/main/java/android/system/ |
D | StructTimeval.java | 37 public static StructTimeval fromMillis(long millis) { in fromMillis() argument 38 long tv_sec = millis / 1000; in fromMillis() 39 long tv_usec = (millis - (tv_sec * 1000)) * 1000; in fromMillis()
|
/external/grpc-grpc/src/core/lib/iomgr/ |
D | exec_ctx.cc | 76 gpr_timespec grpc_millis_to_timespec(grpc_millis millis, in grpc_millis_to_timespec() argument 80 if (millis == GRPC_MILLIS_INF_FUTURE) { in grpc_millis_to_timespec() 83 if (millis == GRPC_MILLIS_INF_PAST) { in grpc_millis_to_timespec() 88 return gpr_time_from_millis(millis, GPR_TIMESPAN); in grpc_millis_to_timespec() 91 gpr_time_from_millis(millis, GPR_TIMESPAN)); in grpc_millis_to_timespec()
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/util/ |
D | SimpleTimeZone.java | 647 int dayOfWeek, int millis) in getOffset() argument 660 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset() 669 int dayOfWeek, int millis, in getOffset() argument 682 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 687 int dayOfWeek, int millis, in getOffset() argument 701 || millis < 0 in getOffset() 702 || millis >= Grego.MILLIS_PER_DAY in getOffset() 756 day, dayOfWeek, millis, in getOffset() 773 day, dayOfWeek, millis, in getOffset() 851 int dayOfWeek, int millis, int millisDelta, in compareToRule() argument [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/util/ |
D | SimpleTimeZone.java | 626 int dayOfWeek, int millis) in getOffset() argument 639 return getOffset(era, year, month, day, dayOfWeek, millis, Grego.monthLength(year, month)); in getOffset() 648 int dayOfWeek, int millis, in getOffset() argument 661 return getOffset(era, year, month, day, dayOfWeek, millis, in getOffset() 666 int dayOfWeek, int millis, in getOffset() argument 680 || millis < 0 in getOffset() 681 || millis >= Grego.MILLIS_PER_DAY in getOffset() 735 day, dayOfWeek, millis, in getOffset() 752 day, dayOfWeek, millis, in getOffset() 830 int dayOfWeek, int millis, int millisDelta, in compareToRule() argument [all …]
|
/external/cldr/tools/cldr-unittest/src/org/unicode/cldr/unittest/ |
D | TestAll.java | 121 public final int millis; field in TestAll.DateDisplayBean 134 millis = (int) (m - (seconds * 1000)); in DateDisplayBean() 152 if (millis > 0) { in toString() 153 sb.append(millis); in toString() 154 sb.append(millis > 1 ? " milliseconds" : " millisecond"); in toString()
|
/external/okio/okio/src/jvmTest/kotlin/okio/ |
D | ThrottlerTakeTest.kt | 134 private fun assertElapsed(millis: Long) { in assertElapsed() 135 elapsedNanos += TimeUnit.MILLISECONDS.toNanos(millis) in assertElapsed() 139 private fun sleep(millis: Long) { in sleep() 140 nowNanos += TimeUnit.MILLISECONDS.toNanos(millis) in sleep()
|
/external/icu/icu4c/source/samples/date/ |
D | date.c | 53 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… 81 char *millis = NULL; in main() local 129 millis = argv[optInd]; in main() 173 when = getWhen(millis, seconds, format, locale, style, parse, tz, &status); in main() 305 static UDate getWhen(const char *millis, const char *seconds, const char *format, const char *local… in getWhen() argument 313 if(millis != NULL) { in getWhen() 314 sscanf(millis, "%lf", &when); in getWhen()
|
/external/universal-tween-engine/java/applets/src/aurelienribon/utils/swing/ |
D | DrawingCanvas.java | 39 final long millis = System.currentTimeMillis(); 40 final long delta = millis - lastMillis; 41 lastMillis = millis;
|
/external/icu/android_icu4j/libcore_bridge/src/java/com/android/i18n/timezone/ |
D | ZoneInfoData.java | 494 int findOffsetIndexForTimeInMilliseconds(long millis) { in findOffsetIndexForTimeInMilliseconds() argument 507 return findOffsetIndexForTimeInSeconds(roundDownMillisToSeconds(millis)); in findOffsetIndexForTimeInMilliseconds() 524 static long roundDownMillisToSeconds(long millis) { in roundDownMillisToSeconds() argument 525 if (millis < 0) { in roundDownMillisToSeconds() 531 return (millis - 999) / 1000; in roundDownMillisToSeconds() 533 return millis / 1000; in roundDownMillisToSeconds() 551 static long roundUpMillisToSeconds(long millis) { in roundUpMillisToSeconds() argument 552 if (millis > 0) { in roundUpMillisToSeconds() 558 return (millis + 999) / 1000; in roundUpMillisToSeconds() 560 return millis / 1000; in roundUpMillisToSeconds()
|