/bionic/libc/kernel/tools/ |
D | update_all.py | 3 import sys, cpp, kernel, glob, os, re, getopt, clean_header, subprocess, shutil 24 """ % { "progname" : os.path.basename(sys.argv[0]) } 29 update_dir = os.path.join(get_kernel_dir(), update_rel_dir) 31 os.mkdir(update_dir, 0755) 33 src_dir = os.path.normpath(os.path.join(original_dir, src_rel_dir)) 35 mod_src_dir = os.path.join(modified_dir, src_rel_dir) 36 update_dir = os.path.join(get_kernel_dir(), update_rel_dir) 39 for root, _, files in os.walk(src_dir): 41 _, ext = os.path.splitext(file) 44 src_file = os.path.normpath(os.path.join(root, file)) [all …]
|
D | utils.py | 5 import os 11 sys.stderr.write(os.path.basename(sys.argv[0]) + ": error: ") 17 return os.path.join(get_android_root(), "external/kernel-headers") 21 return os.path.join(get_kernel_headers_dir(), "original") 25 return os.path.join(get_kernel_headers_dir(), "modified") 29 return os.path.join(get_android_root(), "bionic/libc/kernel") 33 if "ANDROID_BUILD_TOP" in os.environ: 36 cwd = os.getcwd() 37 root = os.environ["ANDROID_BUILD_TOP"] 40 return os.environ["ANDROID_BUILD_TOP"] [all …]
|
D | clean_header.py | 72 import sys, cpp, kernel, glob, os, re, getopt 87 if not os.path.exists(src_file): 91 if not os.path.isfile(src_file): 144 """ % os.path.basename(sys.argv[0]) 181 dst_file = os.path.join(dst_dir, path) 182 src_file = os.path.join(src_dir, path) 198 dst_file = os.path.join(dst_dir, path) 199 src_file = os.path.join(src_dir, path)
|
D | defaults.py | 5 import time, os, sys
|
D | kernel.py | 7 import sys, cpp, re, os.path, string, 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, 'external/clang/bindings/python')) 31 clang.cindex.Config.set_library_file(os.path.join(top, 'prebuilts/sdk/tools/linux/lib64/libclang_an…
|
/bionic/libc/tools/ |
D | symbols.py | 17 import os 58 out_dir = os.environ['ANDROID_PRODUCT_OUT'] 59 lib_dir = os.path.join(out_dir, 'obj') 63 static_lib_dir = os.path.join( 66 '{}_intermediates'.format(os.path.splitext(f)[0])) 68 os.path.join(static_lib_dir, f), 74 out_dir = os.environ['ANDROID_PRODUCT_OUT'] 75 lib_dir = os.path.join(out_dir, 'system/lib64') 76 if not os.path.isdir(lib_dir): 77 lib_dir = os.path.join(out_dir, 'system/lib') [all …]
|
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 | 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 | gensyscalls.py | 12 import os.path 29 bionic_libc_root = os.path.join(os.path.dirname(os.path.abspath(__file__)), 37 path = os.path.abspath(path) 38 if not os.path.exists(path): 39 parent = os.path.dirname(path) 42 os.mkdir(path) 46 full_path = os.path.join(bionic_temp, relpath) 47 dir = os.path.dirname(full_path) 596 for line in open(os.path.join(bionic_libc_root, unistd_h)): 636 logging.info("scanning " + os.path.join(bionic_libc_root, arch_dir)) [all …]
|
D | check-symbols.py | 4 import os 10 toolchain = os.environ['ANDROID_TOOLCHAIN'] 31 …path = '%s/development/ndk/platforms/android-%s/arch-%s/symbols/%s.so.%s.txt' % (os.environ['ANDRO… 45 so_file = '%s/system/%s/%s.so' % (os.environ['ANDROID_PRODUCT_OUT'], lib_dir, library)
|
D | generate-NOTICE.py | 8 import os 37 if os.path.splitext(path)[1] in uninteresting_extensions: 157 for directory, sub_directories, filenames in os.walk(arg): 163 path = os.path.join(directory, filename) 173 if os.path.isdir(arg):
|
D | genfunctosyscallnrs.py | 6 import os 54 output_path = os.path.join(args.out_dir, "func_to_syscall_nrs.h")
|
D | genseccomp.py | 6 import os 165 """).format(self_path=os.path.basename(__file__), architecture=architecture, 206 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 | 73 void DumpTo(std::ostream& os) const { in DumpTo() 74 os << previous_size_; in DumpTo() 102 std::ostream& operator<<(std::ostream& os, const LeakChecker& lc) { in operator <<() argument 103 lc.DumpTo(os); in operator <<() 104 return os; in operator <<()
|
D | complex_test.cpp | 47 inline void PrintTo(const double _Complex& c, std::ostream* os) { in PrintTo() argument 48 *os << "(" << creal(c) << "," << cimag(c) << "i)"; in PrintTo() 50 inline void PrintTo(const float _Complex& c, std::ostream* os) { in PrintTo() argument 51 *os << "(" << crealf(c) << "," << cimagf(c) << "i)"; in PrintTo() 53 inline void PrintTo(const long double _Complex& c, std::ostream* os) { in PrintTo() argument 54 *os << "(" << creall(c) << "," << cimagl(c) << "i)"; in PrintTo()
|
/bionic/libc/async_safe/ |
D | async_safe_log.cpp | 414 BufferOutputStream os(buffer, buffer_size); in async_safe_format_buffer_va_list() local 415 out_vformat(os, format, args); in async_safe_format_buffer_va_list() 416 return os.total; in async_safe_format_buffer_va_list() 428 FdOutputStream os(fd); in async_safe_format_fd_va_list() local 429 out_vformat(os, format, args); in async_safe_format_fd_va_list() 430 return os.total; in async_safe_format_fd_va_list() 526 BufferOutputStream os(buffer, sizeof(buffer)); in async_safe_format_log_va_list() local 527 out_vformat(os, format, args); in async_safe_format_log_va_list() 541 BufferOutputStream os(msg, sizeof(msg)); in async_safe_fatal_va_list() local 544 os.Send(prefix, strlen(prefix)); in async_safe_fatal_va_list() [all …]
|
/bionic/tools/bionicbb/ |
D | bionicbb.py | 19 import os 129 if os.environ.get('WERKZEUG_RUN_MAIN') == 'true':
|
D | presubmit.py | 20 import os.path 40 return 'CleanSpec.mk' in [os.path.basename(f) for f in files]
|
/bionic/tools/versioner/src/ |
D | Preprocessor.cpp | 129 std::ofstream os(path.c_str(), std::ios_base::out | std::ios_base::trunc); in writeFileLines() local 132 os << line << "\n"; in writeFileLines()
|