Home
last modified time | relevance | path

Searched refs:json (Results 1 - 25 of 72) sorted by relevance

123

/build/tools/module_dependence/
H A Dfile_utils.py17 import json namespace
28 data = json.load(input_f)
29 except json.decoder.JSONDecodeError:
40 json.dump(content, output_f, indent=2)
/build/hb/exceptions/
H A Dohos_exception.py19 import json namespace
32 status_file = json.load(data)
39 status_file = json.load(data)
46 status_file = json.load(data)
/build/tools/
H A Dproduct_config_version_convert.py19 import json namespace
27 data = json.load(f)
31 device_path = os.path.join(device_dir, f"{device}.json")
34 new_file_name = os.path.join(path, "config.json")
41 data_device_read = json.load(device_read)
44 data_products_read = json.load(products_read)
47 new_json = json.dumps(data_all, indent=4)
60 data = json.load(f)
91 json_data = json.dumps(dict_you_want, indent=2)
/build/test/script/
H A Dstart_ex.sh23 CONFIG_PATH=$root_path/build/test/example/build_example.json
24 SRC_BUNDLE_PATH=$root_path/build/test/example/test_build.json
25 DEST_BUNDLE_PATH=$root_path/build/common/bundle.json
/build/hb/util/loader/
H A Dmerge_platform_build.py20 import json namespace
43 required = json.load(required_f)
45 optional = json.load(optional_f)
47 stub = json.load(stub_f)
/build/lite/testfwk/
H A Dgen_testfwk_info.py19 import json namespace
32 dict_product = json.dumps(data)
37 json.dump(json.loads(dict_product), testfwk_info_file)
56 dict_component_infos = json.load(platform_file)
79 arg_parser.add_argument('--output-json-fold', required=True)
80 arg_parser.add_argument('--output-json-file-name', required=True)
/build/scripts/
H A Dmerge_profile.py21 import json namespace
47 all_data = json.load(f0)
49 module_data = json.load(f0)["module"]
51 app_data = json.load(f1)["app"]
61 json.dump(all_data, f3, indent=4, ensure_ascii=False)
H A Dkernel_permission_handler.py17 import json namespace
43 json_data = json.load(file)
47 print("kernel_permission.json is invalid")
50 print("kernel_permission.json not found")
52 except json.JSONDecodeError:
53 print("kernel_permission.json doesn't conform to json specification")
56 print("kernel_permission.json not found")
66 if (check_json_file("kernel_permission.json")):
67 command = ['llvm-objcopy', '--add-section', '.kernelpermission=kernel_permission.json', so_pat
[all...]
H A Dgen_summary_ebpf_testcase_config.py20 --ebpf-summary-config-file xx/xxx.json \
29 import json namespace
39 if name.endswith('.json'):
47 file_data = json.load(infile)
52 # write the summary file.json
55 json.dump(context, out_file, sort_keys=True, indent=2)
/build/indep_configs/scripts/
H A Dutils.py16 import json namespace
25 data = json.load(f)
/build/ohos/
H A Dwrite_kits_description.py20 import json namespace
30 data = json.load(file)
45 kits_info = json.load(file)
/build/tools/component_tools/
H A Dparse_kconf.py18 import json namespace
38 data = json.load(f)
51 data = json.load(f)
165 f.write(json.dumps(result, indent=2))
171 For example: python3 parse_kconf.py --deps={$repo}/out/{your_product}/part_deps_info/part_deps_info.json \n\
172 or python3 parse_kconf.py --base_product={$repo}/productdefine/common/base/base_product.json \
173 --out=./product.json --deps={$repo}/out/{your_product}/part_deps_info/part_deps_info.json --config=./.config'
179 parser.add_argument('--base_product', type=str, default="./../../../productdefine/common/base/base_product.json",
180 help='base_product.json fil
[all...]
H A Dfull_components_generator.py19 import json namespace
32 base_product.json will be created in ./productdefine/common/base
61 data = json.load(f)
71 data = json.load(f)
82 files_bundle_json = find_files(path, "bundle.json")
98 data = json.load(f)
112 subsystem_json_overlay_path = os.path.join(conf.product_path, 'subsystem_config_overlay.json')
114 parser.add_argument('--subsys', type=str, default="./build/subsystem_config.json",
115 help='subsystem config file location, default=//build/subsystem_config.json')
118 parser.add_argument('--out', type=str, default="./productdefine/common/base/base_product.json",
[all...]
H A Dgenerate_kconfig.py19 import json namespace
59 data = json.load(f)
93 or python3 generate_kconfig.py --base_product={$repo}/productdefine/common/base/base_product.json --outdir=./'
98 parser.add_argument('--base_product', type=str, default="./../../../productdefine/common/base/base_product.json",
100 default={$repo}/productdefine/common/base/base_product.json')
/build/hb/util/post_build/
H A Dpart_rom_statistics.py21 import json namespace
80 file_path = os.path.join(root_path, "packages/phone/system_install_parts.json")
83 file_json = json.load(file)
98 file_json = json.load(file)
116 file_json = json.load(file)
159 json_path = os.path.join(out_path, 'rom_statistics_table.json')
160 json_str = json.dumps(rom_statistics, indent=4)
167 file_json = json.load(file)
182 if file_name == 'bundle.json':
188 part_json_path = os.path.join(root_path, 'build/subsystem_config.json')
[all...]
/build/hb/util/
H A Dio_util.py20 import json namespace
37 data = json.load(input_f)
43 json.dump(json_data, json_file, ensure_ascii=False, indent=2)
/build/hb/util/preloader/
H A Dparse_lite_subsystems_config.py16 import json namespace
28 data = json.load(fin)
52 new_config = json.dumps(config, indent=2, sort_keys=True)
63 if file[-5:] == '.json':
/build/ohos/notice/
H A Dcollect_system_notice_files.py20 import json namespace
31 install_info = json.load(file)
39 subsystem_info = json.load(file)
46 module_info = json.load(file)
58 if os.path.isfile("{}.json".format(module_info['notice'])):
59 os.makedirs(os.path.dirname("{}.json".format(dest)), exist_ok=True)
60 shutil.copyfile("{}.json".format(module_info['notice']), "{}.json".format(dest))
69 if os.path.isfile("{}.json".format(file)):
70 os.makedirs(os.path.dirname("{}.json"
[all...]
/build/scripts/util/
H A Dfile_utils.py16 import json namespace
33 # Read json file data
42 data = json.load(input_f)
43 except json.decoder.JSONDecodeError:
69 # Write json file data
81 json.dump(content, output_f, sort_keys=True, indent=2)
/build/tools/check_deps/
H A Dcheck_deps.py17 import json namespace
30 data = json.load(input_f)
31 except json.decoder.JSONDecodeError:
42 json.dump(content, output_f, indent=2)
82 deps_files), "module_deps_info", "wrong_used_deps.json")
/build/tools/component_tools/static_check/bundle_check/
H A Dget_subsystem_with_component.py19 import json namespace
23 g_subsystem_path_error = [] # subsystem path exist in subsystem_config.json
24 g_component_path_empty = [] # bundle.json path which cant get component path.
30 ohos_path, r"build/subsystem_config.json")
34 subsystem_json = json.load(file)
45 cmd = 'find %s -name bundle.json' % subsystem_path
54 bundle_json = json.load(bundle_file)
86 output_name: str = "subsystem_component_path.json"):
87 subsystem_item_json = json.dumps(
/build/ohos/ndk/
H A Dgenerate_version_script.py19 import json namespace
50 interfaces = json.load(f)
H A Dgenerate_ndk_stub_file.py19 import json namespace
48 interfaces = json.load(f)
/build/ohos/testfwk/
H A Dgen_module_list_files.py19 import json namespace
48 contents = json.dumps([{
H A Dtest_js_stage_file_copy.py17 import json namespace
29 if os.path.exists(os.path.join(project_path, "Test.json")):
37 json.dump(module_info_data, out_file)
44 if os.path.exists(os.path.join(project_path, "Test.json")):
45 shutil.copy2(os.path.join(project_path, "Test.json"),
46 os.path.join(json_dir, (build_target_name + ".json")))
47 json_file_path = os.path.join(json_dir, (build_target_name + ".json"))
50 json_data = json.load(out_file)
71 json_str = json.dumps(json_data, indent=2)

Completed in 6 milliseconds

123