Home
last modified time | relevance | path

Searched refs:getAndDecrement (Results 1 – 21 of 21) sorted by relevance

/external/kotlinx.atomicfu/atomicfu/src/commonTest/kotlin/kotlinx/atomicfu/test/
DTopLevelTest.kt36 check(a.getAndDecrement() == 3) in <lambda>()
58 check(b.getAndDecrement() == 8924920024888888849) in <lambda>()
108 check(intArr[0].getAndDecrement() == 10) in testIntArray()
130 check(longArr[4].getAndDecrement() == 8924920024888888849) in testLongArray()
DArithmeticTest.kt24 check(a._x.getAndDecrement() == 3) in testInt()
47 check(a.z.getAndDecrement() == 8924920024888888849) in testLong()
DAtomicArrayTest.kt19 check(A.intArr[0].getAndDecrement() == 10) in testIntArray()
42 check(A.longArr[4].getAndDecrement() == 8924920024888888849) in testLongArray()
/external/guice/extensions/service/test/com/google/inject/service/
DSingleServiceIntegrationTest.java67 assertEquals(2, integer.getAndDecrement()); in testAsyncServiceBlockingLifecycle()
72 assertEquals(1, integer.getAndDecrement()); in testAsyncServiceBlockingLifecycle()
/external/kotlinx.atomicfu/atomicfu/src/jvmMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt240 public actual fun getAndDecrement(): Int { in getAndDecrement() method
242 val oldValue = FU.getAndDecrement(this) in getAndDecrement()
369 public actual fun getAndDecrement(): Long { in getAndDecrement() method
371 val oldValue = FU.getAndDecrement(this) in getAndDecrement()
/external/testng/src/test/java/test/retryAnalyzer/
DInvocationCountTest.java117 return retriesRemaining.getAndDecrement() >= 0; in retry()
126 return remainingRetries.getAndDecrement() > 0; in retry()
/external/testng/src/main/java/org/testng/util/
DRetryAnalyzerCount.java39 if (count.getAndDecrement() > 0) { in retry()
/external/kotlinx.atomicfu/atomicfu/src/jsMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt99 public actual fun getAndDecrement(): Int = value-- in toString() method
153 public actual fun getAndDecrement(): Long = value-- in getAndIncrement() method
/external/kotlinx.coroutines/kotlinx-coroutines-core/common/src/sync/
DSemaphore.kt162 val p = _availablePermits.getAndDecrement() in acquire()
173 val p = _availablePermits.getAndDecrement() in acquireSlowPath()
/external/kotlinx.atomicfu/atomicfu/src/nativeMain/kotlin/kotlinx/atomicfu/
DAtomicFU.kt103 public actual inline fun getAndDecrement(): Int = a.addAndGet(-1) + 1 in toString() method in kotlinx.atomicfu.AtomicInt
137 public actual inline fun getAndDecrement(): Long = a.addAndGet(-1) + 1 in getAndIncrement() method in kotlinx.atomicfu.AtomicLong
/external/kotlinx.atomicfu/atomicfu/src/commonMain/kotlin/kotlinx/atomicfu/
DAtomicFU.common.kt239 public fun getAndDecrement(): Int in lazySet() method in kotlinx.atomicfu.AtomicInt
350 public fun getAndDecrement(): Long in lazySet() method in kotlinx.atomicfu.AtomicLong
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java78 map.getAndDecrement(key); in testModify_basher()
DAtomicLongMapTest.java122 assertEquals(1L, map.getAndDecrement(key)); in testGetAndIncrement_zero()
168 long result = map.getAndDecrement(key); in testGetAndDecrement()
185 assertEquals(0L, map.getAndDecrement(key)); in testGetAndDecrement_zero()
192 assertEquals(0L, map.getAndDecrement(key)); in testGetAndDecrement_zero()
/external/guava/android/guava-tests/test/com/google/common/util/concurrent/
DAtomicLongMapBasherTest.java78 map.getAndDecrement(key); in testModify_basher()
DAtomicLongMapTest.java122 assertEquals(1L, map.getAndDecrement(key)); in testGetAndIncrement_zero()
168 long result = map.getAndDecrement(key); in testGetAndDecrement()
185 assertEquals(0L, map.getAndDecrement(key)); in testGetAndDecrement_zero()
192 assertEquals(0L, map.getAndDecrement(key)); in testGetAndDecrement_zero()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowWifiManager.java367 shadowOf(wifiManager).activeLockCount.getAndDecrement(); in release()
414 shadowOf(wifiManager).activeLockCount.getAndDecrement(); in release()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/flow/
DSharingStressTest.kt87 assertEquals(1, isRunning.getAndDecrement()) in <lambda>()
/external/guava/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java122 public long getAndDecrement(K key) { in getAndDecrement() method in AtomicLongMap
/external/guava/android/guava/src/com/google/common/util/concurrent/
DAtomicLongMap.java150 public long getAndDecrement(K key) { in getAndDecrement() method in AtomicLongMap
/external/robolectric-shadows/resources/src/main/java/org/robolectric/res/android/
DResXMLTree.java76 ALOGI("Destroying ResXMLTree in %s #%d\n", this, gCount.getAndDecrement()-1); in finalize()
/external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/src/scheduling/
DCoroutineScheduler.kt280 … private inline fun decrementCreatedWorkers(): Int = createdWorkers(controlState.getAndDecrement()) in <lambda>()