Home
last modified time | relevance | path

Searched refs:ec (Results 1 – 9 of 9) sorted by relevance

/libcore/ojluni/src/test/java/util/Collections/
DUnmodifiableMapEntrySet.java97 EntryConsumer ec = new EntryConsumer(); in testWithEntryConsumer() local
98 c.accept(ec); in testWithEntryConsumer()
99 ec.assertNoUpdates(); in testWithEntryConsumer()
105 ec -> ms.get().entrySet().forEach(ec)); in testForEach()
111 ec -> ms.get().entrySet().iterator().forEachRemaining(ec)); in testIteratorForEachRemaining()
116 testWithEntryConsumer(ec -> { in testIteratorNext()
118 ec.accept(me); in testIteratorNext()
129 s -> ec -> s.forEachRemaining(ec)); in testSpliteratorForEachRemaining()
138 s -> ec -> { while (s.tryAdvance(ec)); }); in testSpliteratorTryAdvance()
158 testWithEntryConsumer(ec -> ms.get().entrySet().stream().forEach(ec)); in testStreamForEach()
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/
DCharsetEncoderTest.java124 CharsetEncoder ec = new MockCharsetEncoder(cs, 1, MAX_BYTES); in testCharsetEncoderCharsetfloatfloat() local
125 assertSame(ec.charset(), cs); in testCharsetEncoderCharsetfloatfloat()
126 assertEquals(1.0, ec.averageBytesPerChar(), 0); in testCharsetEncoderCharsetfloatfloat()
127 assertTrue(ec.maxBytesPerChar() == MAX_BYTES); in testCharsetEncoderCharsetfloatfloat()
134 ec = new MockCharsetEncoder(null, 1, MAX_BYTES); in testCharsetEncoderCharsetfloatfloat()
139 ec = new MockCharsetEncoder(new MockCharset("mock", new String[0]), 1, in testCharsetEncoderCharsetfloatfloat()
150 ec = new MockCharsetEncoder(cs, 0, MAX_BYTES); in testCharsetEncoderCharsetfloatfloat()
155 ec = new MockCharsetEncoder(cs, 1, 0); in testCharsetEncoderCharsetfloatfloat()
162 ec = new MockCharsetEncoder(cs, -1, MAX_BYTES); in testCharsetEncoderCharsetfloatfloat()
167 ec = new MockCharsetEncoder(cs, 1, -1); in testCharsetEncoderCharsetfloatfloat()
[all …]
DCharsetDecoderTest.java99 CharsetDecoder ec = new MockCharsetDecoder(cs, 1, MAX_BYTES); in testCharsetDecoder() local
100 assertSame(ec.charset(), cs); in testCharsetDecoder()
101 assertEquals(1.0, ec.averageCharsPerByte(), 0.0); in testCharsetDecoder()
102 assertTrue(ec.maxCharsPerByte() == MAX_BYTES); in testCharsetDecoder()
108 ec = new MockCharsetDecoder(null, 1, MAX_BYTES); in testCharsetDecoder()
109 assertNull(ec.charset()); in testCharsetDecoder()
110 assertEquals(1.0, ec.averageCharsPerByte(), 0.0); in testCharsetDecoder()
111 assertTrue(ec.maxCharsPerByte() == MAX_BYTES); in testCharsetDecoder()
113 ec = new MockCharsetDecoder(new CharsetEncoderTest.MockCharset("mock", in testCharsetDecoder()
124 ec = new MockCharsetDecoder(cs, 0, MAX_BYTES); in testCharsetDecoder()
[all …]
/libcore/ojluni/src/test/java/util/Objects/
DCheckIndex.java100 BiConsumer<Class<? extends RuntimeException>, IntSupplier> checker = (ec, s) -> {
109 assertTrue(ec.isInstance(e));
162 BiConsumer<Class<? extends RuntimeException>, IntSupplier> check = (ec, s) -> {
171 assertTrue(ec.isInstance(e));
231 BiConsumer<Class<? extends RuntimeException>, IntSupplier> check = (ec, s) -> {
240 assertTrue(ec.isInstance(e));
DCheckLongIndex.java99 BiConsumer<Class<? extends RuntimeException>, LongSupplier> checker = (ec, s) -> {
108 assertTrue(ec.isInstance(e));
161 BiConsumer<Class<? extends RuntimeException>, LongSupplier> check = (ec, s) -> {
170 assertTrue(ec.isInstance(e));
225 BiConsumer<Class<? extends RuntimeException>, LongSupplier> check = (ec, s) -> {
234 assertTrue(ec.isInstance(e));
/libcore/ojluni/src/main/java/java/util/regex/
DMatcher.java1316 int ec = modCount; in replaceAll() local
1318 if (ec != modCount) in replaceAll()
1417 int ec = modCount; in results() local
1419 if (ec != modCount) in results()
1537 int ec = modCount; in replaceFirst() local
1539 if (ec != modCount) in replaceFirst()
/libcore/luni/src/test/java/tests/security/spec/
DEllipticCurveTest.java440 EllipticCurve ec = new EllipticCurve(new testECField(), BigInteger in testEllipticCurveECFieldBigIntegerBigInteger05() local
442 assertEquals("incorrect a", ec.getA(), BigInteger.valueOf(4L)); in testEllipticCurveECFieldBigIntegerBigInteger05()
443 assertEquals("incorrect b", ec.getB(), BigInteger.ONE); in testEllipticCurveECFieldBigIntegerBigInteger05()
444 assertEquals("incorrect size", ec.getField().getFieldSize(), 2); in testEllipticCurveECFieldBigIntegerBigInteger05()
/libcore/ojluni/src/test/java/nio/Buffer/
DBasicByte.java483 int ec = l - p; in testAlign() local
484 if (as.limit() != ec) { in testAlign()
485 fail("Buffer capacity incorrect, expected: " + ec, as); in testAlign()
DBasic-X.java.template483 int ec = l - p;
484 if (as.limit() != ec) {
485 fail("Buffer capacity incorrect, expected: " + ec, as);