/bionic/tests/ |
D | uchar_test.cpp | 33 char out[MB_LEN_MAX]; in TEST() local 39 EXPECT_EQ(static_cast<size_t>(-1), c32rtomb(out, 0x00a2, &ps)); in TEST() 51 EXPECT_EQ(1U, c32rtomb(out, L'\0', &ps)); in TEST() 119 char16_t out; in TEST() local 121 out = L'x'; in TEST() 122 ASSERT_EQ(0U, mbrtoc16(&out, "hello", 0, nullptr)); in TEST() 123 ASSERT_EQ(L'x', out); in TEST() 125 ASSERT_EQ(0U, mbrtoc16(&out, "hello", 0, nullptr)); in TEST() 126 ASSERT_EQ(0U, mbrtoc16(&out, "", 0, nullptr)); in TEST() 127 ASSERT_EQ(1U, mbrtoc16(&out, "hello", 1, nullptr)); in TEST() [all …]
|
D | iconv_test.cpp | 63 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 …]
|
D | wchar_test.cpp | 97 char out[MB_LEN_MAX]; in TEST() local 103 EXPECT_EQ(static_cast<size_t>(-1), wcrtomb(out, 0x00a2, &ps)); in TEST() 115 EXPECT_EQ(1U, wcrtomb(out, L'\0', &ps)); in TEST() 255 wchar_t out[8]; in TEST() local 257 out[0] = 'x'; in TEST() 258 ASSERT_EQ(0, mbtowc(out, "hello", 0)); in TEST() 259 ASSERT_EQ('x', out[0]); in TEST() 261 ASSERT_EQ(0, mbtowc(out, "hello", 0)); in TEST() 262 ASSERT_EQ(0, mbtowc(out, "", 0)); in TEST() 263 ASSERT_EQ(1, mbtowc(out, "hello", 1)); in TEST() [all …]
|
D | libgen_basename_test.cpp | 46 const char* out = gnu_basename(in); in __TestGnuBasename() local 47 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; in __TestGnuBasename() 54 const char* out = posix_basename(&writable_in[0]); in __TestPosixBasename() local 55 ASSERT_STREQ(expected_out, out) << "(" << line << "): " << in << std::endl; in __TestPosixBasename()
|
D | libgen_test.cpp | 25 const char* out = dirname(&writable_in[0]); in TestDirname() local 26 ASSERT_STREQ(expected_out, out) << in; in TestDirname()
|
/bionic/tools/versioner/tests/preprocessor_extern_cpp/ |
D | run.sh | 11 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/ |
D | run.sh | 11 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/slow_preprocessor_idempotence/ |
D | run.sh | 1 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/benchmarks/linker_relocation/regen/ |
D | gen_bench.py | 181 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 …]
|
D | dump_relocs.py | 62 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/ |
D | DeclarationDatabase.h | 138 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/preprocessor_no_guard/ |
D | run.sh | 1 rm -rf out 3 versioner headers -i -o out 4 diff -q -w -B out expected
|
/bionic/tools/versioner/tests/preprocessor_idempotence/ |
D | run.sh | 1 rm -rf out 3 versioner headers -i -o out 4 diff -q -w -B out expected
|
/bionic/tools/versioner/tests/preprocessor_merging/ |
D | run.sh | 1 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/ |
D | run.sh | 3 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/ |
D | net_if.cpp | 127 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()
|
D | ifaddrs.cpp | 163 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() 315 getlink_success = nc.SendRequest(RTM_GETLINK) && nc.ReadResponses(__getifaddrs_callback, out); in getifaddrs() 318 nc.SendRequest(RTM_GETADDR) && nc.ReadResponses(__getifaddrs_callback, out); in getifaddrs() 321 freeifaddrs(*out); in getifaddrs() 323 *out = nullptr; in getifaddrs() [all …]
|
D | clock_nanosleep.cpp | 35 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()
|
D | signal.cpp | 81 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/ |
D | coda.h | 229 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 …]
|
D | vboxguest.h | 51 } out; member 65 } out; member 112 } out; member 150 } out; member 161 } out; member
|
/bionic/libdl/ |
D | Android.bp | 121 // Opt out of native_coverage when opting out of system_shared_libs 208 // Opt out of native_coverage when opting out of system_shared_libs 242 out: ["libdl.arm.map"], 245 cmd: "$(location :bionic-generate-version-script) arm $(in) $(out)", 250 out: ["libdl.arm64.map"], 253 cmd: "$(location :bionic-generate-version-script) arm64 $(in) $(out)", 258 out: ["libdl.x86.map"], 261 cmd: "$(location :bionic-generate-version-script) x86 $(in) $(out)", 266 out: ["libdl.x86_64.map"], 269 cmd: "$(location :bionic-generate-version-script) x86_64 $(in) $(out)",
|
/bionic/libc/kernel/tools/ |
D | clean_header.py | 121 out = StringOutput() 122 out.write(kernel_disclaimer) 123 blocks.write(out) 124 return out.get()
|
/bionic/libc/kernel/uapi/drm/ |
D | amdgpu_drm.h | 87 struct drm_amdgpu_gem_create_out out; member 109 struct drm_amdgpu_bo_list_out out; member 149 union drm_amdgpu_ctx_out out; member 162 struct drm_amdgpu_vm_out out; member 236 struct drm_amdgpu_gem_mmap_out out; member 249 struct drm_amdgpu_gem_wait_idle_out out; member 264 struct drm_amdgpu_wait_cs_out out; member 285 struct drm_amdgpu_wait_fences_out out; member 356 struct drm_amdgpu_cs_out out; member 404 } out; member
|
/bionic/tools/versioner/tests/ |
D | .gitignore | 1 out/
|