Home
last modified time | relevance | path

Searched refs:mRefCount (Results 1 – 24 of 24) 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.java78 private int mRefCount; field in KeySetManagerService.PublicKeyHandle
82 mRefCount = 1; in PublicKeyHandle()
91 mRefCount = refCount; in PublicKeyHandle()
104 return mRefCount; in getRefCountLPr()
108 mRefCount++; in incrRefCountLPw()
113 mRefCount--; in decrRefCountLPw()
114 return mRefCount; in decrRefCountLPw()
DPackageManagerService.java5030 if (current.mRefCount > 0) { in live()
5041 if (current.mRefCount > 0) { in snapshot()
5606 int mRefCount = 0; field in PackageManagerService.ThreadComputer
5608 if (mRefCount != 0 && mComputer != c) { in acquire()
5609 throw new RuntimeException("computer mismatch, count = " + mRefCount); in acquire()
5612 mRefCount++; in acquire()
5615 if (mRefCount == 0 || mComputer == null) { in acquire()
5618 mRefCount++; in acquire()
5621 if (--mRefCount == 0) { in release()
/frameworks/av/media/libstagefright/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/base/packages/SystemUI/src/com/android/systemui/glwallpaper/
DImageWallpaperRenderer.java122 private final AtomicInteger mRefCount; field in ImageWallpaperRenderer.WallpaperTexture
130 mRefCount = new AtomicInteger(); in WallpaperTexture()
135 mRefCount.incrementAndGet(); in use()
136 synchronized (mRefCount) { in use()
152 synchronized (mRefCount) { in use()
153 final int count = mRefCount.decrementAndGet(); in use()
179 return "{" + getHash() + ", " + mRefCount.get() + "}"; in toString()
/frameworks/libs/net/common/device/android/net/
DNetworkFactory.java89 private int mRefCount = 0; field in NetworkFactory
156 if (++mRefCount == 1) startNetwork(); in needNetworkFor()
160 if (--mRefCount == 0) stopNetwork(); in releaseNetworkFor()
/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.java65 private int mRefCount = 1; field in BackingStore
111 if (mRefCount >= 10) { in retain()
112 Log.w("BackingStore", "High ref-count of " + mRefCount + " on " + this + "!"); in retain()
114 if (mRefCount <= 0) { in retain()
117 ++mRefCount; in retain()
122 if (mRefCount <= 0) { in release()
125 --mRefCount; in release()
126 if (mRefCount == 0) { in release()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp118 sessionDesc->mRefCount++; in addInputEffects()
120 ALOGV("addInputEffects(): input: %d, refCount: %d", input, sessionDesc->mRefCount); in addInputEffects()
121 if (sessionDesc->mRefCount == 1) { in addInputEffects()
163 sessionDesc->mRefCount--; in releaseInputEffects()
164 ALOGV("releaseInputEffects(): input: %d, refCount: %d", input, sessionDesc->mRefCount); in releaseInputEffects()
165 if (sessionDesc->mRefCount == 0) { in releaseInputEffects()
268 procDesc->mRefCount++; in addOutputSessionEffects()
271 audioSession, procDesc->mRefCount); in addOutputSessionEffects()
272 if (procDesc->mRefCount == 1) { in addOutputSessionEffects()
317 procDesc->mRefCount--; in releaseOutputSessionEffects()
[all …]
DAudioPolicyEffects.h187 explicit EffectVector(audio_session_t session) : mSessionId(session), mRefCount(0) {} in EffectVector()
195 int mRefCount; variable
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBuffer.h96 return mRefCount.load(std::memory_order_relaxed); in localRefcount()
177 std::atomic<int> mRefCount; variable
/frameworks/base/services/core/java/com/android/server/
DIpSecService.java199 int mRefCount = 1; // starts at 1 for user's reference. field in IpSecService.RefcountedResource
210 child.mRefCount++; in RefcountedResource()
282 mRefCount--; in releaseReference()
284 if (mRefCount > 0) { in releaseReference()
286 } else if (mRefCount < 0) { in releaseReference()
302 mRefCount--; in releaseReference()
311 .append(mRefCount) in toString()
/frameworks/base/media/jni/
Dandroid_media_ImageWriter.cpp144 int mRefCount = 0; member in JNIImageWriterContext::BufferDetacher
159 mRefCount++; in addRef()
160 if (mRefCount == 1) { in addRef()
168 mRefCount--; in removeRef()
169 if (mRefCount == 0) { in removeRef()
/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/av/services/audioflinger/
DEffects.cpp2574 if (desc->mRefCount++ == 0) { in setEffectSuspended_l()
2587 if (desc->mRefCount <= 0) { in setEffectSuspended_l()
2588 ALOGW("setEffectSuspended_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspended_l()
2589 desc->mRefCount = 0; in setEffectSuspended_l()
2592 if (--desc->mRefCount == 0) { in setEffectSuspended_l()
2626 if (desc->mRefCount++ == 0) { in setEffectSuspendedAll_l()
2638 if (desc->mRefCount <= 0) { in setEffectSuspendedAll_l()
2639 ALOGW("setEffectSuspendedAll_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspendedAll_l()
2640 desc->mRefCount = 1; in setEffectSuspendedAll_l()
2642 if (--desc->mRefCount == 0) { in setEffectSuspendedAll_l()
DEffects.h586 SuspendedEffectDesc() : mRefCount(0) {} in SuspendedEffectDesc()
588 int mRefCount; // > 0 when suspended variable
DThreads.h537 SuspendedSessionDesc() : mRefCount(0) {} in SuspendedSessionDesc()
539 int mRefCount; // number of active suspend requests variable
DThreads.cpp1153 for (int j = 0; j < desc->mRefCount; j++) { in checkSuspendOnAddEffectChain_l()
1205 desc->mRefCount++; in updateSuspendedSessions_l()
1211 if (--desc->mRefCount == 0) { in updateSuspendedSessions_l()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java2408 private int mRefCount = 0; field in MediaSessionService.SessionManagerImpl.KeyEventWakeLockReceiver
2418 if (mRefCount == 0) { in onTimeout()
2423 mRefCount = 0; in onTimeout()
2429 if (mRefCount == 0) { in acquireWakeLockLocked()
2432 mRefCount++; in acquireWakeLockLocked()
2451 if (mRefCount > 0) { in onReceiveResult()
2452 mRefCount--; in onReceiveResult()
2453 if (mRefCount == 0) { in onReceiveResult()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt18220 Landroid/filterfw/core/Frame;->mRefCount:I
18448 Landroid/filterfw/core/NativeBuffer;->mRefCount:I