Home
last modified time | relevance | path

Searched refs:allocate (Results 1 – 25 of 46) 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/memory/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/memory/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/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);
/system/sepolicy/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te7 # 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/27.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te5 # allocate and use graphic buffers
/system/sepolicy/prebuilts/api/30.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te7 # allocate and use graphic buffers
/system/sepolicy/prebuilts/api/31.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te7 # 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/prebuilts/api/28.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te5 # allocate and use graphic buffers
/system/libhidl/transport/allocator/1.0/default/
DAshmemAllocator.h41 Return<void> allocate(uint64_t size, allocate_cb _hidl_cb) override;
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubEstimatedHostTimeTestExecutor.java49 ByteBuffer buffer = ByteBuffer.allocate(8) in handleMessageFromNanoApp()
DContextHubInfoByIdTestExecutor.java55 ByteBuffer buffer = ByteBuffer.allocate(4) in handleMessageFromNanoApp()
/system/chre/util/include/chre/util/flatbuffers/
Dhelpers.h31 uint8_t *allocate(size_t size) override { in allocate() function

12