Home
last modified time | relevance | path

Searched refs:refCount (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/services/core/java/com/android/server/power/stats/
DPowerStatsUidResolver.java139 final int refCount = mIsolatedUidRefCounts.get(uid, 0); in retainIsolatedUid() local
140 if (refCount <= 0) { in retainIsolatedUid()
147 mIsolatedUidRefCounts.put(uid, refCount + 1); in retainIsolatedUid()
159 final int refCount = mIsolatedUidRefCounts.get(isolatedUid, 0) - 1; in releaseIsolatedUid() local
160 if (refCount > 0) { in releaseIsolatedUid()
162 mIsolatedUidRefCounts.put(isolatedUid, refCount); in releaseIsolatedUid()
/frameworks/base/services/core/java/com/android/server/pm/
DKeySetHandle.java33 protected KeySetHandle(long id, int refCount) { in KeySetHandle() argument
35 mRefCount = refCount; in KeySetHandle()
DKeySetManagerService.java92 private PublicKeyHandle(long id, int refCount, PublicKey key) { in PublicKeyHandle() argument
94 mRefCount = refCount; in PublicKeyHandle()
803 int refCount = 0; in readKeySetListLPw() local
804 mKeySets.put(currentKeySetId, new KeySetHandle(currentKeySetId, refCount)); in readKeySetListLPw()
816 int refCount = 0; in readPublicKeyLPw() local
820 PublicKeyHandle pkh = new PublicKeyHandle(identifier, refCount, pub); in readPublicKeyLPw()
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
DSimpleFrameManager.java97 int refCount = frame.decRefCount(); in releaseFrame() local
98 if (refCount == 0 && frame.hasNativeAllocation()) { in releaseFrame()
101 } else if (refCount < 0) { in releaseFrame()
DCachedFrameManager.java71 int refCount = frame.decRefCount(); in releaseFrame() local
72 if (refCount == 0 && frame.hasNativeAllocation()) { in releaseFrame()
77 } else if (refCount < 0) { in releaseFrame()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DRenderTarget.java299 Integer refCount = mRefCounts.get(object); in addReferenceTo() local
300 if (refCount != null) { in addReferenceTo()
301 mRefCounts.put(object, refCount + 1); in addReferenceTo()
308 Integer refCount = mRefCounts.get(object); in removeReferenceTo() local
309 if (refCount != null && refCount > 0) { in removeReferenceTo()
310 --refCount; in removeReferenceTo()
311 mRefCounts.put(object, refCount); in removeReferenceTo()
312 return refCount == 0; in removeReferenceTo()
/frameworks/base/nfc/java/android/nfc/
DNfcActivityManager.java56 int refCount = 0; field in NfcActivityManager.NfcApplicationState
62 refCount++; in register()
63 if (refCount == 1) { in register()
68 refCount--; in unregister()
69 if (refCount == 0) { in unregister()
71 } else if (refCount < 0) { in unregister()
/frameworks/av/media/libmediaplayerservice/
DMediaPlayerService.cpp2868 mBatteryAudio.refCount = 0; in BatteryTracker()
2910 if (mBatteryAudio.refCount > 0) { // if playing audio in addBatteryData()
2930 if (mBatteryAudio.refCount == 0) { in addBatteryData()
2938 mBatteryAudio.refCount ++; in addBatteryData()
2942 if (mBatteryAudio.refCount <= 0) { in addBatteryData()
2949 if (mBatteryAudio.refCount == 1) { in addBatteryData()
2959 mBatteryAudio.refCount --; in addBatteryData()
2975 info.refCount = 0; in addBatteryData()
2988 info.refCount ++; in addBatteryData()
2992 info.refCount ++; in addBatteryData()
[all …]
DMediaPlayerService.h286 int refCount; member
312 int refCount; // how many audio streams are being played member
/frameworks/base/core/java/android/app/
DResourcesManager.java801 int refCount = mResourceImpls.size(); in findKeyForResourceImplLocked() local
802 for (int i = 0; i < refCount; i++) { in findKeyForResourceImplLocked()
1306 final int refCount = activityResources.activityResources.size(); in updateResourcesForActivity() local
1307 for (int i = 0; i < refCount; i++) { in updateResourcesForActivity()
/frameworks/av/media/libstagefright/
DMPEG4Writer.cpp5424 size_t refCount = refs.value.size(); in writeIrefBox() local
5425 if (refCount > 65535) { in writeIrefBox()
5427 refCount = 65535; in writeIrefBox()
5429 writeInt16((uint16_t)refCount); in writeIrefBox()
5430 for (size_t refIndex = 0; refIndex < refCount; refIndex++) { in writeIrefBox()
/frameworks/av/services/camera/libcameraservice/
DCameraService.h869 size_t refCount; member
DCameraService.cpp4720 it->second.refCount++; in registerMonitorUid()
4725 monitoredUid.refCount = 1; in registerMonitorUid()
4745 it->second.refCount--; in unregisterMonitorUid()
4746 if (it->second.refCount == 0) { in unregisterMonitorUid()