/libcore/ojluni/src/main/java/sun/util/locale/ |
D | LanguageTag.java | 212 String s = itr.current(); in parse() local 235 String s = itr.current(); in parseLanguage() local 254 String s = itr.current(); in parseExtlangs() local 282 String s = itr.current(); in parseScript() local 300 String s = itr.current(); in parseRegion() local 319 String s = itr.current(); in parseVariants() local 343 String s = itr.current(); in parseExtensions() local 386 String s = itr.current(); in parsePrivateuse() local 587 public static boolean isLanguage(String s) { in isLanguage() 597 public static boolean isExtlang(String s) { in isExtlang() [all …]
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | StampedLockTest.java | 56 void releaseWriteLock(StampedLock lock, long s) { in releaseWriteLock() 81 long s = lock.writeLock(); in testLock() local 107 long s = lock.writeLock(); in testUnlock() local 134 long s = lock.writeLock(); in testTryUnlock() local 174 long s = lock.writeLock(); in testWriteUnlock_IMSE2() local 187 long s = lock.readLock(); in testWriteUnlock_IMSE3() local 199 long s = lock.readLock(); in testReadUnlock_IMSE() local 223 long s = lock.writeLock(); in testReadUnlock_IMSE3() local 243 long s = lock.writeLock(); in testValidate() local 269 long s; in testValidate2() local [all …]
|
D | SemaphoreTest.java | 54 InterruptibleLockRunnable(Semaphore s) { lock = s; } in InterruptibleLockRunnable() 68 InterruptedLockRunnable(Semaphore s) { lock = s; } in InterruptedLockRunnable() 77 void waitForQueuedThread(PublicSemaphore s, Thread t) { in waitForQueuedThread() 91 void waitForQueuedThreads(Semaphore s) { in waitForQueuedThreads() 102 void acquire(Semaphore s) throws InterruptedException { in acquire() 107 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN() 112 void acquire(Semaphore s) { in acquireUninterruptibly() 117 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN() 122 void acquire(Semaphore s) { in tryAcquire() 127 void acquire(Semaphore s, int permits) { in tryAcquireN() [all …]
|
D | EntryTest.java | 44 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k1, v1); in testConstructor2() local 64 Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); in testConstructor4() local 77 Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); in testEquals() local 101 Map.Entry s = new AbstractMap.SimpleImmutableEntry(k2, v1); in testNotEquals() local 127 Map.Entry s = new AbstractMap.SimpleImmutableEntry(s2); in testSetValue2() local
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | StringTest.java | 95 String s = new String(new byte[] { 65, 66, 67, 68, 69 }, 0); in test_Constructor$BI() local 115 String s = new String(new byte[] { 65, 66, 67, 68, 69 }, 0, 1, 3); in test_Constructor$BIII() local 122 String s = new String(new byte[] { 65, 66, 67, 68, 69 }, 0, 5, "8859_1"); in test_Constructor$BIILjava_lang_String() local 134 String s = new String(new byte[] { 65, 66, 67, 68, 69 }, "8859_1"); in test_Constructor$BLjava_lang_String() local 145 String s = new String(buf, 0, buf.length); in test_Constructor$CII() local 156 String s = new String("Hello World"); in test_ConstructorLjava_lang_String() local 224 String s = "abc"; in test_contentEqualsLjava_lang_CharSequence() local 243 String s = "abc"; in test_boolean_contentEquals_StringBuffer() local 263 String s = "abcdefghijklmnopqrstuvwxyz"; in test_containsLjava_lang_CharSequence() local 337 String s = "abc"; in test_offsetByCodePoints_II() local [all …]
|
/libcore/luni/src/test/java/libcore/java/security/ |
D | SignatureTest.java | 72 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_SuppliedProviderNotRegistered_Success() local 89 Signature s = Signature.getInstance("FOO", mockProvider); in testSignature_getInstance_DoesNotSupportKeyClass_Success() local 114 Signature s = Signature.getInstance("FOO"); in testSignature_init_DoesNotSupportKeyClass_throwsInvalidKeyException() local 141 Signature s = Signature.getInstance("FOO", mockProvider2); in testSignature_getInstance_OnlyUsesSpecifiedProvider_SameNameAndClass_Success() local 177 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType() local 195 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType() local 216 Signature s = Signature.getInstance("FOO"); in testSignature_getInstance_DelayedInitialization_KeyType() local 270 Signature s = new MySignature("FOO"); in testSignature_signArray_nullArray_throws() local 279 Signature s = new MySignature("FOO"); in testSignature_signArray_negativeOffset_throws() local 288 Signature s = new MySignature("FOO"); in testSignature_signArray_negativeLength_throws() local [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ConcurrentCloseTest.java | 50 Socket s = ss.accept(); in test_accept() local 58 Socket s = new Socket(); in test_connect() local 70 Socket s = new Socket(); in test_connect_timeout() local 82 SocketChannel s = SocketChannel.open(); in test_connect_nonBlocking() local 104 Socket s = new Socket(); in test_read() local 119 final Socket s = new Socket(); in test_read_multiple() local 161 DatagramSocket s = new DatagramSocket(); in test_recv() local 176 Socket s = new Socket(); in test_write() local 244 private final T s; field in ConcurrentCloseTest.Killer 246 public Killer(T s) { in Killer()
|
D | OldAndroidDatagramTest.java | 60 String s = stringFromPacket(packet); in run() local 109 static void stringToPacket(String s, DatagramPacket packet) { in stringToPacket() 135 String s = "Hello, Android world #" + i + "!"; in testDatagram() local 168 DatagramSocket s = new DatagramSocket(null); in test_54072_DatagramSocket() local 178 DatagramSocket s = ch.socket(); in test_54072_DatagramChannel() local
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TreeSetTest.java | 28 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testEmptySetSerialization() local 35 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testSerializationWithComparator() local 42 new SerializationTester<NavigableSet<String>>(set, s) { in testSerializationWithComparator() argument 50 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testSubSetSerialization() local 60 new SerializationTester<SortedSet<String>>(subSet, s) { in testSubSetSerialization() argument 68 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testNavigableSubSetSerialization() local 78 new SerializationTester<SortedSet<String>>(subSet, s) { in testNavigableSubSetSerialization() argument 107 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testDescendingSetSerialization() local 115 new SerializationTester<NavigableSet<String>>(descendingSet, s) { in testDescendingSetSerialization() argument 123 String s = "aced0005737200116a6176612e7574696c2e54726565536574dd98509395ed87" in testJava5SerializationWithComparator() local [all …]
|
D | BitSetTest.java | 53 private static void assertBitSet(BitSet bs, long[] longs, String s) { in assertBitSet() 71 private static void assertBitSet(long[] longs, String s) { in assertBitSet() 73 assertBitSet(BitSet.valueOf(longs), longs, s); in assertBitSet() local 75 assertBitSet(BitSet.valueOf(LongBuffer.wrap(longs)), longs, s); in assertBitSet() local 80 assertBitSet(BitSet.valueOf(LongBuffer.wrap(paddedLongs, 1, longs.length)), longs, s); in assertBitSet() local 97 private static void assertBitSet(BitSet bs, byte[] bytes, String s) { in assertBitSet() 119 private static void assertBitSet(byte[] bytes, String s) { in assertBitSet() 121 assertBitSet(BitSet.valueOf(bytes), bytes, s); in assertBitSet() local 123 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(bytes)), bytes, s); in assertBitSet() local 128 assertBitSet(BitSet.valueOf(ByteBuffer.wrap(paddedBytes, 1, bytes.length)), bytes, s); in assertBitSet() local
|
D | OldCollectionsTest.java | 604 String s = "aced0005737200276a6176612e7574696c2e436f6c6c656374696f6e73244368" in test_checkedCollectionSerializationCompatibility() local 613 Collections.<String>emptySet(), String.class), s, false); in test_checkedCollectionSerializationCompatibility() local 616 String s = "aced00057372002d6a6176612e7574696c2e436f6c6c656374696f6e73244368" in test_checkedListRandomAccessSerializationCompatibility() local 628 assertSerialized(Collections.checkedList(new ArrayList<String>(), String.class), s, true); in test_checkedListRandomAccessSerializationCompatibility() local 631 String s = "aced0005737200216a6176612e7574696c2e436f6c6c656374696f6e73244368" in test_checkedListSerializationCompatibility() local 641 assertSerialized(Collections.checkedList(new LinkedList<String>(), String.class), s, true); in test_checkedListSerializationCompatibility() local 644 String s = "aced0005737200206a6176612e7574696c2e436f6c6c656374696f6e73244368" in test_checkedSetSerializationCompatibility() local 654 assertSerialized(Collections.checkedSet(new HashSet<String>(), String.class), s, true); in test_checkedSetSerializationCompatibility() local 657 String s = "aced0005737200206a6176612e7574696c2e436f6c6c656374696f6e73244368" in test_checkedMapSerializationCompatibility() local 668 new HashMap<String, String>(), String.class, String.class), s); in test_checkedMapSerializationCompatibility() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/security/auth/x500/ |
D | X500PrincipalTest.java | 353 String s = principal.toString(); in testStreamPosition() local 374 String s = principal.toString(); in testStreamPosition_0() local 402 String s = principal.getName(X500Principal.RFC1779); in testStreamPosition_1() local 417 String s = principal.getName(X500Principal.RFC1779); in testStreamPosition_2() local 433 String s = principal.toString(); in testEncodingFromFile() local 467 String s = principal.toString(); in testToString() local 522 String s = principal.getName(X500Principal.RFC1779); in testKWAsOid_RFC1779() local 537 String s = principal.getName(X500Principal.RFC2253); in testKWAsOid_RFC2253() local 552 String s = principal.getName(X500Principal.CANONICAL); in testKWAsOid_CANONICAL() local 568 String s = principal.getName(X500Principal.RFC1779); in testOid_RFC1779() local [all …]
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | StampedLockTest.java | 173 long s = writeLocker.apply(lock); in testWriteLock_lockUnlock() local 191 long s = 42; in testReadLock_lockUnlock() local 217 long s = assertValid(lock, readLocker.apply(lock)); in testTryUnlockWrite_failure() local 234 long s = writeLocker.apply(lock); in testTryUnlockRead_failure() local 258 long s = assertNonZero(readLocker.apply(lock)); in testValidate() local 265 long s = assertNonZero(writeLocker.apply(lock)); in testValidate() local 276 long s = assertNonZero(lock.writeLock()); in testValidate2() local 323 long s = lock.writeLock(); in testInterruptibleOperationsThrowInterruptedExceptionWhenPreInterrupted() local 328 long s = lock.readLock(); in testInterruptibleOperationsThrowInterruptedExceptionWhenPreInterrupted() local 368 long s = lock.writeLock(); in testInterruptibleOperationsThrowInterruptedExceptionWriteLockedInterrupted() local [all …]
|
D | SemaphoreTest.java | 77 InterruptibleLockRunnable(Semaphore s) { lock = s; } in InterruptibleLockRunnable() 91 InterruptedLockRunnable(Semaphore s) { lock = s; } in InterruptedLockRunnable() 100 void waitForQueuedThread(PublicSemaphore s, Thread t) { in waitForQueuedThread() 114 void waitForQueuedThreads(Semaphore s) { in waitForQueuedThreads() 125 void acquire(Semaphore s) throws InterruptedException { in acquire() 130 void acquire(Semaphore s, int permits) throws InterruptedException { in acquireN() 135 void acquire(Semaphore s) { in acquireUninterruptibly() 140 void acquire(Semaphore s, int permits) { in acquireUninterruptiblyN() 145 void acquire(Semaphore s) { in tryAcquire() 150 void acquire(Semaphore s, int permits) { in tryAcquireN() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | PrintWriterTest.java | 71 String s; in test_ConstructorLjava_io_OutputStream() local 93 String s; in test_ConstructorLjava_io_OutputStreamZ() local 247 String s = null; in test_print$C() local 377 String s; in test_println() local 400 String s = null; in test_println$C() local 422 String s = null; in test_printlnC() local 441 String s = null; in test_printlnD() local 462 String s; in test_printlnF() local 484 String s = null; in test_printlnI() local 503 String s = null; in test_printlnJ() local [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | SignatureTest.java | 61 MySignature1 s = new MySignature1(algorithms[i]); in testConstructor() local 82 MySignature1 s = new MySignature1("ABC"); in testClone() local 99 MySignature1 s = new MySignature1("ABC"); in testGetProvider() local 106 MySignature1 s = new MySignature1("ABC"); in testGetAlgorithm() local 116 MySignature1 s = new MySignature1("ABC"); in testInitVerifyPublicKey() local 136 MySignature1 s = new MySignature1("ABC"); in testInitVerifyCertificate() local 157 MySignature1 s = new MySignature1("ABC"); in testInitSignPrivateKey() local 191 MySignature1 s = new MySignature1("ABC"); in testInitSignPrivateKeySecureRandom() local 212 MySignature1 s = new MySignature1("ABC"); in testSign() local 237 MySignature1 s = new MySignature1("ABC"); in testSignbyteintint() local [all …]
|
D | SignerTest.java | 79 Signer s = new SignerStub(); in testSigner() local 89 Signer s = new SignerStub("sss3"); in testSignerString() local 104 Signer s = new SignerStub("sss4", identityScope); in testSignerStringIdentityScope() local 136 Signer s = new SignerStub("sss5"); in testGetPrivateKey() local 159 SignerStub s = new SignerStub("name"); in test_setKeyPairLjava_security_KeyPair() local
|
/libcore/luni/src/test/java/libcore/java/math/ |
D | OldBigIntegerToStringTest.java | 31 String s = "0000000000"; in test_toString1() local 38 String s = "1234567890987654321"; in test_toString2() local 45 String s = "-1234567890987654321"; in test_toString3() local 52 String s = "12345678901234"; in test_toString4() local 60 String s = "-12345678901234"; in test_toString5() local 71 String s = "247856948764430159964673417020251"; in test_toString() local
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | SerializationTest.java | 43 String s = "aced0005737200346c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6e54657" in testSerializeFieldMadeTransient() local 65 String s = "aced0005737200316c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6e54657" in testSerializeFieldMadeStatic() local 103 String s = "aced0005737200386c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6e54657" in testDeserializeNullUnserializableField() local 157 String s = "aced0005737200386c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6e54657" in testDeserializeUnserializableField() local 179 String s = "aced0005737200396c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6e54657" in testSerialVersionUidChange() local 197 String s = "aced00057372002f6c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6e54657" in testMissingSerialVersionUid() local 225 final String s = "aced0005737200316c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" in testDeserializeWasSerializableClass() local 269 final String s = "aced0005737200336c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" in testDeserializeWasExternalizableClass() local 304 final String s = "aced00057e7200296c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" in testDeserializeWasEnum() local 339 final String s = "aced00057372002b6c6962636f72652e6a6176612e696f2e53657269616c697a6174696f6" in testDeserializeWasObject() local [all …]
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
D | FillableStringTest.java | 43 String s = generate().collect(Collectors.joining()); in testStringBuilder() local 48 String s = generate().collect(Collectors.joining()); in testStringBuffer() local 53 String s = generate().collect(Collectors.joining("-")); in testStringJoiner() local
|
/libcore/benchmarks/src/benchmarks/ |
D | StringIterationBenchmark.java | 24 String s = "hello, world!"; in timeStringIteration0() local 33 String s = "hello, world!"; in timeStringIteration1() local 42 String s = "hello, world!"; in timeStringIteration2() local 52 String s = "hello, world!"; in timeStringToCharArray() local
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | StreamSpliterators.java | 338 AbstractWrappingSpliterator<P_IN, Integer, ?> wrap(Spliterator<P_IN> s) { in wrap() 396 AbstractWrappingSpliterator<P_IN, Long, ?> wrap(Spliterator<P_IN> s) { in wrap() 454 AbstractWrappingSpliterator<P_IN, Double, ?> wrap(Spliterator<P_IN> s) { in wrap() 505 private T_SPLITR s; field in StreamSpliterators.AbstractWrappingSpliterator.DelegatingSpliterator 617 T_SPLITR s; field in StreamSpliterators.AbstractWrappingSpliterator.SliceSpliterator 623 SliceSpliterator(T_SPLITR s, long sliceOrigin, long sliceFence, long origin, long fence) { in SliceSpliterator() 632 …protected abstract T_SPLITR makeSpliterator(T_SPLITR s, long sliceOrigin, long sliceFence, long or… in makeSpliterator() 693 OfRef(Spliterator<T> s, long sliceOrigin, long sliceFence) { in OfRef() 697 private OfRef(Spliterator<T> s, in OfRef() 703 protected Spliterator<T> makeSpliterator(Spliterator<T> s, in makeSpliterator() [all …]
|
/libcore/ojluni/src/main/native/ |
D | linux_close.cpp | 131 int NET_Read(int s, void* buf, size_t len) { in NET_Read() 135 int NET_ReadV(int s, const struct iovec * vector, int count) { in NET_ReadV() 139 int NET_RecvFrom(int s, void *buf, int len, unsigned int flags, in NET_RecvFrom() 146 int NET_Send(int s, void *msg, int len, unsigned int flags) { in NET_Send() 150 int NET_WriteV(int s, const struct iovec * vector, int count) { in NET_WriteV() 154 int NET_SendTo(int s, const void *msg, int len, unsigned int in NET_SendTo() 159 int NET_Accept(int s, struct sockaddr *addr, int *addrlen) { in NET_Accept() 165 int NET_Connect(int s, struct sockaddr *addr, int addrlen) { in NET_Connect() 174 int NET_Select(int s, fd_set *readfds, fd_set *writefds, in NET_Select() 191 int NET_Timeout(int s, long timeout) { in NET_Timeout()
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | StampedLock.java | 347 long s, next; // bypass acquireWrite in fully unlocked case only in writeLock() local 360 long s, next; in tryWriteLock() local 421 long s = state, next; // bypass acquireRead on common uncontended case in readLock() local 435 long s, m, next; in tryReadLock() local 462 long s, m, next, deadline; in tryReadLock() local 508 long s; in tryOptimisticRead() local 555 long s, m; WNode h; in unlockRead() local 581 long a = stamp & ABITS, m, s; WNode h; in unlock() local 621 long a = stamp & ABITS, m, s, next; in tryConvertToWriteLock() local 657 long a = stamp & ABITS, m, s, next; WNode h; in tryConvertToReadLock() local [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/lang/ |
D | Short.java | 38 public Short(java.lang.String s) throws java.lang.NumberFormatException { in Short() 42 public static java.lang.String toString(short s) { in toString() 46 public static short parseShort(java.lang.String s, int radix) in parseShort() 51 public static short parseShort(java.lang.String s) throws java.lang.NumberFormatException { in parseShort() 55 public static java.lang.Short valueOf(java.lang.String s, int radix) in valueOf() 60 public static java.lang.Short valueOf(java.lang.String s) in valueOf() 65 public static java.lang.Short valueOf(short s) { in valueOf()
|