Home
last modified time | relevance | path

Searched refs:mRefCount (Results 1 – 21 of 21) sorted by relevance

/frameworks/base/services/core/java/com/android/server/pm/
DKeySetHandle.java23 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()
DKeySetManagerService.java81 private int mRefCount; field in KeySetManagerService.PublicKeyHandle
85 mRefCount = 1; in PublicKeyHandle()
94 mRefCount = refCount; in PublicKeyHandle()
107 return mRefCount; in getRefCountLPr()
111 mRefCount++; in incrRefCountLPw()
116 mRefCount--; in decrRefCountLPw()
117 return mRefCount; in decrRefCountLPw()
/frameworks/av/media/module/foundation/
DMediaBuffer.cpp36 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()
/frameworks/opt/bitmap/src/com/android/bitmap/
DReusableBitmap.java32 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()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFrame.java39 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()
DNativeBuffer.java34 private int mRefCount = 1; field in NativeBuffer
75 ++mRefCount; in retain()
86 --mRefCount; in release()
87 doDealloc = (mRefCount == 0); in release()
/frameworks/ex/camera2/extensions/service_based_sample/oem_library/src/java/androidx/camera/extensions/impl/service/
DImageWrapper.java127 private int mRefCount = 1; field in ImageWrapper
141 if (mRefCount <= 0) { in increment()
144 mRefCount++; in increment()
152 if (mRefCount <= 0) { in decrement()
155 mRefCount--; in decrement()
156 if (mRefCount <= 0) { in decrement()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DRemoteInlineSuggestionUi.java82 private int mRefCount = 0; field in RemoteInlineSuggestionUi
177 mRefCount += delta; in handleUpdateRefCount()
178 if (mRefCount <= 0) { in handleUpdateRefCount()
208 mRefCount = 0; in handleInlineSuggestionUiReady()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DBackingStore.java55 private int mRefCount = 1; field in BackingStore
101 if (mRefCount >= 10) { in retain()
102 Log.w("BackingStore", "High ref-count of " + mRefCount + " on " + this + "!"); in retain()
104 if (mRefCount <= 0) { in retain()
107 ++mRefCount; in retain()
112 if (mRefCount <= 0) { in release()
115 --mRefCount; in release()
116 if (mRefCount == 0) { in release()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp84 sessionDesc->mRefCount++; in addInputEffects()
86 ALOGV("addInputEffects(): input: %d, refCount: %d", input, sessionDesc->mRefCount); in addInputEffects()
87 if (sessionDesc->mRefCount == 1) { in addInputEffects()
130 sessionDesc->mRefCount--; in releaseInputEffects()
131 ALOGV("releaseInputEffects(): input: %d, refCount: %d", input, sessionDesc->mRefCount); in releaseInputEffects()
132 if (sessionDesc->mRefCount == 0) { in releaseInputEffects()
213 procDesc->mRefCount++; in addOutputSessionEffects()
216 audioSession, procDesc->mRefCount); in addOutputSessionEffects()
217 if (procDesc->mRefCount == 1) { in addOutputSessionEffects()
261 procDesc->mRefCount--; in releaseOutputSessionEffects()
[all …]
DAudioPolicyEffects.h177 int mRefCount = 0; variable
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBuffer.h96 return mRefCount.load(std::memory_order_relaxed); in localRefcount()
176 std::atomic<int> mRefCount; variable
/frameworks/compile/slang/
Dslang_backend.h105 RSObjectRefCount mRefCount; variable
Dslang_backend.cpp263 mRefCount(mContext->getASTContext()), in Backend()
606 mRefCount.Init(); in AnnotateFunction()
607 mRefCount.SetDeclContext(FD); in AnnotateFunction()
608 mRefCount.HandleParamsAndLocals(FD); in AnnotateFunction()
731 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor(); in HandleTranslationUnitPre()
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp148 int mRefCount = 0; member in JNIImageWriterContext::BufferDetacher
163 mRefCount++; in addRef()
164 if (mRefCount == 1) { in addRef()
172 mRefCount--; in removeRef()
173 if (mRefCount == 0) { in removeRef()
/frameworks/av/services/audioflinger/
DEffects.cpp2809 if (desc->mRefCount++ == 0) { in setEffectSuspended_l()
2822 if (desc->mRefCount <= 0) { in setEffectSuspended_l()
2823 ALOGW("setEffectSuspended_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspended_l()
2824 desc->mRefCount = 0; in setEffectSuspended_l()
2827 if (--desc->mRefCount == 0) { in setEffectSuspended_l()
2861 if (desc->mRefCount++ == 0) { in setEffectSuspendedAll_l()
2873 if (desc->mRefCount <= 0) { in setEffectSuspendedAll_l()
2874 ALOGW("setEffectSuspendedAll_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspendedAll_l()
2875 desc->mRefCount = 1; in setEffectSuspendedAll_l()
2877 if (--desc->mRefCount == 0) { in setEffectSuspendedAll_l()
DEffects.h662 SuspendedEffectDesc() : mRefCount(0) {} in SuspendedEffectDesc()
664 int mRefCount; // > 0 when suspended variable
DThreads.h579 SuspendedSessionDesc() : mRefCount(0) {} in SuspendedSessionDesc()
581 int mRefCount; // number of active suspend requests variable
DThreads.cpp1331 for (int j = 0; j < desc->mRefCount; j++) { in checkSuspendOnAddEffectChain_l()
1383 desc->mRefCount++; in updateSuspendedSessions_l()
1389 if (--desc->mRefCount == 0) { in updateSuspendedSessions_l()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java2794 private int mRefCount = 0; field in MediaSessionService.SessionManagerImpl.KeyEventWakeLockReceiver
2804 if (mRefCount == 0) { in onTimeout()
2809 mRefCount = 0; in onTimeout()
2815 if (mRefCount == 0) { in acquireWakeLockLocked()
2818 mRefCount++; in acquireWakeLockLocked()
2837 if (mRefCount > 0) { in onReceiveResult()
2838 mRefCount--; in onReceiveResult()
2839 if (mRefCount == 0) { in onReceiveResult()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt15342 Landroid/filterfw/core/Frame;->mRefCount:I
15570 Landroid/filterfw/core/NativeBuffer;->mRefCount:I