Home
last modified time | relevance | path

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

12

/system/chre/util/tests/
Dmemory_pool_test.cc29 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
31 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
33 EXPECT_NE(memoryPool.allocate(), nullptr); in TEST()
35 EXPECT_EQ(memoryPool.allocate(), nullptr); in TEST()
43 int *firstMemoryElement = firstMemoryPool.allocate(); in TEST()
55 int *element1 = memoryPool.allocate(); in TEST()
56 int *element2 = memoryPool.allocate(); in TEST()
57 int *element3 = memoryPool.allocate(); in TEST()
68 element1 = memoryPool.allocate(); in TEST()
72 EXPECT_EQ(memoryPool.allocate(), nullptr); in TEST()
[all …]
Dsynchronized_expandable_memory_pool_test.cc67 ConstructorCount *temp = testMemoryPool.allocate(10); in TEST()
86 tempDataPtrs[i] = testMemoryPool.allocate(i); 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_expandable_memory_pool_impl.h44 kMaxMemoryPoolCount>::allocate(Args &&...args) { in allocate() function
50 result = memoryPool->allocate(args...); in allocate()
57 result = mMemoryPoolPtrs.back()->allocate(args...); in allocate()
Dsynchronized_memory_pool.h41 ElementType *allocate(Args &&... args);
Dsynchronized_expandable_memory_pool.h68 ElementType *allocate(Args &&...args);
Dmemory_pool.h67 ElementType *allocate(Args &&... args);
/system/sepolicy/prebuilts/api/29.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te6 # allocate and use graphic buffers
/system/sepolicy/private/
Dmediadrmserver.te5 # 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/34.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
/system/sepolicy/prebuilts/api/32.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te7 # 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/33.0/private/
Dmediadrmserver.te5 # allocate and use graphic buffers
Dmediaserver.te7 # 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/util/include/chre/util/flatbuffers/
Dhelpers.h31 uint8_t *allocate(size_t size) override { in allocate() function
/system/chre/java/test/chqts/src/com/google/android/chre/test/chqts/
DContextHubInfoByIdTestExecutor.java55 ByteBuffer buffer = ByteBuffer.allocate(4) in handleMessageFromNanoApp()

12