Home
last modified time | relevance | path

Searched refs:abcPaths (Results 1 - 20 of 20) sorted by relevance

/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_verifymanager_test/
H A Dbms_bundle_verifymanager_test.cpp125 std::vector<std::string> abcPaths; in HWTEST_F() local
126 abcPaths.push_back(FILE_PATH); in HWTEST_F()
127 abcPaths.push_back(ERR_FILE_PATH); in HWTEST_F()
128 abcPaths.push_back(EMPTY_STRING); in HWTEST_F()
130 auto ret = impl.VerifyAbc(abcPaths); in HWTEST_F()
161 std::vector<std::string> abcPaths; in HWTEST_F() local
162 abcPaths.push_back(FILE_PATH); in HWTEST_F()
163 impl.Rollback(abcPaths); in HWTEST_F()
173 ret = impl.MoveAbc(BUNDLE_NAME, abcPaths); in HWTEST_F()
176 abcPaths in HWTEST_F()
190 std::vector<std::string> abcPaths; HWTEST_F() local
239 std::vector<std::string> abcPaths; HWTEST_F() local
253 std::vector<std::string> abcPaths; HWTEST_F() local
267 std::vector<std::string> abcPaths; HWTEST_F() local
281 std::vector<std::string> abcPaths; HWTEST_F() local
363 std::vector<std::string> abcPaths; HWTEST_F() local
[all...]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/verify/
H A Dverify_manager_host_impl.h30 ErrCode Verify(const std::vector<std::string> &abcPaths) override;
36 const std::vector<std::string> &abcPaths);
38 const std::vector<std::string> &abcPaths);
39 bool VerifyAbc(const std::vector<std::string> &abcPaths);
41 const std::vector<std::string> &abcPaths);
49 bool CheckFileParam(const std::vector<std::string> &abcPaths);
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/verify/
H A Dverify_manager_host_impl.cpp145 ErrCode VerifyManagerHostImpl::Verify(const std::vector<std::string> &abcPaths) in Verify() argument
167 if (!CheckFileParam(abcPaths)) { in Verify()
172 if (!CopyFilesToTempDir(bundleName, userId, abcPaths)) { in Verify()
178 ErrCode ret = InnerVerify(bundleName, abcPaths); in Verify()
205 const std::vector<std::string> &abcPaths) in CopyFilesToTempDir()
214 for (size_t i = 0; i < abcPaths.size(); ++i) { in CopyFilesToTempDir()
215 std::string tempCopyPath = tempRootDir + abcPaths[i]; in CopyFilesToTempDir()
216 std::string realPath = GetRealPath(bundleName, userId, abcPaths[i]); in CopyFilesToTempDir()
218 APP_LOGE("abcPath %{public}s is illegal", abcPaths[i].c_str()); in CopyFilesToTempDir()
277 const std::vector<std::string> &abcPaths) in InnerVerify()
202 CopyFilesToTempDir( const std::string &bundleName, int32_t userId, const std::vector<std::string> &abcPaths) CopyFilesToTempDir() argument
275 InnerVerify( const std::string &bundleName, const std::vector<std::string> &abcPaths) InnerVerify() argument
293 CheckFileParam(const std::vector<std::string> &abcPaths) CheckFileParam() argument
326 VerifyAbc(const std::vector<std::string> &abcPaths) VerifyAbc() argument
430 MoveAbc( const std::string &bundleName, const std::vector<std::string> &abcPaths) MoveAbc() argument
[all...]
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/src/verify/
H A Dverify_manager_proxy.cpp43 ErrCode VerifyManagerProxy::Verify(const std::vector<std::string> &abcPaths) in Verify() argument
47 if (abcPaths.empty()) { in Verify()
57 if (!data.WriteStringVector(abcPaths)) { in Verify()
58 APP_LOGE("write abcPaths failed"); in Verify()
71 ErrCode VerifyManagerProxy::RemoveFiles(const std::vector<std::string> &abcPaths) in RemoveFiles() argument
75 if (!BundleFileUtil::CheckFilePath(abcPaths, realPaths)) { in RemoveFiles()
H A Dverify_manager_host.cpp67 std::vector<std::string> abcPaths; in HandleVerify() local
68 if (!data.ReadStringVector(&abcPaths)) { in HandleVerify()
69 APP_LOGE("read abcPaths failed"); in HandleVerify()
73 auto ret = Verify(abcPaths); in HandleVerify()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_core/include/verify/
H A Dverify_manager_interface.h31 virtual ErrCode Verify(const std::vector<std::string> &abcPaths) in Verify() argument
36 virtual ErrCode RemoveFiles(const std::vector<std::string> &abcPaths) in RemoveFiles() argument
H A Dverify_manager_proxy.h30 virtual ErrCode Verify(const std::vector<std::string> &abcPaths) override;
32 virtual ErrCode RemoveFiles(const std::vector<std::string> &abcPaths) override;
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplcheckfileparam_fuzzer/
H A Dverifymanagerhostimplcheckfileparam_fuzzer.cpp33 std::vector<std::string> abcPaths; in DoSomethingInterestingWithMyAPI() local
34 auto ret1 = impl.CheckFileParam(abcPaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplmoveabc_fuzzer/
H A Dverifymanagerhostimplmoveabc_fuzzer.cpp32 std::vector<std::string> abcPaths = { std::string(data, size) }; in DoSomethingInterestingWithMyAPI() local
33 auto ret1 = impl.MoveAbc(bundleName, abcPaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplinnerverify_fuzzer/
H A Dverifymanagerhostimplinnerverify_fuzzer.cpp32 std::vector<std::string> abcPaths = { std::string(data, size) }; in DoSomethingInterestingWithMyAPI() local
33 auto ret1 = impl.InnerVerify(bundleName, abcPaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplverify_fuzzer/
H A Dverifymanagerhostimplverify_fuzzer.cpp32 std::vector<std::string> abcPaths = { std::string(data, size) }; in DoSomethingInterestingWithMyAPI() local
33 auto ret1 = impl.Verify(abcPaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplverifyabc_fuzzer/
H A Dverifymanagerhostimplverifyabc_fuzzer.cpp31 std::vector<std::string> abcPaths; in DoSomethingInterestingWithMyAPI() local
34 auto ret1 = impl.VerifyAbc(abcPaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplcopyfilestotempdir_fuzzer/
H A Dverifymanagerhostimplcopyfilestotempdir_fuzzer.cpp42 std::vector<std::string> abcPaths = { std::string(data, size) }; in DoSomethingInterestingWithMyAPI() local
43 auto ret1 = impl.CopyFilesToTempDir(bundleName, userId, abcPaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/fuzztest/fuzztest_others/verifymanagerhostimplgetrealpath_fuzzer/
H A Dverifymanagerhostimplgetrealpath_fuzzer.cpp36 std::vector<std::string> abcPaths; in DoSomethingInterestingWithMyAPI() local
38 impl.CopyFilesToTempDir(bundleName, userId, abcPaths); in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/interfaces/kits/cj/src/
H A Dbundle_manager_ffi.cpp94 std::vector<std::string> abcPaths = CharPtrToVector(cAbcPaths.head, cAbcPaths.size); in FfiOHOSVerifyAbc() local
95 auto code = BundleManagerImpl::VerifyAbc(abcPaths, deleteOriginalFiles); in FfiOHOSVerifyAbc()
H A Dbundle_manager.h37 static int32_t VerifyAbc(std::vector<std::string> abcPaths, bool flag);
H A Dbundle_manager.cpp43 int32_t BundleManagerImpl::VerifyAbc(std::vector<std::string> abcPaths, bool flag) in VerifyAbc() argument
51 ErrCode ret = verifyManager->Verify(abcPaths); in VerifyAbc()
53 verifyManager->RemoveFiles(abcPaths); in VerifyAbc()
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_client_system_test/
H A Dbundle_mgr_client_system_test.cpp2375 std::vector<std::string> abcPaths; in HWTEST_F() local
2376 ErrCode ret = verifyManagerProxy.Verify(abcPaths); in HWTEST_F()
2378 abcPaths.push_back(HAP_PATH); in HWTEST_F()
2379 ret = verifyManagerProxy.Verify(abcPaths); in HWTEST_F()
2396 std::vector<std::string> abcPaths; in HWTEST_F() local
2398 abcPaths.push_back(abcPath); in HWTEST_F()
2399 ErrCode ret = verifyManagerProxy.RemoveFiles(abcPaths); in HWTEST_F()
/foundation/bundlemanager/bundle_framework/interfaces/kits/js/bundle_manager/
H A Dbundle_manager.h138 std::vector<std::string> abcPaths; member
H A Dbundle_manager.cpp2178 ErrCode InnerVerify(const std::vector<std::string> &abcPaths, bool flag) in InnerVerify() argument
2186 ErrCode ret = verifyManager->Verify(abcPaths); in InnerVerify()
2188 verifyManager->RemoveFiles(abcPaths); in InnerVerify()
2201 asyncCallbackInfo->err = InnerVerify(asyncCallbackInfo->abcPaths, asyncCallbackInfo->flag); in VerifyExec()
2242 if (!CommonFunc::ParseStringArray(env, asyncCallbackInfo->abcPaths, args[ARGS_POS_ZERO])) { in VerifyAbc()

Completed in 18 milliseconds