Searched refs:buffer2 (Results 1 – 4 of 4) sorted by relevance
/system/core/libmemunreachable/tests/ |
D | HeapWalker_test.cpp | 79 char buffer2[16]{}; in TEST_F() local 80 buffer1[0] = &buffer2[0] - sizeof(void*); in TEST_F() 81 buffer1[1] = &buffer2[15] + sizeof(void*); in TEST_F() 84 heap_walker.Allocation(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F() 96 EXPECT_EQ(buffer_begin(buffer2), leaked[0].begin); in TEST_F() 97 EXPECT_EQ(buffer_end(buffer2), leaked[0].end); in TEST_F() 107 char buffer2[to_buffer_bytes]{}; in TEST_F() local 108 buffer1[i] = &buffer2[j]; in TEST_F() 111 heap_walker.Allocation(buffer_begin(buffer2), buffer_end(buffer2)); in TEST_F() 132 char buffer2[to_buffer_bytes]{}; in TEST_F() local [all …]
|
D | LeakFolding_test.cpp | 70 void* buffer2[1] = {nullptr}; in TEST_F() local 75 ALLOCATION(heap_walker, buffer2); in TEST_F() 97 void* buffer2[1] = {nullptr}; in TEST_F() local 99 buffer1[0] = buffer2; in TEST_F() 104 ALLOCATION(heap_walker, buffer2); in TEST_F() 124 void* buffer2[1]; in TEST_F() local 127 buffer1[0] = buffer2; in TEST_F() 128 buffer2[0] = buffer3; in TEST_F() 129 buffer3[0] = buffer2; in TEST_F() 134 ALLOCATION(heap_walker, buffer2); in TEST_F() [all …]
|
/system/vold/ |
D | Devmapper.cpp | 50 char *buffer2 = (char *) malloc(DEVMAPPER_BUFFER_SIZE); in dumpState() local 51 if (!buffer2) { in dumpState() 61 free(buffer2); in dumpState() 71 free(buffer2); in dumpState() 79 free(buffer2); in dumpState() 88 memset(buffer2, 0, DEVMAPPER_BUFFER_SIZE); in dumpState() 89 struct dm_ioctl *io2 = (struct dm_ioctl *) buffer2; in dumpState() 112 free(buffer2); in dumpState()
|
/system/extras/micro_bench/ |
D | micro_bench.cpp | 361 …uint8_t *buffer2 = getColdBuffer(num_buffers, buf2_incr, cmd_data.dst_align, cmd_data.dst_or_mask)… 362 if (!buffer2) \ 374 buf2 = buffer2 + k * buf2_incr; \ 423 memset(buffer2, 0x0, buffer2_size), in benchmarkMemcpyCold() 482 memset(buffer2, 'a', buffer2_size); \ in benchmarkStrcmpCold() 485 buffer2[size-1+buf2_incr*i] = '\0'; \ in benchmarkStrcmpCold() 551 memset(buffer2, 'b', buffer2_size); \ in benchmarkStrcatCold() 554 buffer2[dst_str_size-1+buf2_incr*i] = '\0'; \ in benchmarkStrcatCold() 581 memset(buffer2, 0, buffer2_size), in benchmarkStrcpyCold()
|