Home
last modified time | relevance | path

Searched refs:mCapacity (Results 1 – 13 of 13) 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/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/libstagefright/foundation/
DABuffer.cpp33 mCapacity = 0; in ABuffer()
36 mCapacity = capacity; in ABuffer()
44 mCapacity(capacity), in ABuffer()
74 CHECK_LE(offset, mCapacity); in setRange()
75 CHECK_LE(offset + size, mCapacity); in setRange()
/frameworks/base/services/core/java/com/android/server/display/
DAutomaticBrightnessController.java625 private int mCapacity; field in AutomaticBrightnessController.AmbientLightRingBuffer
634 mCapacity = (int) Math.ceil(ambientLightHorizon * BUFFER_SLACK / lightSensorRate); in AmbientLightRingBuffer()
635 mRingLux = new float[mCapacity]; in AmbientLightRingBuffer()
636 mRingTime = new long[mCapacity]; in AmbientLightRingBuffer()
649 if (mCount == mCapacity) { in push()
650 int newSize = mCapacity * 2; in push()
654 int length = mCapacity - mStart; in push()
664 next = mCapacity; in push()
665 mCapacity = newSize; in push()
671 if (mEnd == mCapacity) { in push()
[all …]
/frameworks/av/media/libaaudio/src/fifo/
DFifoControllerBase.cpp27 : mCapacity(capacity) in FifoControllerBase()
41 return (fifo_frames_t) (getReadCounter() % mCapacity); in getReadIndex()
54 return (fifo_frames_t) (getWriteCounter() % mCapacity); in getWriteIndex()
DFifoControllerBase.h114 return mCapacity; in getCapacity()
119 fifo_frames_t mCapacity;
/frameworks/av/media/libstagefright/include/foundation/
DABuffer.h38 size_t capacity() const { return mCapacity; } in capacity()
64 size_t mCapacity; member
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityMetrics.java87 private int mCapacity; field in IpConnectivityMetrics
127 mCapacity = bufferCapacity(); in initBuffer()
128 mBuffer = new ArrayList<>(mCapacity); in initBuffer()
135 final int left = mCapacity - mBuffer.size(); in append()
222 pw.println("Buffer capacity: " + mCapacity); in cmdStats()
/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()
331 mCapacity = base.mCapacity; in NetworkDetail()
400 return mCapacity; in getCapacity()
497 mChannelUtilization, mCapacity, mAnt, mInternet, in toString()
/frameworks/av/media/libstagefright/include/
DSkipCutBuffer.h60 int32_t mCapacity; variable
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWificondScannerImpl.java831 private int mCapacity; field in WificondScannerImpl.ScanBuffer
834 mCapacity = capacity; in ScanBuffer()
835 mBuffer = new ArrayDeque<>(mCapacity); in ScanBuffer()
843 return mCapacity; in capacity()
847 return size() == mCapacity; in isFull()
/frameworks/av/media/libstagefright/codec2/include/
DC2Buffer.h252 inline uint32_t capacity() const { return mCapacity; } in capacity()
265 : mCapacity(capacity) { } in _C2LinearCapacityAspect()
268 : mCapacity(parent == nullptr ? 0 : parent->capacity()) { } in _C2LinearCapacityAspect()
271 const uint32_t mCapacity;