Home
last modified time | relevance | path

Searched refs:ms (Results 1 – 13 of 13) sorted by relevance

/libcore/ojluni/src/main/java/sun/util/calendar/
DAbstractCalendar.java117 int ms = 0; // time of day in getCalendarDate() local
137 ms = zoneOffset % DAY_IN_MILLIS; in getCalendarDate()
144 ms += (int) (millis % DAY_IN_MILLIS); in getCalendarDate()
145 if (ms >= DAY_IN_MILLIS) { in getCalendarDate()
147 ms -= DAY_IN_MILLIS; in getCalendarDate()
152 while (ms < 0) { in getCalendarDate()
153 ms += DAY_IN_MILLIS; in getCalendarDate()
165 setTimeOfDay(date, ms); in getCalendarDate()
173 long ms = (gd - EPOCH_OFFSET) * DAY_IN_MILLIS + getTimeOfDay(date); in getTime() local
178 return ms - date.getZoneOffset(); in getTime()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DMulticastSocketTest.java783 MulticastSocket ms = new MulticastSocket((SocketAddress) null); in test_ConstructorLjava_net_SocketAddress() local
784 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
785 ms.bind(null); in test_ConstructorLjava_net_SocketAddress()
786 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
787 ms.close(); in test_ConstructorLjava_net_SocketAddress()
788 assertTrue("should be closed", ms.isClosed()); in test_ConstructorLjava_net_SocketAddress()
790 ms = new MulticastSocket(0); in test_ConstructorLjava_net_SocketAddress()
791 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in test_ConstructorLjava_net_SocketAddress()
792 ms.close(); in test_ConstructorLjava_net_SocketAddress()
793 assertTrue("should be closed", ms.isClosed()); in test_ConstructorLjava_net_SocketAddress()
[all …]
/libcore/ojluni/src/test/java/util/stream/boottest/java/util/stream/
DNodeBuilderTest.java55 List<Function<Integer, Node.Builder<Integer>>> ms = Arrays.asList( in createNodeBuilders() local
60 Object[][] params = new Object[ls.size() * ms.size()][]; in createNodeBuilders()
63 for (Function<Integer, Node.Builder<Integer>> m : ms) { in createNodeBuilders()
100 List<Function<Integer, Node.Builder<Integer>>> ms = Arrays.asList( in createIntNodeBuilders() local
105 Object[][] params = new Object[ls.size() * ms.size()][]; in createIntNodeBuilders()
108 for (Function<Integer, Node.Builder<Integer>> m : ms) { in createIntNodeBuilders()
150 List<Function<Integer, Node.Builder<Long>>> ms = Arrays.asList( in createLongNodeBuilders() local
155 Object[][] params = new Object[ls.size() * ms.size()][]; in createLongNodeBuilders()
158 for (Function<Integer, Node.Builder<Long>> m : ms) { in createLongNodeBuilders()
200 List<Function<Integer, Node.Builder<Double>>> ms = Arrays.asList( in createDoubleNodeBuilders() local
[all …]
/libcore/luni/src/main/java/java/util/concurrent/
DTimeUnit.java326 long ms = toMillis(timeout); in timedWait() local
327 int ns = excessNanos(timeout, ms); in timedWait()
328 obj.wait(ms, ns); in timedWait()
346 long ms = toMillis(timeout); in timedJoin() local
347 int ns = excessNanos(timeout, ms); in timedJoin()
348 thread.join(ms, ns); in timedJoin()
364 long ms = toMillis(timeout); in sleep() local
365 int ns = excessNanos(timeout, ms); in sleep()
366 Thread.sleep(ms, ns); in sleep()
DForkJoinTask.java1005 long ns, ms; // measure in nanosecs, but wait in millisecs in get() local
1008 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
1012 wait(ms); // OK to throw InterruptedException in get()
DForkJoinPool.java2209 long ms, ns; in awaitJoin() local
2211 ms = 0L; in awaitJoin()
2214 else if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) <= 0L) in awaitJoin()
2215 ms = 1L; in awaitJoin()
2217 task.internalWait(ms); in awaitJoin()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DSliceOpTest.java294 Function<Stream<Integer>, Stream<Integer>>[] ms = new Function[4];
295 ms[0] = mRef;
296 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e);
297 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e);
298 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e);
299 testSliceMulti(data, expectedSize, ms);
305 Function<Stream<Integer>, Stream<Integer>>... ms) {
306 for (int i = 0; i < ms.length; i++) {
308 Function<Stream<Integer>, Stream<Integer>> m = ms[i];
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DOpTestCase.java111 Function<S_IN, S_OUT>... ms) { in exerciseOpsMulti() argument
113 for (Function<S_IN, S_OUT> m : ms) { in exerciseOpsMulti()
134 Function<Stream<Integer>, Stream<Integer>>[] ms = new Function[4]; in exerciseOpsInt() local
135 ms[0] = mRef; in exerciseOpsInt()
136 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e); in exerciseOpsInt()
137 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt()
138 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt()
139 return exerciseOpsMulti(data, ms); in exerciseOpsInt()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DOpTestCase.java112 Function<S_IN, S_OUT>... ms) { in exerciseOpsMulti() argument
114 for (Function<S_IN, S_OUT> m : ms) { in exerciseOpsMulti()
135 Function<Stream<Integer>, Stream<Integer>>[] ms = new Function[4]; in exerciseOpsInt() local
136 ms[0] = mRef; in exerciseOpsInt()
137 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e); in exerciseOpsInt()
138 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt()
139 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e); in exerciseOpsInt()
140 return exerciseOpsMulti(data, ms); in exerciseOpsInt()
/libcore/ojluni/src/main/java/java/util/
DDate.java1237 int ms = date.getMillis(); in normalize() local
1254 gc.set(gc.MILLISECOND, ms); in normalize()
1265 date.setNormalizedDate(y, m, d).setTimeOfDay(hh, mm, ss, ms); in normalize()
1275 date.setNormalizedDate(y, m, d).setTimeOfDay(hh, mm, ss, ms); in normalize()
/libcore/luni/src/test/java/tests/security/cert/
DCertificateFactory1Test.java618 MyCertificate ms = createMC(); in testCertificateFactory16() local
620 list.add(ms); in testCertificateFactory16()
/libcore/luni/src/test/java/libcore/java/net/
DOldSocketTest.java391 int ms = s.getSoTimeout(); in test_getSoTimeout_setSoTimeout() local
392 assertTrue("suspicious timeout: " + ms, Math.abs(ms - 1500) <= 10); in test_getSoTimeout_setSoTimeout()
/libcore/ojluni/src/main/native/
Djvm.h82 JVM_MonitorWait(JNIEnv *env, jobject obj, jlong ms);