/system/bt/osi/test/fuzzers/allocation_tracker/ |
D | fuzz_allocation_tracker.cc | 37 for (const auto& alloc : *alloc_vector) { in freeAllocationVector() 38 void* real_ptr = allocation_tracker_notify_free(alloc.alloc_id, alloc.ptr); in freeAllocationVector() 64 alloc_struct alloc; in callArbitraryFunction() local 66 alloc.alloc_id = dataProvider->ConsumeIntegral<allocator_id_t>(); in callArbitraryFunction() 78 alloc.ptr = in callArbitraryFunction() 79 allocation_tracker_notify_alloc(alloc.alloc_id, tmp_ptr, size); in callArbitraryFunction() 81 if (tracker_initialized && alloc.ptr) { in callArbitraryFunction() 82 alloc_vector->push_back(alloc); in callArbitraryFunction() 93 alloc_struct alloc = alloc_vector->at(index); in callArbitraryFunction() local 95 allocation_tracker_notify_free(alloc.alloc_id, alloc.ptr); in callArbitraryFunction()
|
/system/core/libutils/ |
D | SharedBuffer_test.cpp | 27 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX), ""); in TEST() 28 EXPECT_DEATH(android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer)), ""); in TEST() 33 android::SharedBuffer::alloc(SIZE_MAX - sizeof(android::SharedBuffer) - 1); in TEST() 36 buf = android::SharedBuffer::alloc(0); in TEST() 43 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() 45 buf = android::SharedBuffer::alloc(10); in TEST() 48 buf = android::SharedBuffer::alloc(10); in TEST() 54 buf = android::SharedBuffer::alloc(10); in TEST()
|
D | SharedBuffer.cpp | 30 SharedBuffer* SharedBuffer::alloc(size_t size) in alloc() function in android::SharedBuffer 60 SharedBuffer* sb = alloc(mSize); in edit() 84 SharedBuffer* sb = alloc(newSize); in editResize() 104 SharedBuffer* sb = alloc(new_size); in reset()
|
D | String16.cpp | 34 void* String16::alloc(size_t size) in alloc() function in android::String16 36 SharedBuffer* buf = SharedBuffer::alloc(size); in alloc() 52 SharedBuffer* buf = static_cast<SharedBuffer*>(alloc(sizeof(char16_t) * (u16len + 1))); in allocFromUTF8() 75 SharedBuffer* buf = static_cast<SharedBuffer*>(alloc((u16len + 1) * sizeof(char16_t))); in allocFromUTF16() 334 buf = static_cast<SharedBuffer*>(alloc((size() + 1) * sizeof(char16_t))); in edit() 352 buf = static_cast<SharedBuffer*>(alloc(newSize)); in editResize()
|
D | SharedBuffer.h | 44 static SharedBuffer* alloc(size_t size);
|
D | String8.cpp | 45 SharedBuffer* buf = SharedBuffer::alloc(1); in getEmptyString() 63 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8() 87 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); in allocFromUTF16() 109 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); in allocFromUTF32()
|
D | VectorImpl.cpp | 93 editable = SharedBuffer::alloc(sb->size()); in editArrayImpl() 344 SharedBuffer* sb = SharedBuffer::alloc(new_allocation_size); in setCapacity() 423 SharedBuffer* sb = SharedBuffer::alloc(new_alloc_size); in _grow() 490 SharedBuffer* sb = SharedBuffer::alloc(new_capacity * mItemSize); in _shrink()
|
/system/chre/apps/chqts/src/shared/ |
D | dumb_allocator_test.cc | 33 void *ptr = da.alloc(kAllocSize); in TEST() 42 ptrs[i] = da.alloc(kAllocSize); in TEST() 50 EXPECT_EQ(nullptr, da.alloc(kAllocSize)); in TEST() 57 void *newPtr = da.alloc(kAllocSize); in TEST() 66 uint8_t *ptr = static_cast<uint8_t*>(da.alloc(kAllocSize)); in TEST() 75 EXPECT_EQ(nullptr, da.alloc(kAllocSize + 1)); in TEST() 76 EXPECT_EQ(nullptr, da.alloc(kAllocSize * 2)); in TEST() 81 ExpectGoodAlloc(da, da.alloc(kAllocSize - 1)); in TEST() 82 ExpectGoodAlloc(da, da.alloc(1)); in TEST() 83 ExpectGoodAlloc(da, da.alloc(0)); in TEST()
|
D | dumb_allocator.h | 33 void *alloc(size_t bytes); 76 void *alloc(size_t bytes) { in alloc() function 77 return DumbAllocatorBase::alloc(bytes); in alloc()
|
D | dumb_allocator.cc | 36 void *DumbAllocatorBase::alloc(size_t bytes) { in alloc() function in nanoapp_testing::DumbAllocatorBase
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | decoder-oina.c | 40 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc, in OI_CODEC_SBC_DecoderConfigureRaw() argument 68 if (alloc > SBC_SNR) { in OI_CODEC_SBC_DecoderConfigureRaw() 81 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw()
|
D | framing-sbc.c | 53 printf(" alloc: %s\n", OI_CODEC_SBC_AllocText[frameInfo->alloc]); in OI_CODEC_SBC_DumpConfig()
|
/system/bt/osi/test/fuzzers/allocator/ |
D | fuzz_allocator.cc | 112 for (const auto& alloc : alloc_vector) { in LLVMFuzzerTestOneInput() local 113 if (alloc != nullptr) { in LLVMFuzzerTestOneInput() 114 osi_free(alloc); in LLVMFuzzerTestOneInput()
|
/system/core/liblog/ |
D | event_tag_map.cpp | 45 const std::string* alloc; // HAS-AN member in MapString 69 MapString(const char* str, size_t len) : alloc(NULL), str(str, len) { in MapString() 72 : alloc(new std::string(str)), str(alloc->data(), alloc->length()) { in MapString() 75 : alloc(rval.alloc), str(rval.data(), rval.length()) { in MapString() 76 rval.alloc = NULL; in MapString() 79 : alloc(rval.alloc ? new std::string(*rval.alloc) : NULL), in MapString() 80 str(alloc ? alloc->data() : rval.data(), rval.length()) { in MapString() 84 if (alloc) delete alloc; in ~MapString()
|
/system/extras/alloc-stress/ |
D | Android.bp | 18 name: "alloc-stress", 19 srcs: ["alloc-stress.cpp"],
|
/system/bt/osi/src/ |
D | list.cc | 27 list_t* list = (list_t*)zeroed_allocator->alloc(sizeof(list_t)); in list_new_internal() 94 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_insert_after() 109 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_prepend() 123 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_append()
|
/system/bt/osi/include/ |
D | allocator.h | 29 alloc_fn alloc; member
|
/system/bt/osi/test/fuzzers/list/ |
D | fuzz_list.cc | 269 for (const auto& alloc : alloc_vector) { in LLVMFuzzerTestOneInput() local 270 if (alloc != nullptr) { in LLVMFuzzerTestOneInput() 271 free(alloc); in LLVMFuzzerTestOneInput()
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_codec_sbc.h | 176 uint8_t alloc; /**< The bit allocation method. Input parameter. */ member 328 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc,
|
/system/bt/embdrv/sbc/decoder/ |
D | Android.bp | 7 "srce/alloc.c",
|
/system/extras/simpleperf/ |
D | utils.cpp | 261 ISzAlloc alloc; in XzDecompress() local 263 alloc.Alloc = xz_alloc; in XzDecompress() 264 alloc.Free = xz_free; in XzDecompress() 265 XzUnpacker_Construct(&state, &alloc); in XzDecompress()
|
/system/nfc/src/nfa/include/ |
D | nfa_snep_api.h | 166 tNFA_SNEP_ALLOC alloc; /* NFA_SNEP_ALLOC_BUFF_EVT */ member
|
/system/bt/hci/include/ |
D | bt_vendor_lib.h | 348 malloc_cb alloc; member
|
/system/bt/embdrv/sbc/ |
D | BUILD.gn | 19 "decoder/srce/alloc.c",
|
/system/core/libunwindstack/ |
D | ElfInterface.cpp | 109 ISzAlloc alloc; in CreateGnuDebugdataMemory() local 111 alloc.Alloc = [](ISzAllocPtr, size_t size) { return malloc(size); }; in CreateGnuDebugdataMemory() 112 alloc.Free = [](ISzAllocPtr, void* ptr) { return free(ptr); }; in CreateGnuDebugdataMemory() 113 XzUnpacker_Construct(&state, &alloc); in CreateGnuDebugdataMemory()
|