Home
last modified time | relevance | path

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

12

/aosp12/frameworks/native/services/inputflinger/dispatcher/
H A DInjectionState.cpp24 : refCount(1), in InjectionState()
34 refCount -= 1; in release()
35 if (refCount == 0) { in release()
38 ALOG_ASSERT(refCount > 0); in release()
H A DInjectionState.h28 mutable int32_t refCount; member
/aosp12/packages/services/Car/cpp/evs/manager/1.0/
H A DHalCamera.cpp114 if (rec.refCount > 0) { in changeFramesInFlight()
171 mFrames[i].refCount--; in doneWithFrame()
172 if (mFrames[i].refCount <= 0) { in doneWithFrame()
202 if (mFrames[i].refCount == 0) { in deliverFrame()
211 mFrames[i].refCount = frameDeliveries; in deliverFrame()
H A DHalCamera.h78 uint32_t refCount; member
79 FrameRecord(uint32_t id) : frameId(id), refCount(0) {}; in FrameRecord()
/aosp12/system/chre/core/include/chre/core/
H A Daudio_request_manager.h183 AudioDataEventRefCount(struct chreAudioDataEvent *event, uint32_t refCount) in AudioDataEventRefCount()
184 : event(event), refCount(refCount) {} in AudioDataEventRefCount()
200 uint32_t refCount; member
/aosp12/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A 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()
/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DSimpleFrameManager.java97 int refCount = frame.decRefCount(); in releaseFrame() local
98 if (refCount == 0 && frame.hasNativeAllocation()) { in releaseFrame()
101 } else if (refCount < 0) { in releaseFrame()
H A DCachedFrameManager.java71 int refCount = frame.decRefCount(); in releaseFrame() local
72 if (refCount == 0 && frame.hasNativeAllocation()) { in releaseFrame()
77 } else if (refCount < 0) { in releaseFrame()
/aosp12/packages/apps/Camera2/tests/src/com/android/camera/functional/
H A DCameraTest.java74 int refCount = 0; in checkActivityLeak() local
76 if (c.get() != null) refCount++; in checkActivityLeak()
79 assertTrue(refCount != TEST_COUNT); in checkActivityLeak()
/aosp12/packages/services/Car/cpp/evs/manager/1.1/
H A DHalCamera.cpp169 if (rec.refCount > 0) { in changeFramesInFlight()
221 if (rec.refCount > 0) { in changeFramesInFlight()
308 mFrames[i].refCount--; in doneWithFrame()
309 if (mFrames[i].refCount <= 0) { in doneWithFrame()
334 mFrames[i].refCount--; in doneWithFrame()
335 if (mFrames[i].refCount <= 0) { in doneWithFrame()
437 if (mFrames[i].refCount == 0) { in deliverFrame_1_1()
447 mFrames[i].refCount = frameDeliveries; in deliverFrame_1_1()
H A DHalCamera.h135 uint32_t refCount; member
136 FrameRecord(uint32_t id) : frameId(id), refCount(0) {}; in FrameRecord()
/aosp12/packages/apps/LegacyCamera/tests/src/com/android/camera/functional/
H A DCameraTest.java79 int refCount = 0; in checkActivityLeak() local
81 if (c.get() != null) refCount++; in checkActivityLeak()
84 assertTrue(refCount != TEST_COUNT); in checkActivityLeak()
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DKeySetHandle.java33 protected KeySetHandle(long id, int refCount) { in KeySetHandle() argument
35 mRefCount = refCount; in KeySetHandle()
H A DKeySetManagerService.java89 private PublicKeyHandle(long id, int refCount, PublicKey key) { in PublicKeyHandle() argument
91 mRefCount = refCount; in PublicKeyHandle()
789 int refCount = 0; in readKeySetListLPw() local
790 mKeySets.put(currentKeySetId, new KeySetHandle(currentKeySetId, refCount)); in readKeySetListLPw()
802 int refCount = 0; in readPublicKeyLPw() local
806 PublicKeyHandle pkh = new PublicKeyHandle(identifier, refCount, pub); in readPublicKeyLPw()
/aosp12/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/imagedistributor/
H A DRefCountedImageProxy.java37 public RefCountedImageProxy(ImageProxy image, int refCount) { in RefCountedImageProxy() argument
39 mRefCount = new RefCountBase<ImageProxy>(image, refCount); in RefCountedImageProxy()
/aosp12/frameworks/base/core/java/android/nfc/
H A DNfcActivityManager.java59 int refCount = 0; field in NfcActivityManager.NfcApplicationState
65 refCount++; in register()
66 if (refCount == 1) { in register()
71 refCount--; in unregister()
72 if (refCount == 0) { in unregister()
74 } else if (refCount < 0) { in unregister()
/aosp12/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetNetworkFactory.java106 if (++network.refCount == 1) { in needNetworkFor()
119 if (--network.refCount == 0) { in releaseNetworkFor()
312 long refCount = 0; field in NetworkInterfaceState
602 + "refCount: " + refCount + ", " in toString()
/aosp12/frameworks/av/media/libmediaplayerservice/
H A DMediaPlayerService.cpp2833 mBatteryAudio.refCount = 0; in BatteryTracker()
2903 mBatteryAudio.refCount ++; in addBatteryData()
2924 mBatteryAudio.refCount --; in addBatteryData()
2940 info.refCount = 0; in addBatteryData()
2953 info.refCount ++; in addBatteryData()
2957 info.refCount ++; in addBatteryData()
2960 if (info.refCount == 0) { in addBatteryData()
2971 info.refCount --; in addBatteryData()
2975 info.refCount --; in addBatteryData()
2979 if (info.refCount == 0) { in addBatteryData()
[all …]
H A DMediaPlayerService.h277 int refCount; member
303 int refCount; // how many audio streams are being played member
/aosp12/system/chre/core/
H A Daudio_request_manager.cc437 if (audioDataEventRefCount.refCount == 0) { in handleFreeAudioDataEvent()
440 audioDataEventRefCount.refCount--; in handleFreeAudioDataEvent()
441 if (audioDataEventRefCount.refCount == 0) { in handleFreeAudioDataEvent()
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/server/
H A DIpSecServiceRefcountedResourceTest.java72 int refCount, in assertResourceState() argument
79 assertEquals(refCount, resource.mRefCount); in assertResourceState()
/aosp12/frameworks/base/core/java/android/app/
H A DResourcesManager.java678 int refCount = mResourceImpls.size(); in findKeyForResourceImplLocked() local
679 for (int i = 0; i < refCount; i++) { in findKeyForResourceImplLocked()
1184 final int refCount = activityResources.activityResources.size(); in updateResourcesForActivity() local
1185 for (int i = 0; i < refCount; i++) { in updateResourcesForActivity()
/aosp12/packages/modules/Connectivity/core/java/android/net/
H A DConnectivityManager.java2022 AtomicInteger refCount, ConnectivityManager cm) { in CallbackHandler() argument
2025 mRefCount = refCount; in CallbackHandler()
/aosp12/frameworks/av/media/libstagefright/
H A DMPEG4Writer.cpp5169 size_t refCount = refs.value.size(); in writeIrefBox() local
5170 if (refCount > 65535) { in writeIrefBox()
5172 refCount = 65535; in writeIrefBox()
5174 writeInt16((uint16_t)refCount); in writeIrefBox()
5175 for (size_t refIndex = 0; refIndex < refCount; refIndex++) { in writeIrefBox()
/aosp12/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java4005 final int refCount = mIsolatedUidRefCounts.get(isolatedUid, 0) - 1; in maybeRemoveIsolatedUidLocked() local
4006 if (refCount > 0) { in maybeRemoveIsolatedUidLocked()
4008 mIsolatedUidRefCounts.put(isolatedUid, refCount); in maybeRemoveIsolatedUidLocked()
4032 final int refCount = mIsolatedUidRefCounts.get(uid, 0); in incrementIsolatedUidRefCount() local
4033 if (refCount <= 0) { in incrementIsolatedUidRefCount()
4039 mIsolatedUidRefCounts.put(uid, refCount + 1); in incrementIsolatedUidRefCount()
17193 final int refCount = mIsolatedUidRefCounts.get(isolatedUid);
17194 pw.println(" " + isolatedUid + "->" + ownerUid + " (ref count = " + refCount + ")");

12