Home
last modified time | relevance | path

Searched full:file_path (Results 1 – 25 of 45) sorted by relevance

12

/foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/
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/bundlemanager/bundle_framework/interfaces/kits/js/zip/src/
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/arkui/ace_engine/frameworks/core/components/theme/tools/
Dbuild_theme_code.py93 def read_file(file_path): argument
94 with open(file_path) as file_read:
99 def write_file(file_path, content): argument
100 with open(file_path, 'wb+') as file_write:
104 def build_header(file_path): argument
143 write_file(file_path, end_str.format(new_content, define))
179 def build_cpp(file_path, platform): argument
219 file_name = '{}theme_constants_{}.cpp'.format(file_path, platform)
223 def read_file_lines(file_path): argument
224 with open(file_path) as file_read:
/foundation/ability/idl_tool/test/sa_test/
Dutil.py92 def file_exists(file_path): argument
93 return os.path.isfile(file_path)
96 def make_binary_file(file_path): argument
98 return exec_command("make --directory={} --jobs=4".format(file_path))
101 def clean_binary_file(file_path): argument
102 return exec_command("make --directory={} clean".format(file_path))
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/createfd_fuzzer/
Dcreatefd_fuzzer.cpp22 const std::string FILE_PATH = "data/test"; variable
32 std::string path = FILE_PATH; in fuzzelCreateFdCaseOne()
44 std::string path = FILE_PATH; in fuzzelCreateFdCaseTwo()
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_verifymanager_test/
Dbms_bundle_verifymanager_test.cpp33 const std::string FILE_PATH = "/data/app/el2/base/a.abc"; variable
119 abcPaths.push_back(FILE_PATH);
140 ret = impl.GetFileDir(FILE_PATH, fileName);
155 abcPaths.push_back(FILE_PATH);
158 auto ret = impl.MkdirIfNotExist(FILE_PATH);
189 abcPaths.push_back(FILE_PATH);
190 abcNames.push_back(FILE_PATH);
194 auto ret = impl.GetFileName(FILE_PATH, fileName);
278 abcPaths.push_back(FILE_PATH);
/foundation/ability/idl_tool/test/hdi_unittest/base/
Dutil.py146 def file_exists(file_path): argument
147 return os.path.isfile(file_path)
150 def make_binary_file(file_path): argument
152 return exec_command("make --directory={} --jobs=4".format(file_path))
155 def clean_binary_file(file_path): argument
156 return exec_command("make --directory={} clean".format(file_path))
/foundation/arkui/ace_engine/adapter/preview/sdk/dump/
Dresource_index.py106 def open_new_resource_index(file_path): argument
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): argument
210 third_data = open_new_resource_index(file_path)
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/parseextendresourcefile_fuzzer/
Dparseextendresourcefile_fuzzer.cpp23 const std::string FILE_PATH = "/data/service/el1/public/bms/bundle_manager_service/a.hsp"; variable
30 filePaths.emplace_back(FILE_PATH); in fuzzelParseExtendResourceFileCaseOne()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/updateextresourcesdb_fuzzer/
Dupdateextresourcesdb_fuzzer.cpp23 const std::string FILE_PATH = "/data/service/el1/public/bms/bundle_manager_service/a.hsp"; variable
31 oldFilePaths.push_back(FILE_PATH); in fuzzelUpdateExtResourcesDbCaseOne()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/copytotempdir_fuzzer/
Dcopytotempdir_fuzzer.cpp23 const std::string FILE_PATH = "/data/service/el1/public/bms/bundle_manager_service/a.hsp"; variable
31 oldFilePaths.push_back(FILE_PATH); in fuzzelCopyToTempDirCaseOne()
/foundation/arkui/ace_engine/build/
Dsearch.py37 file_path = os.path.join(base_dir, item, "build", "platform.gni")
38 if not os.path.isfile(file_path):
/foundation/ability/idl_tool/test/hdi_unittest/hdi_hash_test/
Dhash_bad_04.py24 file_path = os.path.join(work_dir, "foo", "v1_0", "IFoo.idl")
27 …f"[IDL-GEN]: IFoo.idl:16:9:package name 'ohos.hdi.foo.v1_0' does not match file path '{file_path}'"
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/rollback_fuzzer/
Drollback_fuzzer.cpp26 const std::string FILE_PATH = "/data/service/el1/public/bms/bundle_manager_service/a.hsp"; variable
47 filePaths.push_back(FILE_PATH); in fuzzelRollBackCaseOne()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/beforeaddextresource_fuzzer/
Dbeforeaddextresource_fuzzer.cpp23 const std::string FILE_PATH = "/data/service/el1/public/bms/bundle_manager_service/a.hsp"; variable
54 filePaths.emplace_back(FILE_PATH); in fuzzelBeforeAddExtResourceCaseThree()
/foundation/graphic/graphic_2d/utils/build/
Dcopy_arkui_adapters.py48 file_path = os.path.join(source_dir, item, "build", "platform.gni")
49 if not os.path.isfile(file_path):
/foundation/communication/netmanager_ext/test/ethernetmanager/unittest/ethernet_manager_test/
Dethernet_configuration_test.cpp32 constexpr const char *FILE_PATH = "./BUILD.gn"; variable
77 std::string strRet = ethernetConfiguration.ReadJsonFile(FILE_PATH);
81 ret = ethernetConfiguration.IsFileExist(FILE_PATH, REAL_PATH);
83 ret = ethernetConfiguration.ReadFile(FILE_PATH, FILE_CONTENT);
85 ret = ethernetConfiguration.WriteFile(FILE_PATH, FILE_CONTENT);
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/extend_resource_manager_proxy_test/
Dextend_resource_manager_proxy_test.cpp28 const std::string FILE_PATH = "data/test"; variable
165 std::string moduleName = FILE_PATH;
184 std::string path = FILE_PATH;
/foundation/ability/idl_tool/scripts/
Didl.py60 file_path = os.path.join(input_arguments.dst_path, file_name)
61 os.remove(file_path)
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_extend_resource_manager_test/
Dbms_extend_resource_manager_test.cpp38 const std::string FILE_PATH = "/data/service/el1/public/bms/bundle_manager_service/a.hsp"; variable
299 filePaths.emplace_back(FILE_PATH);
314 filePaths.emplace_back(FILE_PATH);
340 filePaths.push_back(FILE_PATH);
353 oldFilePaths.push_back(FILE_PATH);
/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/cycle_task/
Dcycle_task.cpp34 const std::string CycleTask::FILE_PATH = "CycleTask"; member in OHOS::FileManagement::CloudSync::CycleTask
95 cloudPrefImpl_ = std::make_unique<CloudPrefImpl>(userId_, bundleName, FILE_PATH); in RunTask()
/foundation/multimedia/audio_framework/frameworks/native/pulseaudio/modules/hdi/
Dmodule_hdi_source.c47 "file_path=<file path for data reading>"
64 "file_path",
/foundation/filemanagement/dfs_service/services/cloudsyncservice/include/cycle_task/
Dcycle_task_runner.h30 static const std::string FILE_PATH;
/foundation/bundlemanager/bundle_framework/
Dhisysevent.yaml107 FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hap file}
137 FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hap file}
154 FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hap file}
212 FILE_PATH: {type: STRING, arrsize: 99, desc: the path of the hqf file}
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/zip/test/
DBUILD.gn33 "../src/file_path.cpp",

12