/system/chre/util/tests/ |
D | memory_pool_test.cc | 13 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/ |
D | Allocator_test.cpp | 43 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/ |
D | Allocator.h | 54 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/ |
D | libhidlcache_test.cpp | 55 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()
|
D | MemoryDealer.cpp | 52 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/ |
D | IAllocator.hal | 27 * @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/ |
D | synchronized_memory_pool_impl.h | 27 ElementType *SynchronizedMemoryPool<ElementType, kSize>::allocate( in allocate() function 30 return mMemoryPool.allocate(args...); in allocate()
|
D | synchronized_memory_pool.h | 41 ElementType *allocate(Args&&... args);
|
D | memory_pool.h | 66 ElementType *allocate(Args&&... args);
|
D | memory_pool_impl.h | 39 ElementType *MemoryPool<ElementType, kSize>::allocate(Args&&... args) { in allocate() function
|
/system/sepolicy/prebuilts/api/27.0/private/ |
D | mediadrmserver.te | 5 # allocate and use graphic buffers
|
D | mediaserver.te | 5 # allocate and use graphic buffers
|
/system/sepolicy/prebuilts/api/29.0/private/ |
D | mediadrmserver.te | 5 # allocate and use graphic buffers
|
D | mediaserver.te | 6 # allocate and use graphic buffers
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | mediadrmserver.te | 5 # allocate and use graphic buffers
|
D | mediaserver.te | 5 # allocate and use graphic buffers
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | mediadrmserver.te | 5 # allocate and use graphic buffers
|
D | mediaserver.te | 5 # allocate and use graphic buffers
|
/system/sepolicy/private/ |
D | mediadrmserver.te | 5 # allocate and use graphic buffers
|
D | mediaserver.te | 6 # allocate and use graphic buffers
|
/system/core/libmeminfo/libdmabufinfo/ |
D | dmabufinfo_test.cpp | 240 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/ |
D | types.h | 36 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/ |
D | AshmemAllocator.h | 41 Return<void> allocate(uint64_t size, allocate_cb _hidl_cb) override;
|
/system/chre/core/ |
D | host_comms_manager.cc | 46 MessageToHost *msgToHost = mMessagePool.allocate(); in sendMessageToHostFromNanoapp() 76 MessageFromHost *msgFromHost = mMessagePool.allocate(); in deliverNanoappMessageFromHost()
|
/system/libhidl/libhidlcache/include/hidlcache/ |
D | MemoryDealer.h | 66 virtual MemoryBlock allocate(size_t size);
|