Home
last modified time | relevance | path

Searched refs:Allocator (Results 1 – 19 of 19) sorted by relevance

/frameworks/av/media/utils/include/mediautils/
DSharedMemoryAllocator.h111 template <typename Allocator>
138 template <typename Allocator>
141 static size_t alignment() { return Allocator::alignment(); }
143 explicit ScopedAllocator(const std::shared_ptr<Allocator>& allocator) : mAllocator(allocator) {}
145 ScopedAllocator() : mAllocator(std::make_shared<Allocator>()) {}
169 -> std::enable_if_t<shared_allocator_impl::has_owns<Allocator>, Enable> {
175 auto dump() const -> std::enable_if_t<shared_allocator_impl::has_dump<Allocator>, Enable> {
183 const std::shared_ptr<Allocator> mAllocator;
218 template <typename Allocator, typename Policy>
221 static size_t alignment() { return Allocator::alignment(); }
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
Ddefault_initialization_allocator.h18 template <typename T, typename Allocator = std::allocator<T>>
19 class DefaultInitializationAllocator : public Allocator {
20 typedef std::allocator_traits<Allocator> AllocatorTraits;
29 using Allocator::Allocator;
38 AllocatorTraits::construct(static_cast<Allocator&>(*this), pointer, in construct()
Dbuffer_wrapper.h99 template <typename T, typename Allocator>
100 class BufferWrapper<std::vector<T, Allocator>> {
102 using BufferType = typename std::vector<T, Allocator>;
114 BufferWrapper(const BufferType& buffer, const Allocator& allocator) in BufferWrapper()
117 BufferWrapper(BufferType&& buffer, const Allocator& allocator) in BufferWrapper()
166 template <typename T, typename Allocator = std::allocator<T>>
167 BufferWrapper<std::vector<T, Allocator>> WrapBuffer( in WrapBuffer()
168 std::vector<T, Allocator>&& buffer) { in WrapBuffer()
169 return BufferWrapper<std::vector<T, Allocator>>( in WrapBuffer()
170 std::forward<std::vector<T, Allocator>>(buffer)); in WrapBuffer()
Dthread_local_buffer.h41 template <typename T, typename Allocator = DefaultInitializationAllocator<T>,
46 using BufferType = std::vector<T, Allocator>;
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_;
Dserialization.h265 template <typename T, typename Allocator>
266 inline std::size_t GetSerializedSize(const std::vector<T, Allocator>& v);
267 template <typename Key, typename T, typename Compare, typename Allocator>
269 const std::map<Key, T, Compare, Allocator>& m);
271 typename Allocator>
273 const std::unordered_map<Key, T, Hash, KeyEqual, Allocator>&);
347 template <typename T, typename Allocator>
348 inline std::size_t GetSerializedSize(const std::vector<T, Allocator>& v) {
356 template <typename Key, typename T, typename Compare, typename Allocator>
358 const std::map<Key, T, Compare, Allocator>& v) {
[all …]
Dmessage_buffer.h15 typename Allocator = DefaultInitializationAllocator<T>>
16 using MessageBuffer = ThreadLocalBuffer<T, Allocator, Capacity, Slot>;
Dencoding.h464 template <typename T, typename Allocator>
466 const std::vector<T, Allocator>& value) { in EncodeType()
470 template <typename Key, typename T, typename Compare, typename Allocator>
472 const std::map<Key, T, Compare, Allocator>& value) { in EncodeType()
477 typename Allocator>
479 const std::unordered_map<Key, T, Hash, KeyEqual, Allocator>& value) { in EncodeType()
Dtype_operators.h134 template <typename A, typename B, typename Allocator>
136 BufferWrapper<std::vector<B, Allocator>>>
138 template <typename A, typename B, typename Allocator>
139 struct IsConvertible<BufferWrapper<std::vector<A, Allocator>>,
/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/
Dallocator_tests.cc27 TEST(AllocatorTest, Allocator) { in TEST() argument
28 Allocator<x86_64::Assembler::Register> allocator; in TEST()
44 Allocator<x86_64::Assembler::Register> allocator; in TEST()
62 Allocator<x86_64::Assembler::Register> allocator; in TEST()
77 Allocator<x86_64::Assembler::XMMRegister> allocator; in TEST()
98 Allocator<x86_64::Assembler::XMMRegister> allocator; in TEST()
121 Allocator<x86_64::Assembler::XMMRegister> allocator; in TEST()
Dallocator.h71 class Allocator {
Dlite_translator.h470 Allocator<Register> gp_allocator_;
473 Allocator<SimdRegister> simd_allocator_;
/frameworks/av/services/audioflinger/afutils/
DAllocatorFactory.h58 template <typename Policy, typename Allocator>
59 inline auto wrapWithPolicySnooping(Allocator allocator, std::string_view name) { in wrapWithPolicySnooping()
/frameworks/base/tools/lock_agent/
Dagent.cpp227 const unsigned char* classData, dex::Writer::Allocator* allocator) { in maybeTransform()
274 class JvmtiAllocator: public dex::Writer::Allocator { in transformHook()
510 class NewDeleteAllocator: public dex::Writer::Allocator { in locktest_main()
/frameworks/base/libs/hwui/jni/
DBitmapFactory.cpp128 class RecyclingPixelAllocator : public SkBitmap::Allocator {
470 SkBitmap::Allocator* decodeAllocator; in doDecode()
570 SkBitmap::Allocator* outputAllocator; in doDecode()
DGraphicsJNI.h251 class AshmemPixelAllocator : public SkBitmap::Allocator {
DImageDecoder.cpp66 enum Allocator { enum
DBitmap.cpp329 SkBitmap::Allocator* alloc) { in bitmapCopyTo()
/frameworks/base/graphics/java/android/graphics/
DImageDecoder.java1296 public @interface Allocator {}; annotation in ImageDecoder
1308 public void setAllocator(@Allocator int allocator) { in setAllocator()
1318 @Allocator
/frameworks/native/libs/binder/ndk/
Dparcel.cpp429 static bool Allocator(void* stringData, int32_t length, char** buffer) { in Allocator() function
456 StringArrayElementAllocationAdapter::Allocator); in AParcel_readStringArray()