Home
last modified time | relevance | path

Searched refs:refCount (Results 1 – 25 of 42) 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/android_icu4j/src/main/java/android/icu/impl/coll/
DSharedObject.java173 c.refCount = new AtomicInteger(); in clone()
180 public final void addRef() { refCount.incrementAndGet(); } in addRef()
187 refCount.decrementAndGet(); in removeRef()
193 public final int getRefCount() { return refCount.get(); } in getRefCount()
199 private AtomicInteger refCount = new AtomicInteger(); field in SharedObject
/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/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/v1/src/main/java/com/xtremelabs/robolectric/shadows/
DShadowPowerManager.java33 private int refCount; field in ShadowPowerManager.ShadowWakeLock
45 refCount++; in acquire()
54 if (--refCount < 0) throw new RuntimeException("WakeLock under-locked"); in release()
62 return refCounted ? refCount > 0 : locked; in isHeld()
DShadowWifiManager.java148 private int refCount; field in ShadowWifiManager.ShadowWifiLock
156 …if (++refCount >= MAX_ACTIVE_LOCKS) throw new UnsupportedOperationException("Exceeded maximum numb… in acquire()
165 if (--refCount < 0) throw new RuntimeException("WifiLock under-locked"); in release()
173 return refCounted ? refCount > 0 : locked; in isHeld()
/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.cpp1109 int32_t refCount; member
1168 if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) { in sweepCache()
1182 U_ASSERT(fRef->refCount > 0); in ~TimeZoneGenericNames()
1184 fRef->refCount--; in ~TimeZoneGenericNames()
1243 cacheEntry->refCount = 1; in createInstance()
1263 cacheEntry->refCount++; in createInstance()
1297 fRef->refCount++; in clone()
/external/icu/icu4c/source/common/
Dusprep.cpp161 if ((noRefCount== FALSE && profile->refCount == 0) || in usprep_internal_flushCache()
329 profile->refCount++; in usprep_getProfile()
371 profile->refCount++; in usprep_getProfile()
385 profile->refCount = 1; in usprep_getProfile()
429 if(profile->refCount > 0){ in usprep_close()
430 profile->refCount--; in usprep_close()
Dsprpimpl.h94 int32_t refCount; member
Ducurr.cpp1354 int32_t refCount; member
1438 ++(cacheEntry->refCount); in uprv_parseCurrency()
1464 --(cacheEntry->refCount); in uprv_parseCurrency()
1466 if (cacheEntry->refCount == 0) { in uprv_parseCurrency()
1477 cacheEntry->refCount = 2; // one for cache, one for reference in uprv_parseCurrency()
1488 ++(cacheEntry->refCount); in uprv_parseCurrency()
1538 --(cacheEntry->refCount); in uprv_parseCurrency()
1539 if (cacheEntry->refCount == 0) { // remove in uprv_parseCurrency()
/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/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/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/deqp/modules/gles31/functional/
Des31fDebugTests.cpp342 …VerificationResult verifyMessageCount (const MessageID& id, GLenum severity, int refCount, int r…
390 …BaseCase::verifyMessageCount (const MessageID& id, GLenum severity, int refCount, int resCount, bo… in verifyMessageCount() argument
397 if (resCount != refCount) in verifyMessageCount()
447 if (resCount > refCount) in verifyMessageCount()
451 << " (got " << resCount << ", expected " << refCount << ")"; in verifyMessageCount()
458 << " (got " << resCount << ", expected " << refCount << ")"; in verifyMessageCount()
464 if (resCount > refCount) in verifyMessageCount()
468 << " (got " << resCount << ", expected " << refCount << ")"; in verifyMessageCount()
475 << " (got " << resCount << ", expected " << refCount << ")"; in verifyMessageCount()
481 if (resCount > refCount) in verifyMessageCount()
[all …]
Des31fOpaqueTypeIndexingTests.cpp1171 const deUint32 refCount = (deUint32)(numHits[counterNdx]*numInvocations); in iterate() local
1174 if (refCount != resCount) in iterate()
1177 << ", expected " << refCount in iterate()
/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()
848 if (mul2->getSrc(t)->refCount() == 1) { in tryCollapseChainedMULs()
877 if (mul2->getDef(0)->refCount() == 1 && !mul2->saturate) { in tryCollapseChainedMULs()
1232 if (!cmp || cmp->op == OP_SLCT || cmp->getDef(0)->refCount() > 1) in opnd()
1537 mi->predSrc >= 0 || mi->getDef(0)->refCount() > 8) in visit()
1577 mi->getDef(0)->refCount() <= 1 && target->isSatSupported(mi)) { in visit()
1692 if (src0->refCount() == 1 && in tryADDToMADOrSAD()
[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/sonivox/arm-wt-22k/lib_src/
Deas_sndlib.h358 EAS_U8 refCount; member
Deas_synth.h331 EAS_U8 refCount; member
/external/mdnsresponder/mDNSWindows/mdnsNSP/
DmdnsNSP.c58 int refCount; member
453 check_string( gQueryList->refCount == 1, "NSPCleanup with outstanding queries!" ); in NSPCleanup()
917 obj->refCount = 1; in QueryCreate()
1043 ++inRef->refCount; in QueryRetain()
1111 if( --inRef->refCount != 0 ) in QueryRelease()
/external/llvm/test/CodeGen/PowerPC/
Dextra-toc-reg-deps.ll48 %"class.Foam::Field.11" = type { %"class.Foam::refCount.128", %"class.Foam::List.12" }
49 %"class.Foam::refCount.128" = type { i32 }
52 %"class.Foam::Field.131" = type { %"class.Foam::refCount.128", %"class.Foam::List.8" }

12