Home
last modified time | relevance | path

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

/libcore/ojluni/src/test/java/util/Collections/
DUnmodifiableMapEntrySet.java103 public void testForEach(String d, Supplier<Map<Integer, Integer>> ms) { in testForEach() argument
105 ec -> ms.get().entrySet().forEach(ec)); in testForEach()
109 public void testIteratorForEachRemaining(String d, Supplier<Map<Integer, Integer>> ms) { in testIteratorForEachRemaining() argument
111 ec -> ms.get().entrySet().iterator().forEachRemaining(ec)); in testIteratorForEachRemaining()
115 public void testIteratorNext(String d, Supplier<Map<Integer, Integer>> ms) { in testIteratorNext() argument
117 for (Map.Entry<Integer, Integer> me : ms.get().entrySet()) { in testIteratorNext()
124 public void testSpliteratorForEachRemaining(String d, Supplier<Map<Integer, Integer>> ms) { in testSpliteratorForEachRemaining() argument
126 ms.get().entrySet()::spliterator, in testSpliteratorForEachRemaining()
133 public void testSpliteratorTryAdvance(String d, Supplier<Map<Integer, Integer>> ms) { in testSpliteratorTryAdvance() argument
135 ms.get().entrySet()::spliterator, in testSpliteratorTryAdvance()
[all …]
/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.java759 MulticastSocket ms = new MulticastSocket((SocketAddress) null); in constructorLjava_net_SocketAddress() local
760 assertTrue("should not be bound", !ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
761 ms.bind(null); in constructorLjava_net_SocketAddress()
762 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
763 ms.close(); in constructorLjava_net_SocketAddress()
764 assertTrue("should be closed", ms.isClosed()); in constructorLjava_net_SocketAddress()
766 ms = new MulticastSocket(0); in constructorLjava_net_SocketAddress()
767 assertTrue("should be bound", ms.isBound() && !ms.isClosed() && !ms.isConnected()); in constructorLjava_net_SocketAddress()
768 ms.close(); in constructorLjava_net_SocketAddress()
769 assertTrue("should be closed", ms.isClosed()); in constructorLjava_net_SocketAddress()
[all …]
/libcore/ojluni/src/test/java/util/Map/
DCollisions.java49 public void testIntegerIteration(String desc, Supplier<Map<IntKey, IntKey>> ms, IntKey val) { in testIntegerIteration() argument
50 Map<IntKey, IntKey> map = ms.get(); in testIntegerIteration()
80 public void testStringIteration(String desc, Supplier<Map<String, String>> ms, String val) { in testStringIteration() argument
81 Map<String, String> map = ms.get(); in testStringIteration()
116 public void testRemove(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testRemove() argument
117 Map<Object, Object> map = ms.get(); in testRemove()
131 public void testKeysIteratorRemove(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testKeysIteratorRemove() argument
132 Map<Object, Object> map = ms.get(); in testKeysIteratorRemove()
146 … public void testValuesIteratorRemove(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testValuesIteratorRemove() argument
147 Map<Object, Object> map = ms.get(); in testValuesIteratorRemove()
[all …]
DInPlaceOpsCollisions.java49 public void testPutIfAbsent(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testPutIfAbsent() argument
50 Map<Object, Object> map = ms.get(); in testPutIfAbsent()
80 public void testRemoveMapping(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testRemoveMapping() argument
81 Map<Object, Object> map = ms.get(); in testRemoveMapping()
114 public void testReplaceOldValue(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testReplaceOldValue() argument
118 Map<Object, Object> map = ms.get(); in testReplaceOldValue()
146 public void testReplaceIfMapped(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testReplaceIfMapped() argument
150 Map<Object, Object> map = ms.get(); in testReplaceIfMapped()
231 …public void testComputeIfAbsentNonNull(String desc, Supplier<Map<Object, Object>> ms, Object val) { in testComputeIfAbsentNonNull() argument
232 Map<Object, Object> map = ms.get(); in testComputeIfAbsentNonNull()
[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/test/java/net/SocketOptions/
DSupportedOptionsSet.java55 MulticastSocket ms = new MulticastSocket()) { in first()
63 second = ms.supportedOptions(); in first()
74 MulticastSocket ms = new MulticastSocket()) { in second()
81 first = ms.supportedOptions(); in second()
/libcore/ojluni/src/main/java/java/util/concurrent/
DTimeUnit.java406 long ms = toMillis(timeout); in timedWait() local
407 int ns = excessNanos(timeout, ms); in timedWait()
408 obj.wait(ms, ns); in timedWait()
426 long ms = toMillis(timeout); in timedJoin() local
427 int ns = excessNanos(timeout, ms); in timedJoin()
428 thread.join(ms, ns); in timedJoin()
444 long ms = toMillis(timeout); in sleep() local
445 int ns = excessNanos(timeout, ms); in sleep()
446 Thread.sleep(ms, ns); in sleep()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DWhileOpTest.java305 Map<String, Function<Stream<Integer>, Stream<Integer>>> ms = new HashMap<>();
306 ms.put("Ref", mRef);
307 ms.put("Int", s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e));
308 ms.put("Long", s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e));
309 ms.put("Double", s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e));
310 ms.put("Ref using defaults", s -> mRef.apply(DefaultMethodStreams.delegateTo(s)));
311ms.put("Int using defaults", s -> mInt.apply(DefaultMethodStreams.delegateTo(s.mapToInt(e -> e))).…
312ms.put("Long using defaults", s -> mLong.apply(DefaultMethodStreams.delegateTo(s.mapToLong(e -> e)…
313ms.put("Double using defaults", s -> mDouble.apply(DefaultMethodStreams.delegateTo(s.mapToDouble(e…
315 testWhileMulti(data, ra, ms);
[all …]
DSliceOpTest.java299 Function<Stream<Integer>, Stream<Integer>>[] ms = new Function[4];
300 ms[0] = mRef;
301 ms[1] = s -> mInt.apply(s.mapToInt(e -> e)).mapToObj(e -> e);
302 ms[2] = s -> mLong.apply(s.mapToLong(e -> e)).mapToObj(e -> (int) e);
303 ms[3] = s -> mDouble.apply(s.mapToDouble(e -> e)).mapToObj(e -> (int) e);
304 testSliceMulti(data, expectedSize, ms);
310 Function<Stream<Integer>, Stream<Integer>>... ms) {
311 for (int i = 0; i < ms.length; i++) {
313 Function<Stream<Integer>, Stream<Integer>> m = ms[i];
/libcore/ojluni/src/main/java/java/util/zip/
DZipEntry.java315 int ms = (int)(xdostime >> 32); in getTimeLocal() local
321 (int)((xdostime << 1) & 0x3e) + ms / 1000, in getTimeLocal()
322 (ms % 1000) * 1000_000); in getTimeLocal()
/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.java1246 int ms = date.getMillis(); in normalize() local
1263 gc.set(GregorianCalendar.MILLISECOND, ms); in normalize()
1274 date.setNormalizedDate(y, m, d).setTimeOfDay(hh, mm, ss, ms); in normalize()
1284 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);