Home
last modified time | relevance | path

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

/chre-3.4.0/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()
/chre-3.4.0/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
/chre-3.4.0/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()
DContextHubNanoAppInfoEventsTestExecutor.java94 buffer = ByteBuffer.allocate(4) in handleMessageFromNanoApp()
DContextHubEventBetweenAppsTestExecutor.java110 buffer = ByteBuffer.allocate(4) in handleMessageFromNanoApp()
DContextHubGeneralTestExecutor.java346 ByteBuffer newData = ByteBuffer.allocate(4 + origData.length); in hackMessageToNanoApp()
/chre-3.4.0/util/include/chre/util/flatbuffers/
Dhelpers.h31 uint8_t *allocate(size_t size) override { in allocate() function
/chre-3.4.0/core/
Dhost_comms_manager.cc45 MessageToHost *msgToHost = mMessagePool.allocate(); in sendMessageToHostFromNanoapp()
84 MessageFromHost *msgFromHost = mMessagePool.allocate(); in craftNanoappMessageFromHost()
Devent_loop.cc282 mEventPool.allocate(eventType, eventData, callback, extraData); in postSystemEvent()
384 mEventPool.allocate(eventType, eventData, freeCallback, senderInstanceId, in allocateAndPostEvent()
/chre-3.4.0/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h615 virtual uint8_t *allocate(size_t size) = 0;
629 uint8_t *new_p = allocate(new_size);
654 uint8_t *allocate(size_t size) FLATBUFFERS_OVERRIDE {
674 return allocator ? allocator->allocate(size)
675 : DefaultAllocator().allocate(size);
678 return allocator->allocate(size);