Home
last modified time | relevance | path

Searched refs:chunk (Results 1 – 11 of 11) sorted by relevance

/system/core/libmemunreachable/
DAllocator.cpp80 void MoveToFullList(Chunk* chunk, int bucket_);
81 void MoveToFreeList(Chunk* chunk, int bucket_);
89 void MoveToList(Chunk* chunk, LinkedList<Chunk*>* head);
353 Chunk *chunk = free_chunks_[i].next()->data(); in ~HeapImpl() local
354 chunk->node_.remove(); in ~HeapImpl()
355 delete chunk; in ~HeapImpl()
358 Chunk *chunk = full_chunks_[i].next()->data(); in ~HeapImpl() local
359 chunk->node_.remove(); in ~HeapImpl()
360 delete chunk; in ~HeapImpl()
376 Chunk *chunk = new Chunk(this, bucket); in AllocLocked() local
[all …]
/system/core/trusty/storage/lib/
Dstorage.c206 size_t chunk = MAX_CHUNK_SIZE; in storage_read() local
210 if (chunk > size) in storage_read()
211 chunk = size; in storage_read()
212 rc = _read_chunk(fh, off, ptr, chunk); in storage_read()
243 size_t chunk = MAX_CHUNK_SIZE; in storage_write() local
248 if (chunk >= size) { in storage_write()
250 chunk = size; in storage_write()
253 rc = _write_req(fh, off, ptr, chunk, msg_flags); in storage_write()
256 if ((size_t)rc != chunk) { in storage_write()
260 off += chunk; in storage_write()
[all …]
/system/extras/tests/sdcard/
Dsdcard_perf_test.cpp290 bool readData(char *const chunk, const int idx, TestCase *testCase) in readData() argument
308 pid_t *pid = (pid_t*)chunk; in readData()
311 char *dest = chunk; in readData()
356 char *const chunk = new char[chunk_size]; in testRead() local
358 memset(chunk, 0xaa, chunk_size); in testRead()
359 *((pid_t *)chunk) = testCase->pid(); // write our pid at the beginning of each chunk in testRead()
385 ssize_t written = write(fd, chunk, chunk_size); in testRead()
404 if (!readData(chunk, i, testCase)) in testRead()
411 delete [] chunk; in testRead()
418 bool writeData(const char *const chunk, const int idx, TestCase *testCase) { in writeData() argument
[all …]
Dprofile_sdcard.sh40 …adb shell sdcard_perf_test --test=write --procnb=${p} --size=1000 --chunk-size=100 --iterations=50…
DREADME37 adb shell sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100
46 …adb shell sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 -…
/system/core/libsparse/
Dsparse_read.c106 int chunk; in process_raw_chunk() local
124 chunk = min(len, COPY_BUF_SIZE); in process_raw_chunk()
125 ret = read_all(fd, copybuf, chunk); in process_raw_chunk()
129 *crc32 = sparse_crc32(*crc32, copybuf, chunk); in process_raw_chunk()
130 len -= chunk; in process_raw_chunk()
143 int chunk; in process_fill_chunk() local
171 chunk = min(len, COPY_BUF_SIZE); in process_fill_chunk()
172 *crc32 = sparse_crc32(*crc32, copybuf, chunk); in process_fill_chunk()
173 len -= chunk; in process_fill_chunk()
193 int chunk = min(len, COPY_BUF_SIZE); in process_skip_chunk() local
[all …]
/system/media/audio_utils/
Dtinysndfile.c115 unsigned char chunk[8]; in sf_open_read() local
116 actual = fread(chunk, sizeof(char), sizeof(chunk), stream); in sf_open_read()
117 if (actual != sizeof(chunk)) { in sf_open_read()
119 fprintf(stderr, "actual %zu != %zu\n", actual, sizeof(chunk)); in sf_open_read()
124 unsigned chunkSize = little4u(&chunk[4]); in sf_open_read()
131 if (!memcmp(&chunk[0], "fmt ", 4)) { in sf_open_read()
230 } else if (!memcmp(&chunk[0], "data", 4)) { in sf_open_read()
250 } else if (!memcmp(&chunk[0], "fact", 4)) { in sf_open_read()
259 chunk[0], chunk[1], chunk[2], chunk[3]); in sf_open_read()
/system/core/adb/
DSYNC.TXT60 After this the actual file is sent in chunks. Each chunk has the following
62 A sync request with id "DATA" and length equal to the chunk size. After
63 follows chunk size number of bytes. This is repeated until the file is
64 transferred. Each chunk must not be larger than 64k.
76 the chuck size. After follows chunk size number of bytes. This is repeated
/system/extras/pagecache/
Dpagecache.py152 chunk = self._file_object.read(self._chunk_size)
153 if not chunk:
155 self._output_queue.put(chunk)
/system/extras/ioshark/
Dioshark_bench.c532 static int chunk = 0; in get_start_end() local
578 if (chunk > 0 || i < num_input_files) { in get_start_end()
580 chunk++, fssize_clamp_next_index, i - 1); in get_start_end()
/system/vold/
DBenchmarkGen.h4030 int chunk = std::min(len, 65536); in CreateFile() local
4034 if (android::vold::ReadRandomBytes(chunk, buf) != OK) { in CreateFile()
4044 int n = write(out, buf.c_str(), std::min(len, chunk)); in CreateFile()