Home
last modified time | relevance | path

Searched refs:addAndGet (Results 1 – 25 of 57) sorted by relevance

123

/external/kotlinx.atomicfu/atomicfu/src/nativeMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt102 public actual inline fun getAndIncrement(): Int = a.addAndGet(1) - 1 in toString()
103 public actual inline fun getAndDecrement(): Int = a.addAndGet(-1) + 1 in toString()
104 public actual inline fun getAndAdd(delta: Int): Int = a.addAndGet(delta) - delta in toString()
105 public actual inline fun addAndGet(delta: Int): Int = a.addAndGet(delta) in toString() method in kotlinx.atomicfu.AtomicInt
106 public actual inline fun incrementAndGet(): Int = a.addAndGet(1) in toString()
107 public actual inline fun decrementAndGet(): Int = a.addAndGet(-1) in toString()
136 public actual inline fun getAndIncrement(): Long = a.addAndGet(1) - 1 in getAndIncrement()
137 public actual inline fun getAndDecrement(): Long = a.addAndGet(-1) + 1 in getAndIncrement()
138 public actual inline fun getAndAdd(delta: Long): Long = a.addAndGet(delta) - delta in getAndIncrement()
139 public actual inline fun addAndGet(delta: Long): Long = a.addAndGet(delta) in getAndIncrement() method in kotlinx.atomicfu.AtomicLong
[all …]
/external/grpc-grpc-java/testing/src/main/java/io/grpc/internal/testing/
DTestStreamTracer.java137 outboundWireSize.addAndGet(bytes); in outboundWireSize()
142 inboundWireSize.addAndGet(bytes); in inboundWireSize()
147 outboundUncompressedSize.addAndGet(bytes); in outboundUncompressedSize()
152 inboundUncompressedSize.addAndGet(bytes); in inboundUncompressedSize()
/external/kotlinx.atomicfu/atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt260 public actual fun addAndGet(delta: Int): Int { in addAndGet() method
262 val newValue = FU.addAndGet(this, delta) in addAndGet()
389 public actual fun addAndGet(delta: Long): Long { in addAndGet() method
391 val newValue = FU.addAndGet(this, delta) in addAndGet()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java70 map.addAndGet(key, delta); in testModify_basher()
109 sum.addAndGet(threadSum); in testModify_basher()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java70 map.addAndGet(key, delta); in testModify_basher()
109 sum.addAndGet(threadSum); in testModify_basher()
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java90 return addAndGet(key, 1); in incrementAndGet()
98 return addAndGet(key, -1); in decrementAndGet()
106 public long addAndGet(K key, long delta) { in addAndGet() method in AtomicLongMap
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DTopLevelTest.kt40 check(a.addAndGet(3) == 7) in <lambda>()
62 check(b.addAndGet(-9223372036854775807) == -198452011965886959) in <lambda>()
137 check(longArr[1].addAndGet(-9223372036854775807) == -198452011965886959) in testLongArray()
DArithmeticTest.kt28 check(a._x.addAndGet(3) == 7) in testInt()
51 check(a.z.addAndGet(-9223372036854775807) == -198452011965886959) in testLong()
/external/caliper/caliper/src/main/java/com/google/caliper/runner/
DStreamService.java159 runningReadStreams.addAndGet(2); in doStart()
160 openStreams.addAndGet(1); in doStart()
177 runningReadStreams.addAndGet(1); in doStart()
178 openStreams.addAndGet(1); in doStart()
/external/guava/android/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java90 return addAndGet(key, 1); in incrementAndGet()
98 return addAndGet(key, -1); in decrementAndGet()
106 public long addAndGet(K key, long delta) { in addAndGet() method in AtomicLongMap
/external/kotlinx.atomicfu/atomicfu/src/jsMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt109 public actual fun addAndGet(delta: Int): Int { in toString() method
163 public actual fun addAndGet(delta: Long): Long { in addAndGet() method
/external/guava/guava-tests/test/com/google/common/collect/
DCountTest.java40 assertEquals(21, holder.addAndGet(1)); in testAddAndGet()
/external/guava/android/guava-tests/test/com/google/common/collect/
DCountTest.java40 assertEquals(21, holder.addAndGet(1)); in testAddAndGet()
/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/internal_test1/
DB.kt18 check(a.xxx.addAndGet(4) == 9) in testInternal()
/external/guava/android/guava/src/com/google/common/collect/
DCount.java42 public int addAndGet(int delta) { in addAndGet() method in Count
/external/guava/guava/src/com/google/common/collect/
DCount.java42 public int addAndGet(int delta) { in addAndGet() method in Count
/external/guava/android/guava-testlib/src/com/google/common/testing/
DFakeTicker.java54 nanos.addAndGet(nanoseconds); in advance()
/external/kotlinx.atomicfu/atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/
DAtomicFU.common.kt249 public fun addAndGet(delta: Int): Int in lazySet() method in kotlinx.atomicfu.AtomicInt
360 public fun addAndGet(delta: Long): Long in lazySet() method in kotlinx.atomicfu.AtomicLong
/external/guava/guava-testlib/src/com/google/common/testing/
DFakeTicker.java55 nanos.addAndGet(nanoseconds); in advance()
/external/jackson-core/src/test/java/perf/
DConcurrencyReadTest.java30 count.addAndGet(1); in test()
/external/guava/guava-tests/benchmark/com/google/common/cache/
DLoadingCacheSingleThreadBenchmark.java90 requests.addAndGet(reps); in time()
/external/guava/android/guava-tests/benchmark/com/google/common/cache/
DLoadingCacheSingleThreadBenchmark.java90 requests.addAndGet(reps); in time()
/external/grpc-grpc-java/benchmarks/src/jmh/java/io/grpc/benchmarks/netty/
DAbstractBenchmark.java400 counter.addAndGet(counterDelta); in startUnaryCalls()
450 counter.addAndGet(counterDelta); in startStreamingCalls()
504 counter.addAndGet(counterDelta); in startFlowControlledStreamingCalls()
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/misc/
DThreadSafety1759Test.java65 counter.addAndGet(1); in createCallable()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DRetriableStream.java127 channelBufferUsed.addAndGet(-perRpcBufferUsed); in commit()
880 channelBufferUsed.addAndGet(bufferNeeded - perRpcBufferUsed); in outboundWireSize()
907 long addAndGet(long newBytesUsed) { in addAndGet() method in RetriableStream.ChannelBufferMeter
908 return bufferUsed.addAndGet(newBytesUsed); in addAndGet()

123