Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 25 of 36) sorted by relevance

12

/system/chre/util/tests/
Dmemory_pool_test.cc13 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
15 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
17 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
19 EXPECT_EQ(memoryPool.allocate(), nullptr); in TEST()
27 int *element1 = memoryPool.allocate(); in TEST()
28 int *element2 = memoryPool.allocate(); in TEST()
29 int *element3 = memoryPool.allocate(); in TEST()
40 element1 = memoryPool.allocate(); in TEST()
44 EXPECT_EQ(memoryPool.allocate(), nullptr); in TEST()
79 .allocation = memoryPool.allocate(), in TEST()
/system/core/libmemunreachable/tests/
DAllocator_test.cpp43 void* ptr = allocator.allocate(); in TEST_F()
50 void* ptr1 = allocator.allocate(); in TEST_F()
52 void* ptr2 = allocator.allocate(); in TEST_F()
56 void* ptr3 = allocator.allocate(); in TEST_F()
68 ptr[i] = allocator.allocate(); in TEST_F()
90 void* ptr = allocator.allocate(); in TEST_F()
101 ptr[i] = allocator.allocate(); in TEST_F()
124 void* ptr1 = a.allocate(); in TEST_F()
125 void* ptr2 = b.allocate(); in TEST_F()
126 void* ptr3 = c.allocate(); in TEST_F()
[all …]
/system/core/libmemunreachable/
DAllocator.h54 void* allocate(size_t size);
65 T* allocate() { in allocate() function
66 return reinterpret_cast<T*>(allocate(sizeof(T))); in allocate()
81 return unique_ptr<T>(new (allocate<T>()) T(std::forward<Args>(args)...), [impl](void* ptr) { in make_unique()
121 T* allocate(std::size_t n) { return reinterpret_cast<T*>(heap_.allocate(n * sizeof(T))); } in allocate() function
161 using STLAllocator<T>::allocate;
165 T* allocate() { return STLAllocator<T>::allocate(1); } in allocate() function
/system/libhidl/libhidlcache/
Dlibhidlcache_test.cpp55 EXPECT_OK(ashmemAllocator->allocate(1024, [&](bool success, const hidl_memory& _mem) { in HidlCacheWhiteBoxTest()
122 EXPECT_OK(ashmemAllocator->allocate(2048, [&m1](bool success, const hidl_memory& mem) { in TEST_F()
127 EXPECT_OK(ashmemAllocator->allocate(4096, [&m2](bool success, const hidl_memory& mem) { in TEST_F()
142 MemoryBlock blk = dealer->allocate(1024); in TEST_F()
144 MemoryBlock blk2 = dealer->allocate(2048); in TEST_F()
147 MemoryBlock blk3 = dealer->allocate(2048); in TEST_F()
150 blk3 = dealer->allocate(2048); in TEST_F()
DMemoryDealer.cpp52 size_t allocate(size_t size, uint32_t flags = 0);
91 return mAllocator->allocate(size); in allocateOffset()
136 size_t SimpleBestFitAllocator::allocate(size_t size, uint32_t flags) { in allocate() function in android::hardware::SimpleBestFitAllocator
313 ::android::hidl::memory::block::V1_0::MemoryBlock HidlMemoryDealer::allocate(size_t size) { in allocate() function in android::hardware::HidlMemoryDealer
/system/libhidl/transport/allocator/1.0/
DIAllocator.hal27 * @param size Size of memory to allocate in bytes.
31 allocate(uint64_t size) generates (bool success, memory mem);
36 * @param size Size of memory to allocate in bytes.
37 * @param count Number of memory instances to allocate.
/system/chre/util/include/chre/util/
Dsynchronized_memory_pool_impl.h27 ElementType *SynchronizedMemoryPool<ElementType, kSize>::allocate( in allocate() function
30 return mMemoryPool.allocate(args...); in allocate()
Dsynchronized_memory_pool.h41 ElementType *allocate(Args&&... args);
Dmemory_pool.h66 ElementType *allocate(Args&&... args);
Dmemory_pool_impl.h39 ElementType *MemoryPool<ElementType, kSize>::allocate(Args&&... args) { in allocate() function
/system/sepolicy/prebuilts/api/27.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te5 # allocate and use graphic buffers
/system/sepolicy/prebuilts/api/29.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te6 # allocate and use graphic buffers
/system/sepolicy/prebuilts/api/28.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te5 # allocate and use graphic buffers
/system/sepolicy/prebuilts/api/26.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te5 # allocate and use graphic buffers
/system/sepolicy/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te6 # allocate and use graphic buffers
/system/core/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp240 unique_fd allocate(uint64_t size, const std::string& name) { in allocate() function in DmaBufTester
321 unique_fd buf = allocate(4096, "dmabuftester-4k"); in TEST_F()
345 unique_fd buf = allocate(4096, "dmabuftester-4k"); in TEST_F()
389 unique_fd buf = allocate(4096, "dmabuftester-4k"); in TEST_F()
430 unique_fd buf = allocate(4096, "dmabuftester-4k"); in TEST_F()
460 unique_fd buf = allocate(4096, "dmabuftester-4k"); in TEST_F()
/system/core/adb/
Dtypes.h36 explicit Block(size_t size) { allocate(size); } in Block()
65 allocate(new_size); in resize()
75 allocate(end - begin); in assign()
106 void allocate(size_t size) { in allocate() function
/system/libhidl/transport/allocator/1.0/default/
DAshmemAllocator.h41 Return<void> allocate(uint64_t size, allocate_cb _hidl_cb) override;
/system/chre/core/
Dhost_comms_manager.cc46 MessageToHost *msgToHost = mMessagePool.allocate(); in sendMessageToHostFromNanoapp()
76 MessageFromHost *msgFromHost = mMessagePool.allocate(); in deliverNanoappMessageFromHost()
/system/libhidl/libhidlcache/include/hidlcache/
DMemoryDealer.h66 virtual MemoryBlock allocate(size_t size);

12