/system/extras/ext4_utils/ |
D | indirect.c | 30 static u8 *create_backing(struct block_allocation *alloc, in create_backing() argument 41 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in create_backing() 45 get_region(alloc, ®ion_block, ®ion_len); in create_backing() 57 static void reserve_indirect_block(struct block_allocation *alloc, int len) in reserve_indirect_block() argument 59 if (reserve_oob_blocks(alloc, 1)) { in reserve_indirect_block() 64 if (advance_blocks(alloc, len)) { in reserve_indirect_block() 70 static void reserve_dindirect_block(struct block_allocation *alloc, int len) in reserve_dindirect_block() argument 72 if (reserve_oob_blocks(alloc, 1)) { in reserve_dindirect_block() 80 reserve_indirect_block(alloc, ind_block_len); in reserve_dindirect_block() 87 static void reserve_tindirect_block(struct block_allocation *alloc, int len) in reserve_tindirect_block() argument [all …]
|
D | extent.c | 30 static u8 *extent_create_backing(struct block_allocation *alloc, in extent_create_backing() argument 38 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in extent_create_backing() 42 get_region(alloc, ®ion_block, ®ion_len); in extent_create_backing() 56 static void extent_create_backing_file(struct block_allocation *alloc, in extent_create_backing_file() argument 60 for (; alloc != NULL && backing_len > 0; get_next_region(alloc)) { in extent_create_backing_file() 64 get_region(alloc, ®ion_block, ®ion_len); in extent_create_backing_file() 79 struct block_allocation *alloc; in do_inode_allocate_extents() local 86 alloc = allocate_blocks(block_len + 1); in do_inode_allocate_extents() 87 if (alloc == NULL) { in do_inode_allocate_extents() 94 alloc = allocate_blocks(block_len + 1 - prealloc_block_len); in do_inode_allocate_extents() [all …]
|
D | allocate.h | 69 int block_allocation_num_regions(struct block_allocation *alloc); 70 int block_allocation_len(struct block_allocation *alloc); 73 void reduce_allocation(struct block_allocation *alloc, u32 len); 74 u32 get_block(struct block_allocation *alloc, u32 block); 75 u32 get_oob_block(struct block_allocation *alloc, u32 block); 76 void get_next_region(struct block_allocation *alloc); 77 void get_region(struct block_allocation *alloc, u32 *block, u32 *len); 86 void free_alloc(struct block_allocation *alloc); 87 int reserve_oob_blocks(struct block_allocation *alloc, int blocks); 88 int advance_blocks(struct block_allocation *alloc, int blocks); [all …]
|
D | allocate.c | 34 struct block_allocation *alloc = malloc(sizeof(struct block_allocation)); in create_allocation() local 35 alloc->list.first = NULL; in create_allocation() 36 alloc->list.last = NULL; in create_allocation() 37 alloc->oob_list.first = NULL; in create_allocation() 38 alloc->oob_list.last = NULL; in create_allocation() 39 alloc->list.iter = NULL; in create_allocation() 40 alloc->list.partial_iter = 0; in create_allocation() 41 alloc->oob_list.iter = NULL; in create_allocation() 42 alloc->oob_list.partial_iter = 0; in create_allocation() 43 alloc->filename = NULL; in create_allocation() [all …]
|
D | indirect.h | 29 struct block_allocation *alloc);
|
D | contents.c | 197 struct block_allocation* alloc = inode_allocate_file_extents(inode, len, filename); in make_file() local 198 if (alloc) { in make_file() 199 alloc->filename = strdup(filename); in make_file() 200 alloc->next = saved_allocation_head; in make_file() 201 saved_allocation_head = alloc; in make_file()
|
/system/core/libutils/ |
D | SharedBufferTest.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 59 SharedBuffer* sb = alloc(mSize); in edit() 83 SharedBuffer* sb = alloc(newSize); in editResize() 103 SharedBuffer* sb = alloc(new_size); in reset()
|
D | String8.cpp | 65 SharedBuffer* buf = SharedBuffer::alloc(1); in initialize_string8() 87 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8() 111 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); in allocFromUTF16() 133 SharedBuffer* buf = SharedBuffer::alloc(resultStrLen); in allocFromUTF32() 160 SharedBuffer::alloc(sizeof(char))->data()); in String8()
|
D | String16.cpp | 38 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); in initialize_string16() 65 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); in allocFromUTF8() 88 SharedBuffer* buf = SharedBuffer::alloc((u16len + 1) * sizeof(char16_t)); in allocFromUTF16() 114 SharedBuffer::alloc(sizeof(char16_t))->data()); in String16()
|
D | SharedBuffer.h | 44 static SharedBuffer* alloc(size_t size);
|
/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/core/logd/ |
D | LogStatistics.h | 497 std::string* alloc; member 501 : alloc(nullptr), name("", strlen("")) { in TagNameKey() 511 alloc = new std::string( in TagNameKey() 513 if (!alloc) return; in TagNameKey() 514 name = std::experimental::string_view(alloc->c_str(), alloc->size()); in TagNameKey() 529 alloc = new std::string(msg, len); in TagNameKey() 530 if (!alloc) return; in TagNameKey() 531 name = std::experimental::string_view(alloc->c_str(), alloc->size()); in TagNameKey() 535 : alloc(rval.alloc), name(rval.name.data(), rval.name.length()) { in TagNameKey() 536 rval.alloc = nullptr; in TagNameKey() [all …]
|
/system/core/liblog/ |
D | event_tag_map.cpp | 46 const std::string* alloc; // HAS-AN member in MapString 70 MapString(const char* str, size_t len) : alloc(NULL), str(str, len) { in MapString() 73 : alloc(new std::string(str)), str(alloc->data(), alloc->length()) { in MapString() 76 : alloc(rval.alloc), str(rval.data(), rval.length()) { in MapString() 77 rval.alloc = NULL; in MapString() 80 : alloc(rval.alloc ? new std::string(*rval.alloc) : NULL), in MapString() 81 str(alloc ? alloc->data() : rval.data(), rval.length()) { in MapString() 85 if (alloc) delete alloc; in ~MapString()
|
/system/extras/alloc-stress/ |
D | Android.mk | 5 LOCAL_MODULE := alloc-stress 14 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/extras/simpleperf/ |
D | utils.cpp | 206 ISzAlloc alloc; in XzDecompress() local 208 alloc.Alloc = xz_alloc; in XzDecompress() 209 alloc.Free = xz_free; in XzDecompress() 210 XzUnpacker_Construct(&state, &alloc); in XzDecompress()
|
/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/core/libunwindstack/ |
D | ElfInterface.cpp | 61 ISzAlloc alloc; in CreateGnuDebugdataMemory() local 63 alloc.Alloc = [](void*, size_t size) { return malloc(size); }; in CreateGnuDebugdataMemory() 64 alloc.Free = [](void*, void* ptr) { return free(ptr); }; in CreateGnuDebugdataMemory() 66 XzUnpacker_Construct(&state, &alloc); in CreateGnuDebugdataMemory()
|