Searched refs:chunk (Results 1 – 8 of 8) sorted by relevance
/system/extras/tests/sdcard/ |
D | sdcard_perf_test.cpp | 290 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 …]
|
D | profile_sdcard.sh | 40 …adb shell sdcard_perf_test --test=write --procnb=${p} --size=1000 --chunk-size=100 --iterations=50…
|
D | README | 37 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/ |
D | sparse_read.c | 105 int chunk; in process_raw_chunk() local 123 chunk = min(len, COPY_BUF_SIZE); in process_raw_chunk() 124 ret = read_all(fd, copybuf, chunk); in process_raw_chunk() 128 *crc32 = sparse_crc32(*crc32, copybuf, chunk); in process_raw_chunk() 129 len -= chunk; in process_raw_chunk() 142 int chunk; in process_fill_chunk() local 170 chunk = min(len, COPY_BUF_SIZE); in process_fill_chunk() 171 *crc32 = sparse_crc32(*crc32, copybuf, chunk); in process_fill_chunk() 172 len -= chunk; in process_fill_chunk() 192 int chunk = min(len, COPY_BUF_SIZE); in process_skip_chunk() local [all …]
|
/system/media/audio_utils/ |
D | tinysndfile.c | 114 unsigned char chunk[8]; in sf_open_read() local 115 actual = fread(chunk, sizeof(char), sizeof(chunk), stream); in sf_open_read() 116 if (actual != sizeof(chunk)) { in sf_open_read() 118 fprintf(stderr, "actual %zu != %zu\n", actual, sizeof(chunk)); in sf_open_read() 123 unsigned chunkSize = little4u(&chunk[4]); in sf_open_read() 130 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/ |
D | sysdeps_win32.cpp | 1527 int chunks, chunk, remains; in _wait_for_all() local 1564 for (chunk = 0; chunk < chunks; chunk++) { in _wait_for_all() 1565 threads[chunk].main_event = main_event; in _wait_for_all() 1566 threads[chunk].signaled_index = &sig_index; in _wait_for_all() 1567 threads[chunk].first_handle_index = WAIT_ALL_CHUNK_SIZE * chunk; in _wait_for_all() 1568 threads[chunk].handles = handles + threads[chunk].first_handle_index; in _wait_for_all() 1569 threads[chunk].handles_count = WAIT_ALL_CHUNK_SIZE; in _wait_for_all() 1572 threads[chunk].main_event = main_event; in _wait_for_all() 1573 threads[chunk].signaled_index = &sig_index; in _wait_for_all() 1574 threads[chunk].first_handle_index = WAIT_ALL_CHUNK_SIZE * chunk; in _wait_for_all() [all …]
|
D | SYNC.TXT | 65 A sync request with id "DATA" and length equal to the chunk size. After 66 follows chunk size number of bytes. This is repeated until the file is 67 transfered. Each chunk must not be larger than 64k. 79 the chuck size. After follows chunk size number of bytes. This is repeated
|
/system/vold/ |
D | BenchmarkGen.h | 4030 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()
|