/bionic/benchmarks/ |
stdio_benchmark.cpp | 28 static void BM_stdio_fread(int iters, int chunk_size) { 31 char* buf = new char[chunk_size]; 35 fread(buf, chunk_size, 1, fp); 39 SetBenchmarkBytesProcessed(int64_t(iters) * int64_t(chunk_size)); 46 static void BM_stdio_fwrite(int iters, int chunk_size) { 49 char* buf = new char[chunk_size]; 53 fwrite(buf, chunk_size, 1, fp); 57 SetBenchmarkBytesProcessed(int64_t(iters) * int64_t(chunk_size));
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/ |
CachedInputStream.java | 34 private static final int CHUNK_SIZE = ByteArrayPool.CHUNK16K; 70 int chunks = mPos / CHUNK_SIZE; 73 int removedBytes = chunks * CHUNK_SIZE; 149 if (mPos == mBufs.size() * CHUNK_SIZE) { 152 int currentBuf = mPos / CHUNK_SIZE; 153 int indexInBuf = mPos - currentBuf * CHUNK_SIZE; 155 int end = (currentBuf + 1) * CHUNK_SIZE; 186 int currentBuf = mPos / CHUNK_SIZE; 187 int indexInBuf = mPos - currentBuf * CHUNK_SIZE; 189 int end = (currentBuf + 1) * CHUNK_SIZE; [all...] |
/external/pcre/dist/sljit/ |
sljitExecAllocator.c | 69 #define CHUNK_SIZE 0x10000 74 * the size is always divisible by CHUNK_SIZE 125 #define CHUNK_MASK (~(CHUNK_SIZE - 1)) 180 sljit_uw chunk_size; local 190 chunk_size = free_block->size; 191 if (chunk_size > size + 64) { 193 chunk_size -= size; 194 free_block->size = chunk_size; 195 header = AS_BLOCK_HEADER(free_block, chunk_size); 196 header->prev_size = chunk_size; [all...] |
/external/chromium_org/content/child/ |
webblobregistry_impl.cc | 141 size_t chunk_size = std::min(data_size, shared_memory_size); local 142 memcpy(shared_memory->memory(), data_ptr, chunk_size); 144 uuid_str, shared_memory->handle(), chunk_size)); 145 data_size -= chunk_size; 146 data_ptr += chunk_size; 187 size_t chunk_size = std::min(data_size, shared_memory_size); local 188 memcpy(shared_memory->memory(), data_ptr, chunk_size); 190 url, shared_memory->handle(), chunk_size)); 191 data_size -= chunk_size; 192 data_ptr += chunk_size; [all...] |
/external/chromium_org/chrome/browser/chromeos/file_system_provider/operations/ |
read_file.cc | 32 const size_t chunk_size = params->data.length(); local 35 if (chunk_size > static_cast<size_t>(buffer_length) - buffer_offset) 38 memcpy(buffer->data() + buffer_offset, params->data.c_str(), chunk_size); 40 return chunk_size;
|
/external/chromium_org/chromecast/media/cma/base/ |
frame_generator_for_test.cc | 69 uint32 chunk_size = 1; local 73 subsample.clear_bytes = chunk_size; 77 chunk_size <<= 1; 79 subsample.cypher_bytes = chunk_size; 83 chunk_size <<= 1;
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/ |
markselection.js | 45 var CHUNK_SIZE = 8; 55 var endLine = line + CHUNK_SIZE, atEnd = endLine >= to.line; 88 if (!coverStart || !coverEnd || to.line - from.line < CHUNK_SIZE || 97 if (coverStart.to.line - from.line < CHUNK_SIZE) { 110 if (to.line - coverEnd.from.line < CHUNK_SIZE) {
|
/packages/apps/Exchange/src/com/android/exchange/adapter/ |
ItemOperationsParser.java | 28 private static final int CHUNK_SIZE = 16*1024; 109 final byte[] bytes = new byte[CHUNK_SIZE]; 116 final int read = inputStream.read(bytes, 0, CHUNK_SIZE); 130 // Callback only if we've read at least 1% more and have read more than CHUNK_SIZE 132 if ((pct > lastCallbackPct) && (totalRead > (lastCallbackTotalRead + CHUNK_SIZE))) {
|
/system/extras/tests/sdcard/ |
sdcard_perf_test.cpp | 312 size_t chunk_size = testCase->chunkSize(); local 314 if (chunk_size > left) 316 chunk_size = left; 321 left -= chunk_size; 325 while (chunk_size > 0) 327 ssize_t s = read(fd, dest, chunk_size); 334 chunk_size -= s; 355 size_t chunk_size = testCase->chunkSize(); local 356 char *const chunk = new char[chunk_size]; 358 memset(chunk, 0xaa, chunk_size); 444 size_t chunk_size = testCase->chunkSize(); local 492 size_t chunk_size = testCase->chunkSize(); local 574 size_t chunk_size = testCase->chunkSize(); local [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStreamTest.java | 56 private static final int CHUNK_SIZE = 32; 333 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); 342 for (int i = 0; i < MY_MESSAGE_LEN / CHUNK_SIZE; i++) { 345 dis.read(bArray, i * CHUNK_SIZE, CHUNK_SIZE) == CHUNK_SIZE); 373 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE + 1) != 0); 382 for (int i = 0; i < MY_MESSAGE_LEN / (CHUNK_SIZE + 1); i++) { 385 dis.read(bArray, i * (CHUNK_SIZE + 1), CHUNK_SIZE + 1) = [all...] |
DigestOutputStreamTest.java | 56 private static final int CHUNK_SIZE = 32; 321 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); 330 for (int i = 0; i < MY_MESSAGE_LEN / CHUNK_SIZE; i++) { 331 dos.write(myMessage, i * CHUNK_SIZE, CHUNK_SIZE); 358 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE + 1) != 0); 367 for (int i = 0; i < MY_MESSAGE_LEN / (CHUNK_SIZE + 1); i++) { 368 dos.write(myMessage, i * (CHUNK_SIZE + 1), CHUNK_SIZE + 1); 372 MY_MESSAGE_LEN / (CHUNK_SIZE + 1) * (CHUNK_SIZE + 1) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStreamTest.java | 58 private static final int CHUNK_SIZE = 32; 328 assertEquals(0, MY_MESSAGE_LEN % CHUNK_SIZE); 337 for (int i=0; i<MY_MESSAGE_LEN/CHUNK_SIZE; i++) { 340 dis.read(bArray, i*CHUNK_SIZE, CHUNK_SIZE) == CHUNK_SIZE); 368 assertTrue(MY_MESSAGE_LEN % (CHUNK_SIZE+1) != 0); 377 for (int i=0; i<MY_MESSAGE_LEN/(CHUNK_SIZE+1); i++) { 380 dis.read(bArray, i*(CHUNK_SIZE+1), CHUNK_SIZE+1) = [all...] |
/development/ndk/platforms/android-3/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/external/chromium_org/content/renderer/ |
mhtml_generator.cc | 48 const size_t chunk_size = 1024; local 53 std::min(mhtml.length() - total_bytes_written, chunk_size);
|
/external/e2fsprogs/misc/ |
e2freefrag.c | 77 unsigned long chunk_size) 81 idx = ul_log2(chunk_size) + 1; 85 info->histogram.fc_blocks[idx] += chunk_size; 87 if (chunk_size > info->max) 88 info->max = chunk_size; 89 if (chunk_size < info->min) 90 info->min = chunk_size; 91 info->avg += chunk_size;
|
/prebuilts/ndk/4/platforms/android-3/arch-arm/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/4/platforms/android-4/arch-arm/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/4/platforms/android-5/arch-arm/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/4/platforms/android-5/arch-x86/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/4/platforms/android-8/arch-arm/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/4/platforms/android-8/arch-x86/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/5/platforms/android-3/arch-arm/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/6/platforms/android-3/arch-arm/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/6/platforms/android-3/arch-x86/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|
/prebuilts/ndk/7/platforms/android-14/arch-arm/usr/include/linux/raid/ |
md_u.h | 68 int chunk_size; member in struct:mdu_array_info_s 99 int chunk_size; member in struct:mdu_param_s
|