Home
last modified time | relevance | path

Searched refs:mRefcount (Results 1 – 2 of 2) sorted by relevance

/aosp12/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/
H A DRefcountObject.java28 private int mRefcount; field in RefcountObject
40 mRefcount++; in addRef()
41 return mRefcount; in addRef()
45 mRefcount--; in releaseRef()
46 if (mRefcount == 0 && mRefcountListener != null) { in releaseRef()
49 return mRefcount; in releaseRef()
53 return mRefcount; in getRef()
/aosp12/system/netd/libnetdutils/include/netdutils/
H A DMockSyscalls.h76 ScopedMockSyscalls() : mOld(sSyscalls.swap(*this)) { assert((mRefcount++) == 1); } in ScopedMockSyscalls()
79 assert((mRefcount--) == 0); in ~ScopedMockSyscalls()
83 std::atomic<int> mRefcount{0};