/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | StampedLockTest.java | 114 readLockers.add(sl -> sl.readLock()); in readLockers() 115 readLockers.add(sl -> sl.tryReadLock()); in readLockers() 116 readLockers.add(sl -> readLockInterruptiblyUninterrupted(sl)); in readLockers() 117 readLockers.add(sl -> tryReadLockUninterrupted(sl, Long.MIN_VALUE, DAYS)); in readLockers() 118 readLockers.add(sl -> tryReadLockUninterrupted(sl, 0L, DAYS)); in readLockers() 119 readLockers.add(sl -> sl.tryConvertToReadLock(sl.tryOptimisticRead())); in readLockers() 125 readUnlockers.add((sl, stamp) -> sl.unlockRead(stamp)); in readUnlockers() 126 readUnlockers.add((sl, stamp) -> assertTrue(sl.tryUnlockRead())); in readUnlockers() 127 readUnlockers.add((sl, stamp) -> sl.asReadLock().unlock()); in readUnlockers() 128 readUnlockers.add((sl, stamp) -> sl.unlock(stamp)); in readUnlockers() [all …]
|
/libcore/ojluni/src/main/java/jdk/random/ |
D | L128X128MixRandom.java | 142 private long sh, sl, x0, x1; field in L128X128MixRandom 158 public L128X128MixRandom(long ah, long al, long sh, long sl, long x0, long x1) { in L128X128MixRandom() argument 163 this.sl = sl; in L128X128MixRandom() 222 long ah = data[0], al = data[1], sh = data[2], sl = data[3], x0 = data[4], x1 = data[5]; in L128X128MixRandom() local 227 this.sl = sl; in L128X128MixRandom() 250 final long u = ML * sl; in nextLong() 260 … sh = (ML * sh) + (Math.multiplyHigh(ML, sl) + ((ML >> 63) & sl) + ((sl >> 63) & ML)) + sl + ah; in nextLong() 261 sl = u + al; in nextLong() 262 …if (Long.compareUnsigned(sl, u) < 0) ++sh; // Handle the carry propagation from low half to high … in nextLong()
|
D | L128X256MixRandom.java | 151 private long sh, sl, x0, x1, x2, x3; field in L128X256MixRandom 169 … public L128X256MixRandom(long ah, long al, long sh, long sl, long x0, long x1, long x2, long x3) { in L128X256MixRandom() argument 174 this.sl = sl; in L128X256MixRandom() 241 long ah = data[0], al = data[1], sh = data[2], sl = data[3], in L128X256MixRandom() local 247 this.sl = sl; in L128X256MixRandom() 273 final long u = ML * sl; in nextLong() 283 … sh = (ML * sh) + (Math.multiplyHigh(ML, sl) + ((ML >> 63) & sl) + ((sl >> 63) & ML)) + sl + ah; in nextLong() 284 sl = u + al; in nextLong() 285 …if (Long.compareUnsigned(sl, u) < 0) ++sh; // Handle the carry propagation from low half to high … in nextLong()
|
D | L128X1024MixRandom.java | 153 private long sh, sl; field in L128X1024MixRandom 185 public L128X1024MixRandom(long ah, long al, long sh, long sl, in L128X1024MixRandom() argument 194 this.sl = sl; in L128X1024MixRandom() 283 long ah = data[0], al = data[1], sh = data[2], sl = data[3]; in L128X1024MixRandom() local 288 this.sl = sl; in L128X1024MixRandom() 325 final long u = ML * sl; in nextLong() 336 … sh = (ML * sh) + (Math.multiplyHigh(ML, sl) + ((ML >> 63) & sl) + ((sl >> 63) & ML)) + sl + ah; in nextLong() 337 sl = u + al; in nextLong() 338 …if (Long.compareUnsigned(sl, u) < 0) ++sh; // Handle the carry propagation from low half to high … in nextLong()
|
/libcore/ojluni/src/test/java/util/ServiceLoader/basic/ |
D | Basic.java | 84 ServiceLoader<FooService> sl = tl.load(); in test() local 85 out.format("%s: %s%n", tl.name, sl); in test() 88 Set<FooService> ps = setOf(sl); in test() 89 checkEquals(ps, setOf(sl), true); in test() 92 sl.reload(); in test() 93 checkEquals(ps, setOf(sl), false); in test()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Base64.java | 421 private void encodeBlock(byte[] src, int sp, int sl, byte[] dst, int dp, boolean isURL) { in encodeBlock() argument 423 for (int sp0 = sp, dp0 = dp ; sp0 < sl; ) { in encodeBlock() 438 int sl = off + slen; in encode0() local 442 while (sp < sl) { in encode0() 443 int sl0 = Math.min(sp + slen, sl); in encode0() 651 int sp, sl; in decode() local 655 sl = buffer.arrayOffset() + buffer.limit(); in decode() 661 sl = src.length; in decode() 663 byte[] dst = new byte[decodedOutLength(src, sp, sl)]; in decode() 664 return ByteBuffer.wrap(dst, 0, decode0(src, sp, sl, dst)); in decode() [all …]
|
D | HashMap.java | 2215 TreeNode<K,V> s = pr, sl; in removeTreeNode() local 2216 while ((sl = s.left) != null) // find successor in removeTreeNode() 2217 s = sl; in removeTreeNode() 2459 TreeNode<K,V> sl = xpr.left, sr = xpr.right; in balanceDeletion() local 2461 (sl == null || !sl.red)) { in balanceDeletion() 2467 if (sl != null) in balanceDeletion() 2468 sl.red = false; in balanceDeletion() 2497 TreeNode<K,V> sl = xpl.left, sr = xpl.right; in balanceDeletion() local 2498 if ((sl == null || !sl.red) && in balanceDeletion() 2504 if (sl == null || !sl.red) { in balanceDeletion() [all …]
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | FileSystems.java | 332 ServiceLoader<FileSystemProvider> sl = ServiceLoader in newFileSystem() local 334 for (FileSystemProvider provider: sl) { in newFileSystem() 397 ServiceLoader<FileSystemProvider> sl = ServiceLoader in newFileSystem() local 399 for (FileSystemProvider provider: sl) { in newFileSystem()
|
/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AsynchronousChannelProvider.java | 113 ServiceLoader<AsynchronousChannelProvider> sl = in loadProviderAsService() local 116 Iterator<AsynchronousChannelProvider> i = sl.iterator(); in loadProviderAsService()
|
D | SelectorProvider.java | 116 ServiceLoader<SelectorProvider> sl = in loadProviderAsService() local 119 Iterator<SelectorProvider> i = sl.iterator(); in loadProviderAsService()
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | StampedLockTest.java | 842 StampedLock sl = new StampedLock(); in testAsWriteLock() local 843 Lock lock = sl.asWriteLock(); in testAsWriteLock() 854 StampedLock sl = new StampedLock(); in testAsReadLock() local 855 Lock lock = sl.asReadLock(); in testAsReadLock() 865 StampedLock sl = new StampedLock(); in testAsReadWriteLockWriteLock() local 866 Lock lock = sl.asReadWriteLock().writeLock(); in testAsReadWriteLockWriteLock() 877 StampedLock sl = new StampedLock(); in testAsReadWriteLockReadLock() local 878 Lock lock = sl.asReadWriteLock().readLock(); in testAsReadWriteLockReadLock()
|
/libcore/ojluni/src/main/java/java/nio/file/spi/ |
D | FileSystemProvider.java | 115 ServiceLoader<FileSystemProvider> sl = ServiceLoader in loadInstalledProviders() local 119 for (FileSystemProvider provider: sl) { in loadInstalledProviders()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | Charset.java | 360 ServiceLoader<CharsetProvider> sl = in providers() 362 Iterator<CharsetProvider> i = sl.iterator(); in providers()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | VectorTest.java | 1258 List sl = tVector.subList(10, 25); in test_subListII() local 1259 assertEquals("Returned sublist of incorrect size", 15, sl.size()); in test_subListII() 1261 assertTrue("Returned incorrect sublist", sl in test_subListII() 1264 …nized random access", "java.util.Collections$SynchronizedRandomAccessList", sl.getClass().getName() in test_subListII()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | ConcurrentHashMap.java | 3019 TreeNode<K,V> s = pr, sl; in removeTreeNode() local 3020 while ((sl = s.left) != null) // find successor in removeTreeNode() 3021 s = sl; in removeTreeNode() 3209 TreeNode<K,V> sl = xpr.left, sr = xpr.right; in balanceDeletion() local 3211 (sl == null || !sl.red)) { in balanceDeletion() 3217 if (sl != null) in balanceDeletion() 3218 sl.red = false; in balanceDeletion() 3247 TreeNode<K,V> sl = xpl.left, sr = xpl.right; in balanceDeletion() local 3248 if ((sl == null || !sl.red) && in balanceDeletion() 3254 if (sl == null || !sl.red) { in balanceDeletion() [all …]
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 1028 socklen_t sl = sizeof(ss); in Linux_accept() local 1031 socklen_t* peerLength = (javaSocketAddress != NULL) ? &sl : 0; in Linux_accept() 2176 socklen_t sl = sizeof(ss); in Linux_recvfromBytes() local 2179 socklen_t* fromLength = (javaInetSocketAddress != NULL) ? &sl : 0; in Linux_recvfromBytes()
|