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
145 ms = zoneOffset % DAY_IN_MILLIS; in getCalendarDate()
152 ms += (int) (millis % DAY_IN_MILLIS); in getCalendarDate()
153 if (ms >= DAY_IN_MILLIS) { in getCalendarDate()
155 ms -= DAY_IN_MILLIS; in getCalendarDate()
160 while (ms < 0) { in getCalendarDate()
161 ms += DAY_IN_MILLIS; in getCalendarDate()
173 setTimeOfDay(date, ms); in getCalendarDate()
181 long ms = (gd - EPOCH_OFFSET) * DAY_IN_MILLIS + getTimeOfDay(date); in getTime() local
186 return ms - date.getZoneOffset(); in getTime()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DMulticastSocketTest.java766 MulticastSocket ms = new MulticastSocket((SocketAddress) null); in constructorLjava_net_SocketAddress() local
767 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
768 ms.bind(null); in constructorLjava_net_SocketAddress()
769 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
770 ms.close(); in constructorLjava_net_SocketAddress()
771 assertTrue("should be closed", ms.isClosed()); in constructorLjava_net_SocketAddress()
773 ms = new MulticastSocket(0); in constructorLjava_net_SocketAddress()
774 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
775 ms.close(); in constructorLjava_net_SocketAddress()
776 assertTrue("should be closed", ms.isClosed()); in 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/ojluni/src/main/java/java/util/concurrent/
DTimeUnit.java351 long ms = toMillis(timeout); in timedWait() local
352 int ns = excessNanos(timeout, ms); in timedWait()
353 obj.wait(ms, ns); in timedWait()
371 long ms = toMillis(timeout); in timedJoin() local
372 int ns = excessNanos(timeout, ms); in timedJoin()
373 thread.join(ms, ns); in timedJoin()
389 long ms = toMillis(timeout); in sleep() local
390 int ns = excessNanos(timeout, ms); in sleep()
391 Thread.sleep(ms, ns); in sleep()
DForkJoinTask.java1034 long ns, ms; // measure in nanosecs, but wait in millisecs in get() local
1037 if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) > 0L && in get()
1041 wait(ms); // OK to throw InterruptedException in get()
DForkJoinPool.java2241 long ms, ns; in awaitJoin() local
2243 ms = 0L; in awaitJoin()
2246 else if ((ms = TimeUnit.NANOSECONDS.toMillis(ns)) <= 0L) in awaitJoin()
2247 ms = 1L; in awaitJoin()
2249 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.java1244 int ms = date.getMillis(); in normalize() local
1261 gc.set(GregorianCalendar.MILLISECOND, ms); in normalize()
1272 date.setNormalizedDate(y, m, d).setTimeOfDay(hh, mm, ss, ms); in normalize()
1282 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.java397 int ms = s.getSoTimeout(); in test_getSoTimeout_setSoTimeout() local
398 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);