Home
last modified time | relevance | path

Searched refs:time (Results 1 – 25 of 34) sorted by relevance

12

/libcore/luni/src/main/java/java/util/zip/
DZipEntry.java47 int compressionMethod = -1, time = -1, modDate = -1; field in ZipEntry
158 if (time != -1) { in getTime()
162 modDate & 0x1f, (time >> 11) & 0x1f, (time >> 5) & 0x3f, in getTime()
163 (time & 0x1f) << 1); in getTime()
280 time = 0; in setTime()
285 time = cal.get(Calendar.SECOND) >> 1; in setTime()
286 time = (cal.get(Calendar.MINUTE) << 5) | time; in setTime()
287 time = (cal.get(Calendar.HOUR_OF_DAY) << 11) | time; in setTime()
311 time = ze.time; in ZipEntry()
364 time = it.readShort(); in ZipEntry()
/libcore/luni/src/main/java/java/util/
DSimpleTimeZone.java335 public int getOffset(int era, int year, int month, int day, int dayOfWeek, int time) { in getOffset() argument
339 checkRange(month, dayOfWeek, time); in getOffset()
394 if (ruleDay > day || ruleDay == day && time < startTime) { in getOffset()
454 if (ruleDay < day || ruleDay == day && time >= ruleTime) { in getOffset()
465 public int getOffset(long time) { in getOffset() argument
470 int[] fields = Grego.timeToFields(time + rawOffset, null); in getOffset()
519 @Override public boolean inDaylightTime(Date time) { in inDaylightTime() argument
520 return useDaylightTime() && getOffset(time.getTime()) != getRawOffset(); in inDaylightTime()
549 private void checkRange(int month, int dayOfWeek, int time) { in checkRange() argument
556 if (time < 0 || time >= 24 * 3600000) { in checkRange()
[all …]
DTimerTask.java59 void setScheduledTime(long time) { in setScheduledTime() argument
61 scheduledTime = time; in setScheduledTime()
DCalendar.java332 protected long time; field in Calendar
918 long orgTime = time; in getActualMaximum()
925 time = orgTime; in getActualMaximum()
943 long orgTime = time; in getActualMinimum()
950 time = orgTime; in getActualMinimum()
1102 return time; in getTimeInMillis()
1334 if (!isTimeSet || !areFieldsSet || time != milliseconds) { in setTimeInMillis()
1335 time = milliseconds; in setTimeInMillis()
1359 "[time=" + (isTimeSet ? String.valueOf(time) : "?") + in toString()
1526 putFields.put("time", time); in writeObject()
[all …]
DGregorianCalendar.java412 time += value; in add()
415 time += value * 1000L; in add()
418 time += value * 60000L; in add()
422 time += value * 3600000L; in add()
459 int offsetBefore = getOffset(time + zoneOffset); in add()
460 int offsetAfter = getOffset(time + zoneOffset + delta); in add()
462 if (getOffset(time + zoneOffset + delta + dstDelta) == offsetAfter) { in add()
466 time += delta; in add()
614 int dstOffset = timeZone.inDaylightTime(new Date(time)) ? timeZone.getDSTSavings() : 0; in computeFields()
619 int millis = (int) (time % 86400000); in computeFields()
[all …]
DGrego.java170 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()
DTimeZone.java239 public int getOffset(long time) { in getOffset() argument
240 if (inDaylightTime(new Date(time))) { in getOffset()
381 public abstract boolean inDaylightTime(Date time); in inDaylightTime() argument
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
DSSLSessionImpl.java69 long time = creationTime / 1000; in SSLSessionImpl() local
70 id[28] = (byte) ((time & 0xFF000000) >>> 24); in SSLSessionImpl()
71 id[29] = (byte) ((time & 0x00FF0000) >>> 16); in SSLSessionImpl()
72 id[30] = (byte) ((time & 0x0000FF00) >>> 8); in SSLSessionImpl()
73 id[31] = (byte) ((time & 0x000000FF)); in SSLSessionImpl()
DTrustedCertificateStore.java219 long time = file.lastModified(); in getCreationDate() local
220 if (time == 0) { in getCreationDate()
223 return new Date(time); in getCreationDate()
/libcore/luni/src/main/java/sun/misc/
DUnsafe.java319 public void park(boolean absolute, long time) { in park() argument
321 Thread.currentThread().parkUntil(time); in park()
323 Thread.currentThread().parkFor(time); in park()
/libcore/luni/src/main/java/java/util/concurrent/locks/
DLock.java291 boolean tryLock(long time, TimeUnit unit) throws InterruptedException; in tryLock() argument
DCondition.java345 boolean await(long time, TimeUnit unit) throws InterruptedException; in await() argument
/libcore/luni/src/main/java/java/sql/
DTime.java173 public void setTime(long time) { in setTime() argument
174 super.setTime(time); in setTime()
/libcore/luni/src/main/java/java/util/logging/
DXMLFormatter.java51 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/org/apache/harmony/security/provider/cert/
DX509CertImpl.java141 private void checkValidity(long time) in checkValidity() argument
143 if (time < getNotBeforeInternal()) { in checkValidity()
144 throw new CertificateNotYetValidException("current time: " + new Date(time) in checkValidity()
147 if (time > getNotAfterInternal()) { in checkValidity()
148 throw new CertificateExpiredException("current time: " + new Date(time) in checkValidity()
/libcore/luni/src/main/java/java/util/concurrent/
DScheduledThreadPoolExecutor.java157 private long time; field in ScheduledThreadPoolExecutor.ScheduledFutureTask
180 this.time = ns; in ScheduledFutureTask()
190 this.time = ns; in ScheduledFutureTask()
200 this.time = ns; in ScheduledFutureTask()
206 return unit.convert(time - now(), TimeUnit.NANOSECONDS); in getDelay()
214 long diff = time - x.time; in compareTo()
244 time += p; in setNextRunTime()
246 time = triggerTime(-p); in setNextRunTime()
DThreadPoolExecutor.java1616 public void setKeepAliveTime(long time, TimeUnit unit) { in setKeepAliveTime() argument
1617 if (time < 0) in setKeepAliveTime()
1619 if (time == 0 && allowsCoreThreadTimeOut()) in setKeepAliveTime()
1621 long keepAliveTime = unit.toNanos(time); in setKeepAliveTime()
/libcore/luni/src/test/java/tests/api/java/util/
DTimerTaskTest.java180 long time = System.currentTimeMillis() + 100; in test_scheduledExecutionTime() local
188 assertTrue(scheduledExecutionTime <= time); in test_scheduledExecutionTime()
/libcore/luni/src/test/java/libcore/java/util/
DTimeZoneTest.java137 long time = 2147483648000L;// Tue, 19 Jan 2038 03:14:08 GMT in testHelsinkiOverflow() local
139 long offset = timeZone.getOffset(time); in testHelsinkiOverflow()
/libcore/luni/src/main/java/java/lang/
DThread.java1012 public static void sleep(long time) throws InterruptedException { in sleep() argument
1013 Thread.sleep(time, 0); in sleep()
1275 public void parkUntil(long time) { in parkUntil() argument
1298 long delayMillis = time - System.currentTimeMillis(); in parkUntil()
/libcore/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java50 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()
/libcore/dalvik/src/main/java/dalvik/system/profiler/
DBinaryHprofReader.java147 long time = in.readLong(); in parseTime() local
149 System.out.println("\ttime=" + Long.toHexString(time) + " " + new Date(time)); in parseTime()
151 hprofData.setStartMillis(time); in parseTime()
/libcore/luni/src/test/java/tests/support/
DDatabaseCreator.java351 long time) throws SQLException { in fillTestTable2() argument
362 + new Date(time).toString() + "'," + " '" in fillTestTable2()
363 + new Time(time).toString() + "')"; in fillTestTable2()
/libcore/luni/src/main/java/libcore/util/
DZoneInfo.java163 @Override public boolean inDaylightTime(Date time) { in inDaylightTime() argument
164 long when = time.getTime(); in inDaylightTime()
/libcore/luni/src/main/java/java/io/
DFile.java599 public boolean setLastModified(long time) { in setLastModified() argument
600 if (time < 0) { in setLastModified()
603 return setLastModifiedImpl(path, time); in setLastModified()
606 private static native boolean setLastModifiedImpl(String path, long time); in setLastModifiedImpl() argument

12