Home
last modified time | relevance | path

Searched refs:delta (Results 1 – 14 of 14) sorted by relevance

/libcore/luni/src/main/java/java/util/concurrent/atomic/
DAtomicInteger.java159 public final int getAndAdd(int delta) { in getAndAdd() argument
162 int next = current + delta; in getAndAdd()
202 public final int addAndGet(int delta) { in addAndGet() argument
205 int next = current + delta; in addAndGet()
DAtomicLong.java173 public final long getAndAdd(long delta) { in getAndAdd() argument
176 long next = current + delta; in getAndAdd()
216 public final long addAndGet(long delta) { in addAndGet() argument
219 long next = current + delta; in addAndGet()
DAtomicIntegerArray.java190 public final int getAndAdd(int i, int delta) { in getAndAdd() argument
194 if (compareAndSetRaw(offset, current, current + delta)) in getAndAdd()
226 public final int addAndGet(int i, int delta) { in addAndGet() argument
230 int next = current + delta; in addAndGet()
DAtomicLongArray.java190 public final long getAndAdd(int i, long delta) { in getAndAdd() argument
194 if (compareAndSetRaw(offset, current, current + delta)) in getAndAdd()
226 public long addAndGet(int i, long delta) { in addAndGet() argument
230 long next = current + delta; in addAndGet()
DAtomicIntegerFieldUpdater.java177 public int getAndAdd(T obj, int delta) { in getAndAdd() argument
180 int next = current + delta; in getAndAdd()
226 public int addAndGet(T obj, int delta) { in addAndGet() argument
229 int next = current + delta; in addAndGet()
DAtomicLongFieldUpdater.java179 public long getAndAdd(T obj, long delta) { in getAndAdd() argument
182 long next = current + delta; in getAndAdd()
228 public long addAndGet(T obj, long delta) { in addAndGet() argument
231 long next = current + delta; in addAndGet()
/libcore/luni/src/main/java/java/math/
DConversion.java100 int delta = charsPerInt - previous + currentChar; in bigInteger2String() local
101 for (i = 0; i < delta && currentChar > 0; i++) { in bigInteger2String()
222 int delta = 9 - previous + currentChar; in toDecimalScaledString() local
223 for (int i = 0; (i < delta) && (currentChar > 0); i++) { in toDecimalScaledString()
432 int delta = bitLen - 54; in bigInteger2Double() local
434 long lVal = val.abs().shiftRight(delta).longValue(); in bigInteger2Double()
451 && (((mantissa & 2) == 2) || BitLevel.nonZeroDroppedBits(delta, in bigInteger2Double()
DBigDecimal.java2324 int delta = end - begin; in toEngineeringString() local
2339 if (delta < 3) { in toEngineeringString()
2340 for (int i = rem - delta; i > 0; i--) { in toEngineeringString()
2381 int delta = scale; in toPlainString() local
2390 delta -= (intStr.length() - begin); in toPlainString()
2391 if (delta >= 0) { in toPlainString()
2394 for (; delta > CH_ZEROS.length; delta -= CH_ZEROS.length) { in toPlainString()
2397 result.append(CH_ZEROS, 0, delta); in toPlainString()
2400 delta = begin - delta; in toPlainString()
2401 result.append(intStr.substring(begin, delta)); in toPlainString()
[all …]
/libcore/luni/src/main/java/libcore/net/http/
DResponseHeaders.java294 long delta = expires.getTime() - servedMillis; in computeFreshnessLifetime() local
295 return delta > 0 ? delta : 0; in computeFreshnessLifetime()
304 long delta = servedMillis - lastModified.getTime(); in computeFreshnessLifetime() local
305 return delta > 0 ? (delta / 10) : 0; in computeFreshnessLifetime()
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidMathTest.java34 public static void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() argument
35 if (delta == 0D) { in assertEquals()
38 Assert.assertEquals(message, expected, actual, delta); in assertEquals()
42 public static void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() argument
43 if (delta == 0F) { in assertEquals()
46 Assert.assertEquals(message, expected, actual, delta); in assertEquals()
/libcore/luni/src/main/java/java/util/concurrent/
DThreadPoolExecutor.java1474 int delta = corePoolSize - this.corePoolSize; in setCorePoolSize() local
1478 else if (delta > 0) { in setCorePoolSize()
1483 int k = Math.min(delta, workQueue.size()); in setCorePoolSize()
1622 long delta = keepAliveTime - this.keepAliveTime; in setKeepAliveTime() local
1624 if (delta < 0) in setKeepAliveTime()
/libcore/luni/src/main/java/java/util/
DGregorianCalendar.java445 long delta = value * multiplier; in add() local
460 int offsetAfter = getOffset(time + zoneOffset + delta); in add()
462 if (getOffset(time + zoneOffset + delta + dstDelta) == offsetAfter) { in add()
463 delta += dstDelta; in add()
466 time += delta; in add()
DTreeMap.java466 int delta = leftHeight - rightHeight; in rebalance() local
467 if (delta == -2) { in rebalance()
485 } else if (delta == 2) { in rebalance()
503 } else if (delta == 0) { in rebalance()
510 assert (delta == -1 || delta == 1); in rebalance()
/libcore/luni/src/test/java/libcore/net/http/
DHttpResponseCacheTest.java1658 private String formatDate(long delta, TimeUnit timeUnit) { in formatDate() argument
1659 return formatDate(new Date(System.currentTimeMillis() + timeUnit.toMillis(delta))); in formatDate()