| /foundation/arkui/ace_engine/test/tools/event_tree_to_graph/src/ |
| D | content_parser.py | 28 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/ |
| D | zip_writer.cpp | 37 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/ |
| D | build_theme_code.py | 93 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/ |
| D | util.py | 92 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/ |
| D | createfd_fuzzer.cpp | 22 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/ |
| D | bms_bundle_verifymanager_test.cpp | 33 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/ |
| D | util.py | 146 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/ |
| D | resource_index.py | 106 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/ |
| D | parseextendresourcefile_fuzzer.cpp | 23 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/ |
| D | updateextresourcesdb_fuzzer.cpp | 23 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/ |
| D | copytotempdir_fuzzer.cpp | 23 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/ |
| D | search.py | 37 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/ |
| D | hash_bad_04.py | 24 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/ |
| D | rollback_fuzzer.cpp | 26 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/ |
| D | beforeaddextresource_fuzzer.cpp | 23 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/ |
| D | copy_arkui_adapters.py | 48 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/ |
| D | ethernet_configuration_test.cpp | 32 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/ |
| D | extend_resource_manager_proxy_test.cpp | 28 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/ |
| D | idl.py | 60 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/ |
| D | bms_extend_resource_manager_test.cpp | 38 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/ |
| D | cycle_task.cpp | 34 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/ |
| D | module_hdi_source.c | 47 "file_path=<file path for data reading>" 64 "file_path",
|
| /foundation/filemanagement/dfs_service/services/cloudsyncservice/include/cycle_task/ |
| D | cycle_task_runner.h | 30 static const std::string FILE_PATH;
|
| /foundation/bundlemanager/bundle_framework/ |
| D | hisysevent.yaml | 107 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/ |
| D | BUILD.gn | 33 "../src/file_path.cpp",
|