Home
last modified time | relevance | path

Searched refs:file_path (Results 1 - 13 of 13) sorted by relevance

/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/
H A Dcontent_parser.py28 file_path = "" variable in ContentParser
32 self.file_path = path
50 if os.path.exists(self.file_path):
51 with open(self.file_path, 'r') as f:
/foundation/arkui/ace_engine/frameworks/core/components/theme/tools/
H A Dbuild_theme_code.py93 def read_file(file_path):
94 with open(file_path) as file_read:
99 def write_file(file_path, content):
100 with open(file_path, 'wb+') as file_write:
104 def build_header(file_path):
143 write_file(file_path, end_str.format(new_content, define))
179 def build_cpp(file_path, platform):
219 file_name = '{}theme_constants_{}.cpp'.format(file_path, platform)
223 def read_file_lines(file_path):
224 with open(file_path) a
[all...]
/foundation/ability/idl_tool/test/sa_test/
H A Dutil.py92 def file_exists(file_path):
93 return os.path.isfile(file_path)
96 def make_binary_file(file_path):
98 return exec_command("make --directory={} --jobs=4".format(file_path))
101 def clean_binary_file(file_path):
102 return exec_command("make --directory={} clean".format(file_path))
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
H A Dzip_writer.cpp37 bool AddFileContentToZip(zipFile zip_file, FilePath &file_path) in AddFileContentToZip() argument
40 if (!FilePathCheckValid(file_path.Value())) { in AddFileContentToZip()
41 APP_LOGI("filePath is invalid file_path=%{public}s", file_path.Value().c_str()); in AddFileContentToZip()
44 if (!FilePath::PathIsValid(file_path)) { in AddFileContentToZip()
49 FILE *fp = fopen(file_path.Value().c_str(), "rb"); in AddFileContentToZip()
52 file_path.Value().c_str(), strerror(errno)); in AddFileContentToZip()
61 APP_LOGI("Could not write data to zip for path:%{private}s ", file_path.Value().c_str()); in AddFileContentToZip()
/foundation/ability/idl_tool/test/hdi_unittest/base/
H A Dutil.py146 def file_exists(file_path):
147 return os.path.isfile(file_path)
150 def make_binary_file(file_path):
152 return exec_command("make --directory={} --jobs=4".format(file_path))
155 def clean_binary_file(file_path):
156 return exec_command("make --directory={} clean".format(file_path))
/foundation/arkui/ace_engine/build/
H A Dsearch.py37 file_path = os.path.join(base_dir, item, "build", "platform.gni")
38 if not os.path.isfile(file_path):
/foundation/graphic/graphic_2d/utils/build/
H A Dcopy_arkui_adapters.py48 file_path = os.path.join(source_dir, item, "build", "platform.gni")
49 if not os.path.isfile(file_path):
/foundation/arkui/ace_engine/adapter/preview/sdk/dump/
H A Dresource_index.py106 def open_new_resource_index(file_path):
107 if not os.path.exists(file_path):
108 raise Exception("not found:" + file_path)
110 with open(file_path, "rb") as fp_resource_index:
208 def dump(file_path, out_path):
210 third_data = open_new_resource_index(file_path)
/foundation/ability/idl_tool/scripts/
H A Didl.py60 file_path = os.path.join(input_arguments.dst_path, file_name)
61 os.remove(file_path)
/foundation/ability/idl_tool/test/hdi_unittest/hdi_hash_test/
H A Dhash_bad_04.py24 file_path = os.path.join(work_dir, "foo", "v1_0", "IFoo.idl")
27 content = f"[IDL-GEN]: IFoo.idl:16:9:package name 'ohos.hdi.foo.v1_0' does not match file path '{file_path}'"
/foundation/ability/idl_tool/idl_tool_2/
H A Dbuild_hdi_files_info.py299 self.file_path = path
301 self.file_name = os.path.basename(self.file_path)
313 "path": self.file_path
333 def parse_one(self, file_path):
334 cur_idl_detail = IdlDetail(file_path)
335 lex = Lexer(file_path)
367 def parse_c_idl_files_import(self, file_path, idl_queue):
368 lex = Lexer(file_path)
/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
H A Dffrt_trace_process.py523 file_path = os.path.join(out_dir, f)
524 if os.path.isfile(file_path):
525 os.remove(file_path)
/foundation/ability/idl_tool/test/cmd_test/
H A Dcmd_test.py66 def file_exists(file_path):
67 return os.path.isfile(file_path)

Completed in 6 milliseconds