Home
last modified time | relevance | path

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

12

/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.java71 private int mRefCount; field in KeySetManagerService.PublicKeyHandle
75 mRefCount = 1; in PublicKeyHandle()
84 mRefCount = refCount; in PublicKeyHandle()
97 return mRefCount; in getRefCountLPr()
101 mRefCount++; in incrRefCountLPw()
106 mRefCount--; in decrRefCountLPw()
107 return mRefCount; in decrRefCountLPw()
/frameworks/av/media/libstagefright/
DMediaBuffer.cpp36 mRefCount(0), in MediaBuffer()
49 mRefCount(0), in MediaBuffer()
62 mRefCount(0), in MediaBuffer()
76 mRefCount(0), in MediaBuffer()
89 CHECK_EQ(mRefCount, 0); in release()
94 int prevCount = __sync_fetch_and_sub(&mRefCount, 1); in release()
108 CHECK_EQ(mRefCount, 1); in claim()
110 mRefCount = 0; in claim()
114 (void) __sync_fetch_and_add(&mRefCount, 1); in add_ref()
186 return mRefCount; in refcount()
/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/av/services/audiopolicy/common/managerdefinitions/src/
DSessionRoute.cpp34 mRefCount, mActivityCount); in log()
58 ALOG_ASSERT(route->mRefCount > 0); in removeRoute()
59 --route->mRefCount; in removeRoute()
60 if (route->mRefCount <= 0) { in removeRoute()
112 route->mRefCount++; in addRoute()
116 route->mRefCount++; in addRoute()
DAudioInputDescriptor.cpp31 mDevice(AUDIO_DEVICE_NONE), mPolicyMix(NULL), mPatchHandle(0), mRefCount(0), in AudioInputDescriptor()
112 snprintf(buffer, SIZE, " Ref Count %d\n", mRefCount); in dump()
126 if (inputDescriptor->mRefCount == 0) { in isSourceActive()
153 if (desc->mRefCount > 0) { in activeInputsCount()
164 if ((input_descriptor->mRefCount > 0) in getActiveInput()
DAudioOutputDescriptor.cpp41 mRefCount[i] = 0; in AudioOutputDescriptor()
93 if ((delta + (int)mRefCount[stream]) < 0) { in changeRefCount()
95 delta, stream, mRefCount[stream]); in changeRefCount()
96 mRefCount[stream] = 0; in changeRefCount()
99 mRefCount[stream] += delta; in changeRefCount()
100 ALOGV("changeRefCount() stream %d, count %d", stream, mRefCount[stream]); in changeRefCount()
124 if (mRefCount[stream] != 0) { in isStreamActive()
208 i, mCurVolume[i], mRefCount[i], mMuteCount[i]); in dump()
465 if (outputDesc->mRefCount[s] != 0) { in isAnyOutputActive()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DFrame.java40 private int mRefCount = 1; field in Frame
138 return mRefCount; in getRefCount()
197 mRefCount = 1; in reset()
218 ++mRefCount; in incRefCount()
219 return mRefCount; in incRefCount()
223 --mRefCount; in decRefCount()
224 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/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java81 private int mRefCount = 0; field in ApnContext
298 if (mRefCount == 0) { in incRefCount()
305 log.log("ApnContext.incRefCount has duplicate add - " + mRefCount); in incRefCount()
308 log.log("ApnContext.incRefCount - " + mRefCount); in incRefCount()
310 if (mRefCount++ == 0) { in incRefCount()
319 if (mRefCount != 1) { in decRefCount()
321 log.log("ApnContext.decRefCount - " + mRefCount); in decRefCount()
323 log.log("ApnContext.decRefCount didn't find log - " + mRefCount); in decRefCount()
328 if (mRefCount-- == 1) { in decRefCount()
413 if (mRefCount > 0) { in dump()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp105 inputDesc->mRefCount++; in addInputEffects()
107 ALOGV("addInputEffects(): input: %d, refCount: %d", input, inputDesc->mRefCount); in addInputEffects()
108 if (inputDesc->mRefCount == 1) { in addInputEffects()
144 inputDesc->mRefCount--; in releaseInputEffects()
145 ALOGV("releaseInputEffects(): input: %d, refCount: %d", input, inputDesc->mRefCount); in releaseInputEffects()
146 if (inputDesc->mRefCount == 0) { in releaseInputEffects()
249 procDesc->mRefCount++; in addOutputSessionEffects()
252 audioSession, procDesc->mRefCount); in addOutputSessionEffects()
253 if (procDesc->mRefCount == 1) { in addOutputSessionEffects()
292 procDesc->mRefCount--; in releaseOutputSessionEffects()
[all …]
DAudioPolicyEffects.h138 EffectVector(int session) : mSessionId(session), mRefCount(0) {} in EffectVector()
146 int mRefCount; variable
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DSessionRoute.h48 mRefCount(0), in SessionRoute()
66 int mRefCount; // +/- on references variable
DAudioInputDescriptor.h46 uint32_t mRefCount; // number of AudioRecord clients using variable
DAudioOutputDescriptor.h75 uint32_t mRefCount[AUDIO_STREAM_CNT]; // number of streams of each type using this output variable
/frameworks/base/core/java/android/net/
DNetworkFactory.java106 private int mRefCount = 0; field in NetworkFactory
261 if (++mRefCount == 1) startNetwork(); in needNetworkFor()
265 if (--mRefCount == 0) stopNetwork(); in releaseNetworkFor()
309 append(mNetworkRequests.size()).append(", refCount=").append(mRefCount). in toString()
/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/base/wifi/java/android/net/wifi/
DWifiManager.java2323 private int mRefCount;
2333 mRefCount = 0;
2351 if (mRefCounted ? (++mRefCount == 1) : (!mHeld)) {
2383 if (mRefCounted ? (--mRefCount == 0) : (mHeld)) {
2393 if (mRefCount < 0) {
2460 s3 = "refcounted: refcount = " + mRefCount;
2549 private int mRefCount;
2556 mRefCount = 0;
2583 if (mRefCounted ? (++mRefCount == 1) : (!mHeld)) {
2627 if (mRefCounted ? (--mRefCount == 0) : (mHeld)) {
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java1054 private int mRefCount = 0; field in MediaSessionService.SessionManagerImpl.KeyEventWakeLockReceiver
1064 if (mRefCount == 0) { in onTimeout()
1069 mRefCount = 0; in onTimeout()
1075 if (mRefCount == 0) { in aquireWakeLockLocked()
1078 mRefCount++; in aquireWakeLockLocked()
1097 if (mRefCount > 0) { in onReceiveResult()
1098 mRefCount--; in onReceiveResult()
1099 if (mRefCount == 0) { in onReceiveResult()
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java531 observer.mRefCount++;
542 observer.mRefCount--;
543 if (observer.mRefCount == 0) {
560 private int mRefCount = 0;
579 return "DirectoryObserver{file=" + mFile.getAbsolutePath() + ", ref=" + mRefCount + "}";
/frameworks/av/include/media/stagefright/
DMediaBuffer.h103 int mRefCount; variable
/frameworks/av/services/audioflinger/
DEffects.cpp1778 if (desc->mRefCount++ == 0) { in setEffectSuspended_l()
1791 if (desc->mRefCount <= 0) { in setEffectSuspended_l()
1792 ALOGW("setEffectSuspended_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspended_l()
1793 desc->mRefCount = 1; in setEffectSuspended_l()
1795 if (--desc->mRefCount == 0) { in setEffectSuspended_l()
1829 if (desc->mRefCount++ == 0) { in setEffectSuspendedAll_l()
1841 if (desc->mRefCount <= 0) { in setEffectSuspendedAll_l()
1842 ALOGW("setEffectSuspendedAll_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspendedAll_l()
1843 desc->mRefCount = 1; in setEffectSuspendedAll_l()
1845 if (--desc->mRefCount == 0) { in setEffectSuspendedAll_l()
DEffects.h340 SuspendedEffectDesc() : mRefCount(0) {} in SuspendedEffectDesc()
342 int mRefCount; variable
/frameworks/compile/slang/
Dslang_backend.h101 RSObjectRefCount mRefCount; variable
Dslang_backend.cpp231 mRSObjectSlotsMetadata(nullptr), mRefCount(mContext->getASTContext()), in Backend()
417 mRefCount.Init(); in AnnotateFunction()
418 mRefCount.Visit(FD->getBody()); in AnnotateFunction()
500 clang::FunctionDecl *FD = mRefCount.CreateStaticGlobalDtor(); in HandleTranslationUnitPre()

12