/frameworks/base/core/java/com/android/internal/util/ |
RingBufferIndices.java | 24 private final int mCapacity; 34 mCapacity = capacity; 43 if (mSize < mCapacity) { 50 if (mStart == mCapacity) { 77 if (index >= mCapacity) { 78 index -= mCapacity;
|
TokenBucket.java | 42 private final int mCapacity; // Maximum number of tokens that can be stored. 55 mCapacity = checkArgumentPositive(capacity, "capacity must be strictly positive"); 56 mAvailable = Math.min(checkArgumentNonnegative(tokens), mCapacity); 73 mAvailable = Math.min(tokens, mCapacity); 79 return mCapacity; 121 mAvailable = Math.min(mCapacity, mAvailable + diff);
|
/hardware/libhardware/modules/sensors/ |
SensorEventQueue.cpp | 27 mCapacity = capacity; 31 mData = new sensors_event_t[mCapacity]; 42 if (mSize == mCapacity || requestedLength <= 0) { 47 int firstWritable = (mStart + mSize) % mCapacity; 52 if (lastWritable > mCapacity - 1) { 53 lastWritable = mCapacity - 1; 78 if (mSize == mCapacity) { 82 mStart = (mStart + 1) % mCapacity; 88 while (mSize == mCapacity) {
|
SensorEventQueue.h | 34 int mCapacity;
|
/frameworks/av/media/libstagefright/foundation/ |
ABuffer.cpp | 33 mCapacity = 0; 36 mCapacity = capacity; 44 mCapacity(capacity), 74 CHECK_LE(offset, mCapacity); 75 CHECK_LE(offset + size, mCapacity);
|
/frameworks/av/media/libaaudio/src/fifo/ |
FifoControllerBase.cpp | 27 : mCapacity(capacity) 41 return (fifo_frames_t) (getReadCounter() % mCapacity); 54 return (fifo_frames_t) (getWriteCounter() % mCapacity);
|
FifoControllerBase.h | 114 return mCapacity; 119 fifo_frames_t mCapacity;
|
/frameworks/av/media/libstagefright/ |
SkipCutBuffer.cpp | 31 mCapacity = 0; 50 mCapacity = cut + 4096; 51 mCutBuffer = new (std::nothrow) char[mCapacity]; 52 ALOGV("skipcutbuffer %zu %zu %d", skip, cut, mCapacity); 139 if (sizeused < 0) sizeused += mCapacity; 144 size_t available = mCapacity - sizeused - 32; 146 int32_t newcapacity = mCapacity + (num - available); 148 memcpy(newbuffer, mCutBuffer, mCapacity); 150 mCapacity = newcapacity; 155 size_t copyfirst = (mCapacity - mWriteHead) [all...] |
/cts/suite/audio_quality/lib/include/audio/ |
Buffer.h | 40 return mCapacity; 63 ASSERT(len <= mCapacity); 123 size_t mCapacity;
|
/cts/suite/audio_quality/lib/src/ |
RWBuffer.h | 29 : mCapacity(capacity), 60 ASSERT((mWrPoint + sizeToWrite) <= mCapacity); 95 int mCapacity;
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ |
AllocatingImageStream.java | 36 private final int mCapacity; 60 mCapacity = capacity; 69 mTicketPool.reserveCapacity(mCapacity);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
SuggestionResults.java | 37 private final int mCapacity; 49 mCapacity = capacity; 61 if (size() < mCapacity) return super.add(e);
|
/packages/apps/Camera2/src/com/android/camera/one/v2/sharedimagereader/ticketpool/ |
ReservableTicketPool.java | 96 releaseToParent = (mParentTickets.size() == mCapacity); 119 * Lock for mutable state: {@link #mParentTickets}, {@link #mCapacity}, and 145 private int mCapacity; 152 mCapacity = 0; 219 mCapacity += additionalCapacity; 249 if (capacityToRelease > mCapacity) { 250 capacityToRelease = mCapacity; 253 mCapacity -= capacityToRelease; 279 releaseCapacity(mCapacity); 339 if (tickets > mCapacity) { [all...] |
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/ |
ABuffer.h | 38 size_t capacity() const { return mCapacity; } 64 size_t mCapacity;
|
/system/chre/util/include/chre/util/ |
dynamic_vector_impl.h | 36 mCapacity(other.mCapacity), 40 other.mCapacity = 0; 77 return mCapacity; 166 if (newCapacity <= mCapacity) { 176 mCapacity = newCapacity; 295 mCapacity = mSize; 304 mCapacity = 0; 341 if (mSize == mCapacity) { 342 size_type newCapacity = mCapacity * 2 [all...] |
dynamic_vector.h | 358 size_t mCapacity = 0;
|
/frameworks/av/media/libstagefright/include/media/stagefright/ |
SkipCutBuffer.h | 60 int32_t mCapacity;
|
/system/extras/tests/sdcard/ |
stopwatch.h | 137 size_t mCapacity;
|
stopwatch.cpp | 55 : mName(strdup(name)), mNum(0), mData(NULL), mDataLen(0), mCapacity(capacity * 2), 64 mData = (Measurement *) malloc(mCapacity * sizeof(Measurement)); 151 if (mDataLen >= mCapacity) 153 mCapacity *= 2; 155 mCapacity, mName); 156 mData = (Measurement *)realloc(mData, mCapacity * sizeof(Measurement));
|
/frameworks/base/services/core/java/com/android/server/display/ |
AutomaticBrightnessController.java | 678 private int mCapacity; 687 mCapacity = (int) Math.ceil(ambientLightHorizon * BUFFER_SLACK / lightSensorRate); 688 mRingLux = new float[mCapacity]; 689 mRingTime = new long[mCapacity]; 702 if (mCount == mCapacity) { 703 int newSize = mCapacity * 2; 707 int length = mCapacity - mStart; 717 next = mCapacity; 718 mCapacity = newSize; 724 if (mEnd == mCapacity) { [all...] |
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/ |
FileCache.java | 56 private long mCapacity; 91 mCapacity = capacity; 110 if (entry.size >= mCapacity) { 125 if (mTotalBytes > mCapacity) freeSomeSpaceIfNeed(MAX_DELETE_COUNT); 211 if (mTotalBytes > mCapacity) freeSomeSpaceIfNeed(MAX_DELETE_COUNT); 224 && mTotalBytes > mCapacity && cursor.moveToNext()) {
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
IpConnectivityMetrics.java | 87 private int mCapacity; 127 mCapacity = bufferCapacity(); 128 mBuffer = new ArrayList<>(mCapacity); 135 final int left = mCapacity - mBuffer.size(); 222 pw.println("Buffer capacity: " + mCapacity);
|
/frameworks/compile/slang/ |
slang_rs_reflection_state.h | 508 ArrayWithCursor() : mState(S_Initial), mMembers(nullptr), mCapacity(0), mSize(0), mCursor(~size_t(0)) { } 519 mCapacity = Size; 524 slangAssert((mState == S_Collecting) && (mCursor + 1 == mSize) && (mSize < mCapacity)); 530 slangAssert((mState == S_Collecting) && (mCursor + 1 == mSize) && (mSize == mCapacity)); 582 size_t mCapacity;
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
NetworkDetail.java | 65 private final int mCapacity; 250 mCapacity = bssLoad.capacity; 330 mCapacity = base.mCapacity; 399 return mCapacity; 496 mChannelUtilization, mCapacity, mAnt, mInternet,
|
/frameworks/support/room/runtime/src/main/java/android/arch/persistence/room/ |
RoomSQLiteQuery.java | 70 final int mCapacity; 108 mCapacity = capacity; 134 sQueryPool.put(mCapacity, this);
|