/build/tools/component_tools/ |
H A D | full_components_generator.py | 61 data = json.load(f) 62 ret["subsystem"] = data.get("subsystem") 63 for k, _ in data.get("parts").items(): 71 data = json.load(f) 72 ret["subsystem"] = data.get("component").get("subsystem") 73 ret.get("components").append(data.get("component").get("name")) 84 data = read_component_from_ohos_build(ohos_build) 85 if data.get("subsystem") == subsys: 86 ret = ret.union(set(data.get("components"))) 89 data [all...] |
H A D | generate_kconfig.py | 57 data = {} 59 data = json.load(f) 60 return data 71 data = read_json(config_path) 72 subsystems = data.get("subsystems") 74 for prop, _ in data.items():
|
/build/hb/exceptions/ |
H A D | ohos_exception.py | 31 with open(STATUS_FILE, "r") as data: 32 status_file = json.load(data) 38 with open(STATUS_FILE, "r") as data: 39 status_file = json.load(data) 45 with open(STATUS_FILE, "r") as data: 46 status_file = json.load(data)
|
/build/tools/ |
H A D | product_config_version_convert.py | 27 data = json.load(f) 28 name = data["product_name"] 29 company = data["product_company"] 30 device = data["product_device"] 60 data = json.load(f) 61 parts = data['parts'] 78 del data['parts'] 79 data.update({"version": "3.0"}) 80 data.update({"board": device}) 81 data [all...] |
/build/scripts/ |
H A D | merge_notice.py | 35 data = _file.readlines() 36 del data[0] 37 for line in data: 40 data = _file.readlines() 41 del data[0] 42 for line in data:
|
H A D | build_js_assets.py | 87 data = dict() 88 data['appID'] = config['app']['bundleName'] 90 data['versionName'] = config['app']['versionName'] 91 data['versionCode'] = config['app']['versionCode'] 92 data['pages'] = config['module']['pages'] 93 data['deviceType'] = config['module']['deviceTypes'] 95 data['appName'] = config['module']['abilities'][asset_index].get('label') 96 data['versionName'] = config['app']['version']['name'] 97 data['versionCode'] = config['app']['version']['code'] 98 data['deviceTyp [all...] |
H A D | asan_backup.py | 30 data = read_json_file(toolchain_info_file) 31 if data is None: 33 platform_toolchain = data.get('platform_toolchain')
|
/build/indep_configs/scripts/ |
H A D | utils.py | 22 data = {}
25 data = json.load(f)
30 return data
|
/build/lite/ |
H A D | utils.py | 27 def encode(data, encoding: str = 'utf-8'): 29 return data.encode(encoding) 30 return data 33 def decode(data, encoding: str = 'utf-8'): 35 return data.decode(encoding) 36 return data 44 # Read json file data 49 data = None 51 data = json.load(input_f) 52 return data [all...] |
/build/lite/testfwk/ |
H A D | gen_testfwk_info.py | 31 data = get_testfwk_info(component_info_file) 32 dict_product = json.dumps(data) 45 data = { 68 data[platform_name][SUBSYSTEM_INFOS][subsystem_name] = \ 71 data[platform_name][PART_INFOS][component_name] = \ 73 return data
|
/build/hb/util/ |
H A D | device_util.py | 64 data = config_file.read() 65 return re.search(kernel_pattern, data) and\ 66 re.search(version_pattern, data) 75 data = config_file.read() 76 kernel_list = re.findall(kernel_pattern, data) 77 version_list = re.findall(version_pattern, data) 99 data = config_file.read() 100 compiler_list = re.findall(compiler_pattern, data)
|
H A D | io_util.py | 37 data = json.load(input_f) 38 return data 50 data = None 52 data = input_f.read() 53 return data
|
H A D | component_util.py | 60 data = IoUtil.read_json_file(bundle_path) 61 return data['component']['name'] 69 data = IoUtil.read_json_file(bundle_path) 70 return data['component']['name'], os.path.dirname(bundle_path) 137 data = IoUtil.read_json_file(bundle_json) 138 bundles_path = process_bundle_path(bundle_json, bundles_path, data) 143 def process_bundle_path(bundle_json, bundles_path, data): 144 if data.get("component") and data.get("component").get("name"): 145 bundles_path[data["componen [all...] |
H A D | log_util.py | 94 data = log_file.read() 108 match = pattern.search(data) 111 ratio = len(match.group()) / len(data) 146 data = log_file.read() 148 failed_log = failed_pattern.findall(data) 166 data = log_file.read() 170 failed_log = failed_pattern.findall(data)
|
/build/ohos/sa_profile/sa_info_process/ |
H A D | merge_sa_info.py | 67 data = json.load(json_files) 70 if 'process' not in data or data['process'] == '': 72 process_name = data['process'] 81 if 'systemability' not in data or data['systemability'] == '': 83 sys_count = len(data['systemability']) 86 sys_value = data['systemability']
|
/build/tools/module_dependence/ |
H A D | module_deps_tree.py | 30 data = None 33 data = json.load(input_f) 37 return data 41 def __init__(self, data, inner_kits_adapter): 42 self.data = data 69 if node_name not in self.data: 76 if node_name not in self.data: 87 module_deps = self.data.get(node_name)
|
H A D | file_utils.py | 25 data = None 28 data = json.load(input_f) 32 return data
|
/build/ohos/packages/ |
H A D | gen_required_modules_list.py | 57 data = read_json_file(input_file) 58 if data is None: 60 return data 64 data = _read_file_content(input_file) 66 for info in data:
|
/build/templates/common/ |
H A D | get_subsystem_name.py | 38 data = file_utils.read_json_file(part_subsystem_info_file) 39 if data is None: 43 subsystem_name = data.get(args.part_name)
|
H A D | check_part_subsystem_name.py | 37 data = read_json_file(part_subsystem_info_file) 38 if data is None: 43 subsystems_name = data.get(args.part_name)
|
/build/scripts/util/ |
H A D | file_utils.py | 33 # Read json file data 39 data = None 42 data = json.load(input_f) 49 return data 58 data = [] 62 data.append(line.rstrip('\n')) 66 return data 69 # Write json file data 99 # Write file data
|
/build/templates/metadata/ |
H A D | gen_module_info.py | 107 data = { 117 data['notice'] = notice 119 data['part_name'] = args.part_name 121 data['subsystem_name'] = args.subsystem_name 123 data['shlib_type'] = args.shlib_type 125 data['innerapi_tags'] = args.innerapi_tags 127 data['version_script'] = args.version_script 129 data['alternative_source'] = os.path.join(source_dir, 132 data['symlink_ext'] = args.symlink_ext 134 data['symlink_pat [all...] |
/build/ohos/sdk/ |
H A D | parse_sdk_description.py | 175 data = read_json_file(options.sdk_description_file) 176 if data is None: 185 for d in data: 248 data = parse_description_file(options) 251 data.get('sdk_targets'), data.get('build_only_targets'), 253 write_json_file(options.sdk_install_info_file, data.get('install_infos')) 255 f.write('\n'.join(data.get('sdk_types')))
|
/build/test/example/ |
H A D | test_gn_template.py | 120 for row, data in enumerate(out_res): 121 log_info("【{}】:{}".format(row, data)) 129 for row, data in enumerate(out_res): 130 log_error("【{}】:{}".format(row, data)) 161 for row, data in enumerate(out_res): 162 log_info("【{}】:{}".format(row, data)) 170 for row, data in enumerate(out_res): 171 log_error("【{}】:{}".format(row, data)) 200 for row, data in enumerate(out_res): 201 log_info("【{}】:{}".format(row, data)) [all...] |
/build/rust/tests/test_cxx_rust/src/ |
H A D | client_blobstore.cpp | 33 std::string data; 55 contents.append(reinterpret_cast<const char *>(res_chunk.data()), res_chunk.size()); in put_buf() 76 get_metadata.size = blob->second.data.size(); in get_metadata()
|