/chre-3.4.0/platform/shared/ |
D | memory_manager.cc | 23 void *MemoryManager::nanoappAlloc(Nanoapp *app, uint32_t bytes) { in nanoappAlloc() argument 25 if (bytes > 0) { in nanoappAlloc() 30 } else if ((bytes > kMaxAllocationBytes) || in nanoappAlloc() 31 ((mTotalAllocatedBytes + bytes) > kMaxAllocationBytes)) { in nanoappAlloc() 37 static_cast<AllocHeader *>(doAlloc(app, sizeof(AllocHeader) + bytes)); in nanoappAlloc() 40 app->setTotalAllocatedBytes(app->getTotalAllocatedBytes() + bytes); in nanoappAlloc() 41 mTotalAllocatedBytes += bytes; in nanoappAlloc() 46 header->data.bytes = bytes; in nanoappAlloc() 69 if (nanoAppTotalAllocatedBytes >= header->data.bytes) { in nanoappFree() 71 header->data.bytes); in nanoappFree() [all …]
|
D | chre_api_re.cc | 64 DLL_EXPORT void *chreHeapAlloc(uint32_t bytes) { in chreHeapAlloc() argument 68 .nanoappAlloc(nanoapp, bytes); in chreHeapAlloc()
|
/chre-3.4.0/apps/test/chqts/src/shared/ |
D | nano_endian.cc | 21 void swapBytes(uint8_t *bytes, size_t size) { in swapBytes() argument 23 uint8_t tmp = bytes[front]; in swapBytes() 24 bytes[front] = bytes[end]; in swapBytes() 25 bytes[end] = tmp; in swapBytes()
|
D | nano_endian_test.cc | 27 uint8_t bytes[] = {0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 0x08, in swapByteTest() local 35 static_assert(arrayLength(bytes) == arrayLength(postSwap), in swapByteTest() 38 static_assert((kByteCount > 0) && (kByteCount <= arrayLength(bytes)), in swapByteTest() 43 nanoapp_testing::swapBytes(bytes, kByteCount); in swapByteTest() 44 EXPECT_EQ(0, ::memcmp(bytes, kExpected, kByteCount)); in swapByteTest() 46 if (arrayLength(bytes) < kByteCount) { in swapByteTest() 48 EXPECT_EQ(kByteCount + 1, bytes[kByteCount]); in swapByteTest() 91 const uint8_t *bytes = reinterpret_cast<uint8_t *>(&value); in TEST() local 92 EXPECT_EQ(0, ::memcmp(kLittleEndianRepresentation, bytes, in TEST()
|
D | nano_string.cc | 34 uint8_t *bytes = static_cast<uint8_t *>(mem); in memset() local 36 bytes[i] = static_cast<uint8_t>(val); in memset() 40 void memcpy(void *d, const void *s, size_t bytes) { in memcpy() argument 43 for (size_t i = 0; i < bytes; i++) { in memcpy()
|
D | chunk_allocator.h | 33 void *alloc(size_t bytes); 75 void *alloc(size_t bytes) { in alloc() argument 76 return ChunkAllocatorBase::alloc(bytes); in alloc()
|
D | chunk_allocator.cc | 36 void *ChunkAllocatorBase::alloc(size_t bytes) { in alloc() argument 37 if (bytes > mAllocSize) { in alloc()
|
D | nano_string.h | 27 void memcpy(void *dst, const void *src, size_t bytes);
|
D | nano_endian.h | 47 void swapBytes(uint8_t *bytes, size_t size);
|
/chre-3.4.0/apps/test/common/chre_settings_test/src/ |
D | chre_settings_test_util.cc | 49 pb_byte_t *bytes = static_cast<pb_byte_t *>(chreHeapAlloc(size)); in sendTestResultToHost() local 50 if (bytes == nullptr) { in sendTestResultToHost() 53 pb_ostream_t stream = pb_ostream_from_buffer(bytes, size); in sendTestResultToHost() 56 chreHeapFree(bytes); in sendTestResultToHost() 59 bytes, size, chre_settings_test_MessageType_TEST_RESULT, in sendTestResultToHost()
|
/chre-3.4.0/platform/freertos/ |
D | memory_manager.cc | 23 void *MemoryManager::doAlloc(Nanoapp *app, uint32_t bytes) { in doAlloc() argument 25 return chre::memoryAlloc(bytes); in doAlloc() 27 return chre::memoryAllocDram(bytes); in doAlloc()
|
/chre-3.4.0/platform/slpi/ |
D | memory_manager.cc | 24 void *MemoryManager::doAlloc(Nanoapp *app, uint32_t bytes) { in doAlloc() argument 26 return chre::memoryAlloc(bytes); in doAlloc() 28 return chre::memoryAllocBigImage(bytes); in doAlloc()
|
/chre-3.4.0/apps/test/common/shared/src/ |
D | send_message.cc | 68 pb_byte_t *bytes = static_cast<pb_byte_t *>(chreHeapAlloc(size)); in sendTestResultWithMsgToHost() local 69 if (bytes == nullptr) { in sendTestResultWithMsgToHost() 72 pb_ostream_t stream = pb_ostream_from_buffer(bytes, size); in sendTestResultWithMsgToHost() 75 chreHeapFree(bytes); in sendTestResultWithMsgToHost() 77 chreSendMessageToHostEndpoint(bytes, size, messageType, hostEndpointId, in sendTestResultWithMsgToHost()
|
/chre-3.4.0/chpp/platform/linux/ |
D | memory.c | 31 size_t bytes; member 43 header->bytes = size; in chppMalloc() 63 size_t size = header->bytes; in chppFree() 86 newHeader->bytes = newSize; in chppRealloc()
|
/chre-3.4.0/platform/linux/ |
D | memory_manager.cc | 23 void *MemoryManager::doAlloc(Nanoapp * /* app */, uint32_t bytes) { in doAlloc() argument 24 return chre::memoryAlloc(bytes); in doAlloc()
|
/chre-3.4.0/apps/test/pts/audio_enable_disable_test/src/ |
D | audio_enable_disable_test.cc | 74 pb_byte_t *bytes = static_cast<pb_byte_t *>(chreHeapAlloc(size)); in sendTestResult() local 75 if (bytes == nullptr) { in sendTestResult() 78 pb_ostream_t stream = pb_ostream_from_buffer(bytes, size); in sendTestResult() 81 chreHeapFree(bytes); in sendTestResult() 83 chreSendMessageToHostEndpoint(bytes, size, in sendTestResult()
|
/chre-3.4.0/util/ |
D | container_support.cc | 33 void *chreHeapAlloc(uint32_t bytes) { in chreHeapAlloc() argument 34 return malloc(bytes); in chreHeapAlloc()
|
/chre-3.4.0/platform/include/chre/platform/ |
D | memory_manager.h | 49 void *nanoappAlloc(Nanoapp *app, uint32_t bytes); 111 uint32_t bytes; member
|
/chre-3.4.0/apps/test/common/proto/ |
D | chre_test_common.proto | 16 optional bytes errorMessage = 2;
|
/chre-3.4.0/chre_api/legacy/v1_0/chre/ |
D | re.h | 306 void* chreHeapAlloc(uint32_t bytes);
|
/chre-3.4.0/chre_api/legacy/v1_2/chre/ |
D | re.h | 372 void *chreHeapAlloc(uint32_t bytes);
|
/chre-3.4.0/chre_api/legacy/v1_1/chre/ |
D | re.h | 366 void *chreHeapAlloc(uint32_t bytes);
|
/chre-3.4.0/chre_api/legacy/v1_3/chre/ |
D | re.h | 372 void *chreHeapAlloc(uint32_t bytes);
|
/chre-3.4.0/chre_api/legacy/v1_4/chre/ |
D | re.h | 386 void *chreHeapAlloc(uint32_t bytes);
|
/chre-3.4.0/chre_api/include/chre_api/chre/ |
D | re.h | 386 void *chreHeapAlloc(uint32_t bytes);
|