Home
last modified time | relevance | path

Searched refs:mCapacity (Results 1 – 24 of 24) sorted by relevance

/frameworks/av/media/libstagefright/
DSkipCutBuffer.cpp31 mCapacity = 0; in SkipCutBuffer()
50 mCapacity = cut + 4096; in SkipCutBuffer()
51 mCutBuffer = new (std::nothrow) char[mCapacity]; in SkipCutBuffer()
52 ALOGV("skipcutbuffer %zu %zu %d", skip, cut, mCapacity); in SkipCutBuffer()
139 if (sizeused < 0) sizeused += mCapacity; in write()
144 size_t available = mCapacity - sizeused - 32; in write()
146 int32_t newcapacity = mCapacity + (num - available); in write()
151 size_t copyLeft = mCapacity - mReadHead; in write()
162 mCapacity = newcapacity; in write()
167 size_t copyfirst = (mCapacity - mWriteHead); in write()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DRingBufferIndices.java24 private final int mCapacity; field in RingBufferIndices
34 mCapacity = capacity; in RingBufferIndices()
43 if (mSize < mCapacity) { in add()
50 if (mStart == mCapacity) { in add()
77 if (index >= mCapacity) { in indexOf()
78 index -= mCapacity; in indexOf()
DTokenBucket.java44 private final int mCapacity; // Maximum number of tokens that can be stored. field in TokenBucket
57 mCapacity = checkArgumentPositive(capacity, "capacity must be strictly positive"); in TokenBucket()
58 mAvailable = Math.min(checkArgumentNonnegative(tokens), mCapacity); in TokenBucket()
75 mAvailable = Math.min(tokens, mCapacity); in reset()
81 return mCapacity; in capacity()
123 mAvailable = Math.min(mCapacity, mAvailable + diff); in fill()
DHeavyHitterSketch.java134 private int mCapacity; field in HeavyHitterSketch.HeavyHitterSketchImpl
161 mCapacity = capacity; in setConfig()
198 } else if (mObjects.size() < mCapacity - 1) { in addToMGSummary()
231 final int lower = mPassSize / mCapacity; in validate()
259 if (k >= mCapacity) { in getTopHeavyHitters()
285 final int max = Math.min(k == 0 ? (mCapacity - 1) : k, indexes.size()); in getTopHeavyHitters()
/frameworks/av/media/libaaudio/src/fifo/
DFifoControllerBase.cpp28 : mCapacity(capacity) in FifoControllerBase()
41 return (fifo_frames_t) ((uint64_t)getReadCounter() % mCapacity); in getReadIndex()
56 return (fifo_frames_t) ((uint64_t)getWriteCounter() % mCapacity); in getWriteIndex()
66 if (threshold > mCapacity) { in setThreshold()
67 threshold = mCapacity; in setThreshold()
DFifoControllerBase.h117 return mCapacity; in getCapacity()
122 fifo_frames_t mCapacity;
/frameworks/av/media/module/foundation/
DABuffer.cpp31 mCapacity = 0; in ABuffer()
34 mCapacity = capacity; in ABuffer()
41 mCapacity(capacity), in ABuffer()
69 CHECK_LE(offset, mCapacity); in setRange()
70 CHECK_LE(size, mCapacity - offset); in setRange()
/frameworks/native/include/input/
DBlockingQueue.h41 explicit BlockingQueue(size_t capacity) : mCapacity(capacity){}; in BlockingQueue()
82 if (mCapacity && mQueue.size() == mCapacity) { in push()
101 if (mCapacity && mQueue.size() == mCapacity) { in emplace()
135 const std::optional<size_t> mCapacity;
DRingBuffer.h54 : mBuffer(std::allocator<value_type>().allocate(capacity)), mCapacity(capacity) {} in RingBuffer()
75 std::allocator<value_type>().deallocate(mBuffer, mCapacity); in ~RingBuffer()
87 std::allocator<value_type>().deallocate(mBuffer, mCapacity);
90 mCapacity = other.mCapacity;
94 other.mCapacity = 0;
167 size_type capacity() const { return mCapacity; } in capacity()
173 swap(mCapacity, other.mCapacity); in swap()
293 size_type mCapacity = 0; // Total capacity of mBuffer. variable
/frameworks/native/services/inputflinger/
DSyncQueue.h32 SyncQueue(size_t capacity) : mCapacity(capacity) {} in SyncQueue()
53 if (mCapacity && mQueue.size() == mCapacity) { in push()
61 const std::optional<size_t> mCapacity;
/frameworks/base/services/core/java/com/android/server/input/debug/
DRotaryInputGraphView.java266 private final int mCapacity;
288 return mValues[(mIteratorIndex-- + mCapacity) % mCapacity];
293 mCapacity = capacity;
302 mLastIndex = (mLastIndex + 1) % mCapacity;
312 if (mSize != mCapacity) {
322 final int distanceBetweenLastAndFirst = (mCapacity - mSize) + 1;
323 final int firstIndex = (mLastIndex + distanceBetweenLastAndFirst) % mCapacity;
/frameworks/av/drm/mediadrm/plugins/clearkey/common/
DBuffer.cpp23 mCapacity = 0; in Buffer()
26 mCapacity = capacity; in Buffer()
/frameworks/av/drm/mediadrm/plugins/clearkey/common/include/clearkeydrm/
DBuffer.h28 size_t capacity() const { return mCapacity; } in capacity()
37 size_t mCapacity; member
/frameworks/av/media/module/foundation/include/media/stagefright/foundation/
DABuffer.h37 size_t capacity() const { return mCapacity; } in capacity()
58 size_t mCapacity; member
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java1433 private int mCapacity; field in AutomaticBrightnessController.AmbientLightRingBuffer
1446 mCapacity = (int) Math.ceil(ambientLightHorizon * BUFFER_SLACK / lightSensorRate); in AmbientLightRingBuffer()
1447 mRingLux = new float[mCapacity]; in AmbientLightRingBuffer()
1448 mRingTime = new long[mCapacity]; in AmbientLightRingBuffer()
1465 System.arraycopy(mRingLux, mStart, values, 0, mCapacity - mStart); in getAllLuxValues()
1466 System.arraycopy(mRingLux, 0, values, mCapacity - mStart, mEnd); in getAllLuxValues()
1485 System.arraycopy(mRingTime, mStart, values, 0, mCapacity - mStart); in getAllTimestamps()
1486 System.arraycopy(mRingTime, 0, values, mCapacity - mStart, mEnd); in getAllTimestamps()
1494 if (mCount == mCapacity) { in push()
1495 int newSize = mCapacity * 2; in push()
[all …]
/frameworks/compile/slang/
Dslang_rs_reflection_state.h508 …ArrayWithCursor() : mState(S_Initial), mMembers(nullptr), mCapacity(0), mSize(0), mCursor(~size_t(… in ArrayWithCursor()
519 mCapacity = Size; in BeginCollecting()
524 slangAssert((mState == S_Collecting) && (mCursor + 1 == mSize) && (mSize < mCapacity)); in CollectNext()
530 slangAssert((mState == S_Collecting) && (mCursor + 1 == mSize) && (mSize == mCapacity)); in BeginUsing()
582 size_t mCapacity; variable
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java116 private int mCapacity; field in IpConnectivityMetrics
163 mCapacity = bufferCapacity(); in initBuffer()
164 mBuffer = new ArrayList<>(mCapacity); in initBuffer()
172 final int left = mCapacity - mBuffer.size(); in append()
/frameworks/av/media/libstagefright/include/media/stagefright/
DSkipCutBuffer.h60 int32_t mCapacity; variable
/frameworks/base/services/core/java/com/android/server/criticalevents/
DCriticalEventLog.java410 private final int mCapacity; field in CriticalEventLog.ThreadSafeRingBuffer
414 this.mCapacity = capacity; in ThreadSafeRingBuffer()
427 return mCapacity; in capacity()
/frameworks/av/media/codec2/core/include/
DC2Buffer.h346 inline constexpr uint32_t capacity() const { return mCapacity; } in capacity()
349 return C2Segment(0, mCapacity); in C2Segment()
363 : mCapacity(capacity) { } in _C2LinearCapacityAspect()
366 : mCapacity(parent == nullptr ? 0 : parent->capacity()) { } in _C2LinearCapacityAspect()
369 uint32_t mCapacity;
/frameworks/av/media/libaudioclient/tests/
Daudio_test_utils.h134 int32_t mCapacity; variable
Daudio_test_utils.cpp251 mCapacity(capacity) {} in RawBuffer()
558 write(mOutFileFd, ptr, buffer.mCapacity); in audioProcess()
/frameworks/base/core/java/android/hardware/input/
DInputManagerGlobal.java764 private final float mCapacity; field in InputManagerGlobal.LocalBatteryState
773 mCapacity = capacity; in LocalBatteryState()
788 return mCapacity; in getCapacity()
/frameworks/base/boot/hiddenapi/
Dhiddenapi-max-target-o.txt84698 Lcom/android/internal/util/TokenBucket;->mCapacity:I