/system/core/libutils/ |
H A D | SharedBufferTest.cpp | 27 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 D | SharedBuffer.cpp | 30 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 D | SharedBuffer.h | 44 static SharedBuffer* alloc(size_t size);
|
H A D | String16.cpp | 38 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 D | String8.cpp | 65 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 D | dumb_allocator_test.cc | 33 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 D | dumb_allocator.h | 33 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 D | dumb_allocator.cc | 36 void *DumbAllocatorBase::alloc(size_t bytes) { function in class:nanoapp_testing::DumbAllocatorBase
|
H A D | send_message.cc | 81 void *ret = gDumbAlloc.alloc(*size);
|
/system/bt/embdrv/sbc/decoder/srce/ |
H A D | decoder-oina.c | 40 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 D | framing-sbc.c | 53 printf(" alloc: %s\n", OI_CODEC_SBC_AllocText[frameInfo->alloc]);
|
/system/bt/osi/include/ |
H A D | allocator.h | 29 alloc_fn alloc; member in struct:__anon837 33 // allocator_t abstractions for the osi_*alloc and osi_free functions
|
/system/core/liblog/ |
H A D | event_tag_map.cpp | 46 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 D | LogStatistics.h | 497 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 D | list.cc | 27 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 D | oi_codec_sbc.h | 176 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 D | bt_vendor_lib.h | 256 * 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 D | utils.cpp | 206 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 D | nfa_snep_api.h | 166 tNFA_SNEP_ALLOC alloc; /* NFA_SNEP_ALLOC_BUFF_EVT */ member in union:__anon2397
|
/system/libhidl/libhidlcache/ |
H A D | MemoryDealer.cpp | 73 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 D | avrc_bld_ct.cc | 563 bool alloc = false; local 579 alloc = true; 656 if (alloc && (status != AVRC_STS_NO_ERROR)) {
|
/system/bt/hci/src/ |
H A D | hci_inject.cc | 174 BT_HDR* buf = (BT_HDR*)buffer_allocator->alloc(BT_HDR_SIZE + packet_len);
|
H A D | hci_layer_android.cc | 66 reinterpret_cast<BT_HDR*>(buffer_allocator->alloc(packet_size));
|
H A D | hci_packet_factory.cc | 192 BT_HDR* ret = (BT_HDR*)buffer_allocator->alloc(sizeof(BT_HDR) + data_size);
|
/system/core/libunwindstack/ |
H A D | ElfInterface.cpp | 88 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);
|