HomeSort by relevance Sort by last modified time
    Searched refs:refCount (Results 1 - 25 of 215) sorted by null

1 2 3 4 5 6 7 8 9

  /external/clang/test/Analysis/
atomics.c 20 uint32_t refCount;
25 s->refCount = 1;
27 uint32_t result = __c11_atomic_fetch_add((volatile _Atomic(uint32_t) *)&s->refCount,- 1, memory_order_relaxed);
31 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}}
38 s->refCount = 1;
40 uint32_t result = __c11_atomic_load((volatile _Atomic(uint32_t) *)&s->refCount, memory_order_relaxed);
43 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}}
50 s->refCount = 1;
52 __c11_atomic_store((volatile _Atomic(uint32_t) *)&s->refCount, 2, memory_order_relaxed);
56 clang_analyzer_eval(s->refCount == 1); // expected-warning {{UNKNOWN}
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowPowerManager.java 33 private int refCount;
45 refCount++;
54 if (--refCount < 0) throw new RuntimeException("WakeLock under-locked");
62 return refCounted ? refCount > 0 : locked;
ShadowWifiManager.java 148 private int refCount;
156 if (++refCount >= MAX_ACTIVE_LOCKS) throw new UnsupportedOperationException("Exceeded maximum number of wifi locks");
165 if (--refCount < 0) throw new RuntimeException("WifiLock under-locked");
173 return refCounted ? refCount > 0 : locked;
  /external/sl4a/ScriptingLayer/src/com/googlecode/android_scripting/trigger/
EventGenerationControllingObserver.java 54 int refCount =
56 refCount++;
57 mEventTriggerRefCounts.put(eventName, refCount);
58 return refCount;
62 int refCount =
64 refCount--;
65 mEventTriggerRefCounts.put(eventName, refCount);
66 return refCount;
  /frameworks/base/services/core/java/com/android/server/pm/
KeySetHandle.java 33 protected KeySetHandle(long id, int refCount) {
35 mRefCount = refCount;
  /external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
SharedObject.java 160 /** Initializes refCount to 0. */
163 /** Initializes refCount to 0. */
173 c.refCount = new AtomicInteger();
180 public final void addRef() { refCount.incrementAndGet(); }
187 refCount.decrementAndGet();
193 public final int getRefCount() { return refCount.get(); }
199 private AtomicInteger refCount = new AtomicInteger();
  /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/
SharedObject.java 158 /** Initializes refCount to 0. */
161 /** Initializes refCount to 0. */
171 c.refCount = new AtomicInteger();
178 public final void addRef() { refCount.incrementAndGet(); }
185 refCount.decrementAndGet();
191 public final int getRefCount() { return refCount.get(); }
197 private AtomicInteger refCount = new AtomicInteger();
  /packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/
RefCountedImageProxy.java 35 * @param refCount The initial reference count.
37 public RefCountedImageProxy(ImageProxy image, int refCount) {
39 mRefCount = new RefCountBase<ImageProxy>(image, refCount);
  /external/icu/icu4j/tools/misc/src/com/ibm/icu/dev/tool/charsetdet/sbcs/
NGramList.java 32 private int refCount;
37 refCount = theRefCount;
57 return refCount;
62 refCount += 1;
70 return ng.getRefCount() - refCount;
  /packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
ProfileService.java 77 Integer refCount = sReferenceCount.get(mName);
78 if (refCount==null) {
79 refCount = 1;
81 refCount = refCount+1;
83 sReferenceCount.put(mName, refCount);
84 if (DBG) log("REFCOUNT: CREATED. INSTANCE_COUNT=" +refCount);
92 Integer refCount = sReferenceCount.get(mName);
93 if (refCount!=null)
    [all...]
  /frameworks/base/libs/hwui/
ResourceCache.cpp 37 ALOGD(" ResourceCache: mCache(%zu): refCount, destroyed, type = %d, %d, %d",
38 i, ref->refCount, ref->destroyed, ref->resourceType);
76 ref->refCount++;
95 ref->refCount--;
96 if (ref->refCount == 0) {
125 if (ref->refCount == 0) {
ResourceCache.h 46 refCount = 0; destroyed = false; resourceType = type;
49 int refCount;
  /packages/services/Car/evs/manager/
HalCamera.cpp 114 if (rec.refCount > 0) {
169 mFrames[i].refCount--;
170 if (mFrames[i].refCount <= 0) {
200 if (mFrames[i].refCount == 0) {
209 mFrames[i].refCount = frameDeliveries;
HalCamera.h 78 uint32_t refCount;
79 FrameRecord(uint32_t id) : frameId(id), refCount(0) {};
  /frameworks/base/media/mca/filterfw/java/android/filterfw/core/
SimpleFrameManager.java 97 int refCount = frame.decRefCount();
98 if (refCount == 0 && frame.hasNativeAllocation()) {
101 } else if (refCount < 0) {
CachedFrameManager.java 71 int refCount = frame.decRefCount();
72 if (refCount == 0 && frame.hasNativeAllocation()) {
77 } else if (refCount < 0) {
  /packages/apps/Camera2/tests/src/com/android/camera/functional/
CameraTest.java 74 int refCount = 0;
76 if (c.get() != null) refCount++;
79 assertTrue(refCount != TEST_COUNT);
  /hardware/intel/common/libwsbm/src/
wsbm_pool.h 47 struct _WsbmAtomic refCount;
94 wsbmAtomicSet(&storage->refCount, 1);
115 if (wsbmAtomicDecZero(&storage->refCount)) {
  /packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
CameraTest.java 79 int refCount = 0;
81 if (c.get() != null) refCount++;
84 assertTrue(refCount != TEST_COUNT);
  /frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
RenderTarget.java 299 Integer refCount = mRefCounts.get(object);
300 if (refCount != null) {
301 mRefCounts.put(object, refCount + 1);
308 Integer refCount = mRefCounts.get(object);
309 if (refCount != null && refCount > 0) {
310 --refCount;
311 mRefCounts.put(object, refCount);
312 return refCount == 0;
  /external/nist-sip/java/gov/nist/javax/sip/
EventScanner.java 50 private int refCount;
61 this.refCount++;
102 if (this.refCount > 0)
103 this.refCount--;
105 if (this.refCount == 0) {
114 * Brutally stop the event scanner. This does not wait for the refcount to
121 this.refCount = 0;
  /packages/apps/Email/provider_src/com/android/email/provider/
ContentCache.java 131 Integer refCount = mMap.get(object);
133 if (refCount == null || refCount.intValue() == 0) {
136 if (refCount > 1) {
137 newCount = refCount - 1;
147 Integer refCount = mMap.get(object);
148 if (refCount == null) {
151 mMap.put(object, refCount + 1);
160 Integer refCount = mMap.get(object);
161 return (refCount == null) ? 0 : refCount.intValue()
    [all...]
  /external/icu/icu4c/source/common/
sprpimpl.h 94 int32_t refCount;
  /external/icu/icu4c/source/i18n/
tznames.cpp 51 int32_t refCount;
92 if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) {
178 cacheEntry->refCount = 1;
198 cacheEntry->refCount++;
214 U_ASSERT(fTZnamesCacheEntry->refCount > 0);
216 fTZnamesCacheEntry->refCount--;
243 fTZnamesCacheEntry->refCount++;
  /frameworks/base/core/java/android/nfc/
NfcActivityManager.java 58 int refCount = 0;
64 refCount++;
65 if (refCount == 1) {
70 refCount--;
71 if (refCount == 0) {
73 } else if (refCount < 0) {
74 Log.e(TAG, "-ve refcount for " + app);

Completed in 692 milliseconds

1 2 3 4 5 6 7 8 9