/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | NativeThread.java | 36 // On systems that do not require this type of signalling, the current() method 46 static native long current(); method in class:NativeThread
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | ThreadTest.java | 38 Thread current = Thread.currentThread(); 39 ThreadGroup tg = current.getThreadGroup(); 41 assertSame(tg, current.getUncaughtExceptionHandler()); 42 current.setUncaughtExceptionHandler(eh); 44 assertSame(eh, current.getUncaughtExceptionHandler()); 46 current.setUncaughtExceptionHandler(null); 48 assertSame(tg, current.getUncaughtExceptionHandler());
|
H A D | ThreadLocalRandomTest.java | 54 ThreadLocalRandom.current().setSeed(17); 63 int f = ThreadLocalRandom.current().nextInt(); 65 while (i < NCALLS && ThreadLocalRandom.current().nextInt() == f) 74 long f = ThreadLocalRandom.current().nextLong(); 76 while (i < NCALLS && ThreadLocalRandom.current().nextLong() == f) 85 boolean f = ThreadLocalRandom.current().nextBoolean(); 87 while (i < NCALLS && ThreadLocalRandom.current().nextBoolean() == f) 96 float f = ThreadLocalRandom.current().nextFloat(); 98 while (i < NCALLS && ThreadLocalRandom.current().nextFloat() == f) 107 double f = ThreadLocalRandom.current() [all...] |
H A D | ThreadLocalRandom8Test.java | 43 ThreadLocalRandom r = ThreadLocalRandom.current(); 60 ThreadLocalRandom r = ThreadLocalRandom.current(); 77 ThreadLocalRandom r = ThreadLocalRandom.current(); 92 ThreadLocalRandom r = ThreadLocalRandom.current(); 107 ThreadLocalRandom r = ThreadLocalRandom.current(); 122 ThreadLocalRandom r = ThreadLocalRandom.current(); 141 ThreadLocalRandom r = ThreadLocalRandom.current(); 160 ThreadLocalRandom r = ThreadLocalRandom.current(); 179 ThreadLocalRandom r = ThreadLocalRandom.current(); 190 ThreadLocalRandom r = ThreadLocalRandom.current(); [all...] |
H A D | ExecutorsTest.java | 313 Thread current = Thread.currentThread(); 314 assertTrue(!current.isDaemon()); 315 assertTrue(current.getPriority() <= Thread.NORM_PRIORITY); 316 ThreadGroup g = current.getThreadGroup(); 322 String name = current.getName(); 351 Thread current = Thread.currentThread(); 352 assertTrue(!current.isDaemon()); 353 assertTrue(current.getPriority() <= Thread.NORM_PRIORITY); 354 ThreadGroup g = current.getThreadGroup(); 360 String name = current [all...] |
/libcore/luni/src/main/java/java/util/concurrent/atomic/ |
H A D | AtomicMarkableReference.java | 49 * Returns the current value of the reference. 51 * @return the current value of the reference 58 * Returns the current value of the mark. 60 * @return the current value of the mark 67 * Returns the current values of both the reference and the mark. 72 * @return the current value of the reference 83 * current reference is {@code ==} to the expected reference 84 * and the current mark is equal to the expected mark. 107 * current reference is {@code ==} to the expected reference 108 * and the current mar [all...] |
H A D | AtomicStampedReference.java | 49 * Returns the current value of the reference. 51 * @return the current value of the reference 58 * Returns the current value of the stamp. 60 * @return the current value of the stamp 67 * Returns the current values of both the reference and the stamp. 72 * @return the current value of the reference 83 * current reference is {@code ==} to the expected reference 84 * and the current stamp is equal to the expected stamp. 107 * current reference is {@code ==} to the expected reference 108 * and the current stam [all...] |
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | Semaphore.java | 166 int current = getState(); 167 int next = current + releases; 168 if (next < current) // overflow 170 if (compareAndSetState(current, next)) 177 int current = getState(); 178 int next = current - reductions; 179 if (next > current) // underflow 181 if (compareAndSetState(current, next)) 188 int current = getState(); 189 if (current [all...] |
H A D | LinkedBlockingQueue.java | 209 // * Tells whether both locks are held by current thread. 284 * less the current {@code size} of this queue. 734 private Node<E> current; field in class:LinkedBlockingQueue.Itr 741 current = head.next; 742 if (current != null) 743 currentElement = current.item; 750 return current != null; 756 if (current == null) 758 lastRet = current; 763 for (Node<E> p = current, 803 Node<E> current; // current node; null until initialized field in class:LinkedBlockingQueue.LBQSpliterator [all...] |
/libcore/ojluni/src/main/java/java/text/ |
H A D | CharacterIterator.java | 50 * Iterators maintain a current character index, whose valid range is from 53 * The current index can be retrieved by calling getIndex() and set directly 59 * also returned by other methods to indicate that the current index is 132 * Gets the character at the current position (as returned by getIndex()). 133 * @return the character at the current position or DONE if the current 137 public char current(); method in interface:CharacterIterator 142 * to getEndIndex(), the current index is reset to getEndIndex() and 151 * at the new index. If the current index is getBeginIndex(), the index 153 * @return the character at the new position or DONE if the current [all...] |
H A D | StringCharacterIterator.java | 129 return current(); 143 return current(); 155 return current(); 159 * Implements CharacterIterator.current() for String. 160 * @see CharacterIterator#current 162 public char current() method in class:StringCharacterIterator
|
H A D | IcuIteratorWrapper.java | 266 * Sets the current iteration position to the beginning of the text. 276 * Sets the current iteration position to the end of the text. 293 * the current one. 330 * @return The position of the first break after the current position. 347 // if we start by updating the current iteration position to the 370 * Returns the current iteration position. 372 * @return The current iteration position. 374 public int current() { method in class:IcuIteratorWrapper 375 return wrapped.current(); 396 * the current iteratio [all...] |
/libcore/luni/src/test/java/libcore/java/text/ |
H A D | OldDateFormatTest.java | 93 Date current = new Date(); 94 String dtf = format.format(current); 96 assertTrue("Incorrect date format", sdf.format(current).equals(dtf)); 113 Date current = new Date(); 116 StringBuffer sb = format.format(current, toAppend, fp); 118 assertTrue("Incorrect date format", sdf.format(current).equals( 222 Date current = new Date(); 225 Date date = format.parse(format.format(current).toString()); 226 assertEquals(current.getDate(), date.getDate()); 227 assertEquals(current [all...] |
H A D | DateFormatTest.java | 52 final Date current = new Date(1468250177000L); // 20160711 15:16:17 GMT 54 String actualDateString = format.format(current); 56 String expectedDateString = sdf.format(current);
|
/libcore/luni/src/main/java/java/util/concurrent/locks/ |
H A D | ReentrantReadWriteLock.java | 267 * The number of reentrant read locks held by current thread. 322 * Returns true if the current thread, when trying to acquire 329 * Returns true if the current thread, when trying to acquire 365 Thread current = Thread.currentThread(); 370 if (w == 0 || current != getExclusiveOwnerThread()) 381 setExclusiveOwnerThread(current); 386 Thread current = Thread.currentThread(); 387 if (firstReader == current) { 395 if (rh == null || rh.tid != getThreadId(current)) 418 "attempt to unlock read lock, not locked by current threa 468 fullTryAcquireShared(Thread current) argument [all...] |
H A D | ReentrantLock.java | 23 * immediately if the current thread already owns the lock. This can 104 final Thread current = Thread.currentThread(); 108 setExclusiveOwnerThread(current); 112 else if (current == getExclusiveOwnerThread()) { 138 // we don't need to do so to check if current thread is owner 209 final Thread current = Thread.currentThread(); 214 setExclusiveOwnerThread(current); 218 else if (current == getExclusiveOwnerThread()) { 253 * <p>If the current thread already holds the lock then the hold 257 * current threa [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | AttributedCharacterIteratorTest.java | 27 * @tests java.text.AttributedCharacterIterator#current() 33 assertEquals("Wrong first", 'T', it.current()); 35 assertEquals("Wrong second", 'e', it.current()); 38 assertEquals("Wrong last", 'g', it.current()); 40 assertTrue("Wrong final", it.current() == CharacterIterator.DONE); 43 assertEquals("Wrong first2", 's', it.current()); 151 assertEquals("Wrong first", '2', it.current());
|
H A D | StringCharacterIteratorTest.java | 162 * @tests java.text.StringCharacterIterator.current() 166 assertEquals('f', fixture.current()); 168 assertEquals('i', fixture.current()); 172 assertEquals("Wrong current char", 'i', it.current()); 299 assertTrue("Wrong current char", 300 it1.current() == CharacterIterator.DONE); 345 assertEquals("Wrong current char", 's', it1.current()); 359 assertEquals('f', fixture.current()); [all...] |
/libcore/ojluni/src/main/java/java/sql/ |
H A D | SQLException.java | 289 SQLException current = this; 291 SQLException next=current.next; 293 current = next; 297 if (nextUpdater.compareAndSet(current,null,ex)) { 300 current=current.next;
|
/libcore/ojluni/src/main/java/java/util/regex/ |
H A D | Pattern.java | 1286 int current = 0; 1287 while ((slashEIndex = s.indexOf("\\E", current)) != -1) { 1288 sb.append(s.substring(current, slashEIndex)); 1289 current = slashEIndex + 2; 1292 sb.append(s.substring(current, s.length())); 1394 // when current == input.length there are no more elements 1395 private int current; 1423 if (current == input.length()) 1429 nextElement = input.subSequence(current, matcher.start()).toString(); 1430 current [all...] |
/libcore/ojluni/src/main/java/java/util/ |
H A D | Properties.java | 654 int current = 0; 659 while (current < len) { 660 char c = comments.charAt(current); 662 if (last != current) 663 bw.write(comments.substring(last, current)); 673 current != len - 1 && 674 comments.charAt(current + 1) == '\n') { 675 current++; 677 if (current == len - 1 || 678 (comments.charAt(current [all...] |
H A D | WeakHashMap.java | 457 * If current capacity is MAXIMUM_CAPACITY, this method does not 462 * must be greater than current capacity unless current 1040 WeakHashMap.Entry<K,V> current; // current node field in class:WeakHashMap.WeakHashMapSpliterator 1041 int index; // current index, modified on advance/split 1101 (i < (index = hi) || current != null)) { 1102 WeakHashMap.Entry<K,V> p = current; 1103 current = null; // exhaust 1128 while (current ! [all...] |
H A D | HashMap.java | 59 * current capacity, the hash table is <i>rehashed</i> (that is, internal data 494 * If current capacity is MAXIMUM_CAPACITY, this method does not 499 * must be greater than current capacity unless current 518 * Transfers all entries from current table to newTable. 833 int index; // current slot 834 HashMapEntry<K,V> current; // current entry field in class:HashMap.HashIterator 861 current = e; 866 if (current 900 HashMapEntry<K,V> current; // current entry field in class:HashMap.HashMapSpliterator [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
H A D | ThreadGroupTest.java | 60 "Has to be possible to create a subgroup of current group using simple constructor", 79 assertTrue("Has to be possible to create a subgroup of current group", 282 ThreadGroup current = testRoot; 289 current = new ThreadGroup(current, "level " + i); 290 groups.addElement(current); 295 current = groups.elementAt(i); 297 assertTrue("Parent is wrong", current.getParent() == previous); 411 "setMaxPriority: Any value higher than the current one is ignored. Before: " 434 ThreadGroup current [all...] |
/libcore/ojluni/src/main/java/java/util/zip/ |
H A D | ZipOutputStream.java | 56 private XEntry current; field in class:ZipOutputStream 167 * start of the entry data. Closes the current entry if still active. 169 * was specified for the entry, and the current time will be used if 177 if (current != null) { 220 current = new XEntry(e, written); 221 xentries.add(current); 222 writeLOC(current); 226 * Closes the current ZIP entry and positions the stream for writing 233 if (current != null) { 234 ZipEntry e = current [all...] |