Home
last modified time | relevance | path

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

123

/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_mtp_test/src/
Dmtp_media_library_unit_test.cpp34 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 …]
Dmtp_event_test.cpp33 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/
Dnfc_language_map.json5 "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/
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/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/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/multimedia/av_codec/test/fuzztest/avsourcefunc_fuzzer/
Davsource_fuzzer.cpp34 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/
Dcreatefd_fuzzer.cpp22 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/
Dbms_bundle_verifymanager_test.cpp33 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/
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/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/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/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/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/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.cpp25 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/
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/communication/netmanager_base/test/netconnmanager/unittest/net_conn_add_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/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/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/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/arkui/ace_engine/test/tools/event_tree_to_graph/
Dmain.py50 def delete_file(file_path): argument
52 os.remove(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)

123