Home
last modified time | relevance | path

Searched refs:BufferAllocator (Results 1 – 15 of 15) sorted by relevance

/system/memory/libdmabufheap/include/BufferAllocator/
DBufferAllocatorWrapper.h26 typedef class BufferAllocator BufferAllocator; typedef
28 typedef struct BufferAllocator BufferAllocator;
31 BufferAllocator* CreateDmabufHeapBufferAllocator();
33 void FreeDmabufHeapBufferAllocator(BufferAllocator* buffer_allocator);
35 int DmabufHeapAlloc(BufferAllocator* buffer_allocator, const char* heap_name, size_t len,
37 int DmabufHeapAllocSystem(BufferAllocator* buffer_allocator, bool cpu_access, size_t len,
40 int MapDmabufHeapNameToIonHeap(BufferAllocator* buffer_allocator, const char* heap_name,
44 int DmabufHeapCpuSyncStart(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd,
48 int DmabufHeapCpuSyncEnd(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd,
DBufferAllocator.h36 class BufferAllocator {
38 BufferAllocator();
39 ~BufferAllocator() {} in ~BufferAllocator()
42 BufferAllocator(const BufferAllocator&) = delete;
43 BufferAllocator& operator=(const BufferAllocator&) = delete;
/system/memory/libdmabufheap/
DBufferAllocatorWrapper.cpp24 BufferAllocator* CreateDmabufHeapBufferAllocator() { in CreateDmabufHeapBufferAllocator()
25 return new BufferAllocator(); in CreateDmabufHeapBufferAllocator()
28 void FreeDmabufHeapBufferAllocator(BufferAllocator* buffer_allocator) { in FreeDmabufHeapBufferAllocator()
32 int DmabufHeapAlloc(BufferAllocator* buffer_allocator, const char* heap_name, size_t len, in DmabufHeapAlloc()
39 int DmabufHeapAllocSystem(BufferAllocator* buffer_allocator, bool cpu_access, size_t len, in DmabufHeapAllocSystem()
45 int MapDmabufHeapNameToIonHeap(BufferAllocator* buffer_allocator, const char* heap_name, in MapDmabufHeapNameToIonHeap()
55 int DmabufHeapCpuSyncStart(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd, in DmabufHeapCpuSyncStart()
64 int DmabufHeapCpuSyncEnd(BufferAllocator* buffer_allocator, unsigned int dmabuf_fd, in DmabufHeapCpuSyncEnd()
73 return BufferAllocator::CheckIonSupport(); in CheckIonSupport()
DBufferAllocator.cpp42 void BufferAllocator::LogInterface(const std::string& interface) { in LogInterface()
49 int BufferAllocator::OpenDmabufHeap(const std::string& heap_name) { in OpenDmabufHeap()
83 void BufferAllocator::QueryIonHeaps() { in QueryIonHeaps()
112 BufferAllocator::BufferAllocator() { in BufferAllocator() function in BufferAllocator
118 int BufferAllocator::MapNameToIonMask(const std::string& heap_name, unsigned int ion_heap_mask, in MapNameToIonMask()
129 int BufferAllocator::GetIonHeapIdByName(const std::string& heap_name, unsigned int* heap_id) { in GetIonHeapIdByName()
141 int BufferAllocator::MapNameToIonName(const std::string& heap_name, in MapNameToIonName()
158 int BufferAllocator::MapNameToIonHeap(const std::string& heap_name, in MapNameToIonHeap()
177 int BufferAllocator::GetIonConfig(const std::string& heap_name, IonHeapConfig& heap_config) { in GetIonConfig()
209 int BufferAllocator::DmabufAlloc(const std::string& heap_name, size_t len) { in DmabufAlloc()
[all …]
DAndroid.bp23 "BufferAllocator.cpp",
/system/memory/libdmabufheap/tests/
Ddmabuf_heap_test.h31 std::unique_ptr<BufferAllocator> allocator;
Ddmabuf_heap_test.cpp34 virtual void SetUp() { allocator = new BufferAllocator(); } in SetUp()
72 BufferAllocator* allocator = nullptr;
111 DmaBufHeapTest::DmaBufHeapTest() : allocator(new BufferAllocator()) { in DmaBufHeapTest()
119 if (BufferAllocator::CheckIonSupport()) { in DmaBufHeapTest()
282 ASSERT_TRUE(!heap_list.empty() || BufferAllocator::CheckIonSupport()); in TEST_F()
Ddmabuf_heap_test.c58 BufferAllocator* bufferAllocator = CreateDmabufHeapBufferAllocator(); in libdmabufheaptest()
/system/core/trusty/apploader/fuzz/
Dapp_fuzzer.cpp111 BufferAllocator alloc; in LLVMFuzzerTestOneInput()
/system/core/trusty/confirmationui/fuzz/
Dmsg_fuzzer.cpp62 BufferAllocator allocator; in LLVMFuzzerInitialize()
/system/core/trusty/confirmationui/
DTrustyApp.cpp103 BufferAllocator allocator; in TrustyApp()
/system/core/trusty/apploader/
Dapploader.cpp122 BufferAllocator alloc; in read_file()
/system/core/trusty/utils/acvp/
Dtrusty_modulewrapper.cpp122 BufferAllocator alloc; in SendMessage()
/system/core/trusty/coverage/
Dcoverage.cpp141 BufferAllocator allocator; in Open()
/system/core/trusty/libtrusty/tipc-test/
Dtipc_test.c898 BufferAllocator* allocator = NULL; in send_fd_test()