/libcore/ojluni/src/main/java/java/util/concurrent/atomic/ |
D | AtomicInteger.java | 177 public final int getAndAdd(int delta) { in getAndAdd() argument 178 return U.getAndAddInt(this, VALUE, delta); in getAndAdd() 205 public final int addAndGet(int delta) { in addAndGet() argument 206 return U.getAndAddInt(this, VALUE, delta) + delta; in addAndGet()
|
D | AtomicIntegerFieldUpdater.java | 217 public int getAndAdd(T obj, int delta) { in getAndAdd() argument 221 next = prev + delta; in getAndAdd() 266 public int addAndGet(T obj, int delta) { in addAndGet() argument 270 next = prev + delta; in addAndGet() 508 public final int getAndAdd(T obj, int delta) { in getAndAdd() argument 510 return U.getAndAddInt(obj, offset, delta); in getAndAdd() 529 public final int addAndGet(T obj, int delta) { in addAndGet() argument 530 return getAndAdd(obj, delta) + delta; in addAndGet()
|
D | AtomicLong.java | 193 public final long getAndAdd(long delta) { in getAndAdd() argument 194 return U.getAndAddLong(this, VALUE, delta); in getAndAdd() 221 public final long addAndGet(long delta) { in addAndGet() argument 222 return U.getAndAddLong(this, VALUE, delta) + delta; in addAndGet()
|
D | AtomicIntegerArray.java | 216 public final int getAndAdd(int i, int delta) { in getAndAdd() argument 217 return U.getAndAddInt(array, checkedByteOffset(i), delta); in getAndAdd() 247 public final int addAndGet(int i, int delta) { in addAndGet() argument 248 return getAndAdd(i, delta) + delta; in addAndGet()
|
D | AtomicLongArray.java | 215 public final long getAndAdd(int i, long delta) { in getAndAdd() argument 216 return U.getAndAddLong(array, checkedByteOffset(i), delta); in getAndAdd() 246 public long addAndGet(int i, long delta) { in addAndGet() argument 247 return getAndAdd(i, delta) + delta; in addAndGet()
|
D | AtomicLongFieldUpdater.java | 220 public long getAndAdd(T obj, long delta) { in getAndAdd() argument 224 next = prev + delta; in getAndAdd() 269 public long addAndGet(T obj, long delta) { in addAndGet() argument 273 next = prev + delta; in addAndGet() 483 public final long getAndAdd(T obj, long delta) { in getAndAdd() argument 485 return U.getAndAddLong(obj, offset, delta); in getAndAdd() 504 public final long addAndGet(T obj, long delta) { in addAndGet() argument 505 return getAndAdd(obj, delta) + delta; in addAndGet()
|
/libcore/ojluni/src/main/java/java/io/ |
D | BufferedReader.java | 136 int delta = nextChar - markedChar; in fill() local 137 if (delta >= readAheadLimit) { in fill() 145 System.arraycopy(cb, markedChar, cb, 0, delta); in fill() 147 dst = delta; in fill() 161 System.arraycopy(cb, markedChar, ncb, 0, delta); in fill() 164 dst = delta; in fill() 166 nextChar = nChars = delta; in fill()
|
D | ExpiringCache.java | 110 long delta = System.currentTimeMillis() - entry.timestamp(); in entryFor() local 111 if (delta < 0 || delta >= millisUntilExpiration) { in entryFor()
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/atomic/ |
D | AtomicInteger.java | 83 public final int getAndAdd(int delta) { in getAndAdd() argument 95 public final int addAndGet(int delta) { in addAndGet() argument
|
/libcore/ojluni/src/main/java/sun/misc/ |
D | Unsafe.java | 702 public final int getAndAddInt(Object o, long offset, int delta) { in getAndAddInt() argument 706 } while (!compareAndSwapInt(o, offset, v, v + delta)); in getAndAddInt() 722 public final long getAndAddLong(Object o, long offset, long delta) { in getAndAddLong() argument 726 } while (!compareAndSwapLong(o, offset, v, v + delta)); in getAndAddLong()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CountedCompleter.java | 526 public final void addToPendingCount(int delta) { in addToPendingCount() argument 527 U.getAndAddInt(this, PENDING, delta); in addToPendingCount()
|
D | ThreadPoolExecutor.java | 1570 int delta = corePoolSize - this.corePoolSize; in setCorePoolSize() local 1574 else if (delta > 0) { in setCorePoolSize() 1579 int k = Math.min(delta, workQueue.size()); in setCorePoolSize() 1732 long delta = keepAliveTime - this.keepAliveTime; in setKeepAliveTime() local 1734 if (delta < 0) in setKeepAliveTime()
|
D | ConcurrentHashMap.java | 1192 long delta = 0L; // negative number of deletions in clear() local 1211 --delta; in clear() 1219 if (delta != 0L) in clear() 1220 addCount(delta, -1); in clear() 1809 int delta = 0; in computeIfPresent() local 1833 delta = -1; in computeIfPresent() 1857 delta = -1; in computeIfPresent() 1871 if (delta != 0) in computeIfPresent() 1872 addCount((long)delta, binCount); in computeIfPresent() 1902 int delta = 0; in compute() local [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldAndroidMathTest.java | 36 public static void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument 37 if (delta == 0D) { in assertEquals() 40 Assert.assertEquals(message, expected, actual, delta); in assertEquals() 44 public static void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument 45 if (delta == 0F) { in assertEquals() 48 Assert.assertEquals(message, expected, actual, delta); in assertEquals()
|
/libcore/ojluni/src/main/java/java/util/ |
D | GregorianCalendar.java | 1010 long delta = amount; local 1017 delta *= 60 * 60 * 1000; // hours to minutes 1021 delta *= 60 * 1000; // minutes to seconds 1025 delta *= 1000; // seconds to milliseconds 1037 delta *= 7; 1048 delta = amount / 2; 1056 setTimeInMillis(time + delta); 1082 fd += delta; // fd is the expected fixed date after the calculation 2130 int delta = getFirstDayOfWeek() - cal.get(DAY_OF_WEEK); in getWeekYear() local 2131 if (delta != 0) { in getWeekYear() [all …]
|
D | JapaneseImperialCalendar.java | 444 long delta = amount; in add() local 451 delta *= 60 * 60 * 1000; // hours to milliseconds in add() 455 delta *= 60 * 1000; // minutes to milliseconds in add() 459 delta *= 1000; // seconds to milliseconds in add() 471 delta *= 7; in add() 482 delta = amount / 2; in add() 490 setTimeInMillis(time + delta); in add() 516 fd += delta; // fd is the expected fixed date after the calculation in add()
|
/libcore/ojluni/annotations/hiddenapi/sun/misc/ |
D | Unsafe.java | 245 public int getAndAddInt(java.lang.Object o, long offset, int delta) { in getAndAddInt() argument 250 public long getAndAddLong(java.lang.Object o, long offset, long delta) { in getAndAddLong() argument
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | TCKLocalTime.java | 1663 int delta = 30; in plusSeconds_fromZero() 1675 i += delta; in plusSeconds_fromZero() 1676 sec += delta; in plusSeconds_fromZero() 1770 long delta = 7500000000L; in plusNanos_fromZero() 1783 i += delta; in plusNanos_fromZero() 1784 nanos += delta; in plusNanos_fromZero() 2096 int delta = 30; 2108 i -= delta; 2109 sec += delta; 2218 long delta = 7500000000L; [all …]
|
D | TCKLocalDateTime.java | 1899 int delta = 30; 1913 i += delta; 1914 sec += delta; 2000 long delta = 7500000000L; 2015 i += delta; 2016 nanos += delta; 2596 int delta = 30; 2610 i -= delta; 2611 sec += delta; 2698 long delta = 7500000000L; [all …]
|
/libcore/ojluni/annotations/mmodule/sun/misc/ |
D | Unsafe.annotated.java | 274 public int getAndAddInt(java.lang.Object o, long offset, int delta) { throw new RuntimeException("S… in getAndAddInt() argument 277 public long getAndAddLong(java.lang.Object o, long offset, long delta) { throw new RuntimeException… in getAndAddLong() argument
|