/hardware/google/av/codec2/include/ |
D | C2Buffer.h | 343 inline constexpr uint32_t capacity() const { return mCapacity; } in capacity() function 356 inline explicit _C2LinearCapacityAspect(size_t capacity) = delete; 359 inline explicit constexpr _C2LinearCapacityAspect(uint32_t capacity) in _C2LinearCapacityAspect() argument 360 : mCapacity(capacity) { } in _C2LinearCapacityAspect() 363 : mCapacity(parent == nullptr ? 0 : parent->capacity()) { } in _C2LinearCapacityAspect() 391 mOffset(c2_min(offset, capacity())), in _C2LinearRangeAspect() 392 mSize(c2_min(size, capacity() - mOffset)) { in _C2LinearRangeAspect() 398 : _C2LinearCapacityAspect(other.capacity()), in _C2LinearRangeAspect() 407 mSize(capacity()) { in _C2LinearRangeAspect() 413 mOffset(c2_min(offset, capacity())), in _C2LinearRangeAspect() [all …]
|
D | C2Config.h | 965 uint32_t capacity; ///< buffer capacity to be allocated if 1D member 973 C2FIELD(capacity, "capacity") 1840 : usage(usage_), capacity(capacity_), heapMask(0), allocFlags(0), minAlignment(0) { } in C2StoreIonUsageStruct() 1843 uint32_t capacity; ///< capacity member 1850 C2FIELD(capacity, "capacity")
|
/hardware/google/av/codec2/vndk/ |
D | C2AllocatorIon.cpp | 165 …Impl(int ionFd, size_t capacity, int bufferFd, ion_user_handle_t buffer, C2Allocator::id_t id, int… in Impl() argument 167 mHandle(bufferFd, capacity), in Impl() 194 static Impl *Import(int ionFd, size_t capacity, int bufferFd, C2Allocator::id_t id) { in Import() argument 197 return new Impl(ionFd, capacity, bufferFd, buffer, id, ret); in Import() 468 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { in mapUsage() argument 472 capacity = (capacity + mBlockSize - 1) & ~(mBlockSize - 1); in mapUsage() 473 MapperKey key = std::make_pair(usage.expected, capacity); in mapUsage() 477 res = mUsageMapper(usage, capacity, align, heapMask, flags); in mapUsage() 504 uint32_t capacity, C2MemoryUsage usage, std::shared_ptr<C2LinearAllocation> *allocation) { in newLinearAllocation() argument 517 c2_status_t ret = mapUsage(usage, capacity, &align, &heapMask, &flags); in newLinearAllocation() [all …]
|
D | C2Buffer.cpp | 331 uint32_t capacity, in fetchLinearBlock() argument 337 c2_status_t err = mAllocator->newLinearAllocation(capacity, usage, &alloc); in fetchLinearBlock() 459 void getLinearParams(uint32_t capacity, C2MemoryUsage usage, 510 AllocParams(C2MemoryUsage usage, uint32_t capacity) in AllocParams() argument 511 : data{ALLOC_LINEAR, usage, {[0] = capacity}} {} in AllocParams() 618 uint32_t capacity, C2MemoryUsage usage, std::vector<uint8_t> *params) { in getLinearParams() argument 619 AllocParams c2Params(usage, capacity); in getLinearParams() 664 uint32_t capacity, C2MemoryUsage usage, in fetchLinearBlock() argument 671 mAllocator->getLinearParams(capacity, usage, ¶ms); in fetchLinearBlock() 684 *block = _C2BlockFactory::CreateLinearBlock(alloc, poolData, 0, capacity); in fetchLinearBlock() [all …]
|
D | C2Store.cpp | 138 C2FieldSupportedValuesQuery::Possible(C2ParamField::Make(usageInfo, usageInfo.capacity)), in UseComponentStoreForIonAllocator() 159 mapper = [store](C2MemoryUsage usage, size_t capacity, in UseComponentStoreForIonAllocator() 161 if (capacity > UINT32_MAX) { in UseComponentStoreForIonAllocator() 164 C2StoreIonUsageInfo usageInfo = { usage.expected, capacity }; in UseComponentStoreForIonAllocator() 608 C2F(mIonUsageInfo, capacity).inRange(0, UINT32_MAX, 1024), in Interface()
|
/hardware/google/av/codec2/vndk/bufferpool/vts/ |
D | allocator.cpp | 22 uint32_t capacity; member 49 ionParams.data.capacity, ionParams.data.usage, &linearAlloc); in allocate() 56 *allocSize = ionParams.data.capacity; in allocate()
|
/hardware/libhardware/modules/sensors/ |
D | SensorEventQueue.cpp | 26 SensorEventQueue::SensorEventQueue(int capacity) { in SensorEventQueue() argument 27 mCapacity = capacity; in SensorEventQueue()
|
D | SensorEventQueue.h | 41 explicit SensorEventQueue(int capacity);
|
/hardware/google/av/media/codecs/aac/ |
D | C2SoftAacEnc.cpp | 300 size_t capacity = 0u; in process() local 304 capacity = view.capacity(); in process() 308 size_t numFrames = (capacity + mInputSize + (eos ? mNumBytesPerInputFrame - 1 : 0)) in process() 311 capacity, mInputSize, numFrames, mNumBytesPerInputFrame); in process() 335 inargs.numInSamples = capacity / sizeof(int16_t); in process() 339 INT inBufferSize[] = { (INT)capacity }; in process() 380 int consumed = ((capacity / sizeof(int16_t)) - inargs.numInSamples); in process()
|
D | C2SoftAacDec.cpp | 429 ALOGV("out timestamp %" PRIu64 " / %u", outInfo.timestamp, block ? block->capacity() : 0); in drainRingBuffer() 454 size = view.capacity(); in process()
|
/hardware/google/av/media/sfplugin/ |
D | CCodecBufferChannel.cpp | 285 sp<ABuffer> newBuffer(size_t capacity) { in newBuffer() argument 289 [capacity](const std::vector<uint8_t> &vec) { in newBuffer() 290 return vec.capacity() >= capacity; in newBuffer() 297 if (mUsedSize + capacity > mPoolCapacity) { in newBuffer() 299 mUsedSize -= mPool.back().capacity(); in newBuffer() 302 if (mUsedSize + capacity > mPoolCapacity) { in newBuffer() 304 mUsedSize, capacity, mPoolCapacity); in newBuffer() 308 std::vector<uint8_t> vec(capacity); in newBuffer() 309 mUsedSize += vec.capacity(); in newBuffer() 328 : ABuffer(vec.data(), vec.capacity()), in VectorBuffer() [all …]
|
D | Codec2Buffer.cpp | 57 if (buffer->data().linearBlocks()[0].size() > capacity()) { in canCopyLinear() 76 if (view.capacity() > capacity()) { in copyLinear() 78 view.capacity(), capacity()); in copyLinear() 81 memcpy(base(), view.data(), view.capacity()); in copyLinear() 82 setRange(0, view.capacity()); in copyLinear() 190 const_cast<uint8_t *>(readView.data()), readView.capacity())), in ConstLinearBlockBuffer() 452 if (backBuffer->capacity() < mBackBufferSize) { in setBackBuffer() 722 if (converter.backBufferSize() > capacity()) { in canCopy() 724 converter.backBufferSize(), capacity()); in canCopy() 744 sp<ABuffer> aBuffer = new ABuffer(base(), capacity()); in copy()
|
D | SkipCutBuffer.cpp | 120 size_t copied = read(dst, buffer->capacity()); in submitInternal()
|
/hardware/google/av/codec2/vndk/include/ |
D | C2BufferPriv.h | 40 uint32_t capacity, 90 uint32_t capacity,
|
D | C2AllocatorIon.h | 47 uint32_t capacity, C2MemoryUsage usage,
|
/hardware/google/av/codec2/tests/vndk/ |
D | C2BufferTest.cpp | 199 static_assert(TestCapacity(0u).capacity() == 0u, ""); in StaticLinearRangeAndCapacityTest() 201 static_assert(TestCapacity(&cap).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest() 202 static_assert(TestCapacity(nullptr).capacity() == 0u, ""); in StaticLinearRangeAndCapacityTest() 205 static_assert(TestRange(&cap).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest() 212 static_assert(range.capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest() 217 static_assert(TestRange(&cap, 20u, 30u).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest() 222 static_assert(TestRange(&cap, 200u, 30u).capacity() == 123u, ""); in StaticLinearRangeAndCapacityTest() 244 void allocateLinear(size_t capacity) { in allocateLinear() argument 246 capacity, in allocateLinear() 382 ASSERT_EQ(kCapacity, writeView.capacity()); in TEST_F() [all …]
|
/hardware/interfaces/health/1.0/ |
D | types.hal | 78 * remaining capacity). 110 * batteryCapacityPath - file path to read remaining battery capacity. 190 /** Remaining battery capacity in percent */ 208 /** Instantaneous battery capacity in uA-h */
|
/hardware/interfaces/health/2.0/ |
D | IHealth.hal | 66 * Get battery capacity in microampere-hours(µAh). 72 * @return value battery capacity, or 0 if not successful. 109 * Get remaining battery capacity percentage of total capacity 116 * @return value remaining battery capacity, or 0 if not successful.
|
/hardware/intel/common/utils/ISV/base/ |
D | isv_bufmanager.cpp | 202 if (handle == 0 || mBuffers.size() >= mBuffers.capacity()) in useBuffer() 228 if (nativeBuffer == NULL || mBuffers.size() >= mBuffers.capacity()) in useBuffer()
|
/hardware/interfaces/radio/1.2/ |
D | IRadioIndication.hal | 42 * Indicates current link capacity estimate.
|
D | types.hal | 120 * When this bit is set, modem must send the link capacity update through 128 * recommended that this be reported whenever link capacity or signal strength is reported. 365 * Estimated downlink capacity in kbps. This bandwidth estimate shall be the estimated 372 * Estimated uplink capacity in kbps. This bandwidth estimate shall be the estimated
|
/hardware/interfaces/contexthub/1.0/ |
D | types.hal | 174 uint32_t totalBytes; // Total capacity in bytes 175 uint32_t freeBytes; // Free capacity in bytes
|
/hardware/google/av/media/codecs/avc/ |
D | C2SoftAvcEnc.h | 238 uint32_t capacity,
|
/hardware/google/av/media/sfplugin/tests/ |
D | MediaCodec_sanity_test.cpp | 231 ASSERT_GE(buf->capacity(), frame.size); in TEST_F() 313 ASSERT_GE(buf->capacity(), frame.size); in TEST_P()
|
/hardware/google/av/media/codecs/gsm/ |
D | C2SoftGsmDec.cpp | 184 inSize = rView.capacity(); in process()
|