Home
last modified time | relevance | path

Searched refs:addr1 (Results 1 – 2 of 2) sorted by relevance

/system/extras/tests/memtest/
Dmemtest.cpp146 void* addr1 = mmap(0, size, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0); in madvise_test() local
147 printf("%p (%s)\n", addr1, addr1==(void*)-1 ? "failed" : "OK"); fflush(stdout); in madvise_test()
149 printf("touching %p...\n", addr1); fflush(stdout); in madvise_test()
150 memset(addr1, 0x55, size); in madvise_test()
153 madvise(addr1, size, MADV_DONTNEED); in madvise_test()
155 printf("reading back %p...\n", addr1); fflush(stdout); in madvise_test()
156 if (*(long*)addr1 == 0) { in madvise_test()
158 } else if (*(long*)addr1 == 0x55555555) { in madvise_test()
174 printf("touching %p...\n", addr1); fflush(stdout); in madvise_test()
175 memset(addr1, 0x55, size); in madvise_test()
[all …]
/system/bt/btcore/test/
Dproperty_test.cpp42 const bt_bdaddr_t *addr1 = property_as_addr(property); in TEST_F() local
43 EXPECT_EQ(addr0.address[0], addr1->address[0]); in TEST_F()
213 bt_bdaddr_t addr1 = {{0x1, 0x2, 0x3, 0x4, 0x5, 0xff}}; in TEST_F() local
214 bt_property_t *property1 = property_new_addr(&addr1); in TEST_F()