/libcore/luni/src/main/java/java/util/zip/ |
D | ZipEntry.java | 50 int time = -1; field in ZipEntry 71 long size, int compressionMethod, int time, int modDate, byte[] extra, in ZipEntry() argument 79 this.time = time; in ZipEntry() 179 if (time != -1) { in getTime() 183 modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f, in getTime() 184 (time & 0x1f) << 1); in getTime() 296 time = 0; in setTime() 301 time = cal.get(Calendar.SECOND) >> 1; in setTime() 302 time = (cal.get(Calendar.MINUTE) << 5) | time; in setTime() 303 time = (cal.get(Calendar.HOUR_OF_DAY) << 11) | time; in setTime() [all …]
|
/libcore/luni/src/main/java/java/util/ |
D | SimpleTimeZone.java | 342 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int time) { in getOffset() argument 346 checkRange(month, dayOfWeek, time); in getOffset() 401 if (ruleDay > day || ruleDay == day && time < startTime) { in getOffset() 461 if (ruleDay < day || ruleDay == day && time >= ruleTime) { in getOffset() 472 public int getOffset(long time) { in getOffset() argument 477 int[] fields = Grego.timeToFields(time + rawOffset, null); in getOffset() 526 @Override public boolean inDaylightTime(Date time) { in inDaylightTime() argument 527 return useDaylightTime() && getOffset(time.getTime()) != getRawOffset(); in inDaylightTime() 555 private void checkRange(int month, int dayOfWeek, int time) { in checkRange() argument 562 if (time < 0 || time >= 24 * 3600000) { in checkRange() [all …]
|
D | TimerTask.java | 59 void setScheduledTime(long time) { in setScheduledTime() argument 61 scheduledTime = time; in setScheduledTime()
|
D | Calendar.java | 332 protected long time; field in Calendar 913 long orgTime = time; in getActualMaximum() 920 time = orgTime; in getActualMaximum() 934 long orgTime = time; in getActualMinimum() 941 time = orgTime; in getActualMinimum() 1051 return time; in getTimeInMillis() 1205 if (!isTimeSet || !areFieldsSet || time != milliseconds) { in setTimeInMillis() 1206 time = milliseconds; in setTimeInMillis() 1227 "[time=" + (isTimeSet ? String.valueOf(time) : "?") + in toString() 1392 putFields.put("time", time); in writeObject() [all …]
|
D | GregorianCalendar.java | 411 time += value; in add() 414 time += value * 1000L; in add() 417 time += value * 60000L; in add() 421 time += value * 3600000L; in add() 458 int offsetBefore = getOffset(time + zoneOffset); in add() 459 int offsetAfter = getOffset(time + zoneOffset + delta); in add() 461 if (getOffset(time + zoneOffset + delta + dstDelta) == offsetAfter) { in add() 465 time += delta; in add() 471 int millis = (int) (time % 86400000); in fullFieldsCalc() 472 long days = time / 86400000; in fullFieldsCalc() [all …]
|
D | Grego.java | 170 public static int[] timeToFields(long time, int[] fields) { in timeToFields() argument 175 long day = floorDivide(time, 24*60*60*1000 /* milliseconds per day */, remainder); in timeToFields()
|
D | TimeZone.java | 344 public int getOffset(long time) { in getOffset() argument 345 if (inDaylightTime(new Date(time))) { in getOffset() 439 public abstract boolean inDaylightTime(Date time); in inDaylightTime() argument
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateTimeFormat.java | 43 public static String format(ULocale icuLocale, Calendar time, int flags, in format() argument 45 String skeleton = DateUtilsBridge.toSkeleton(time, flags); in format() 46 String key = skeleton + "\t" + icuLocale + "\t" + time.getTimeZone(); in format() 55 return formatter.format(time); in format()
|
D | RelativeDateTimeFormatter.java | 91 public static String getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, in getRelativeTimeSpanString() argument 96 return getRelativeTimeSpanString(locale, tz, time, now, minResolution, flags, displayContext); in getRelativeTimeSpanString() 99 public static String getRelativeTimeSpanString(Locale locale, java.util.TimeZone tz, long time, in getRelativeTimeSpanString() argument 109 return getRelativeTimeSpanString(icuLocale, icuTimeZone, time, now, minResolution, flags, in getRelativeTimeSpanString() 114 com.ibm.icu.util.TimeZone icuTimeZone, long time, long now, long minResolution, int flags, in getRelativeTimeSpanString() argument 117 long duration = Math.abs(now - time); in getRelativeTimeSpanString() 118 boolean past = (now >= time); in getRelativeTimeSpanString() 155 count = Math.abs(dayDistance(icuTimeZone, time, now)); in getRelativeTimeSpanString() 199 Calendar timeCalendar = DateUtilsBridge.createIcuCalendar(icuTimeZone, icuLocale, time); in getRelativeTimeSpanString() 260 public static String getRelativeDateTimeString(Locale locale, java.util.TimeZone tz, long time, in getRelativeDateTimeString() argument [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | ControlTest.java | 466 long time = 0L; in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() local 477 time = System.currentTimeMillis(); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() 481 PROPERTIES, URLLoader, bundle, time)); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() 486 PROPERTIES, URLLoader, bundle, time)); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() 489 PROPERTIES, URLLoader, bundle, time)); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() 495 PROPERTIES, systemLoader, bundle, time)); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() 501 PROPERTIES, URLLoader, otherBundle, time)); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() 506 PROPERTIES, URLLoader, otherBundle, time)); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() 518 time = System.currentTimeMillis(); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() 521 bundle, time)); in test_needsReload_LStringLLocaleLStringLClassLoaderResourceBundleJ() [all …]
|
D | TimerTaskTest.java | 180 long time = System.currentTimeMillis() + 100; in test_scheduledExecutionTime() local 188 assertTrue(scheduledExecutionTime <= time); in test_scheduledExecutionTime()
|
/libcore/libart/src/main/java/sun/misc/ |
D | Unsafe.java | 295 public void park(boolean absolute, long time) { in park() argument 297 Thread.currentThread().parkUntil$(time); in park() 299 Thread.currentThread().parkFor$(time); in park()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | SimpleDateFormatTest.java | 530 Date time = cal.getTime(); in test_parseLjava_lang_StringLjava_text_ParsePosition() local 531 assertParse("h", " 12", time, 1, 3); in test_parseLjava_lang_StringLjava_text_ParsePosition() 532 assertParse("H", " 0", time, 1, 2); in test_parseLjava_lang_StringLjava_text_ParsePosition() 533 assertParse("k", " 24", time, 1, 3); in test_parseLjava_lang_StringLjava_text_ParsePosition() 534 assertParse("K", " 0", time, 1, 2); in test_parseLjava_lang_StringLjava_text_ParsePosition() 537 time = cal.getTime(); in test_parseLjava_lang_StringLjava_text_ParsePosition() 538 assertParse("h", "1", time, 0, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition() 539 assertParse("H", "1 ", time, 0, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition() 540 assertParse("k", "1", time, 0, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition() 541 assertParse("K", "1", time, 0, 1); in test_parseLjava_lang_StringLjava_text_ParsePosition() [all …]
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
D | Lock.java | 293 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; in tryLock() argument
|
D | Condition.java | 345 boolean await(long time, TimeUnit unit) throws InterruptedException; in await() argument
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | SSLSocketFactoryBenchmark.java | 24 public void time(int reps) throws Exception { in time() method in SSLSocketFactoryBenchmark
|
D | JarFileBenchmark.java | 32 public void time(int reps) throws Exception { in time() method in JarFileBenchmark
|
D | MessageDigestBenchmark.java | 41 public void time(int reps) throws Exception { in time() method in MessageDigestBenchmark
|
D | SSLLoopbackBenchmark.java | 37 public void time(int reps) throws Exception { in time() method in SSLLoopbackBenchmark
|
D | DigestBenchmark.java | 58 public void time(int reps) throws Exception { in time() method in DigestBenchmark
|
D | KeyPairGeneratorBenchmark.java | 60 public void time(int reps) throws Exception { in time() method in KeyPairGeneratorBenchmark
|
/libcore/luni/src/main/java/java/sql/ |
D | Time.java | 173 public void setTime(long time) { in setTime() argument 174 super.setTime(time); in setTime()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 125 long time = 2147483648000L;// Tue, 19 Jan 2038 03:14:08 GMT in testHelsinkiOverflow() local 127 long offset = timeZone.getOffset(time); in testHelsinkiOverflow() 186 @Override public void setStartRule(int m, int d, int dow, int time) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor() argument 189 @Override public void setStartRule(int m, int d, int dow, int time, boolean after) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor() argument 192 @Override public void setEndRule(int m, int d, int dow, int time) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor() argument 195 @Override public void setEndRule(int m, int d, int dow, int time, boolean after) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor() argument
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 161 private long time; field in ScheduledThreadPoolExecutor.ScheduledFutureTask 184 this.time = triggerTime; in ScheduledFutureTask() 196 this.time = triggerTime; in ScheduledFutureTask() 206 this.time = triggerTime; in ScheduledFutureTask() 212 return unit.convert(time - now(), NANOSECONDS); in getDelay() 220 long diff = time - x.time; in compareTo() 249 time += p; in setNextRunTime() 251 time = triggerTime(-p); in setNextRunTime()
|
/libcore/luni/src/main/java/java/util/logging/ |
D | XMLFormatter.java | 52 long time = r.getMillis(); in format() local 54 String date = MessageFormat.format("{0, date} {0, time}", new Date(time)); in format() 60 append(sb, 1, "millis", time); in format()
|