Searched refs:chunk (Results 1 - 9 of 9) sorted by relevance

/system/core/libmemunreachable/
H A DAllocator.cpp80 void MoveToFullList(Chunk* chunk, int bucket_);
81 void MoveToFreeList(Chunk* chunk, int bucket_);
89 void MoveToList(Chunk* chunk, LinkedList<Chunk*>* head);
198 unsigned int allocation_size_; // size of allocations in chunk, min 8 bytes
199 unsigned int max_allocations_; // maximum number of allocations in the chunk
223 // Override new operator on chunk to use mmap to allocate kChunkSize
234 // Override new operator on chunk to use mmap to allocate kChunkSize
353 Chunk *chunk = free_chunks_[i].next()->data();
354 chunk->node_.remove();
355 delete chunk;
[all...]
/system/core/trusty/storage/lib/
H A Dstorage.c206 size_t chunk = MAX_CHUNK_SIZE; local
210 if (chunk > size)
211 chunk = size;
212 rc = _read_chunk(fh, off, ptr, chunk);
243 size_t chunk = MAX_CHUNK_SIZE; local
248 if (chunk >= size) {
249 /* last chunk in sequence */
250 chunk = size;
253 rc = _write_req(fh, off, ptr, chunk, msg_flags);
256 if ((size_t)rc != chunk) {
[all...]
/system/extras/tests/sdcard/
H A Dsdcard_perf_test.cpp74 // adb shell /system/bin/sdcard_perf_test --test=read --size=1000 --chunk-size=100 --procnb=1 --iterations=10 --dump > /tmp/data.txt
75 // adb shell /system/bin/sdcard_perf_test --test=write --size=1000 --chunk-size=100 --procnb=1 --iterations=100 --dump > /tmp/data.txt
112 {"chunk-size", required_argument, 0, 'S'},
133 " -S --chunk-size: Size of a chunk. Default to size ie 1 chunk.\n"
134 " Data will be written/read using that chunk size.\n"
286 // @param chunk buffer large enough where the chunk read are written.
290 bool readData(char *const chunk, cons argument
356 char *const chunk = new char[chunk_size]; local
418 writeData(const char *const chunk, const int idx, TestCase *testCase) argument
568 char * const chunk = new char[testCase->chunkSize()]; local
[all...]
H A Dprofile_sdcard.sh40 adb shell sdcard_perf_test --test=write --procnb=${p} --size=1000 --chunk-size=100 --iterations=50 >/tmp/tmp-sdcard.txt
/system/core/libsparse/
H A Dsparse_read.c106 int chunk; local
124 chunk = min(len, COPY_BUF_SIZE);
125 ret = read_all(fd, copybuf, chunk);
129 *crc32 = sparse_crc32(*crc32, copybuf, chunk);
130 len -= chunk;
143 int chunk; local
171 chunk = min(len, COPY_BUF_SIZE);
172 *crc32 = sparse_crc32(*crc32, copybuf, chunk);
173 len -= chunk;
193 int chunk local
[all...]
/system/media/audio_utils/
H A Dtinysndfile.c115 unsigned char chunk[8]; local
116 actual = fread(chunk, sizeof(char), sizeof(chunk), stream);
117 if (actual != sizeof(chunk)) {
119 fprintf(stderr, "actual %zu != %zu\n", actual, sizeof(chunk));
124 unsigned chunkSize = little4u(&chunk[4]);
131 if (!memcmp(&chunk[0], "fmt ", 4)) {
230 } else if (!memcmp(&chunk[0], "data", 4)) {
250 } else if (!memcmp(&chunk[0], "fact", 4)) {
256 // ignore unknown chunk
[all...]
/system/extras/pagecache/
H A Dpagecache.py152 chunk = self._file_object.read(self._chunk_size)
153 if not chunk:
155 self._output_queue.put(chunk)
158 """Change the read chunk size.
163 chunk_size: the new chunk size for this file. Must be > 0.
165 # The chunk size can be changed asynchronously while a file is being read
168 # only changing the chunk size, and not the type of file.
/system/extras/ioshark/
H A Dioshark_bench.c532 static int chunk = 0; local
578 if (chunk > 0 || i < num_input_files) {
580 chunk++, fssize_clamp_next_index, i - 1);
/system/vold/
H A DBenchmarkGen.h4030 int chunk = std::min(len, 65536); local
4034 if (android::vold::ReadRandomBytes(chunk, buf) != OK) {
4044 int n = write(out, buf.c_str(), std::min(len, chunk));

Completed in 2831 milliseconds