Home
last modified time | relevance | path

Searched refs:bytes (Results 1 – 25 of 35) sorted by relevance

12

/chre-3.4.0/platform/shared/
Dmemory_manager.cc23 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 …]
Dchre_api_re.cc64 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/
Dnano_endian.cc21 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()
Dnano_endian_test.cc27 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()
Dnano_string.cc34 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()
Dchunk_allocator.h33 void *alloc(size_t bytes);
75 void *alloc(size_t bytes) { in alloc() argument
76 return ChunkAllocatorBase::alloc(bytes); in alloc()
Dchunk_allocator.cc36 void *ChunkAllocatorBase::alloc(size_t bytes) { in alloc() argument
37 if (bytes > mAllocSize) { in alloc()
Dnano_string.h27 void memcpy(void *dst, const void *src, size_t bytes);
Dnano_endian.h47 void swapBytes(uint8_t *bytes, size_t size);
/chre-3.4.0/apps/test/common/chre_settings_test/src/
Dchre_settings_test_util.cc49 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/
Dmemory_manager.cc23 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/
Dmemory_manager.cc24 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/
Dsend_message.cc68 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/
Dmemory.c31 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/
Dmemory_manager.cc23 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/
Daudio_enable_disable_test.cc74 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/
Dcontainer_support.cc33 void *chreHeapAlloc(uint32_t bytes) { in chreHeapAlloc() argument
34 return malloc(bytes); in chreHeapAlloc()
/chre-3.4.0/platform/include/chre/platform/
Dmemory_manager.h49 void *nanoappAlloc(Nanoapp *app, uint32_t bytes);
111 uint32_t bytes; member
/chre-3.4.0/apps/test/common/proto/
Dchre_test_common.proto16 optional bytes errorMessage = 2;
/chre-3.4.0/chre_api/legacy/v1_0/chre/
Dre.h306 void* chreHeapAlloc(uint32_t bytes);
/chre-3.4.0/chre_api/legacy/v1_2/chre/
Dre.h372 void *chreHeapAlloc(uint32_t bytes);
/chre-3.4.0/chre_api/legacy/v1_1/chre/
Dre.h366 void *chreHeapAlloc(uint32_t bytes);
/chre-3.4.0/chre_api/legacy/v1_3/chre/
Dre.h372 void *chreHeapAlloc(uint32_t bytes);
/chre-3.4.0/chre_api/legacy/v1_4/chre/
Dre.h386 void *chreHeapAlloc(uint32_t bytes);
/chre-3.4.0/chre_api/include/chre_api/chre/
Dre.h386 void *chreHeapAlloc(uint32_t bytes);

12