/aosp12/frameworks/base/services/core/java/com/android/server/pm/ |
H A D | KeySetHandle.java | 23 private int mRefCount; field in KeySetHandle 27 mRefCount = 1; in KeySetHandle() 35 mRefCount = refCount; in KeySetHandle() 43 return mRefCount; in getRefCountLPr() 50 mRefCount = newCount; in setRefCountLPw() 55 mRefCount++; in incrRefCountLPw() 60 mRefCount--; in decrRefCountLPw() 61 return mRefCount; in decrRefCountLPw()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/async/ |
H A D | RefCountBase.java | 29 private int mRefCount; field in RefCountBase 41 mRefCount = initialReferenceCount; in RefCountBase() 49 mRefCount++; in addRef() 64 mRefCount--; in close() 65 if (mRefCount > 0) { in close() 78 return mRefCount; in getRefCount()
|
/aosp12/frameworks/av/media/libstagefright/foundation/ |
H A D | MediaBuffer.cpp | 36 mRefCount(0), in MediaBuffer() 47 mRefCount(0), in MediaBuffer() 84 mRefCount(0), in MediaBuffer() 97 CHECK_EQ(mRefCount, 0); in release() 102 int prevCount = mRefCount.fetch_sub(1); in release() 116 CHECK_EQ(mRefCount.load(std::memory_order_relaxed), 1); in claim() 118 mRefCount.store(0, std::memory_order_relaxed); in claim() 122 (void) mRefCount.fetch_add(1); in add_ref()
|
/aosp12/frameworks/opt/bitmap/src/com/android/bitmap/ |
H A D | ReusableBitmap.java | 32 private int mRefCount = 0; field in ReusableBitmap 79 mRefCount++; in acquireReference() 84 if (mRefCount == 0) { in releaseReference() 87 mRefCount--; in releaseReference() 92 return mRefCount; in getRefCount() 100 sb.append(mRefCount); in toString()
|
/aosp12/system/chre/core/include/chre/core/ |
H A D | event.h | 82 mRefCount++; in incrementRefCount() 83 CHRE_ASSERT(mRefCount != 0); in incrementRefCount() 87 CHRE_ASSERT(mRefCount > 0); in decrementRefCount() 88 mRefCount--; in decrementRefCount() 92 return (mRefCount == 0); in isUnreferenced() 147 uint16_t mRefCount = 0;
|
/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/core/ |
H A D | Frame.java | 39 private int mRefCount = 1; field in Frame 142 return mRefCount; in getRefCount() 202 mRefCount = 1; in reset() 223 ++mRefCount; in incRefCount() 224 return mRefCount; in incRefCount() 228 --mRefCount; in decRefCount() 229 return mRefCount; in decRefCount()
|
H A D | NativeBuffer.java | 34 private int mRefCount = 1; field in NativeBuffer 75 ++mRefCount; in retain() 86 --mRefCount; in release() 87 doDealloc = (mRefCount == 0); in release()
|
/aosp12/packages/apps/DocumentsUI/src/com/android/documentsui/archives/ |
H A D | Loader.java | 54 private int mRefCount = 0; field in Loader 100 if (mRefCount == 0) { in get() 116 if (mRefCount > 0) { in get() 137 mRefCount++; in acquire() 143 mRefCount--; in release() 144 if (mRefCount == 0) { in release()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/glwallpaper/ |
H A D | ImageWallpaperRenderer.java | 128 private final AtomicInteger mRefCount; field in ImageWallpaperRenderer.WallpaperTexture 137 mRefCount = new AtomicInteger(); in WallpaperTexture() 142 mRefCount.incrementAndGet(); in use() 143 synchronized (mRefCount) { in use() 160 synchronized (mRefCount) { in use() 161 final int count = mRefCount.decrementAndGet(); in use() 190 return "{" + getHash() + ", " + mRefCount.get() + "}"; in toString()
|
/aosp12/hardware/qcom/camera/msm8998/QCamera2/util/ |
H A D | QCameraPerf.cpp | 399 mRefCount(0), in QCameraPerfLock() 512 mRefCount = 0; in acquirePerfLock() 515 if ((mRefCount == 0) || forceReaquirePerfLock) { in acquirePerfLock() 522 ++mRefCount; in acquirePerfLock() 525 mHandle, mRefCount, mPerfLockType); in acquirePerfLock() 578 mHandle, mRefCount, mPerfLockType); in releasePerfLock() 582 mRefCount = 0; in releasePerfLock() 583 } else if (--mRefCount == 0) { in releasePerfLock() 699 ++(mInstance->mRefCount); in createSingleton() 720 if (mInstance && (--(mInstance->mRefCount) == 0)) { in deleteInstance()
|
H A D | QCameraPerf.h | 97 uint32_t mRefCount; variable 115 uint32_t mRefCount; variable 121 QCameraPerfLockIntf() { mRefCount = 0; mDlHandle = NULL; } in QCameraPerfLockIntf()
|
/aosp12/hardware/qcom/gps/msm8909/utils/ |
H A D | LocThread.cpp | 38 int mRefCount; member in LocThreadDelegate 68 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 101 mRefCount = 1; in LocThreadDelegate() 158 if (mRefCount > 0) { in destroy() 165 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/gps/msm8909w_3100/utils/ |
H A D | LocThread.cpp | 39 int mRefCount; member in LocThreadDelegate 69 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 103 mRefCount = 1; in LocThreadDelegate() 160 if (mRefCount > 0) { in destroy() 167 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/gps/msm8996/utils/ |
H A D | LocThread.cpp | 38 int mRefCount; member in LocThreadDelegate 68 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 101 mRefCount = 1; in LocThreadDelegate() 158 if (mRefCount > 0) { in destroy() 165 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/gps/msm8998/utils/ |
H A D | LocThread.cpp | 39 int mRefCount; member in LocThreadDelegate 69 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 103 mRefCount = 1; in LocThreadDelegate() 160 if (mRefCount > 0) { in destroy() 167 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/sm7150/gps/utils/ |
H A D | LocThread.cpp | 39 int mRefCount; member in LocThreadDelegate 69 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 103 mRefCount = 1; in LocThreadDelegate() 160 if (mRefCount > 0) { in destroy() 167 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/sdm845/gps/msm8909/utils/ |
H A D | LocThread.cpp | 38 int mRefCount; member in LocThreadDelegate 68 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 101 mRefCount = 1; in LocThreadDelegate() 158 if (mRefCount > 0) { in destroy() 165 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/sdm845/gps/msm8998/utils/ |
H A D | LocThread.cpp | 39 int mRefCount; member in LocThreadDelegate 69 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 103 mRefCount = 1; in LocThreadDelegate() 160 if (mRefCount > 0) { in destroy() 167 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/sm8150p/gps/utils/ |
H A D | LocThread.cpp | 39 int mRefCount; member in LocThreadDelegate 69 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 103 mRefCount = 1; in LocThreadDelegate() 160 if (mRefCount > 0) { in destroy() 167 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/sdm845/gps/sdm845/utils/ |
H A D | LocThread.cpp | 39 int mRefCount; member in LocThreadDelegate 69 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 103 mRefCount = 1; in LocThreadDelegate() 160 if (mRefCount > 0) { in destroy() 167 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/hardware/qcom/sdm845/gps/msm8996/utils/ |
H A D | LocThread.cpp | 38 int mRefCount; member in LocThreadDelegate 68 mMutex(PTHREAD_MUTEX_INITIALIZER), mRefCount(2) { in LocThreadDelegate() 101 mRefCount = 1; in LocThreadDelegate() 158 if (mRefCount > 0) { in destroy() 165 callDelete = (1 == mRefCount--); in destroy()
|
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | Suggestions.java | 44 private int mRefCount = 0; field in Suggestions 54 mRefCount++; in acquire() 58 mRefCount--; in release() 59 if (mRefCount <= 0) { in release()
|
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/ |
H A D | RefCountedImageProxy.java | 31 private final RefCountBase<ImageProxy> mRefCount; field in RefCountedImageProxy 39 mRefCount = new RefCountBase<ImageProxy>(image, refCount); in RefCountedImageProxy() 44 mRefCount.close(); in close()
|
/aosp12/system/core/libsysutils/src/ |
H A D | SocketClient.cpp | 52 mRefCount = 1; in init() 233 mRefCount++; in incRef() 240 mRefCount--; in decRef() 241 if (mRefCount == 0) { in decRef() 243 } else if (mRefCount < 0) { in decRef()
|
/aosp12/frameworks/base/services/autofill/java/com/android/server/autofill/ui/ |
H A D | RemoteInlineSuggestionUi.java | 82 private int mRefCount = 0; field in RemoteInlineSuggestionUi 177 mRefCount += delta; in handleUpdateRefCount() 178 if (mRefCount <= 0) { in handleUpdateRefCount() 208 mRefCount = 0; in handleInlineSuggestionUiReady()
|