Home
last modified time | relevance | path

Searched refs:chunks (Results 1 – 8 of 8) sorted by relevance

/system/core/libsparse/
Dsparse.c85 unsigned int chunks = 0; in sparse_count_chunks() local
91 chunks++; in sparse_count_chunks()
93 chunks++; in sparse_count_chunks()
98 chunks++; in sparse_count_chunks()
101 return chunks; in sparse_count_chunks()
165 int chunks; in sparse_file_write() local
168 chunks = sparse_count_chunks(s); in sparse_file_write()
169 out = output_file_open_fd(fd, s->block_size, s->len, gz, sparse, chunks, crc); in sparse_file_write()
185 int chunks; in sparse_file_callback() local
188 chunks = sparse_count_chunks(s); in sparse_file_callback()
[all …]
Doutput_file.h25 int gz, int sparse, int chunks, int crc);
28 int chunks, int crc);
Doutput_file.c542 int64_t len, bool sparse, int chunks, bool crc) in output_file_init() argument
581 .total_chunks = chunks, in output_file_init()
632 int gz __unused, int sparse, int chunks, int crc) in output_file_open_callback() argument
647 ret = output_file_init(&outc->out, block_size, len, sparse, chunks, crc); in output_file_open_callback()
657 int gz, int sparse, int chunks, int crc) in output_file_open_fd() argument
673 ret = output_file_init(out, block_size, len, sparse, chunks, crc); in output_file_open_fd()
/system/extras/ext4_utils/
Dallocate.c298 bg->chunks = (struct region*) calloc(bg->max_chunk_count, sizeof(struct region)); in init_bg()
364 hole_start = bgs[i].chunks[j-1].block + bgs[i].chunks[j-1].len; in ext4_allocate_best_fit_partial()
365 hole_size = bgs[i].chunks[j].block - hole_start; in ext4_allocate_best_fit_partial()
397 bgs[found_bg].chunks[found_prev_chunk].len += found_allocate_len; in ext4_allocate_best_fit_partial()
792 bgs[bg].chunks = realloc(bgs[bg].chunks, bgs[bg].max_chunk_count * sizeof(struct region)); in reserve_bg_chunk()
793 if (!bgs[bg].chunks) in reserve_bg_chunk()
797 bgs[bg].chunks[chunk_count].block = start_block; in reserve_bg_chunk()
798 bgs[bg].chunks[chunk_count].len = size; in reserve_bg_chunk()
799 bgs[bg].chunks[chunk_count].bg = bg; in reserve_bg_chunk()
Dallocate.h62 struct region *chunks; member
Dmake_ext4fs.c628 int min_bg_bound = bgs[block_group].chunks[0].block + bgs[block_group].chunks[0].len; in extract_base_fs_allocations()
629 int max_bg_bound = bgs[block_group].chunks[bgs[block_group].chunk_count - 1].block; in extract_base_fs_allocations()
651 qsort(bgs[i].chunks, bgs[i].chunk_count, sizeof(struct region), compare_chunks); in extract_base_fs_allocations()
/system/core/fastboot/
Dudp_test.cpp433 std::string chunks[] = {data.substr(0, max_data_size), in TEST_F() local
438 mock_socket_->ExpectSend(FastbootPacket(1, chunks[0], kFlagContinuation)); in TEST_F()
440 mock_socket_->ExpectSend(FastbootPacket(2, chunks[1], kFlagContinuation)); in TEST_F()
442 mock_socket_->ExpectSend(FastbootPacket(3, chunks[2])); in TEST_F()
448 mock_socket_->AddReceive(FastbootPacket(4, chunks[0], kFlagContinuation)); in TEST_F()
450 mock_socket_->AddReceive(FastbootPacket(5, chunks[1], kFlagContinuation)); in TEST_F()
452 mock_socket_->AddReceive(FastbootPacket(6, chunks[2])); in TEST_F()
/system/core/adb/
DSYNC.TXT60 After this the actual file is sent in chunks. Each chunk has the following
75 received is split up into chunks. The sync response id is "DATA" and length is