Home
last modified time | relevance | path

Searched refs:buffer2 (Results 1 – 4 of 4) sorted by relevance

/system/core/libmemunreachable/tests/
DHeapWalker_test.cpp81 char buffer2[16]{}; in TEST_F() local
82 buffer1[0] = &buffer2[0] - sizeof(void*); in TEST_F()
83 buffer1[1] = &buffer2[15] + sizeof(void*); in TEST_F()
86 heap_walker.Allocation(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F()
98 EXPECT_EQ(buffer_begin(buffer2), leaked[0].begin); in TEST_F()
99 EXPECT_EQ(buffer_end(buffer2), leaked[0].end); in TEST_F()
109 char buffer2[to_buffer_bytes]{}; in TEST_F() local
110 buffer1[i] = &buffer2[j]; in TEST_F()
113 heap_walker.Allocation(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F()
134 char buffer2[to_buffer_bytes]{}; in TEST_F() local
[all …]
DLeakFolding_test.cpp72 void* buffer2[1] = {nullptr}; in TEST_F() local
77 ALLOCATION(heap_walker, buffer2); in TEST_F()
99 void* buffer2[1] = {nullptr}; in TEST_F() local
101 buffer1[0] = buffer2; in TEST_F()
106 ALLOCATION(heap_walker, buffer2); in TEST_F()
126 void* buffer2[1]; in TEST_F() local
129 buffer1[0] = buffer2; in TEST_F()
130 buffer2[0] = buffer3; in TEST_F()
131 buffer3[0] = buffer2; in TEST_F()
136 ALLOCATION(heap_walker, buffer2); in TEST_F()
[all …]
/system/vold/
DDevmapper.cpp208 char *buffer2 = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in destroyAll() local
209 if (!buffer2) { in destroyAll()
219 free(buffer2); in destroyAll()
229 free(buffer2); in destroyAll()
237 free(buffer2); in destroyAll()
249 memset(buffer2, 0, DEVMAPPER_BUFFER_SIZE); in destroyAll()
250 struct dm_ioctl *io2 = (struct dm_ioctl *) buffer2; in destroyAll()
264 free(buffer2); in destroyAll()
/system/extras/micro_bench/
Dmicro_bench.cpp361 …uint8_t *buffer2 = getColdBuffer(num_buffers, buf2_incr, (cmd_data).dst_align, (cmd_data).dst_or_m…
362 if (!buffer2) \
374 buf2 = buffer2 + k * buf2_incr; \
424 memset(buffer2, 0x0, buffer2_size), in benchmarkMemcpyCold()
483 memset(buffer2, 'a', buffer2_size); \ in benchmarkStrcmpCold()
486 buffer2[size-1+buf2_incr*i] = '\0'; \ in benchmarkStrcmpCold()
552 memset(buffer2, 'b', buffer2_size); \ in benchmarkStrcatCold()
555 buffer2[dst_str_size-1+buf2_incr*i] = '\0'; \ in benchmarkStrcatCold()
582 memset(buffer2, 0, buffer2_size), in benchmarkStrcpyCold()