/bionic/tests/ |
D | uchar_test.cpp | 75 char out[MB_LEN_MAX]; in TEST() local 81 EXPECT_EQ(static_cast<size_t>(-1), c32rtomb(out, 0x00a2, &ps)); in TEST() 96 EXPECT_EQ(1U, c32rtomb(out, L'\0', &ps)); in TEST() 176 char16_t out; in TEST() local 178 out = L'x'; in TEST() 179 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "hello", 0, nullptr)); in TEST() 180 EXPECT_EQ(L'x', out); in TEST() 182 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "hello", 0, nullptr)); in TEST() 183 EXPECT_EQ(static_cast<size_t>(-2), mbrtoc16(&out, "", 0, nullptr)); in TEST() 184 EXPECT_EQ(1U, mbrtoc16(&out, "hello", 1, nullptr)); in TEST() [all …]
|
D | iconv_test.cpp | 65 char* out = buf; in TEST() local 68 EXPECT_EQ(0U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST() 91 char* out = buf; in TEST() local 97 EXPECT_EQ(2U, iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST() 120 char* out = buf; in TEST() local 126 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST() 148 char* out = buf; in TEST() local 153 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST() 174 char* out = buf; in TEST() local 179 EXPECT_EQ(static_cast<size_t>(-1), iconv(c, &in, &in_bytes, &out, &out_bytes)); in TEST() [all …]
|
D | wchar_test.cpp | 132 char out[MB_LEN_MAX]; in TEST() local 138 EXPECT_EQ(static_cast<size_t>(-1), wcrtomb(out, 0x00a2, &ps)); in TEST() 150 EXPECT_EQ(1U, wcrtomb(out, L'\0', &ps)); in TEST() 293 wchar_t out[8]; in TEST() local 320 out[0] = 'x'; in TEST() 321 EXPECT_EQ(-1, mbtowc(out, "hello", 0)); in TEST() 322 EXPECT_EQ('x', out[0]); in TEST() 324 EXPECT_EQ(-1, mbtowc(out, "hello", 0)); in TEST() 325 EXPECT_EQ(expected_result_for_zero_length_empty_string, mbtowc(out, "", 0)); in TEST() 326 EXPECT_EQ(1, mbtowc(out, "hello", 1)); in TEST() [all …]
|
D | libgen_basename_test.cpp | 52 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()
|
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/benchmarks/linker_relocation/regen/ |
D | gen_bench.py | 185 with open(out_filename, 'w') as out: 186 out.write(f'// AUTO-GENERATED BY {os.path.basename(__file__)} -- do not edit manually\n') 187 out.write(f'#include "{g_benchmark_name}_asm.h"\n') 188 out.write('.data\n') 189 out.write('.p2align 4\n') 192 out.write('.text\n' 'MAIN\n') 200 out.write('.text\n' 206 out.write('.data\n' 213 out.write('.text\n') 217 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/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/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_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_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_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/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/libc/bionic/ |
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() 302 int getifaddrs(ifaddrs** out) { in getifaddrs() argument 304 *out = nullptr; in getifaddrs() 311 getlink_success = nc.SendRequest(RTM_GETLINK) && nc.ReadResponses(__getifaddrs_callback, out); in getifaddrs() 314 nc.SendRequest(RTM_GETADDR) && nc.ReadResponses(__getifaddrs_callback, out); in getifaddrs() 317 freeifaddrs(*out); in getifaddrs() 319 *out = nullptr; in getifaddrs() [all …]
|
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 | 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 | 86 BsdSigSet in{.mask = mask}, out; in sigblock() local 87 if (sigprocmask64(SIG_BLOCK, &in.set, &out.set) == -1) return -1; in sigblock() 88 return out.mask; in sigblock() 93 BsdSigSet in{.mask = mask}, out; in sigsetmask() local 94 if (sigprocmask64(SIG_SETMASK, &in.set, &out.set) == -1) return -1; in sigsetmask() 95 return out.mask; in sigsetmask()
|
/bionic/libc/kernel/uapi/linux/ |
D | coda.h | 217 struct coda_out_hdr out; member 225 struct coda_out_hdr out; member 233 struct coda_out_hdr out; member 262 struct coda_out_hdr out; member 270 struct coda_out_hdr out; member 304 struct coda_out_hdr out; member 313 struct coda_out_hdr out; member 323 struct coda_out_hdr out; member 342 struct coda_out_hdr out; member 352 struct coda_out_hdr out; member [all …]
|
D | vboxguest.h | 39 } out; member 53 } out; member 100 } out; member 138 } out; member 149 } out; member
|
/bionic/libdl/ |
D | Android.bp | 128 // Opt out of native_coverage when opting out of system_shared_libs 212 // Opt out of native_coverage when opting out of system_shared_libs 242 out: ["libdl.arm.map.txt"], 245 cmd: "$(location generate-version-script) arm $(in) $(out)", 250 out: ["libdl.arm64.map.txt"], 253 cmd: "$(location generate-version-script) arm64 $(in) $(out)", 258 out: ["libdl.riscv64.map.txt"], 261 cmd: "$(location generate-version-script) riscv64 $(in) $(out)", 266 out: ["libdl.x86.map.txt"], 269 cmd: "$(location generate-version-script) x86 $(in) $(out)", [all …]
|
/bionic/libc/kernel/tools/ |
D | clean_header.py | 118 out = StringOutput() 119 out.write(textwrap.dedent("""\ 127 blocks.write(out) 128 return out.get()
|
/bionic/libc/kernel/uapi/drm/ |
D | amdgpu_drm.h | 80 struct drm_amdgpu_gem_create_out out; member 102 struct drm_amdgpu_bo_list_out out; member 155 union drm_amdgpu_ctx_out out; member 168 struct drm_amdgpu_vm_out out; member 242 struct drm_amdgpu_gem_mmap_out out; member 255 struct drm_amdgpu_gem_wait_idle_out out; member 270 struct drm_amdgpu_wait_cs_out out; member 291 struct drm_amdgpu_wait_fences_out out; member 365 struct drm_amdgpu_cs_out out; member 413 } out; member
|
/bionic/libc/ |
D | Android.bp | 1244 out: ["generated_android_ids.h"], 1247 cmd: "$(location fs_config_generator) aidarray $(in) > $(out)", 1256 out: ["syscalls-arm.S"], 1259 cmd: "$(location gensyscalls) arm $(in) > $(out)", 1264 out: ["syscalls-arm64.S"], 1267 cmd: "$(location gensyscalls) arm64 $(in) > $(out)", 1272 out: ["syscalls-riscv64.S"], 1275 cmd: "$(location gensyscalls) riscv64 $(in) > $(out)", 1280 out: ["syscalls-x86.S"], 1283 cmd: "$(location gensyscalls) x86 $(in) > $(out)", [all …]
|