Home
last modified time | relevance | path

Searched refs:mRefCount (Results 1 – 25 of 28) 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/foundation/
DMediaBuffer.cpp38 mRefCount(0), in MediaBuffer()
50 mRefCount(0), in MediaBuffer()
82 mRefCount(0), in MediaBuffer()
95 mRefCount(0), in MediaBuffer()
109 CHECK_EQ(mRefCount, 0); in release()
114 int prevCount = __sync_fetch_and_sub(&mRefCount, 1); in release()
128 CHECK_EQ(mRefCount, 1); in claim()
130 mRefCount = 0; in claim()
134 (void) __sync_fetch_and_add(&mRefCount, 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/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()
DAudioOutputDescriptor.cpp42 mRefCount[i] = 0; in AudioOutputDescriptor()
92 if ((delta + (int)mRefCount[stream]) < 0) { in changeRefCount()
94 delta, stream, mRefCount[stream]); in changeRefCount()
95 mRefCount[stream] = 0; in changeRefCount()
98 mRefCount[stream] += delta; in changeRefCount()
99 ALOGV("changeRefCount() stream %d, count %d", stream, mRefCount[stream]); in changeRefCount()
123 if (mRefCount[stream] != 0) { in isStreamActive()
207 i, mCurVolume[i], mRefCount[i], mMuteCount[i]); in dump()
522 if (outputDesc->mRefCount[s] != 0) { in isAnyOutputActive()
575 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/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp113 sessionDesc->mRefCount++; in addInputEffects()
115 ALOGV("addInputEffects(): input: %d, refCount: %d", input, sessionDesc->mRefCount); in addInputEffects()
116 if (sessionDesc->mRefCount == 1) { in addInputEffects()
155 sessionDesc->mRefCount--; in releaseInputEffects()
156 ALOGV("releaseInputEffects(): input: %d, refCount: %d", input, sessionDesc->mRefCount); in releaseInputEffects()
157 if (sessionDesc->mRefCount == 0) { in releaseInputEffects()
260 procDesc->mRefCount++; in addOutputSessionEffects()
263 audioSession, procDesc->mRefCount); in addOutputSessionEffects()
264 if (procDesc->mRefCount == 1) { in addOutputSessionEffects()
306 procDesc->mRefCount--; in releaseOutputSessionEffects()
[all …]
DAudioPolicyEffects.h138 explicit EffectVector(audio_session_t 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
DAudioOutputDescriptor.h81 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
273 if (++mRefCount == 1) startNetwork(); in needNetworkFor()
277 if (--mRefCount == 0) stopNetwork(); in releaseNetworkFor()
321 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.java3013 private int mRefCount;
3023 mRefCount = 0;
3041 if (mRefCounted ? (++mRefCount == 1) : (!mHeld)) {
3074 if (mRefCounted ? (--mRefCount == 0) : (mHeld)) {
3085 if (mRefCount < 0) {
3153 s3 = "refcounted: refcount = " + mRefCount;
3243 private int mRefCount;
3250 mRefCount = 0;
3277 if (mRefCounted ? (++mRefCount == 1) : (!mHeld)) {
3322 if (mRefCounted ? (--mRefCount == 0) : (mHeld)) {
[all …]
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaBuffer.h111 return mRefCount; in localRefcount()
166 int mRefCount; variable
/frameworks/base/core/java/com/android/internal/content/
DFileSystemProvider.java514 observer.mRefCount++; in startObserving()
525 observer.mRefCount--; in stopObserving()
526 if (observer.mRefCount == 0) { in stopObserving()
543 private int mRefCount = 0; field in FileSystemProvider.DirectoryObserver
562 return "DirectoryObserver{file=" + mFile.getAbsolutePath() + ", ref=" + mRefCount + "}"; in toString()
/frameworks/base/services/core/java/com/android/server/media/
DMediaSessionService.java1589 private int mRefCount = 0; field in MediaSessionService.SessionManagerImpl.KeyEventWakeLockReceiver
1599 if (mRefCount == 0) { in onTimeout()
1604 mRefCount = 0; in onTimeout()
1610 if (mRefCount == 0) { in aquireWakeLockLocked()
1613 mRefCount++; in aquireWakeLockLocked()
1632 if (mRefCount > 0) { in onReceiveResult()
1633 mRefCount--; in onReceiveResult()
1634 if (mRefCount == 0) { in onReceiveResult()
/frameworks/av/services/audioflinger/
DEffects.cpp2034 if (desc->mRefCount++ == 0) { in setEffectSuspended_l()
2047 if (desc->mRefCount <= 0) { in setEffectSuspended_l()
2048 ALOGW("setEffectSuspended_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspended_l()
2049 desc->mRefCount = 0; in setEffectSuspended_l()
2052 if (--desc->mRefCount == 0) { in setEffectSuspended_l()
2086 if (desc->mRefCount++ == 0) { in setEffectSuspendedAll_l()
2098 if (desc->mRefCount <= 0) { in setEffectSuspendedAll_l()
2099 ALOGW("setEffectSuspendedAll_l() restore refcount should not be 0 %d", desc->mRefCount); in setEffectSuspendedAll_l()
2100 desc->mRefCount = 1; in setEffectSuspendedAll_l()
2102 if (--desc->mRefCount == 0) { in setEffectSuspendedAll_l()
DEffects.h374 SuspendedEffectDesc() : mRefCount(0) {} in SuspendedEffectDesc()
376 int mRefCount; // > 0 when suspended 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/soundpool/
DSoundPool.h72 volatile int32_t mRefCount; variable
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp890 outputDesc->mRefCount[stream] = 0; in getOutputForDevice()
1063 outputDesc->mRefCount[stream] = 0; in getOutputForDevice()
1277 if (outputDesc->mRefCount[stream] == 1 || device != AUDIO_DEVICE_NONE) { in startSource()
1357 if (outputDesc->mRefCount[stream] == 1) { in stopOutput()
1373 if (outputDesc->mRefCount[stream] > 0) { in stopOutput()
1397 if (outputDesc->mRefCount[stream] > 0) { in stopSource()
1402 if (outputDesc->mRefCount[stream] == 0 || forceDeviceUpdate) { in stopSource()
4511 int refCount = dupOutputDesc->mRefCount[j]; in AudioPolicyManager()
5600 if (outputDesc->mRefCount[stream]) { in AudioPolicyManager()
5603 muteCount = outputDesc->mRefCount[stream]; in AudioPolicyManager()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java76 private int mRefCount = 0; field in ApnContext

12