Searched refs:Capacity (Results 1 - 11 of 11) sorted by relevance

/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dmessage_buffer.h14 template <typename Slot, std::size_t Capacity = 4096, typename T = std::uint8_t,
16 using MessageBuffer = ThreadLocalBuffer<T, Allocator, Capacity, Slot>;
H A Dthread_local_buffer.h39 // Slot provides multiple thread local slots for a given T, Allocator, Capacity
42 std::size_t Capacity = InitialBufferCapacity,
67 static BufferType& GetBuffer(std::size_t capacity = Capacity) { argument
73 // Gets a reference to the underlying buffer after reserving |Capacity|
78 Reserve(Capacity);
85 static BufferType& GetSizedBuffer(std::size_t size = Capacity) { argument
125 template <typename T, typename Allocator, std::size_t Capacity, typename Slot>
127 typename ThreadLocalBuffer<T, Allocator, Capacity, Slot>::BufferType*
128 ThreadLocalBuffer<T, Allocator, Capacity, Slot>::buffer_;
H A Dpayload.h68 std::size_t Capacity() const { return buffer_.capacity(); } function in class:android::pdx::rpc::MessagePayload
H A Dremote_method.h355 reply_payload.Resize(reply_payload.Capacity());
419 reply_payload.Resize(reply_payload.Capacity());
/frameworks/base/media/mca/filterfw/native/core/
H A Dnative_frame.h62 int Capacity() { function in class:android::filterfw::NativeFrame
76 // Capacity of data buffer in bytes.
/frameworks/ml/nn/driver/cache/nnCache/
H A DnnCache_test.cpp55 ::testing::Values(NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::HALVE),
56 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::HALVE),
58 NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::FIT),
59 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::FIT),
61 NNCache::Policy(NNCache::Select::RANDOM, NNCache::Capacity::FIT_HALVE),
62 NNCache::Policy(NNCache::Select::LRU, NNCache::Capacity::FIT_HALVE)));
147 case NNCache::Capacity::HALVE:
153 case NNCache::Capacity::FIT:
154 case NNCache::Capacity::FIT_HALVE: {
175 FAIL() << "Unknown Capacity valu
[all...]
H A DnnCache.h35 typedef BlobCache::Capacity Capacity; typedef in class:android::NNCache
/frameworks/ml/nn/driver/cache/BlobCache/
H A DBlobCache.h45 enum class Capacity { class in class:android::BlobCache
63 typedef std::pair<Select, Capacity> Policy;
65 static Policy defaultPolicy() { return Policy(Select::DEFAULT, Capacity::DEFAULT); }
173 // Is this Capacity value one of the *FIT* values?
174 static bool isFit(Capacity capacity);
331 const Capacity mPolicyCapacity;
H A DBlobCache.cpp369 case Capacity::HALVE:
371 case Capacity::FIT:
373 case Capacity::FIT_HALVE:
381 bool BlobCache::isFit(Capacity capacity) {
383 case Capacity::HALVE:
385 case Capacity::FIT:
386 case Capacity::FIT_HALVE:
413 case Capacity::HALVE:
418 case Capacity::FIT:
419 case Capacity
[all...]
H A DBlobCache_test.cpp60 ::testing::Values(BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::HALVE),
61 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::HALVE),
63 BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::FIT),
64 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::FIT),
66 BlobCache::Policy(BlobCache::Select::RANDOM, BlobCache::Capacity::FIT_HALVE),
67 BlobCache::Policy(BlobCache::Select::LRU, BlobCache::Capacity::FIT_HALVE)));
314 if (GetParam().second == BlobCache::Capacity::FIT)
345 if (GetParam().second != BlobCache::Capacity::FIT)
399 case BlobCache::Capacity::HALVE:
405 case BlobCache::Capacity
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_native_frame.cpp271 return frame ? frame->Capacity() : -1;

Completed in 47 milliseconds