Searched refs:bufSize (Results 1 – 2 of 2) sorted by relevance
/system/extras/ANRdaemon/ |
D | ANRdaemon.cpp | 394 const size_t bufSize = 64*1024; in dump_trace() local 395 in = (uint8_t*)malloc(bufSize); in dump_trace() 396 out = (uint8_t*)malloc(bufSize); in dump_trace() 400 zs.avail_out = bufSize; in dump_trace() 404 result = read(trace_fd, in, bufSize); in dump_trace() 418 result = write(output_fd, out, bufSize); in dump_trace() 419 if ((size_t)result < bufSize) { in dump_trace() 422 zs.avail_out = bufSize; in dump_trace() 426 zs.avail_out = bufSize; in dump_trace() 435 if (zs.avail_out < bufSize) { in dump_trace() [all …]
|
/system/core/libutils/tests/ |
D | BlobCache_test.cpp | 151 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE + 1 }; in TEST_F() enumerator 154 char buf[bufSize]; in TEST_F() 158 for (int i = 0; i < bufSize; i++) { in TEST_F() 201 enum { bufSize = MAX_TOTAL_SIZE - MAX_KEY_SIZE }; in TEST_F() enumerator 204 char buf[bufSize]; in TEST_F() 208 for (int i = 0; i < bufSize; i++) { in TEST_F() 212 mBC->set(key, MAX_KEY_SIZE, buf, bufSize); in TEST_F() 213 ASSERT_EQ(size_t(bufSize), mBC->get(key, MAX_KEY_SIZE, NULL, 0)); in TEST_F()
|