Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 62) sorted by relevance

123

/bionic/tests/
Duchar_test.cpp33 char out[MB_LEN_MAX]; in TEST() local
40 EXPECT_EQ(static_cast<size_t>(-1), c32rtomb(out, 0x00a2, &ps)); in TEST()
52 EXPECT_EQ(1U, c32rtomb(out, L'\0', &ps)); in TEST()
116 char16_t out; in TEST() local
118 out = L'x'; in TEST()
119 ASSERT_EQ(0U, mbrtoc16(&out, "hello", 0, nullptr)); in TEST()
120 ASSERT_EQ(L'x', out); in TEST()
122 ASSERT_EQ(0U, mbrtoc16(&out, "hello", 0, nullptr)); in TEST()
123 ASSERT_EQ(0U, mbrtoc16(&out, "", 0, nullptr)); in TEST()
124 ASSERT_EQ(1U, mbrtoc16(&out, "hello", 1, nullptr)); in TEST()
[all …]
Diconv_test.cpp63 char* out = buf; in TEST() local
66 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
89 char* out = buf; in TEST() local
95 EXPECT_EQ(2U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
118 char* out = buf; in TEST() local
124 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
146 char* out = buf; in TEST() local
151 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
172 char* out = buf; in TEST() local
177 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST()
[all …]
Dwchar_test.cpp98 char out[MB_LEN_MAX]; in TEST() local
104 EXPECT_EQ(static_cast<size_t>(-1), wcrtomb(out, 0x00a2, &ps)); in TEST()
116 EXPECT_EQ(1U, wcrtomb(out, L'\0', &ps)); in TEST()
256 wchar_t out[8]; in TEST() local
258 out[0] = 'x'; in TEST()
259 ASSERT_EQ(0, mbtowc(out, "hello", 0)); in TEST()
260 ASSERT_EQ('x', out[0]); in TEST()
262 ASSERT_EQ(0, mbtowc(out, "hello", 0)); in TEST()
263 ASSERT_EQ(0, mbtowc(out, "", 0)); in TEST()
264 ASSERT_EQ(1, mbtowc(out, "hello", 1)); in TEST()
[all …]
Dlibgen_basename_test.cpp52 const char* out = gnu_basename(in); in __TestGnuBasename() local
53 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; in __TestGnuBasename()
61 const char* out = posix_basename(&writable_in[0]); in __TestPosixBasename() local
62 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; in __TestPosixBasename()
Dlibgen_test.cpp25 const char* out = dirname(&writable_in[0]); in TestDirname() local
26 ASSERT_STREQ(expected_out, out) << in; in TestDirname()
/bionic/tools/versioner/tests/preprocessor/
Drun.sh11 run_test headers out
12 run_test headers/ out
13 run_test headers out/
14 run_test headers/ out/
16 run_test `pwd`/headers out
17 run_test `pwd`/headers/ out
18 run_test `pwd`/headers out/
19 run_test `pwd`/headers/ out/
21 run_test headers `pwd`/out
22 run_test headers/ `pwd`/out
[all …]
/bionic/tools/versioner/tests/preprocessor_extern_cpp/
Drun.sh11 run_test headers out
12 run_test headers/ out
13 run_test headers out/
14 run_test headers/ out/
16 run_test `pwd`/headers out
17 run_test `pwd`/headers/ out
18 run_test `pwd`/headers out/
19 run_test `pwd`/headers/ out/
21 run_test headers `pwd`/out
22 run_test headers/ `pwd`/out
[all …]
/bionic/benchmarks/linker_relocation/regen/
Dgen_bench.py181 with open(out_filename, 'w') as out:
182 out.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit manually\n')
183 out.write(f'#include "{g_benchmark_name}_asm.h"\n')
184 out.write('.data\n')
185 out.write('.p2align 4\n')
188 out.write('.text\n' 'MAIN\n')
195 out.write('.text\n'
201 out.write('.data\n'
208 out.write('.text\n')
212 if r.is_weak: out.write(f'.weak {sym}\n')
[all …]
Ddump_relocs.py62 out = subprocess.run(cmdline, check=True, stdout=PIPE).stdout.decode()
63 g_readelf_cache[key] = out
64 return out.splitlines()
69 out = do_readelf_query(['-d', str(path)])
70 for line in out:
83 out = do_readelf_query(['-d', str(path)])
84 for line in out:
115 out = do_readelf_query(['--dyn-syms', str(path)])
116 for line in out:
154 out = do_readelf_query(['-r', str(path)])
[all …]
/bionic/tools/versioner/src/
DDeclarationDatabase.h138 void dump(const std::string& base_path = "", FILE* out = stdout, unsigned indent = 0) const {
140 fprintf(out, "%s", indent_str.c_str());
142 fprintf(out, "%s ", is_extern ? "extern" : "static");
143 fprintf(out, "%s ", is_definition ? "definition" : "declaration");
145 fprintf(out, "no_guard ");
148 fprintf(out, "fortify_inline ");
150 fprintf(out, "@ %s:%u:%u", StripPrefix(location.filename, base_path).str().c_str(),
156 fprintf(out, "\n%s ", indent_str.c_str());
158 fprintf(out, "invalid availability\n");
160 fprintf(out, "%s\n", to_string(avail).c_str());
[all …]
/bionic/tools/versioner/tests/slow_preprocessor_idempotence/
Drun.sh1 rm -rf out
3 mkdir out
4 versioner -o out/initial
5 versioner out/initial ../../dependencies -o out/second
6 diff -qrwB out/initial out/second
/bionic/tools/versioner/tests/preprocessor_no_guard/
Drun.sh1 rm -rf out
3 versioner headers -i -o out
4 diff -q -w -B out expected
/bionic/tools/versioner/tests/preprocessor_idempotence/
Drun.sh1 rm -rf out
3 versioner headers -i -o out
4 diff -q -w -B out expected
/bionic/tools/versioner/tests/preprocessor_merging/
Drun.sh1 rm -rf out
3 versioner headers -a 9 -a 10 -a 11 -i -o out
4 diff -q -w -B out expected
/bionic/tools/versioner/tests/preprocessor_file_offset_bits/
Drun.sh3 rm -rf out
4 versioner headers -a 9 -a 12 -a 13 -i -o out
5 diff -q -w -B out expected
/bionic/libc/bionic/
Difaddrs.cpp163 ifaddrs** out = reinterpret_cast<ifaddrs**>(context); in __getifaddrs_callback() local
169 ifaddrs_storage* new_addr = new ifaddrs_storage(out); in __getifaddrs_callback()
199 const ifaddrs_storage* known_addr = reinterpret_cast<const ifaddrs_storage*>(*out); in __getifaddrs_callback()
205 ifaddrs_storage* new_addr = new ifaddrs_storage(out); in __getifaddrs_callback()
303 int getifaddrs(ifaddrs** out) { in getifaddrs() argument
305 *out = nullptr; in getifaddrs()
312 getlink_success = nc.SendRequest(RTM_GETLINK) && nc.ReadResponses(__getifaddrs_callback, out); in getifaddrs()
315 nc.SendRequest(RTM_GETADDR) && nc.ReadResponses(__getifaddrs_callback, out); in getifaddrs()
318 freeifaddrs(*out); in getifaddrs()
320 *out = nullptr; in getifaddrs()
[all …]
Dnet_if.cpp127 struct if_nameindex* out = result; in if_nameindex() local
129 out->if_index = it->data.if_index; in if_nameindex()
130 out->if_name = it->data.if_name; in if_nameindex()
131 ++out; in if_nameindex()
133 out->if_index = 0; in if_nameindex()
134 out->if_name = nullptr; in if_nameindex()
Dclock_nanosleep.cpp35 int clock_nanosleep(clockid_t clock_id, int flags, const timespec* in, timespec* out) { in clock_nanosleep() argument
39 return (__clock_nanosleep(clock_id, flags, in, out) == 0) ? 0 : errno; in clock_nanosleep()
Dsignal.cpp81 SigSetConverter in, out; in sigblock() local
84 if (sigprocmask(SIG_BLOCK, &in.sigset, &out.sigset) == -1) return -1; in sigblock()
85 return out.bsd; in sigblock()
250 SigSetConverter in, out; in sigsetmask() local
253 if (sigprocmask(SIG_SETMASK, &in.sigset, &out.sigset) == -1) return -1; in sigsetmask()
254 return out.bsd; in sigsetmask()
/bionic/libc/kernel/uapi/linux/
Dcoda.h229 struct coda_out_hdr out; member
237 struct coda_out_hdr out; member
245 struct coda_out_hdr out; member
274 struct coda_out_hdr out; member
282 struct coda_out_hdr out; member
316 struct coda_out_hdr out; member
325 struct coda_out_hdr out; member
335 struct coda_out_hdr out; member
354 struct coda_out_hdr out; member
364 struct coda_out_hdr out; member
[all …]
Dvboxguest.h51 } out; member
65 } out; member
112 } out; member
150 } out; member
161 } out; member
/bionic/libdl/
DAndroid.bp125 // Opt out of native_coverage when opting out of system_shared_libs
213 // Opt out of native_coverage when opting out of system_shared_libs
247 out: ["libdl.arm.map.txt"],
250 cmd: "$(location generate-version-script) arm $(in) $(out)",
255 out: ["libdl.arm64.map.txt"],
258 cmd: "$(location generate-version-script) arm64 $(in) $(out)",
263 out: ["libdl.riscv64.map.txt"],
266 cmd: "$(location generate-version-script) riscv64 $(in) $(out)",
271 out: ["libdl.x86.map.txt"],
274 cmd: "$(location generate-version-script) x86 $(in) $(out)",
[all …]
/bionic/libc/kernel/tools/
Dclean_header.py118 out = StringOutput()
119 out.write(kernel_disclaimer)
120 blocks.write(out)
121 return out.get()
/bionic/libc/kernel/uapi/drm/
Damdgpu_drm.h90 struct drm_amdgpu_gem_create_out out; member
112 struct drm_amdgpu_bo_list_out out; member
164 union drm_amdgpu_ctx_out out; member
177 struct drm_amdgpu_vm_out out; member
251 struct drm_amdgpu_gem_mmap_out out; member
264 struct drm_amdgpu_gem_wait_idle_out out; member
279 struct drm_amdgpu_wait_cs_out out; member
300 struct drm_amdgpu_wait_fences_out out; member
372 struct drm_amdgpu_cs_out out; member
420 } out; member
/bionic/libc/
DAndroid.bp1037 out: ["generated_android_ids.h"],
1040 cmd: "$(location fs_config_generator.py) aidarray $(in) > $(out)",
1322 out: ["syscalls-arm.S"],
1325 cmd: "$(location gensyscalls) arm $(in) > $(out)",
1330 out: ["syscalls-arm64.S"],
1333 cmd: "$(location gensyscalls) arm64 $(in) > $(out)",
1338 out: ["syscalls-riscv64.S"],
1341 cmd: "$(location gensyscalls) riscv64 $(in) > $(out)",
1346 out: ["syscalls-x86.S"],
1349 cmd: "$(location gensyscalls) x86 $(in) > $(out)",
[all …]

123