Home
last modified time | relevance | path

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

/hardware/libhardware/modules/sensors/
DSensorEventQueue.cpp27 mCapacity = capacity; in SensorEventQueue()
31 mData = new sensors_event_t[mCapacity]; in SensorEventQueue()
42 if (mSize == mCapacity || requestedLength <= 0) { in getWritableRegion()
47 int firstWritable = (mStart + mSize) % mCapacity; in getWritableRegion()
52 if (lastWritable > mCapacity - 1) { in getWritableRegion()
53 lastWritable = mCapacity - 1; in getWritableRegion()
78 if (mSize == mCapacity) { in dequeue()
82 mStart = (mStart + 1) % mCapacity; in dequeue()
88 while (mSize == mCapacity) { in waitForSpace()
DSensorEventQueue.h34 int mCapacity; variable
/hardware/google/av/media/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
/hardware/google/av/codec2/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;