/build/common/asan/ |
D | symbolize.sh | 73 …find "$@" -type f -name "$file" -exec sh -c 'test ${1##*/} = libclang_rt.asan.so -o ${1##*/} = lib… 126 f="$1" 127 echo -n "Resolving $f ... " 128 symbolize < "$f" > "${f%${f##*/}}resolved_${f##*/}" 134 for f in $(find "$dir" -type f -name asan.log.*); do 135 symbolize_file "$f" 140 for f in "${asan_logs[@]}"; do 141 if [ -d "$f" ]; then 142 symbolize_dir "$f" 144 symbolize_file "$f"
|
D | asan_helper.c | 70 char *f = NULL; in dlopen() local 71 asprintf(&f, "%.*s/asan%s", (int)(p - file), file, p); in dlopen() 72 if (f == NULL) { in dlopen() 76 void *ret = real_dlopen(f, mode); in dlopen() 77 free(f); in dlopen() 78 f = NULL; in dlopen()
|
/build/lite/make_rootfs/ |
D | rootfs_linux.config | 1 /bin/apphilogcat f 500 4 4 2 /bin/sh f 500 2 2 3 /bin/toybox f 555 0 0 4 /bin/foundation f 500 7 7
|
D | rootfs_liteos.config | 1 /bin/foundation f 500 7 7 2 /bin/apphilogcat f 500 4 4 3 /bin/hidumper f 500 4 4
|
/build/scripts/ |
D | copy_ex.py | 105 def copy_file(f, argument 111 if os.path.isdir(f): 112 copy_tree(f, 113 os.path.join(dest, os.path.basename(f)), 116 deps.extend(build_utils.get_all_files(f)) 118 if os.path.isfile(os.path.join(dest, os.path.basename(f))): 119 dest = os.path.join(dest, os.path.basename(f)) 121 deps.append(f) 124 if filecmp.cmp(dest, f, shallow=False): 131 shutil.copy(f, dest) [all …]
|
D | compile_app.py | 142 dest = os.path.join(cwd, f'{module_libs_dir}/libs', ohos_app_abi, lib_name) 157 f'module={options.test_module}@ohosTest', 'assembleHap'] 170 with open(os.path.join(cwd, 'local.properties'), 'w') as f: 172 f.write(f'{sdk_type}={sdk_dir}\n') 173 f.write(f'nodejs.dir={nodejs_dir}\n') 184 print(f"[1/1] Hvigor info: {line}") 186 print(f"[2/2] Hvigor warning: {line}") 188 with open(os.path.join(cwd, 'build', 'build.log'), 'w') as f: 189 f.write(f'{stdout}\n') 190 f.write(f'{stderr}\n') [all …]
|
D | find.py | 48 for f in fnmatch.filter(files, options.pattern): 52 os.path.relpath(os.path.join(root, f), 58 print(os.path.join(root, f))
|
D | ninja2trace.py | 47 with open(filename, mode='r') as f: 48 firstline = f.readline() 53 for _, line in enumerate(f.readlines()): 100 with gzip.open(dest_file_name, "wt") as f: 101 json.dump(tracelist, f)
|
/build/toolchain/mac/ |
D | get_tool_mtime.py | 17 for f in sys.argv[1:]: 18 variable = os.path.splitext(os.path.basename(f))[0] 19 print('%s = %d' % (variable, os.path.getmtime(f)))
|
/build/hb/util/ |
D | io_util.py | 34 raise OHOSException(f'{input_file} not found', '0008') 58 raise OHOSException(f'{input_file} not found', '0010') 67 raise OHOSException(f'{input_file} load failed, error line:' 68 f' {mark.line + 1}:{mark.column + 1}', '0011') 70 raise OHOSException(f'{input_file} load failed', '0011')
|
D | device_util.py | 43 raise OHOSException(f'cannot find {kernel_type}_{kernel_version} ' 44 f'in {board_path}', "0004") 79 raise OHOSException(f'kernel_type or kernel_version ' 80 f'not found in {config}', '0005') 89 raise OHOSException(f'invalid path: {path}', '0006') 103 f'board_toolchain_type is None in {config}', '0007')
|
D | log_util.py | 62 msg = msg.replace('error:', f'{Colors.ERROR}error{Colors.END}:') 63 return f'{Colors.ERROR}[OHOS {level.upper()}]{Colors.END} {msg}' 65 return f'[OHOS {level.upper()}] {msg}' 67 return f'{Colors.WARNING}[OHOS {level.upper()}]{Colors.END} {msg}'
|
/build/tools/component_tools/ |
D | full_components_generator.py | 59 with open(file, "rb") as f: 60 data = json.load(f) 69 with open(file, "rb") as f: 70 data = json.load(f) 96 with open(subsys_file, "rb") as f: 97 data = json.load(f) 143 with open(args.out, "w") as f: 144 f.write(json.dumps(ret, indent=2))
|
D | parse_kconf.py | 37 with open(path, "rb") as f: 38 data = json.load(f) 50 with open(path, "rb") as f: 51 data = json.load(f) 128 with open(kconf, "r") as f: 129 for line in f.readlines(): 164 with open(out, "w") as f: 165 f.write(json.dumps(result, indent=2))
|
D | generate_kconfig.py | 53 with open(file, "rb") as f: 54 data = json.load(f) 59 with open(outpath, "w") as f: 60 f.writelines(result)
|
/build/tools/ |
D | product_config_version_convert.py | 26 with open(products_path,'r+', encoding='utf-8') as f: 27 data = json.load(f) 58 with open(path, 'r+', encoding='utf-8') as f: 59 data = json.load(f) 91 f.seek(0) 92 f.write(json_data) 93 f.truncate()
|
/build/scripts/util/ |
D | build_utils.py | 79 files.extend((os.path.join(root, f) for f in matched_files)) 85 with open(path) as f: 86 return dict(l.rstrip().split('=', 1) for l in f) 161 delete=False) as f: 164 os.fchmod(f.fileno(), 0o664) 165 yield f 168 f.close() 170 and filecmp.cmp(f.name, path)): 171 shutil.move(f.name, path) 173 if os.path.exists(f.name): [all …]
|
/build/ohos/ndk/ |
D | archive_ndk.py | 48 for f in filenames: 49 if f not in filter_file_name: 50 files.extend([os.path.join(root, f)]) 52 for f in files: 53 compress = compress_fn(f) if compress_fn else None 55 zip_path = os.path.join(prefix, os.path.relpath(f, directory)) 57 zip_path = os.path.relpath(f, directory) 60 src_path=f,
|
D | generate_ndk_docs.py | 51 with open(doxygen_file.name, 'r') as f: 52 contents = f.read() 66 with open(doxygen_file.name, 'w') as f: 67 f.write(contents) 97 for f in filenames: 98 depfile_deps += ([os.path.join(root, f)])
|
D | generate_version_script.py | 49 with open(options.ndk_description_file, 'r') as f: 50 interfaces = json.load(f) 54 with open(options.output, 'w') as f: 55 f.write(MAP_FILE_TEMPLATE %
|
D | generate_ndk_stub_file.py | 47 with open(options.ndk_description_file, 'r') as f: 48 interfaces = json.load(f) 55 with open(options.output, 'w') as f: 56 f.write('\n'.join(contents))
|
/build/templates/common/ |
D | check_part_subsystem_name.py | 47 message = f"subsystem name or part name is incorrect, " \ 48 f"target is {args.target_path}, subsystem name is {args.subsystem_name}, " \ 49 f"part name is {args.part_name}" 51 print(f"[0/0] warning: {message}")
|
D | check_deps_handler.py | 33 _warning_info = f"{_tips_info} {args.part_name}." 36 _warning_info = f"{_tips_info} {part_deps_info.get('build_config_file')}." 42 print(f"[0/0] WARNING: {_warning_info}") 148 print(f"[0/0] WARNING:{message}") 170 print(f"[0/0] {message}")
|
/build/lite/ |
D | gen_module_notice_file.py | 130 with open(nf_src, 'rt') as f: 131 nf_dict["license_content"] = decode(f.read()) 132 with open(cp_src, 'rt') as f: 133 nf_dict["copyright"] = decode(f.read()) 135 with open(target_license_path, 'at') as f: 136 f.write("Software: {}\n\n".format(encode(nf_dict["software"]))) 137 f.write("Copyright notice: \n{}\n".format( 139 f.write("License: {}\n{}\n\n".format(
|
/build/ohos/packages/ |
D | system_gzip_package.py | 55 for f in files: 56 if os.path.exists(f): 59 if f in additional_files: 60 tar.add(f, arcname=os.path.basename(f)) 62 tar.add(f, arcname='system')
|