| /foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_mtp_test/src/ |
| D | mtp_media_library_unit_test.cpp | 34 const std::string FILE_PATH = "/storage/media/local/files/Docs/Desktop"; variable 66 mtpMediaLib_->AddPathToMap(FILE_PATH + "/" + std::to_string(i) + ".txt"); 86 mtpMediaLib_->ObserverAddPathToMap(FILE_PATH); 89 mtpMediaLib_->ObserverAddPathToMap(FILE_PATH + "/" + std::to_string(i) + ".txt"); 93 mtpMediaLib_->GetIdByPath(FILE_PATH, parentId); 114 mtpMediaLib_->ObserverAddPathToMap(FILE_PATH); 117 mtpMediaLib_->ObserverAddPathToMap(FILE_PATH + "/" + std::to_string(i) + ".txt"); 123 mtpMediaLib_->GetIdByPath(FILE_PATH, parentId); 145 mtpMediaLib_->AddToHandlePathMap(FILE_PATH + "/" + std::to_string(i) + ".txt", i); 171 mtpMediaLib_->AddToHandlePathMap(FILE_PATH + "/" + std::to_string(i) + ".txt", i); [all …]
|
| D | mtp_event_test.cpp | 33 const std::string FILE_PATH = "/storage/media/local/files/Docs/Desktop"; variable 80 mtpEvent->SendObjectAdded(FILE_PATH); 81 mtpEvent->SendObjectRemoved(FILE_PATH); 120 mtpEvent->SendObjectInfoChanged(FILE_PATH);
|
| /foundation/communication/nfc/services/resources/base/profile/ |
| D | nfc_language_map.json | 5 "file_path": "base" string 9 "file_path": "base" string 13 "file_path": "zh_CN" string 17 "file_path": "zh_HK" string 21 "file_path": "bo_CN" string 25 "file_path": "ug" string 29 "file_path": "zz_ZX" string
|
| /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/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/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/multimedia/av_codec/test/fuzztest/avsourcefunc_fuzzer/ |
| D | avsource_fuzzer.cpp | 34 const char *FILE_PATH = "/data/test/fuzz_create.mp4"; variable 37 std::ofstream file(FILE_PATH, std::ios::binary); in DoAVSourceFuncFuzz() 42 int32_t fd = open(FILE_PATH, O_RDONLY); in DoAVSourceFuncFuzz() 58 ret = remove(FILE_PATH); in DoAVSourceFuncFuzz()
|
| /foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/createfd_fuzzer/ |
| D | createfd_fuzzer.cpp | 22 const std::string FILE_PATH = "data/test"; variable 30 std::string path = FILE_PATH; in fuzzelCreateFdCaseOne() 42 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 126 abcPaths.push_back(FILE_PATH); 147 ret = impl.GetFileDir(FILE_PATH, fileName); 162 abcPaths.push_back(FILE_PATH); 165 auto ret = impl.MkdirIfNotExist(FILE_PATH); 196 abcPaths.push_back(FILE_PATH); 197 abcNames.push_back(FILE_PATH); 201 auto ret = impl.GetFileName(FILE_PATH, fileName); 285 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/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/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/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/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/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 | 25 const std::string FILE_PATH = "/data/service/el1/public/bms/bundle_manager_service/a.hsp"; variable 46 filePaths.push_back(FILE_PATH); in fuzzelRollBackCaseOne()
|
| /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/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_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/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/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/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/arkui/ace_engine/test/tools/event_tree_to_graph/ |
| D | main.py | 50 def delete_file(file_path): argument 52 os.remove(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)
|