Searched refs:alloc (Results 1 - 25 of 31) sorted by relevance

12

/system/core/libutils/
H A DSharedBufferTest.cpp27 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), "");
28 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), "");
33 android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer) - 1);
36 buf = android::SharedBuffer::alloc(0);
43 android::SharedBuffer* buf = android::SharedBuffer::alloc(10);
45 buf = android::SharedBuffer::alloc(10);
48 buf = android::SharedBuffer::alloc(10);
54 buf = android::SharedBuffer::alloc(10);
H A DSharedBuffer.cpp30 SharedBuffer* SharedBuffer::alloc(size_t size) function in class:android::SharedBuffer
59 SharedBuffer* sb = alloc(mSize);
83 SharedBuffer* sb = alloc(newSize);
103 SharedBuffer* sb = alloc(new_size);
H A DSharedBuffer.h44 static SharedBuffer* alloc(size_t size);
H A DString16.cpp38 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t));
65 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1));
88 SharedBuffer* buf = SharedBuffer::alloc((u16len + 1) * sizeof(char16_t));
114 SharedBuffer::alloc(sizeof(char16_t))->data());
H A DString8.cpp65 SharedBuffer* buf = SharedBuffer::alloc(1);
87 SharedBuffer* buf = SharedBuffer::alloc(len+1);
111 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen);
133 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen);
160 SharedBuffer::alloc(sizeof(char))->data());
/system/chre/apps/chqts/src/shared/
H A Ddumb_allocator_test.cc33 void *ptr = da.alloc(kAllocSize);
42 ptrs[i] = da.alloc(kAllocSize);
50 EXPECT_EQ(nullptr, da.alloc(kAllocSize));
57 void *newPtr = da.alloc(kAllocSize);
66 uint8_t *ptr = static_cast<uint8_t*>(da.alloc(kAllocSize));
75 EXPECT_EQ(nullptr, da.alloc(kAllocSize + 1));
76 EXPECT_EQ(nullptr, da.alloc(kAllocSize * 2));
81 ExpectGoodAlloc(da, da.alloc(kAllocSize - 1));
82 ExpectGoodAlloc(da, da.alloc(1));
83 ExpectGoodAlloc(da, da.alloc(
[all...]
H A Ddumb_allocator.h33 void *alloc(size_t bytes);
76 void *alloc(size_t bytes) { function in class:nanoapp_testing::DumbAllocator
77 return DumbAllocatorBase::alloc(bytes);
91 * If "ptr" was a non-null pointer returned from alloc() on this instance,
H A Ddumb_allocator.cc36 void *DumbAllocatorBase::alloc(size_t bytes) { function in class:nanoapp_testing::DumbAllocatorBase
H A Dsend_message.cc81 void *ret = gDumbAlloc.alloc(*size);
/system/bt/embdrv/sbc/decoder/srce/
H A Ddecoder-oina.c40 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc,
68 if (alloc > SBC_SNR) {
81 context->common.frameInfo.alloc = alloc;
38 OI_CODEC_SBC_DecoderConfigureRaw( OI_CODEC_SBC_DECODER_CONTEXT* context, OI_BOOL enhanced, uint8_t frequency, uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc, uint8_t maxBitpool) argument
H A Dframing-sbc.c53 printf(" alloc: %s\n", OI_CODEC_SBC_AllocText[frameInfo->alloc]);
/system/bt/osi/include/
H A Dallocator.h29 alloc_fn alloc; member in struct:__anon837
33 // allocator_t abstractions for the osi_*alloc and osi_free functions
/system/core/liblog/
H A Devent_tag_map.cpp46 const std::string* alloc; // HAS-AN member in class:MapString
70 MapString(const char* str, size_t len) : alloc(NULL), str(str, len) {
73 : alloc(new std::string(str)), str(alloc->data(), alloc->length()) {
76 : alloc(rval.alloc), str(rval.data(), rval.length()) {
77 rval.alloc = NULL;
80 : alloc(rval.alloc
[all...]
/system/core/logd/
H A DLogStatistics.h497 std::string* alloc; member in struct:TagNameKey
501 : alloc(nullptr), name("", strlen("")) {
511 alloc = new std::string(
513 if (!alloc) return;
514 name = std::string_view(alloc->c_str(), alloc->size());
529 alloc = new std::string(msg, len);
530 if (!alloc) return;
531 name = std::string_view(alloc->c_str(), alloc
[all...]
/system/bt/osi/src/
H A Dlist.cc27 list_t* list = (list_t*)zeroed_allocator->alloc(sizeof(list_t));
94 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t));
109 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t));
123 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t));
/system/bt/embdrv/sbc/decoder/include/
H A Doi_codec_sbc.h176 uint8_t alloc; /**< The bit allocation method. Input parameter. */ member in struct:__anon630
322 * @param alloc One of SBC_LOUDNESS, SBC_SNR
328 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc,
/system/bt/hci/include/
H A Dbt_vendor_lib.h256 * Vendor lib needs to request a buffer through the alloc callout function
309 * needs to be first allocated through the alloc callout function.
348 malloc_cb alloc; member in struct:__anon656
/system/extras/simpleperf/
H A Dutils.cpp206 ISzAlloc alloc; local
208 alloc.Alloc = xz_alloc;
209 alloc.Free = xz_free;
210 XzUnpacker_Construct(&state, &alloc);
/system/nfc/src/nfa/include/
H A Dnfa_snep_api.h166 tNFA_SNEP_ALLOC alloc; /* NFA_SNEP_ALLOC_BUFF_EVT */ member in union:__anon2397
/system/libhidl/libhidlcache/
H A DMemoryDealer.cpp73 ssize_t alloc(size_t size, uint32_t flags);
138 ssize_t offset = alloc(size, flags);
151 ssize_t SimpleBestFitAllocator::alloc(size_t size, uint32_t flags) { function in class:android::hardware::SimpleBestFitAllocator
/system/bt/stack/avrc/
H A Davrc_bld_ct.cc563 bool alloc = false; local
579 alloc = true;
656 if (alloc && (status != AVRC_STS_NO_ERROR)) {
/system/bt/hci/src/
H A Dhci_inject.cc174 BT_HDR* buf = (BT_HDR*)buffer_allocator->alloc(BT_HDR_SIZE + packet_len);
H A Dhci_layer_android.cc66 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size));
H A Dhci_packet_factory.cc192 BT_HDR* ret = (BT_HDR*)buffer_allocator->alloc(sizeof(BT_HDR) + data_size);
/system/core/libunwindstack/
H A DElfInterface.cpp88 ISzAlloc alloc; local
90 alloc.Alloc = [](void*, size_t size) { return malloc(size); };
91 alloc.Free = [](void*, void* ptr) { return free(ptr); };
93 XzUnpacker_Construct(&state, &alloc);

Completed in 413 milliseconds

12