Home
last modified time | relevance | path

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

/system/chre/util/tests/
Dmemory_pool_test.cc12 ASSERT_NE(memoryPool.allocate(), nullptr); in TEST()
13 ASSERT_NE(memoryPool.allocate(), nullptr); in TEST()
14 ASSERT_NE(memoryPool.allocate(), nullptr); in TEST()
15 ASSERT_EQ(memoryPool.allocate(), nullptr); in TEST()
22 int *element1 = memoryPool.allocate(); in TEST()
23 int *element2 = memoryPool.allocate(); in TEST()
24 int *element3 = memoryPool.allocate(); in TEST()
34 element1 = memoryPool.allocate(); in TEST()
38 ASSERT_EQ(memoryPool.allocate(), nullptr); in TEST()
73 .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.h52 void* allocate(size_t size);
63 T* allocate() { in allocate() function
64 return reinterpret_cast<T*>(allocate(sizeof(T))); in allocate()
83 return unique_ptr<T>(new (allocate<T>()) T(std::forward<Args>(args)...), in make_unique()
125 T* allocate(std::size_t n) { in allocate() function
126 return reinterpret_cast<T*>(heap_.allocate(n * sizeof(T))); in allocate()
170 using STLAllocator<T>::allocate;
174 T* allocate() { in allocate() function
175 return STLAllocator<T>::allocate(1); in allocate()
DAllocator.cpp464 void* Heap::allocate(size_t size) { in allocate() function in Heap
/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.h67 ElementType *allocate(Args&&... args);
Dmemory_pool_impl.h39 ElementType *MemoryPool<ElementType, kSize>::allocate(Args&&... args) { in allocate() function
/system/sepolicy/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;
DAshmemAllocator.cpp53 Return<void> AshmemAllocator::allocate(uint64_t size, allocate_cb _hidl_cb) { in allocate() function in android::hidl::allocator::V1_0::implementation::AshmemAllocator
/system/chre/core/
Dhost_comms_manager.cc48 MessageToHost *msgToHost = mMessagePool.allocate(); in sendMessageToHostFromCurrentNanoapp()
80 MessageFromHost *msgFromHost = mMessagePool.allocate(); in deliverNanoappMessageFromHost()
Devent_loop.cc178 Event *event = mEventPool.allocate(eventType, eventData, freeCallback, in postEvent()
/system/extras/ext4_utils/
DAndroid.bp10 "allocate.c",
/system/sepolicy/public/
Dmediacodec.te40 # allocate and use graphic buffers
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h519 virtual uint8_t *allocate(size_t size) const {
544 buf_(allocator.allocate(reserved_)),
555 buf_ = allocator_.allocate(reserved_);
647 auto new_buf = allocator_.allocate(reserved_);
/system/bt/doc/
Dstyle_guide.md172 Use `osi_malloc` or `osi_calloc` to allocate bytes instead of plain `malloc`.
/system/tools/hidl/test/
Dhidl_test_client.cpp715 EXPECT_OK(ashmemAllocator->allocate(1024, [&](bool success, const hidl_memory& mem) { in TEST_F()
/system/tpm/trunks/generator/
Draw_structures_fixed.txt2113 code generation to allocate 25 octets to store the
7426 of persistent handles so that they do not have to allocate from a common range of handles.
Draw_structures.txt2113 code generation to allocate 25 octets to store the
7399 of persistent handles so that they do not have to allocate from a common range of handles.
Draw_commands_fixed.txt17344 …then the last selection in the pcrAllocation list is the one that the TPM will attempt to allocate.
17345 This command shall not allocate more PCR in any bank than there are PCR attribute definitions. The