Home
last modified time | relevance | path

Searched refs:currentTime (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/main/java/java/lang/ref/
DFinalizerReference.java167 final long currentTime = System.nanoTime(); in awaitFinalization() local
168 if (currentTime >= endTime) { in awaitFinalization()
171 final long deltaTime = endTime - currentTime; in awaitFinalization()
/libcore/ojluni/src/main/java/java/util/
DTimer.java538 long currentTime, executionTime; in mainLoop() local
545 currentTime = System.currentTimeMillis(); in mainLoop()
547 if (taskFired = (executionTime<=currentTime)) { in mainLoop()
553 task.period<0 ? currentTime - task.period in mainLoop()
559 queue.wait(executionTime - currentTime); in mainLoop()
/libcore/ojluni/annotations/hiddenapi/sun/security/util/
DMemoryCache.java104 public boolean isValid(long currentTime); in isValid() argument
130 public boolean isValid(long currentTime) { in isValid() argument
163 public boolean isValid(long currentTime) { in isValid() argument
/libcore/luni/src/test/java/libcore/libcore/util/
DZoneInfoTest.java78 Instant currentTime) throws Exception { in createZoneInfo() argument
83 ZoneInfoData data = ZoneInfoData.createZoneInfo(name, currentTime.toEpochMilli(), in createZoneInfo()
/libcore/ojluni/src/main/java/sun/security/util/
DCache.java470 boolean isValid(long currentTime); in isValid() argument
500 public boolean isValid(long currentTime) { in isValid() argument
501 boolean valid = (currentTime <= expirationTime); in isValid()
537 public boolean isValid(long currentTime) { in isValid() argument
538 boolean valid = (currentTime <= expirationTime) && (get() != null); in isValid()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
DSSLSessionTest.java98 long currentTime = System.currentTimeMillis(); in test_getCreationTime() local
100 long diff = currentTime - sessionTime; in test_getCreationTime()
101 assertTrue("diff between " + currentTime + " and " + sessionTime + " should be < 10000", in test_getCreationTime()
110 long currentTime = System.currentTimeMillis(); in test_getLastAccessedTime() local
112 long diff = currentTime - sessionTime; in test_getLastAccessedTime()
113 assertTrue("diff between " + currentTime + " and " + sessionTime + " should be < 10000", in test_getLastAccessedTime()
/libcore/luni/src/test/java/tests/java/sql/
DSelectFunctionalityTest.java101 long currentTime = Calendar.getInstance().getTimeInMillis(); in createTestTables() local
102 date = new Date(currentTime); in createTestTables()
103 time = new Time(currentTime); in createTestTables()
105 DatabaseCreator.fillTestTable2(conn, 1, 5, currentTime); in createTestTables()
/libcore/luni/src/test/java/libcore/java/nio/channels/
DOldSocketChannelTest.java276 long currentTime = System.currentTimeMillis(); in assertTimeout() local
277 if ((currentTime - startTime) > timeout) { in assertTimeout()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DDatagramChannelTest.java1304 long currentTime = System.currentTimeMillis(); in assertTimeout() local
1305 if ((currentTime - startTime) > timeout) { in assertTimeout()
DSocketChannelTest.java2106 long currentTime = System.currentTimeMillis(); in assertTimeout() local
2107 if ((currentTime - startTime) > timeout) { in assertTimeout()