/system/core/include/utils/ |
H A D | LightRefBase.h | 35 inline LightRefBase() : mCount(0) { } 37 mCount.fetch_add(1, std::memory_order_relaxed); 40 if (mCount.fetch_sub(1, std::memory_order_release) == 1) { 47 return mCount.load(std::memory_order_relaxed); 61 mutable std::atomic<int32_t> mCount; member in class:android::LightRefBase
|
H A D | VectorImpl.h | 35 * For performance reasons, we expose mStorage and mCount 63 inline size_t size() const { return mCount; } 64 inline bool isEmpty() const { return mCount == 0; } 123 size_t mCount; // number of items member in class:android::VectorImpl
|
/system/core/libutils/include/utils/ |
H A D | LightRefBase.h | 35 inline LightRefBase() : mCount(0) { } 37 mCount.fetch_add(1, std::memory_order_relaxed); 40 if (mCount.fetch_sub(1, std::memory_order_release) == 1) { 47 return mCount.load(std::memory_order_relaxed); 61 mutable std::atomic<int32_t> mCount; member in class:android::LightRefBase
|
H A D | VectorImpl.h | 35 * For performance reasons, we expose mStorage and mCount 63 inline size_t size() const { return mCount; } 64 inline bool isEmpty() const { return mCount == 0; } 123 size_t mCount; // number of items member in class:android::VectorImpl
|
/system/core/libutils/ |
H A D | VectorImpl.cpp | 47 : mStorage(0), mCount(0), mFlags(flags), mItemSize(itemSize) 52 : mStorage(rhs.mStorage), mCount(rhs.mCount), 62 ALOGW_IF(mCount, 65 this, (int)(mCount*mItemSize)); 75 if (rhs.mCount) { 77 mCount = rhs.mCount; 81 mCount = 0; 100 _do_copy(editable->data(), mStorage, mCount); [all...] |
/system/media/audio_utils/include/audio_utils/ |
H A D | ErrorLog.h | 78 mEntries[mIdx].mCount++; 121 if (entry.mCount == 0 || entry.mLastTime < limitNs) { 133 << " " << std::setw(5) << entry.mCount 164 , mCount(0) 173 mCount = 1; 179 uint32_t mCount; // number of consecutive errors of the same code. member in struct:android::ErrorLog::Entry
|
/system/core/logd/ |
H A D | LogTimes.cpp | 42 mCount(0), 204 if (me->mCount == 0) { 210 ++me->mCount; 239 if (me->mNonBlock && me->mTail && (me->mIndex >= me->mCount)) { 261 if ((me->mCount > me->mTail) && (me->mIndex <= (me->mCount - me->mTail))) {
|
H A D | LogTimes.h | 48 unsigned long mCount; member in class:LogTimeEntry
|
/system/core/libpixelflinger/codeflinger/ |
H A D | CodeCache.cpp | 102 : mCount(0), mSize(0) 118 mCount.fetch_add(1, std::memory_order_relaxed); 123 if (mCount.fetch_sub(1, std::memory_order_acq_rel) == 1) { 84 LOG_ALWAYS_FATAL_IF(fd < 0, � �, strerror(errno)); gExecutableStore = mmap(NULL, kMaxCodeCacheCapacity, PROT_READ | PROT_WRITE | PROT_EXEC, MAP_PRIVATE, fd, 0); LOG_ALWAYS_FATAL_IF(gExecutableStore == MAP_FAILED, � �, strerror(errno)); close(fd); gMspace = create_mspace_with_base(gExecutableStore, kMaxCodeCacheCapacity, false); mspace_set_footprint_limit(gMspace, kMaxCodeCacheCapacity); } return gMspace; } Assembly::Assembly(size_t size) : mCount(0), mSize(0) { mBase = (uint32_t*)mspace_malloc(getMspace(), size); LOG_ALWAYS_FATAL_IF(mBase == NULL, � �, size, kMaxCodeCacheCapacity); mSize = size; } Assembly::~Assembly() { mspace_free(getMspace(), mBase); } void Assembly::incStrong(const void*) const { mCount.fetch_add(1, std::memory_order_relaxed); } void Assembly::decStrong(const void*) const { if (mCount.fetch_sub(1, std::memory_order_acq_rel) == 1) { delete this; } } ssize_t Assembly::size() const { if (!mBase) return NO_MEMORY; return mSize; } uint32_t* Assembly::base() const { return mBase; } ssize_t Assembly::resize(size_t newSize) { mBase = (uint32_t*)mspace_realloc(getMspace(), mBase, newSize); LOG_ALWAYS_FATAL_IF(mBase == NULL, � �, newSize, kMaxCodeCacheCapacity); mSize = newSize; return size(); } CodeCache::CodeCache(size_t size) : mCacheSize(size), mCacheInUse(0) { pthread_mutex_init(&mLock, 0); } CodeCache::~CodeCache() { pthread_mutex_destroy(&mLock); } sp<Assembly> CodeCache::lookup(const AssemblyKeyBase& keyBase) const { pthread_mutex_lock(&mLock); sp<Assembly> r; ssize_t index = mCacheData.indexOfKey(key_t(keyBase)); if (index >= 0) argument
|
H A D | CodeCache.h | 73 mutable std::atomic<int32_t> mCount; member in class:android::Assembly
|
H A D | GGLAssembler.h | 134 : mRegFile(regFile), mGen(gen), mRegList(reglist), mCount(0) 149 mCount = count; 154 if (mCount == 1) { 167 int mCount; member in class:android::RegisterAllocator::Spill
|
/system/netd/server/ |
H A D | XfrmController.cpp | 294 mCount = mSize; 298 if (!mCount) 300 mCount--; 308 uint32_t mCount; member in class:android::net::__anon1944::RandomSpi
|