/bionic/libc/kernel/tools/ |
D | update_all.py | 3 import sys, cpp, kernel, glob, os, re, getopt, clean_header, shutil 24 """ % { "progname" : os.path.basename(sys.argv[0]) }) 29 update_dir = os.path.join(get_kernel_dir(), update_rel_dir) 30 for root, dirs, files in os.walk(update_dir, topdown=True): 35 os.remove(os.path.join(root, entry)) 37 shutil.rmtree(os.path.join(root, entry)) 39 src_dir = os.path.normpath(os.path.join(original_dir, src_rel_dir)) 41 mod_src_dir = os.path.join(modified_dir, src_rel_dir) 42 update_dir = os.path.join(get_kernel_dir(), update_rel_dir) 45 for root, _, files in os.walk(src_dir): [all …]
|
D | utils.py | 4 import os 10 sys.stderr.write(os.path.basename(sys.argv[0]) + ": error: ") 16 return os.path.join(get_android_root(), "external/kernel-headers") 20 return os.path.join(get_kernel_headers_dir(), "original") 24 return os.path.join(get_kernel_headers_dir(), "modified") 28 return os.path.join(get_android_root(), "bionic/libc/kernel") 32 if "ANDROID_BUILD_TOP" in os.environ: 35 cwd = os.getcwd() 36 root = os.environ["ANDROID_BUILD_TOP"] 39 return os.environ["ANDROID_BUILD_TOP"] [all …]
|
D | clean_header.py | 72 import sys, cpp, kernel, glob, os, re, getopt, textwrap 87 if not os.path.exists(src_file): 91 if not os.path.isfile(src_file): 149 """ % os.path.basename(sys.argv[0])) 186 dst_file = os.path.join(dst_dir, path) 187 src_file = os.path.join(src_dir, path) 203 dst_file = os.path.join(dst_dir, path) 204 src_file = os.path.join(src_dir, path)
|
D | kernel.py | 7 import sys, cpp, re, os.path, time 89 hdr_dir = os.path.realpath(os.path.dirname(from_file)) 90 hdr_dir = hdr_dir.replace("%s/" % os.path.realpath(kernel_root), 108 if not os.path.exists(path):
|
D | cpp.py | 6 import os 12 top = os.getenv('ANDROID_BUILD_TOP') 17 site.addsitedir(os.path.join(top, 'prebuilts/clang/host/linux-x86/clang-stable/lib/python3/site-pac… 31 clang.cindex.Config.set_library_file(os.path.join(top, 'prebuilts/clang/host/linux-x86/clang-stable…
|
/bionic/libc/tools/ |
D | symbols.py | 17 import os 59 out_dir = os.environ['ANDROID_PRODUCT_OUT'] 60 lib_dir = os.path.join(out_dir, 'obj') 64 static_lib_dir = os.path.join( 67 '{}_intermediates'.format(os.path.splitext(f)[0])) 69 os.path.join(static_lib_dir, f), 75 out_dir = os.environ['ANDROID_PRODUCT_OUT'] 76 lib_dir = os.path.join(out_dir, 'system/lib64') 77 if not os.path.isdir(lib_dir): 78 lib_dir = os.path.join(out_dir, 'system/lib') [all …]
|
D | check-symbols-glibc.py | 19 import os 30 toolchain = os.environ['ANDROID_TOOLCHAIN'] 43 (os.getenv('ANDROID_BUILD_TOP'), arch)) 66 this_dir = os.path.dirname(os.path.realpath(__file__)) 67 posix = symbols.GetFromTxt(os.path.join(this_dir, 'posix-2013.txt'))
|
D | ndk_missing_symbols.py | 17 import os 25 with open(os.devnull, 'w') as devnull: 36 device = (symbols.GetFromElf(os.path.join(tmp_dir, 'libc.so')) | 37 symbols.GetFromElf(os.path.join(tmp_dir, 'libm.so')))
|
D | generate_notice.py | 5 import os 165 for directory, sub_directories, filenames in os.walk(arg): 171 path = os.path.join(directory, filename) 182 if os.path.isdir(arg):
|
D | genfunctosyscallnrs.py | 5 import os 63 output_path = os.path.join(args.out_dir, "func_to_syscall_nrs.h")
|
D | genseccomp.py | 6 import os 223 """).format(self_path=os.path.basename(__file__), architecture=architecture, 269 output_path = os.path.join(out_dir,
|
D | genserv.py | 4 import sys, os, string, re
|
/bionic/tools/versioner/ |
D | run_tests.py | 3 import os 22 os.chdir(path) 27 if os.path.exists("expected_fail"): 63 root_dir = os.path.dirname(os.path.realpath(__file__)) 64 test_dir = os.path.join(root_dir, "tests") 65 tests = os.listdir(test_dir) 79 path = os.path.join(test_dir, test) 80 if not os.path.isdir(path):
|
/bionic/tests/ |
D | leak_test.cpp | 77 void DumpTo(std::ostream& os) const { in DumpTo() 78 os << previous_size_; in DumpTo() 106 std::ostream& operator<<(std::ostream& os, const LeakChecker& lc) { in operator <<() argument 107 lc.DumpTo(os); in operator <<() 108 return os; in operator <<()
|
D | utils.cpp | 76 void PrintTo(const Errno& e, std::ostream* os) { in PrintTo() argument 84 *os << errno_name; in PrintTo() 88 *os << strerror(e.errno_); in PrintTo()
|
D | complex_test.cpp | 42 inline void PrintTo(const double _Complex& c, std::ostream* os) { in PrintTo() argument 43 *os << "(" << creal(c) << "," << cimag(c) << "i)"; in PrintTo() 45 inline void PrintTo(const float _Complex& c, std::ostream* os) { in PrintTo() argument 46 *os << "(" << crealf(c) << "," << cimagf(c) << "i)"; in PrintTo() 48 inline void PrintTo(const long double _Complex& c, std::ostream* os) { in PrintTo() argument 49 *os << "(" << creall(c) << "," << cimagl(c) << "i)"; in PrintTo()
|
D | utils.h | 327 void PrintTo(const Errno& e, std::ostream* os);
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 456 BufferOutputStream os(buffer, buffer_size); in async_safe_format_buffer_va_list() local 457 out_vformat(os, format, args); in async_safe_format_buffer_va_list() 458 return os.total; in async_safe_format_buffer_va_list() 470 FdOutputStream os(fd); in async_safe_format_fd_va_list() local 471 out_vformat(os, format, args); in async_safe_format_fd_va_list() 472 return os.total; in async_safe_format_fd_va_list() 568 BufferOutputStream os(buffer, sizeof(buffer)); in async_safe_format_log_va_list() local 569 out_vformat(os, format, args); in async_safe_format_log_va_list() 583 BufferOutputStream os(msg, sizeof(msg)); in async_safe_fatal_va_list() local 586 os.Send(prefix, strlen(prefix)); in async_safe_fatal_va_list() [all …]
|
/bionic/benchmarks/linker_relocation/regen/ |
D | gen_bench.py | 35 import os 296 include_path = os.path.relpath(os.path.dirname(__file__) + '/../include', out) 401 os.makedirs(str(out))
|
D | dump_relocs.py | 37 import os 76 result = os.path.basename(path)
|
/bionic/tools/versioner/src/ |
D | Preprocessor.cpp | 130 std::ofstream os(path.c_str(), std::ios_base::out | std::ios_base::trunc); in writeFileLines() local 133 os << line << "\n"; in writeFileLines()
|