/libcore/luni/src/test/java/libcore/java/util/ |
D | SpliteratorsTest.java | 104 Spliterator<String> sp = Spliterators.spliterator(array, 0); in testSpliteratorObjectArray() local 105 assertEquals(8, sp.estimateSize()); in testSpliteratorObjectArray() 106 assertEquals(8, sp.getExactSizeIfKnown()); in testSpliteratorObjectArray() 108 sp = Spliterators.spliterator(array, 0); in testSpliteratorObjectArray() 109 SpliteratorTester.runBasicIterationTests(sp, expectedValues); in testSpliteratorObjectArray() 111 sp = Spliterators.spliterator(array, 0); in testSpliteratorObjectArray() 112 SpliteratorTester.testSpliteratorNPE(sp); in testSpliteratorObjectArray() 114 sp = Spliterators.spliterator(array, 0); in testSpliteratorObjectArray() 115 SpliteratorTester.runBasicSplitTests(sp, expectedValues, String::compareTo); in testSpliteratorObjectArray() 117 sp = Spliterators.spliterator(array, 0); in testSpliteratorObjectArray() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Base64.java | 393 int sp = off; in encode0() local 399 while (sp < sl) { in encode0() 400 int sl0 = Math.min(sp + slen, sl); in encode0() 401 for (int sp0 = sp, dp0 = dp ; sp0 < sl0; ) { in encode0() 410 int dlen = (sl0 - sp) / 3 * 4; in encode0() 412 sp = sl0; in encode0() 413 if (dlen == linemax && sp < end) { in encode0() 419 if (sp < end) { // 1 or 2 leftover bytes in encode0() 420 int b0 = src[sp++] & 0xff; in encode0() 422 if (sp == end) { in encode0() [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | StreamSpliteratorTest.java | 66 final Spliterator<T> sp; field in StreamSpliteratorTest.ProxyNoExactSizeSpliterator 73 ProxyNoExactSizeSpliterator(Spliterator<T> sp, boolean proxyEstimateSize) { in ProxyNoExactSizeSpliterator() argument 74 this.sp = sp; in ProxyNoExactSizeSpliterator() 81 Spliterator<T> prefix = sp.trySplit(); in trySplit() 90 sizeOnTraversal = sp.getExactSizeIfKnown(); in tryAdvance() 91 return sp.tryAdvance(consumer); in tryAdvance() 96 sizeOnTraversal = sp.getExactSizeIfKnown(); in forEachRemaining() 97 sp.forEachRemaining(consumer); in forEachRemaining() 102 return proxyEstimateSize ? sp.estimateSize() : Long.MAX_VALUE; in estimateSize() 107 return sp.getComparator(); in getComparator() [all …]
|
D | ConcatOpTest.java | 130 Spliterator<?> sp = s.spliterator(); in assertUnsized() local 132 assertFalse(sp.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertUnsized() 133 assertEquals(sp.estimateSize(), Long.MAX_VALUE); in assertUnsized() 137 Spliterator<?> sp = s.spliterator(); in assertSized() local 139 assertTrue(sp.hasCharacteristics(Spliterator.SIZED | Spliterator.SUBSIZED)); in assertSized() 140 assertTrue(sp.estimateSize() < Long.MAX_VALUE); in assertSized()
|
D | ConcatTest.java | 125 …private <T> void assertConcatContent(Spliterator<T> sp, boolean ordered, Spliterator<T> expected) { in assertConcatContent() argument 127 assertFalse(sp.hasCharacteristics(Spliterator.DISTINCT), scenario); in assertConcatContent() 129 assertFalse(sp.hasCharacteristics(Spliterator.SORTED), scenario); in assertConcatContent() 131 assertEquals(sp.hasCharacteristics(Spliterator.ORDERED), ordered, scenario); in assertConcatContent() 135 assertEquals(toBoxedList(sp), in assertConcatContent() 139 assertEquals(toBoxedMultiset(sp), in assertConcatContent()
|
/libcore/ojluni/src/main/native/ |
D | EPollPort.c | 40 int sp[2]; in Java_sun_nio_ch_EPollPort_socketpair() local 41 if (socketpair(PF_UNIX, SOCK_STREAM, 0, sp) == -1) { in Java_sun_nio_ch_EPollPort_socketpair() 45 res[0] = (jint)sp[0]; in Java_sun_nio_ch_EPollPort_socketpair() 46 res[1] = (jint)sp[1]; in Java_sun_nio_ch_EPollPort_socketpair()
|
D | LinuxWatchService.c | 121 int sp[2]; in Java_sun_nio_fs_LinuxWatchService_socketpair() local 122 if (socketpair(PF_UNIX, SOCK_STREAM, 0, sp) == -1) { in Java_sun_nio_fs_LinuxWatchService_socketpair() 126 res[0] = (jint)sp[0]; in Java_sun_nio_fs_LinuxWatchService_socketpair() 127 res[1] = (jint)sp[1]; in Java_sun_nio_fs_LinuxWatchService_socketpair()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | EPollPort.java | 55 private final int sp[]; field in EPollPort 101 this.sp = sv; in EPollPort() 127 close0(sp[0]); in implClose() 128 close0(sp[1]); in implClose() 136 interrupt(sp[1]); in wakeup() 208 if (fd == sp[0]) { in poll() 211 drain1(sp[0]); in poll()
|
D | PipeImpl.java | 41 PipeImpl(SelectorProvider sp) { in PipeImpl() argument 47 source = new SourceChannelImpl(sp, sourcefd); in PipeImpl() 50 sink = new SinkChannelImpl(sp, sinkfd); in PipeImpl()
|
D | PollSelectorImpl.java | 55 PollSelectorImpl(SelectorProvider sp) { in PollSelectorImpl() argument 56 super(sp, 1, 1); in PollSelectorImpl()
|
D | SelectorImpl.java | 53 protected SelectorImpl(SelectorProvider sp) { in SelectorImpl() argument 54 super(sp); in SelectorImpl()
|
D | ServerSocketChannelImpl.java | 86 ServerSocketChannelImpl(SelectorProvider sp) throws IOException { in ServerSocketChannelImpl() argument 87 super(sp); in ServerSocketChannelImpl() 93 ServerSocketChannelImpl(SelectorProvider sp, in ServerSocketChannelImpl() argument 98 super(sp); in ServerSocketChannelImpl()
|
D | AbstractPollSelectorImpl.java | 62 AbstractPollSelectorImpl(SelectorProvider sp, int channels, int offset) { in AbstractPollSelectorImpl() argument 63 super(sp); in AbstractPollSelectorImpl()
|
D | SinkChannelImpl.java | 78 SinkChannelImpl(SelectorProvider sp, FileDescriptor fd) { in SinkChannelImpl() argument 79 super(sp); in SinkChannelImpl()
|
D | SourceChannelImpl.java | 79 SourceChannelImpl(SelectorProvider sp, FileDescriptor fd) { in SourceChannelImpl() argument 80 super(sp); in SourceChannelImpl()
|
D | SocketChannelImpl.java | 126 SocketChannelImpl(SelectorProvider sp) throws IOException { in SocketChannelImpl() argument 127 super(sp); in SocketChannelImpl() 139 SocketChannelImpl(SelectorProvider sp, in SocketChannelImpl() argument 144 super(sp); in SocketChannelImpl() 160 SocketChannelImpl(SelectorProvider sp, in SocketChannelImpl() argument 164 super(sp); in SocketChannelImpl()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | LinuxWatchService.java | 78 int sp[] = new int[2]; in LinuxWatchService() local 81 socketpair(sp); in LinuxWatchService() 82 configureBlocking(sp[0], false); in LinuxWatchService() 88 this.poller = new Poller(fs, this, ifd, sp); in LinuxWatchService() 200 Poller(UnixFileSystem fs, LinuxWatchService watcher, int ifd, int[] sp) { in Poller() argument 204 this.socketpair = sp; in Poller()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/ |
D | SAXParserFactoryTest.java | 152 SAXParser sp = spf.newSAXParser(); in test_newSAXParser() local 153 assertTrue(sp instanceof SAXParser); in test_newSAXParser() 154 sp.parse(is1, new MyHandler()); in test_newSAXParser() 162 SAXParser sp = spf.newSAXParser(); in test_newSAXParser() local
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ForkJoinPool.java | 1665 WorkQueue[] ws; int wl, sp; long c; in deregisterWorker() local 1669 else if ((sp = (int)(c = ctl)) != 0) { // wake up replacement in deregisterWorker() 1670 if (tryRelease(c, ws[(wl - 1) & sp], AC_UNIT)) in deregisterWorker() 1693 long c; int sp, i; WorkQueue v; WorkQueue[] ws; in signalWork() local 1696 else if ((sp = (int)c) == 0) { // no idle workers in signalWork() 1703 else if (ws.length <= (i = sp & SMASK)) in signalWork() 1708 int ns = sp & ~UNSIGNALLED; in signalWork() 1711 if (sp == vs && U.compareAndSwapLong(this, CTL, c, nc)) { in signalWork() 1731 int sp = (int)c, ns = sp & ~UNSIGNALLED; in tryRelease() local 1735 if (sp == vs && U.compareAndSwapLong(this, CTL, c, nc)) { in tryRelease() [all …]
|
/libcore/luni/src/test/java/libcore/xml/ |
D | DomTest.java | 100 private Entity sp; field in DomTest 138 sp = (Entity) doctype.getEntities().item(0); in setUp() 170 if (sp != null) { in setUp() 171 allNodes.add(sp); in setUp() 189 assertNotNull("This implementation does not parse entity declarations", sp); in testEntityDeclarations() 202 if (sp != null) { in testLookupNamespaceURIByPrefix() 203 assertEquals(null, sp.lookupNamespaceURI("a")); in testLookupNamespaceURIByPrefix() 235 if (sp != null) { in testLookupNamespaceURIWithNullPrefix() 236 assertEquals(null, sp.lookupNamespaceURI(null)); in testLookupNamespaceURIWithNullPrefix() 273 if (sp != null) { in testLookupPrefixWithShadowedUri() [all …]
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 173 S sp = s.get(); in testNullPointerException() local 176 if (sp instanceof Spliterator.OfInt) { in testNullPointerException() 177 Spliterator.OfInt psp = (Spliterator.OfInt) sp; in testNullPointerException() 181 else if (sp instanceof Spliterator.OfLong) { in testNullPointerException() 182 Spliterator.OfLong psp = (Spliterator.OfLong) sp; in testNullPointerException() 186 else if (sp instanceof Spliterator.OfDouble) { in testNullPointerException() 187 Spliterator.OfDouble psp = (Spliterator.OfDouble) sp; in testNullPointerException() 192 executeAndCatch(NullPointerException.class, () -> sp.forEachRemaining(null)); in testNullPointerException() 193 executeAndCatch(NullPointerException.class, () -> sp.tryAdvance(null)); in testNullPointerException()
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | SpliteratorTestHelper.java | 173 S sp = s.get(); in testNullPointerException() local 176 if (sp instanceof Spliterator.OfInt) { in testNullPointerException() 177 Spliterator.OfInt psp = (Spliterator.OfInt) sp; in testNullPointerException() 181 else if (sp instanceof Spliterator.OfLong) { in testNullPointerException() 182 Spliterator.OfLong psp = (Spliterator.OfLong) sp; in testNullPointerException() 186 else if (sp instanceof Spliterator.OfDouble) { in testNullPointerException() 187 Spliterator.OfDouble psp = (Spliterator.OfDouble) sp; in testNullPointerException() 192 executeAndCatch(NullPointerException.class, () -> sp.forEachRemaining(null)); in testNullPointerException() 193 executeAndCatch(NullPointerException.class, () -> sp.tryAdvance(null)); in testNullPointerException()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SpinedBuffer.java | 354 for (int sp = splSpineIndex; sp < lastSpineIndex; sp++) { in spliterator() 355 E[] chunk = spine[sp]; in spliterator() 679 for (int sp = splSpineIndex; sp < lastSpineIndex; sp++) { in forEachRemaining() 680 T_ARR chunk = spine[sp]; in forEachRemaining()
|
/libcore/xml/src/main/java/org/kxml2/io/ |
D | KXmlParser.java | 971 int sp = (depth - 1) * 4; in readEndTag() local 979 if (name.equals(elementStack[sp + 3])) { in readEndTag() 980 namespace = elementStack[sp]; in readEndTag() 981 prefix = elementStack[sp + 1]; in readEndTag() 982 name = elementStack[sp + 2]; in readEndTag() 985 "expected: /" + elementStack[sp + 3] + " read: " + name, this, null); in readEndTag() 1137 int sp = depth++ * 4; in parseStartTag() local 1141 elementStack = ensureCapacity(elementStack, sp + 4); in parseStartTag() 1142 elementStack[sp + 3] = name; in parseStartTag() 1177 elementStack[sp] = namespace; in parseStartTag() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ShortTest.java | 22 private Short sp = new Short((short) 18000); field in ShortTest 134 short sp = Short.parseShort("32746"); in test_parseShortLjava_lang_String2() local 137 assertTrue("Incorrect parse of short", sp == (short) 32746 in test_parseShortLjava_lang_String2() 262 assertTrue("Invalid string returned", sp.toString().equals("18000") in test_toString2()
|