Home
last modified time | relevance | path

Searched refs:memset (Results 1 – 25 of 219) sorted by relevance

123456789

/bionic/tests/
Dstring_test.cpp115 memset(buf, 0, sizeof(buf)); in TEST()
259 memset(state.ptr2, '\2', state.MAX_LEN); in TEST()
263 memset(state.ptr1, 'L', state.len[i]); in TEST()
288 memset(buf, 'A', sizeof(buf)); in TEST()
302 memset(buf, 'A', sizeof(buf)); in TEST()
321 memset(buf, 'A', sizeof(buf)); in TEST()
335 memset(buf, 'A', sizeof(buf)); in TEST()
343 memset(buf, 'A', sizeof(buf)); in TEST()
356 memset(buf, 'A', sizeof(buf)); in TEST()
366 memset(buf, 'A', sizeof(buf)); in TEST()
[all …]
Dsys_procfs_test.cpp23 memset(&reg, 0, sizeof(reg)); in TEST()
26 memset(&regs, 0, sizeof(regs)); in TEST()
29 memset(&fp_regs, 0, sizeof(fp_regs)); in TEST()
32 memset(&pr_g_regs, 0, sizeof(pr_g_regs)); in TEST()
35 memset(&pr_fp_regs, 0, sizeof(pr_fp_regs)); in TEST()
Duchar_test.cpp37 memset(&ps, 0, sizeof(ps)); in TEST()
44 memset(&ps, 0, sizeof(ps)); in TEST()
49 memset(&ps, 0, sizeof(ps)); in TEST()
68 memset(bytes, 0, sizeof(bytes)); in TEST()
76 memset(bytes, 0, sizeof(bytes)); in TEST()
80 memset(bytes, 0, sizeof(bytes)); in TEST()
85 memset(bytes, 0, sizeof(bytes)); in TEST()
95 memset(bytes, 0, sizeof(bytes)); in TEST()
107 memset(bytes, 0, sizeof(bytes)); in TEST()
203 memset(&ps, 0, sizeof(ps)); in TEST()
[all …]
Dwchar_test.cpp59 memset(bytes, 0, sizeof(bytes)); in TEST()
62 memset(bytes, 0, sizeof(bytes)); in TEST()
70 memset(bytes, 0, sizeof(bytes)); in TEST()
74 memset(bytes, 0, sizeof(bytes)); in TEST()
79 memset(bytes, 0, sizeof(bytes)); in TEST()
85 memset(bytes, 0, sizeof(bytes)); in TEST()
101 memset(&ps, 0, sizeof(ps)); in TEST()
108 memset(&ps, 0, sizeof(ps)); in TEST()
113 memset(&ps, 0, sizeof(ps)); in TEST()
161 memset(bytes, 'x', sizeof(bytes)); in TEST()
[all …]
Dsystem_properties_test.cpp176 memset(prop_name + ret, 'a', PROP_NAME_MAX - 1 - ret); in TEST()
178 memset(prop_value + ret, 'b', PROP_VALUE_MAX - 1 - ret); in TEST()
194 memset(prop_name + ret, 'a', PROP_NAME_MAX - 1 - ret); in TEST()
196 memset(prop_value + ret, 'b', PROP_VALUE_MAX - 1 - ret); in TEST()
199 memset(prop_value_ret, '\0', PROP_VALUE_MAX); in TEST()
269 memset(prop_name + ret, 'a', PROP_NAME_MAX - 1 - ret); in TEST()
271 memset(prop_value + ret, 'b', PROP_VALUE_MAX - 1 - ret); in TEST()
285 memset(prop_name + ret, 'a', PROP_NAME_MAX - 1 - ret); in TEST()
287 memset(prop_value + ret, 'b', PROP_VALUE_MAX - 1 - ret); in TEST()
290 memset(prop_value_ret, '\0', PROP_VALUE_MAX); in TEST()
[all …]
Dtime_test.cpp118 memset(&t, 0, sizeof(tm)); in TEST()
127 memset(&t, 0, sizeof(tm)); in TEST()
139 memset(&t, 0, sizeof(tm)); in TEST()
168 memset(&t, 0, sizeof(tm)); in TEST()
192 memset(&t, 0, sizeof(tm)); in TEST()
213 memset(&t, 0, sizeof(tm)); in TEST()
255 memset(&t, 0, sizeof(tm)); in TEST()
275 memset(&t, 0, sizeof(t)); in TEST()
280 memset(&t, 0, sizeof(t)); in TEST()
292 memset(&t, 0, sizeof(t)); in TEST()
[all …]
Dinttypes_test.cpp26 memset(buf, 0, sizeof(buf)); \
29 memset(buf, 0, sizeof(buf)); \
32 memset(buf, 0, sizeof(buf)); \
35 memset(buf, 0, sizeof(buf)); \
38 memset(buf, 0, sizeof(buf)); \
41 memset(buf, 0, sizeof(buf)); \
Dbuffer_tests.cpp334 memset(buf1_align+len, 0, 32); in RunCmpBufferAlignTest()
335 memset(buf2_align+len, 0, 32); in RunCmpBufferAlignTest()
366 memset(memory, 0x23, 2*pagesize); in RunSingleBufferOverreadTest()
387 memset(memory, 0x23, 2*pagesize); in RunSrcDstBufferOverreadTest()
417 memset(memory1, 0x23, 2*pagesize); in RunCmpBufferOverreadTest()
425 memset(memory2, 0x23, 2*pagesize); in RunCmpBufferOverreadTest()
Dsys_socket_test.cpp46 memset(&addr, 0, sizeof(addr)); in ConnectFn()
70 memset(&addr, 0, sizeof(addr)); in RunTest()
145 memset(msgs, 0, sizeof(struct mmsghdr)*NUM_RECV_MSGS); in TestRecvMMsg()
159 memset(&ts, 0, sizeof(ts)); in TestRecvMMsg()
190 memset(msgs, 0, sizeof(struct mmsghdr)*NUM_SEND_MSGS); in SendMMsg()
Dsys_timex_test.cpp25 memset(&t, 0, sizeof(t)); in TEST()
38 memset(&t, 0, sizeof(t)); in TEST()
Dresolv_test.cpp48 memset(buf, 'x', sizeof(buf)); in TEST()
57 memset(buf, 'x', sizeof(buf)); in TEST()
Dnetinet_ether_test.cpp36 memset(&addr, 0, sizeof(addr)); in TEST()
47 memset(buf, 0, sizeof(buf)); in TEST()
Dfortify_test.cpp61 memset(&myfoo, 0, sizeof(myfoo)); in TEST_F()
74 memset(&myfoo, 0, sizeof(myfoo)); in TEST_F()
508 ASSERT_FORTIFY(memset(buf, 0, n)); in TEST_F()
577 memset(&set, 0, sizeof(set)); in TEST_F()
675 memset(buf, 'A', sizeof(buf)); in TEST()
694 memset(buf, 'A', sizeof(buf)); in TEST()
713 memset(buf, 'A', sizeof(buf)); in TEST()
731 memset(buf, 'A', sizeof(buf)); in TEST()
749 memset(buf, 'A', sizeof(buf)); in TEST()
768 memset(buf, 'A', sizeof(buf)); in TEST()
[all …]
Dstdio_test.cpp83 memset(line, 0xff, sizeof(line)); in AssertFileIs()
1047 memset(&s, 'x', sizeof(s)); in TEST()
1053 memset(&s, 'x', sizeof(s)); in TEST()
1262 memset(buf, 0, sizeof(buf)); in TEST()
1263 memset(wbuf, 0, sizeof(wbuf)); in TEST()
1291 memset(buf, 0, sizeof(buf)); in TEST()
1294 memset(buf, 0, sizeof(buf)); in TEST()
1300 memset(buf, 0, sizeof(buf)); in TEST()
1304 memset(buf, 0, sizeof(buf)); in TEST()
1309 memset(buf, 0, sizeof(buf)); in TEST()
[all …]
Dsys_msg_test.cpp49 memset(&ds, 0, sizeof(ds)); in TEST()
67 memset(&msg, 0, sizeof(msg)); in TEST()
/bionic/libc/arch-arm/bionic/
D__aeabi.c117 memset(dest, c, n); in __aeabi_memset8_impl()
121 memset(dest, c, n); in __aeabi_memset4_impl()
125 memset(dest, c, n); in __aeabi_memset_impl()
129 memset(dest, c, n); in __aeabi_memset8_impl2()
133 memset(dest, c, n); in __aeabi_memset4_impl2()
137 memset(dest, c, n); in __aeabi_memset_impl2()
/bionic/libc/malloc_debug/tests/
Dmalloc_debug_unit_tests.cpp193 memset(pointer, 0xff, alloc_size); in VerifyAllocCalls()
204 memset(pointer, 0xff, debug_malloc_usable_size(pointer)); in VerifyAllocCalls()
302 memset(pointer, 0, usable_size); in TEST_F()
319 memset(pointer, 0, usable_size); in TEST_F()
339 memset(pointer, 0, usable_size); in TEST_F()
402 memset(buffer.data(), 0xaa, buffer.size()); in TEST_F()
408 memset(pointer, 0xff, 100); in TEST_F()
422 memset(pointer, 0xff, 100); in TEST_F()
439 memset(pointer, 0xff, 100); in TEST_F()
443 memset(pointer, 0xff, 200); in TEST_F()
[all …]
Dmalloc_debug_system_tests.cpp246 memset(ptr, 0, 1152); in AlignedAlloc()
261 memset(ptr, 1, 1123); in Calloc()
276 memset(ptr, 0, 1123); in Malloc()
291 memset(ptr, 0, 1123); in Memalign()
307 memset(ptr, 0, 1123); in PosixMemalign()
322 memset(ptr, 0, 1123); in Reallocarray()
337 memset(ptr, 0, 1123); in Realloc()
355 memset(ptr, 0, 1123); in Pvalloc()
372 memset(ptr, 0, 1123); in Valloc()
511 memset(ptr, 0, 1000); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/crypt/
Darc4random.c101 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_stir()
122 memset(rsx->rs_buf, 0, sizeof(rsx->rs_buf)); in _rs_rekey()
137 memset(rsx->rs_buf, 0, KEYSZ + IVSZ); in _rs_rekey()
155 memset(keystream, 0, m); in _rs_random_buf()
175 memset(keystream, 0, sizeof(*val)); in _rs_random_u32()
/bionic/linker/
Dlinked_list_test.cpp169 memset(buf, 0, sizeof(buf)); in TEST()
179 memset(buf, 0, sizeof(buf)); in TEST()
192 memset(buf, 0, sizeof(buf)); in TEST()
200 memset(buf, 0, sizeof(buf)); in TEST()
/bionic/libc/upstream-openbsd/lib/libc/stdlib/
Drecallocarray.c61 memset((char *)ptr + newsize, 0, d); in recallocarray()
72 memset((char *)newptr + oldsize, 0, newsize - oldsize); in recallocarray()
/bionic/libc/kernel/uapi/linux/netfilter/
Dxt_sctp.h51 #define SCTP_CHUNKMAP_RESET(chunkmap) memset((chunkmap), 0, sizeof(chunkmap))
52 #define SCTP_CHUNKMAP_SET_ALL(chunkmap) memset((chunkmap), ~0U, sizeof(chunkmap))
/bionic/libc/kernel/uapi/asm-x86/asm/
Dstat.h68 #define INIT_STRUCT_STAT64_PADDING(st) do { memset(& st.__pad0, 0, sizeof(st.__pad0)); memset(& st.…
/bionic/libc/include/android/
Dlegacy_signal_inlines.h102 memset(set, 0, sizeof(sigset_t)); in sigemptyset()
111 memset(set, ~0, sizeof(sigset_t)); in sigfillset()
/bionic/libc/malloc_debug/
DGuardData.cpp46 memset(cmp_mem_.data(), init_value, cmp_mem_.size()); in GuardData()
76 memset(cmp_mem_.data(), config.front_guard_value(), cmp_mem_.size()); in FrontGuardData()

123456789