Home
last modified time | relevance | path

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

/packages/apps/Email/provider_src/com/android/email/provider/
DContentCache.java131 Integer refCount = mMap.get(object); in subtract() local
133 if (refCount == null || refCount.intValue() == 0) { in subtract()
136 if (refCount > 1) { in subtract()
137 newCount = refCount - 1; in subtract()
147 Integer refCount = mMap.get(object); in add() local
148 if (refCount == null) { in add()
151 mMap.put(object, refCount + 1); in add()
160 Integer refCount = mMap.get(object); in getCount() local
161 return (refCount == null) ? 0 : refCount.intValue(); in getCount()
/packages/services/Car/evs/manager/
DHalCamera.cpp114 if (rec.refCount > 0) { in changeFramesInFlight()
171 mFrames[i].refCount--; in doneWithFrame()
172 if (mFrames[i].refCount <= 0) { in doneWithFrame()
202 if (mFrames[i].refCount == 0) { in deliverFrame()
211 mFrames[i].refCount = frameDeliveries; in deliverFrame()
DHalCamera.h78 uint32_t refCount; member
79 FrameRecord(uint32_t id) : frameId(id), refCount(0) {}; in FrameRecord()
/packages/apps/Camera2/tests/src/com/android/camera/functional/
DCameraTest.java74 int refCount = 0; in checkActivityLeak() local
76 if (c.get() != null) refCount++; in checkActivityLeak()
79 assertTrue(refCount != TEST_COUNT); in checkActivityLeak()
/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
DCameraTest.java79 int refCount = 0; in checkActivityLeak() local
81 if (c.get() != null) refCount++; in checkActivityLeak()
84 assertTrue(refCount != TEST_COUNT); in checkActivityLeak()
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/
DRefCountedImageProxy.java37 public RefCountedImageProxy(ImageProxy image, int refCount) { in RefCountedImageProxy() argument
39 mRefCount = new RefCountBase<ImageProxy>(image, refCount); in RefCountedImageProxy()