Home
last modified time | relevance | path

Searched refs:mCapacity (Results 1 – 19 of 19) 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()
148 memcpy(newbuffer, mCutBuffer, mCapacity); in write()
150 mCapacity = newcapacity; in write()
155 size_t copyfirst = (mCapacity - mWriteHead); in write()
[all …]
/frameworks/av/media/codec2/sfplugin/
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()
148 memcpy(newbuffer, mCutBuffer, mCapacity); in write()
150 mCapacity = newcapacity; in write()
155 size_t copyfirst = (mCapacity - mWriteHead); in write()
[all …]
DSkipCutBuffer.h60 int32_t mCapacity; variable
/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.java42 private final int mCapacity; // Maximum number of tokens that can be stored. field in TokenBucket
55 mCapacity = checkArgumentPositive(capacity, "capacity must be strictly positive"); in TokenBucket()
56 mAvailable = Math.min(checkArgumentNonnegative(tokens), mCapacity); in TokenBucket()
73 mAvailable = Math.min(tokens, mCapacity); in reset()
79 return mCapacity; in capacity()
121 mAvailable = Math.min(mCapacity, mAvailable + diff); in fill()
/frameworks/av/media/libaaudio/src/fifo/
DFifoControllerBase.cpp27 : mCapacity(capacity) in FifoControllerBase()
41 return (fifo_frames_t) ((uint64_t)getReadCounter() % mCapacity); in getReadIndex()
54 return (fifo_frames_t) ((uint64_t)getWriteCounter() % mCapacity); in getWriteIndex()
62 if (threshold > mCapacity) { in setThreshold()
63 threshold = mCapacity; in setThreshold()
DFifoControllerBase.h117 return mCapacity; in getCapacity()
122 fifo_frames_t mCapacity;
/frameworks/av/media/libstagefright/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(offset + size, mCapacity); in setRange()
/frameworks/native/services/inputflinger/
DBlockingQueue.h37 BlockingQueue(size_t capacity) : mCapacity(capacity) { in BlockingQueue()
38 mQueue.reserve(mCapacity); in BlockingQueue()
66 if (mQueue.size() == mCapacity) { in push()
101 const size_t mCapacity;
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java959 private int mCapacity; field in AutomaticBrightnessController.AmbientLightRingBuffer
968 mCapacity = (int) Math.ceil(ambientLightHorizon * BUFFER_SLACK / lightSensorRate); in AmbientLightRingBuffer()
969 mRingLux = new float[mCapacity]; in AmbientLightRingBuffer()
970 mRingTime = new long[mCapacity]; in AmbientLightRingBuffer()
983 if (mCount == mCapacity) { in push()
984 int newSize = mCapacity * 2; in push()
988 int length = mCapacity - mStart; in push()
998 next = mCapacity; in push()
999 mCapacity = newSize; in push()
1005 if (mEnd == mCapacity) { in push()
[all …]
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/
DBuffer.cpp32 mCapacity = 0; in Buffer()
35 mCapacity = capacity; in Buffer()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/include/
DBuffer.h38 size_t capacity() const { return mCapacity; } in capacity()
47 size_t mCapacity; member
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
DABuffer.h37 size_t capacity() const { return mCapacity; } in capacity()
58 size_t mCapacity; member
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DNetworkDetail.java65 private final int mCapacity; field in NetworkDetail
250 mCapacity = bssLoad.capacity; in NetworkDetail()
330 mCapacity = base.mCapacity; in NetworkDetail()
399 return mCapacity; in getCapacity()
496 mChannelUtilization, mCapacity, mAnt, mInternet, in toString()
/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.java109 private int mCapacity; field in IpConnectivityMetrics
156 mCapacity = bufferCapacity(); in initBuffer()
157 mBuffer = new ArrayList<>(mCapacity); in initBuffer()
165 final int left = mCapacity - mBuffer.size(); in append()
/frameworks/av/media/libstagefright/include/media/stagefright/
DSkipCutBuffer.h60 int32_t mCapacity; variable
/frameworks/av/media/codec2/core/include/
DC2Buffer.h343 inline constexpr uint32_t capacity() const { return mCapacity; } in capacity()
346 return C2Segment(0, mCapacity); in C2Segment()
360 : mCapacity(capacity) { } in _C2LinearCapacityAspect()
363 : mCapacity(parent == nullptr ? 0 : parent->capacity()) { } in _C2LinearCapacityAspect()
366 uint32_t mCapacity;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt106368 Lcom/android/internal/util/TokenBucket;->mCapacity:I