Home
last modified time | relevance | path

Searched refs:capacity (Results 1 – 25 of 56) sorted by relevance

123

/hardware/interfaces/health/2.1/
Dtypes.hal27 * Battery capacity level. This enum provides additional information along side
28 * with the battery capacity.
30 * battery capacity.
34 * Battery capacity level is unsupported.
35 * Battery capacity level must be set to this value if and only if the
40 * Battery capacity level is unknown.
41 * Battery capacity level must be set to this value if and only if battery
42 * is not present or the battery capacity level is unknown/uninitialized.
85 * Battery capacity level. See BatteryCapacityLevel for more details.
99 * Estimated battery full charge design capacity (in microamp hours, uAh).
/hardware/google/av/codec2/include/
DC2Buffer.h343 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 …]
DC2Config.h1007 uint32_t capacity; ///< buffer capacity to be allocated if 1D member
1015 C2FIELD(capacity, "capacity")
2018 : usage(usage_), capacity(capacity_), heapMask(0), allocFlags(0), minAlignment(0) { } in C2StoreIonUsageStruct()
2021 uint32_t capacity; ///< capacity member
2028 C2FIELD(capacity, "capacity")
/hardware/google/av/codec2/vndk/
DC2AllocatorIon.cpp165 …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()
469 C2MemoryUsage usage, size_t capacity, size_t *align, unsigned *heapMask, unsigned *flags) { in mapUsage() argument
473 capacity = (capacity + mBlockSize - 1) & ~(mBlockSize - 1); in mapUsage()
474 MapperKey key = std::make_pair(usage.expected, capacity); in mapUsage()
478 res = mUsageMapper(usage, capacity, align, heapMask, flags); in mapUsage()
505 uint32_t capacity, C2MemoryUsage usage, std::shared_ptr<C2LinearAllocation> *allocation) { in newLinearAllocation() argument
518 c2_status_t ret = mapUsage(usage, capacity, &align, &heapMask, &flags); in newLinearAllocation()
[all …]
DC2Buffer.cpp331 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, &params); in fetchLinearBlock()
684 *block = _C2BlockFactory::CreateLinearBlock(alloc, poolData, 0, capacity); in fetchLinearBlock()
[all …]
DC2Store.cpp144 C2FieldSupportedValuesQuery::Possible(C2ParamField::Make(usageInfo, usageInfo.capacity)), in UseComponentStoreForIonAllocator()
165 mapper = [store](C2MemoryUsage usage, size_t capacity, in UseComponentStoreForIonAllocator()
167 if (capacity > UINT32_MAX) { in UseComponentStoreForIonAllocator()
170 C2StoreIonUsageInfo usageInfo = { usage.expected, capacity }; in UseComponentStoreForIonAllocator()
616 C2F(mIonUsageInfo, capacity).inRange(0, UINT32_MAX, 1024), in Interface()
/hardware/google/av/media/sfplugin/
DCCodecBufferChannel.cpp309 sp<ABuffer> newBuffer(size_t capacity) { in newBuffer() argument
313 [capacity](const std::vector<uint8_t> &vec) { in newBuffer()
314 return vec.capacity() >= capacity; in newBuffer()
321 if (mUsedSize + capacity > mPoolCapacity) { in newBuffer()
323 mUsedSize -= mPool.back().capacity(); in newBuffer()
326 if (mUsedSize + capacity > mPoolCapacity) { in newBuffer()
328 mUsedSize, capacity, mPoolCapacity); in newBuffer()
332 std::vector<uint8_t> vec(capacity); in newBuffer()
333 mUsedSize += vec.capacity(); in newBuffer()
352 : ABuffer(vec.data(), vec.capacity()), in VectorBuffer()
[all …]
DCodec2Buffer.cpp57 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()
192 const_cast<uint8_t *>(readView.data()), readView.capacity())), in ConstLinearBlockBuffer()
454 if (backBuffer->capacity() < mBackBufferSize) { in setBackBuffer()
724 if (converter.backBufferSize() > capacity()) { in canCopy()
726 converter.backBufferSize(), capacity()); in canCopy()
746 sp<ABuffer> aBuffer = new ABuffer(base(), capacity()); in copy()
DSkipCutBuffer.cpp120 size_t copied = read(dst, buffer->capacity()); in submitInternal()
/hardware/libhardware/modules/sensors/
DSensorEventQueue.cpp26 SensorEventQueue::SensorEventQueue(int capacity) { in SensorEventQueue() argument
27 mCapacity = capacity; in SensorEventQueue()
DSensorEventQueue.h41 explicit SensorEventQueue(int capacity);
/hardware/google/av/media/codecs/aac/
DC2SoftAacEnc.cpp348 size_t capacity = 0u; in process() local
352 capacity = view.capacity(); in process()
355 size_t numFrames = (capacity + mInputSize + (eos ? mNumBytesPerInputFrame - 1 : 0)) in process()
358 capacity, mInputSize, numFrames, mNumBytesPerInputFrame); in process()
371 inargs.numInSamples = capacity / sizeof(int16_t); in process()
375 INT inBufferSize[] = { (INT)capacity }; in process()
471 int consumed = (capacity / sizeof(int16_t)) - inargs.numInSamples in process()
/hardware/google/av/codec2/vndk/include/
DC2BufferPriv.h40 uint32_t capacity,
90 uint32_t capacity,
DC2AllocatorIon.h47 uint32_t capacity, C2MemoryUsage usage,
/hardware/google/av/codec2/tests/vndk/
DC2BufferTest.cpp199 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/
Dtypes.hal78 * remaining capacity).
110 * batteryCapacityPath - file path to read remaining battery capacity.
190 /** Remaining battery capacity in percent */
214 /** Instantaneous battery capacity in uA-h */
/hardware/interfaces/health/2.0/
DIHealth.hal66 * 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/interfaces/radio/1.2/
DIRadioIndication.hal42 * Indicates current link capacity estimate.
Dtypes.hal120 * 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.
367 * Estimated downlink capacity in kbps. This bandwidth estimate shall be the estimated
374 * Estimated uplink capacity in kbps. This bandwidth estimate shall be the estimated
/hardware/google/av/media/codecs/flac/
DC2SoftFlacEnc.cpp195 inSize = rView.capacity(); in process()
326 if (bytes + mEncoderReturnedNbBytes > mOutputBlock->capacity()) { in onEncodedFlacAvailable()
/hardware/interfaces/contexthub/1.0/
Dtypes.hal174 uint32_t totalBytes; // Total capacity in bytes
175 uint32_t freeBytes; // Free capacity in bytes
/hardware/interfaces/drm/1.2/
Dtypes.hal70 * capacity of available crypto resources such that a retry of
/hardware/google/av/media/codecs/avc/
DC2SoftAvcEnc.h232 uint32_t capacity,
/hardware/google/pixel/pixelstats/
Dpixelatoms.proto124 /* A message containing an alternate proprietary full battery capacity estimate. */
/hardware/google/av/media/sfplugin/tests/
DMediaCodec_sanity_test.cpp231 ASSERT_GE(buf->capacity(), frame.size); in TEST_F()
313 ASSERT_GE(buf->capacity(), frame.size); in TEST_P()

123