/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() 175 if (time != -1) { in getTime() 179 modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f, in getTime() 180 (time & 0x1f) << 1); in getTime() 294 time = 0; in setTime() 299 time = cal.get(Calendar.SECOND) >> 1; in setTime() 300 time = (cal.get(Calendar.MINUTE) << 5) | time; in setTime() 301 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 911 long orgTime = time; in getActualMaximum() 918 time = orgTime; in getActualMaximum() 932 long orgTime = time; in getActualMinimum() 939 time = orgTime; in getActualMinimum() 1049 return time; in getTimeInMillis() 1203 if (!isTimeSet || !areFieldsSet || time != milliseconds) { in setTimeInMillis() 1204 time = milliseconds; in setTimeInMillis() 1225 "[time=" + (isTimeSet ? String.valueOf(time) : "?") + in toString() 1390 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 | TimeZone.java | 300 public int getOffset(long time) { in getOffset() argument 301 if (inDaylightTime(new Date(time))) { in getOffset() 429 public abstract boolean inDaylightTime(Date time); in inDaylightTime() argument
|
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()
|
/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/luni/src/test/java/libcore/java/util/ |
D | TimeZoneTest.java | 119 long time = 2147483648000L;// Tue, 19 Jan 2038 03:14:08 GMT in testHelsinkiOverflow() local 121 long offset = timeZone.getOffset(time); in testHelsinkiOverflow() 180 @Override public void setStartRule(int m, int d, int dow, int time) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor() argument 183 @Override public void setStartRule(int m, int d, int dow, int time, boolean after) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor() argument 186 @Override public void setEndRule(int m, int d, int dow, int time) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor() argument 189 @Override public void setEndRule(int m, int d, int dow, int time, boolean after) { in testSimpleTimeZoneDoesNotCallOverrideableMethodsFromConstructor() argument
|
/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 | 292 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; in tryLock() argument
|
D | Condition.java | 344 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 | KeyPairGeneratorBenchmark.java | 60 public void time(int reps) throws Exception { in time() method in KeyPairGeneratorBenchmark
|
D | DigestBenchmark.java | 58 public void time(int reps) throws Exception { in time() method in DigestBenchmark
|
/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/main/java/java/util/logging/ |
D | XMLFormatter.java | 51 long time = r.getMillis(); in format() local 53 String date = MessageFormat.format("{0, date} {0, time}", new Object[] { new Date(time) }); in format() 59 append(sb, 1, "millis", time); in format()
|
/libcore/luni/src/main/java/java/util/concurrent/ |
D | ScheduledThreadPoolExecutor.java | 159 private long time; field in ScheduledThreadPoolExecutor.ScheduledFutureTask 182 this.time = ns; in ScheduledFutureTask() 192 this.time = ns; in ScheduledFutureTask() 202 this.time = ns; in ScheduledFutureTask() 208 return unit.convert(time - now(), NANOSECONDS); in getDelay() 216 long diff = time - x.time; in compareTo() 245 time += p; in setNextRunTime() 247 time = triggerTime(-p); in setNextRunTime()
|
/libcore/libart/src/main/java/java/lang/ |
D | Thread.java | 984 public static void sleep(long time) throws InterruptedException { in sleep() argument 985 Thread.sleep(time, 0); in sleep() 1263 public void parkUntil(long time) { in parkUntil() argument 1279 long delayMillis = time - System.currentTimeMillis(); in parkUntil()
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | SelectFunctionalityTest.java | 50 private static Time time; field in SelectFunctionalityTest 103 time = new Time(currentTime); in createTestTables() 161 time.toString(), result.getTime("ftime").toString()); in test_SelectSimple() 194 prepStatement.setTime(10, time); in test_SelectPrepared() 222 time.toString(), result.getTime("ftime").toString()); in test_SelectPrepared()
|