/bionic/libc/tools/ |
D | genversion-scripts.py | 7 import os.path 14 bionic_libc_root = os.path.join(os.environ["ANDROID_BUILD_TOP"], "bionic/libc") 15 bionic_libm_root = os.path.join(os.environ["ANDROID_BUILD_TOP"], "bionic/libm") 16 bionic_libdl_root = os.path.join(os.environ["ANDROID_BUILD_TOP"], "bionic/libdl") 17 libc_script = os.path.join(bionic_libc_root, "libc.map.txt") 18 libm_script = os.path.join(bionic_libm_root, "libm.map.txt") 19 libdl_script = os.path.join(bionic_libdl_root, "libdl.map.txt") 20 libstdcxx_script = os.path.join(bionic_libc_root, "libstdc++.map.txt") 22 script_name = os.path.basename(sys.argv[0]) 31 bionic_libc_root = os.path.join(os.environ["ANDROID_BUILD_TOP"], "bionic/libc") [all …]
|
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.environ["ANDROID_BUILD_TOP"], "bionic/libc") 36 path = os.path.abspath(path) 37 if not os.path.exists(path): 38 parent = os.path.dirname(path) 41 os.mkdir(path) 45 full_path = os.path.join(bionic_temp, relpath) 46 dir = os.path.dirname(full_path) 580 for line in open(os.path.join(bionic_libc_root, unistd_h)): 620 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 | genseccomp.py | 3 import os 216 os.chdir(os.path.join(os.environ["ANDROID_BUILD_TOP"], "bionic/libc")) 228 if os.path.isfile(output_path):
|
D | generate-NOTICE.py | 8 import os 110 for directory, sub_directories, filenames in os.walk(arg): 116 path = os.path.join(directory, filename)
|
D | genserv.py | 4 import sys, os, string, re
|
/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): 147 """ % os.path.basename(sys.argv[0]) 175 dst_file = os.path.join(dst_dir, path) 176 src_file = os.path.join(src_dir, path) 187 dst_file = os.path.join(dst_dir, path) 188 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 11 top = os.getenv('ANDROID_BUILD_TOP') 16 site.addsitedir(os.path.join(top, 'external/clang/bindings/python')) 30 clang.cindex.Config.set_library_path(os.path.join(top, 'prebuilts/sdk/tools/linux/lib64'))
|
/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 | 84 void DumpTo(std::ostream& os) const { in DumpTo() 85 os << previous_size_; in DumpTo() 99 std::ostream& operator<<(std::ostream& os, const LeakChecker& lc) { in operator <<() argument 100 lc.DumpTo(os); in operator <<() 101 return os; in operator <<()
|
D | complex_test.cpp | 45 std::ostream& operator<<(std::ostream& os, const double _Complex c) { in operator <<() argument 46 os << "(" << creal(c) << "," << cimag(c) << "i)"; in operator <<() 47 return os; in operator <<() 49 std::ostream& operator<<(std::ostream& os, const float _Complex c) { in operator <<() argument 50 os << "(" << crealf(c) << "," << cimagf(c) << "i)"; in operator <<() 51 return os; in operator <<() 53 std::ostream& operator<<(std::ostream& os, const long double _Complex c) { in operator <<() argument 54 os << "(" << creall(c) << "," << cimagl(c) << "i)"; in operator <<() 55 return os; in operator <<()
|
/bionic/libc/bionic/ |
D | libc_logging.cpp | 413 BufferOutputStream os(buffer, buffer_size); in __libc_format_buffer() local 416 out_vformat(os, format, args); in __libc_format_buffer() 418 return os.total; in __libc_format_buffer() 423 BufferOutputStream os(buffer, buffer_size); in __libc_format_buffer_va_list() local 424 out_vformat(os, format, args); in __libc_format_buffer_va_list() 425 return os.total; in __libc_format_buffer_va_list() 429 FdOutputStream os(fd); in __libc_format_fd() local 432 out_vformat(os, format, args); in __libc_format_fd() 434 return os.total; in __libc_format_fd() 579 BufferOutputStream os(buffer, sizeof(buffer)); in __libc_format_log_va_list() local [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()
|