Home
last modified time | relevance | path

Searched refs:refCount (Results 1 – 25 of 48) sorted by relevance

12

/external/clang/test/Analysis/
Datomics.c20 uint32_t refCount; member
25 s->refCount = 1; in test_atomic_fetch_add()
27 …uint32_t result = __c11_atomic_fetch_add((volatile _Atomic(uint32_t) *)&s->refCount,- 1, memory_or… in test_atomic_fetch_add()
31 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}} in test_atomic_fetch_add()
38 s->refCount = 1; in test_atomic_load()
40 …uint32_t result = __c11_atomic_load((volatile _Atomic(uint32_t) *)&s->refCount, memory_order_relax… in test_atomic_load()
43 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}} in test_atomic_load()
50 s->refCount = 1; in test_atomic_store()
52 __c11_atomic_store((volatile _Atomic(uint32_t) *)&s->refCount, 2, memory_order_relaxed); in test_atomic_store()
56 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}} in test_atomic_store()
[all …]
/external/sl4a/ScriptingLayer/src/com/googlecode/android_scripting/trigger/
DEventGenerationControllingObserver.java54 int refCount = in incrementAndGetRefCount() local
56 refCount++; in incrementAndGetRefCount()
57 mEventTriggerRefCounts.put(eventName, refCount); in incrementAndGetRefCount()
58 return refCount; in incrementAndGetRefCount()
62 int refCount = in decrementAndGetRefCount() local
64 refCount--; in decrementAndGetRefCount()
65 mEventTriggerRefCounts.put(eventName, refCount); in decrementAndGetRefCount()
66 return refCount; in decrementAndGetRefCount()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
DSharedObject.java171 c.refCount = new AtomicInteger(); in clone()
178 public final void addRef() { refCount.incrementAndGet(); } in addRef()
185 refCount.decrementAndGet(); in removeRef()
191 public final int getRefCount() { return refCount.get(); } in getRefCount()
197 private AtomicInteger refCount = new AtomicInteger(); field in SharedObject
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
DSharedObject.java174 c.refCount = new AtomicInteger(); in clone()
181 public final void addRef() { refCount.incrementAndGet(); } in addRef()
188 refCount.decrementAndGet(); in removeRef()
194 public final int getRefCount() { return refCount.get(); } in getRefCount()
200 private AtomicInteger refCount = new AtomicInteger(); field in SharedObject
/external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
DNGramList.java32 private int refCount; field in NGramList.NGram
37 refCount = theRefCount; in NGram()
57 return refCount; in getRefCount()
62 refCount += 1; in incrementRefCount()
70 return ng.getRefCount() - refCount; in compareTo()
DStatisticsTool.java173 int refCount = ngram.getRefCount(); in dumpNGrams() local
174 double ratio = (double) refCount / totalNGrams * 100.0; in dumpNGrams()
183 output.println(value + "\t" + refCount + "\t" + ratio + "%\t" + cumulative + "%"); in dumpNGrams()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowVirtualRefBasePtr.java42 int refCount; field in ShadowVirtualRefBasePtr.RefHolder
49 refCount++; in incr()
53 refCount--; in decr()
54 return refCount == 0; in decr()
DShadowWifiManager.java342 private int refCount; field in ShadowWifiManager.ShadowWifiLock
358 …if (++refCount >= MAX_ACTIVE_LOCKS) throw new UnsupportedOperationException("Exceeded maximum numb… in acquire()
370 if (--refCount < 0) throw new RuntimeException("WifiLock under-locked"); in release()
378 return refCounted ? refCount > 0 : locked; in isHeld()
389 private int refCount; field in ShadowWifiManager.ShadowMulticastLock
405 …if (++refCount >= MAX_ACTIVE_LOCKS) throw new UnsupportedOperationException("Exceeded maximum numb… in acquire()
417 if (--refCount < 0) throw new RuntimeException("WifiLock under-locked"); in release()
430 return refCounted ? refCount > 0 : locked; in isHeld()
DShadowPowerManager.java157 private int refCount = 0; field in ShadowPowerManager.ShadowWakeLock
169 refCount++; in acquire()
178 if (--refCount < 0) throw new RuntimeException("WakeLock under-locked"); in release()
186 return refCounted ? refCount > 0 : locked; in isHeld()
/external/icu/icu4c/source/common/
Dunifiedcache.cpp496 int refCount = 0; in removeHardRef() local
498 refCount = umtx_atomic_dec(&value->hardRefCount); in removeHardRef()
499 U_ASSERT(refCount >= 0); in removeHardRef()
500 if (refCount == 0) { in removeHardRef()
504 return refCount; in removeHardRef()
508 int refCount = 0; in addHardRef() local
510 refCount = umtx_atomic_inc(&value->hardRefCount); in addHardRef()
511 U_ASSERT(refCount >= 1); in addHardRef()
512 if (refCount == 1) { in addHardRef()
516 return refCount; in addHardRef()
Dusprep.cpp163 if ((noRefCount== FALSE && profile->refCount == 0) || in usprep_internal_flushCache()
331 profile->refCount++; in usprep_getProfile()
369 profile->refCount++; in usprep_getProfile()
383 profile->refCount = 1; in usprep_getProfile()
427 if(profile->refCount > 0){ in usprep_close()
428 profile->refCount--; in usprep_close()
Dsprpimpl.h93 int32_t refCount; member
/external/grpc-grpc/src/csharp/Grpc.Core/
DGrpcEnvironment.cs43 static int refCount; field in Grpc.Core.GrpcEnvironment
75 refCount++; in AddRef()
92 GrpcPreconditions.CheckState(refCount > 0); in ReleaseAsync()
93 refCount--; in ReleaseAsync()
94 if (refCount == 0) in ReleaseAsync()
111 return refCount; in GetRefCount()
/external/nist-sip/java/gov/nist/javax/sip/
DEventScanner.java50 private int refCount; field in EventScanner
61 this.refCount++; in incrementRefcount()
102 if (this.refCount > 0) in stop()
103 this.refCount--; in stop()
105 if (this.refCount == 0) { in stop()
121 this.refCount = 0; in forceStop()
/external/icu/icu4c/source/i18n/
Dtznames.cpp51 int32_t refCount; member
92 if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) { in sweepCache()
178 cacheEntry->refCount = 1; in TimeZoneNamesDelegate()
198 cacheEntry->refCount++; in TimeZoneNamesDelegate()
214 U_ASSERT(fTZnamesCacheEntry->refCount > 0); in ~TimeZoneNamesDelegate()
216 fTZnamesCacheEntry->refCount--; in ~TimeZoneNamesDelegate()
243 fTZnamesCacheEntry->refCount++; in clone()
Dtzgnames.cpp1110 int32_t refCount; member
1169 if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) { in sweepCache()
1183 U_ASSERT(fRef->refCount > 0); in ~TimeZoneGenericNames()
1185 fRef->refCount--; in ~TimeZoneGenericNames()
1244 cacheEntry->refCount = 1; in createInstance()
1264 cacheEntry->refCount++; in createInstance()
1298 fRef->refCount++; in clone()
/external/oj-libjdwp/src/share/back/
DcommonRef.c296 deleteNodeByID(JNIEnv *env, jlong id, jint refCount) in deleteNodeByID() argument
308 node->count -= refCount; in deleteNodeByID()
623 commonRef_releaseMultiple(JNIEnv *env, jlong id, jint refCount) in commonRef_releaseMultiple() argument
626 deleteNodeByID(env, id, refCount); in commonRef_releaseMultiple()
DcommonRef.h37 void commonRef_releaseMultiple(JNIEnv *env, jlong id, jint refCount);
/external/eigen/unsupported/Eigen/CXX11/src/Tensor/
DTensorRef.h31 int refCount() const { return m_refcount; } in refCount() function
165 eigen_assert(m_evaluator->refCount() > 0); in TensorRef()
173 eigen_assert(m_evaluator->refCount() > 0);
344 if (m_evaluator->refCount() == 0) { in unrefEvaluator()
/external/llvm/include/llvm/ADT/
DImmutableSet.h234 uint32_t refCount; variable
247 IsCanonicalized(0), value(v), digest(0), refCount(0) in ImutAVLTree()
331 void retain() { ++refCount; } in retain()
333 assert(refCount > 0); in release()
334 if (--refCount == 0) in release()
484 if (N->isMutable() && N->refCount == 0) in recoverNodes()
628 if (TNew->refCount == 0) in getCanonicalTree()
/external/swiftshader/third_party/LLVM/include/llvm/ADT/
DImmutableSet.h234 uint32_t refCount; variable
247 value(v), digest(0), refCount(0) in ImutAVLTree()
331 void retain() { ++refCount; } in retain()
333 assert(refCount > 0); in release()
334 if (--refCount == 0) in release()
482 if (N->isMutable() && N->refCount == 0) in recoverNodes()
625 if (TNew->refCount == 0) in getCanonicalTree()
/external/deqp/modules/gles31/functional/
Des31fDebugTests.cpp343 …VerificationResult verifyMessageCount (const MessageID& id, GLenum severity, int refCount, int r…
391 …BaseCase::verifyMessageCount (const MessageID& id, GLenum severity, int refCount, int resCount, bo… in verifyMessageCount() argument
398 if (resCount != refCount) in verifyMessageCount()
448 if (resCount > refCount) in verifyMessageCount()
452 << " (got " << resCount << ", expected " << refCount << ")"; in verifyMessageCount()
459 << " (got " << resCount << ", expected " << refCount << ")"; in verifyMessageCount()
465 if (resCount > refCount) in verifyMessageCount()
469 << " (got " << resCount << ", expected " << refCount << ")"; in verifyMessageCount()
476 << " (got " << resCount << ", expected " << refCount << ")"; in verifyMessageCount()
482 if (resCount > refCount) in verifyMessageCount()
[all …]
/external/clang/lib/StaticAnalyzer/Core/
DProgramState.cpp29 ++const_cast<ProgramState*>(state)->refCount; in ProgramStateRetain()
34 assert(state->refCount > 0); in ProgramStateRelease()
36 if (--s->refCount == 0) { in ProgramStateRelease()
51 refCount(0) { in ProgramState()
61 refCount(0) { in ProgramState()
/external/mesa3d/src/gallium/drivers/nouveau/codegen/
Dnv50_ir_peephole.cpp74 if (getDef(d)->refCount() || getDef(d)->reg.data.id >= 0) in isDead()
209 int i0refs = insn->getSrc(0)->refCount(); in checkSwapSrc01()
210 int i1refs = insn->getSrc(1)->refCount(); in checkSwapSrc01()
273 if (ld->getDef(0)->refCount() == 0) in visit()
852 if (mul2->getSrc(t)->refCount() == 1) { in tryCollapseChainedMULs()
881 if (mul2->getDef(0)->refCount() == 1 && !mul2->saturate) { in tryCollapseChainedMULs()
1282 if (!cmp || cmp->op == OP_SLCT || cmp->getDef(0)->refCount() > 1) in opnd()
1598 mi->predSrc >= 0 || mi->getDef(0)->refCount() > 8) in visit()
1638 mi->getDef(0)->refCount() <= 1 && target->isSatSupported(mi)) { in visit()
1754 if (src0->refCount() == 1 && in tryADDToMADOrSAD()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/ADT/
DImmutableSet.h236 uint32_t refCount = 0; variable
332 void retain() { ++refCount; } in retain()
335 assert(refCount > 0); in release()
336 if (--refCount == 0) in release()
486 if (N->isMutable() && N->refCount == 0) in recoverNodes()
630 if (TNew->refCount == 0) in getCanonicalTree()

12