Home
last modified time | relevance | path

Searched refs:apiPath (Results 1 - 5 of 5) sorted by relevance

/foundation/ability/form_fwk/services/form_render_service/src/
H A Dform_module_checker.cpp34 bool FormModuleChecker::CheckApiAllowList(const std::string& apiPath) in CheckApiAllowList() argument
59 if (CheckApiWithSuffix(apiPath, item)) { in CheckApiAllowList()
67 bool FormModuleChecker::CheckApiWithSuffix(const std::string& apiPath, const std::string& item) in CheckApiWithSuffix() argument
69 if (item.compare(0, apiPath.size(), apiPath) == 0) { in CheckApiWithSuffix()
70 HILOG_DEBUG("api allowed by allowlist: '%{public}s' matches '%{public}s'", apiPath.c_str(), item.c_str()); in CheckApiWithSuffix()
76 if (apiPath.compare(0, path.size(), path) == 0) { in CheckApiWithSuffix()
77 HILOG_DEBUG("api allowed by allowlist: '%{public}s' matches '%{public}s'", apiPath.c_str(), item.c_str()); in CheckApiWithSuffix()
94 apiAllowListChecker = std::make_unique<ApiAllowListChecker>([](const std::string& apiPath) { in CheckModuleLoadable()
95 return CheckApiAllowList(apiPath); in CheckModuleLoadable()
[all...]
/foundation/ability/form_fwk/services/form_render_service/include/
H A Dform_module_checker.h38 static bool CheckApiAllowList(const std::string& apiPath);
40 static bool CheckApiWithSuffix(const std::string& apiPath, const std::string& item);
/foundation/arkui/napi/test/unittest/
H A Dtest_ark_api_allowlist.cpp173 std::string apiPath = "i18n"; in HWTEST_F() local
174 if ((*apiAllowListFilter)(apiPath)) { in HWTEST_F()
175 ArkNativeEngine::CopyPropertyApiFilter(apiAllowListFilter, vm, i18nObj, exportCopy, apiPath); in HWTEST_F()
227 std::string apiPath = "intl"; in HWTEST_F() local
228 if ((*apiAllowListFilter)(apiPath)) { in HWTEST_F()
229 ArkNativeEngine::CopyPropertyApiFilter(apiAllowListFilter, vm, intlObj, exportCopy, apiPath); in HWTEST_F()
/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.h370 panda::Local<panda::ObjectRef>& exportCopy, const std::string& apiPath);
H A Dark_native_engine.cpp309 const std::string apiPath = context.moduleName->ToString(context.ecmaVm); in CheckArkApiAllowList() local
310 if ((*apiAllowListChecker)(apiPath)) { in CheckArkApiAllowList()
311 CopyPropertyApiFilter(apiAllowListChecker, context.ecmaVm, context.exportObj, exportCopy, apiPath); in CheckArkApiAllowList()
320 const std::string& apiPath) in CopyPropertyApiFilter()
326 const std::string curPath = apiPath + "." + nameValue->ToString(ecmaVm)->ToString(ecmaVm); in CopyPropertyApiFilter()
318 CopyPropertyApiFilter(const std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, const EcmaVM* ecmaVm, const panda::Local<panda::ObjectRef> exportObj, panda::Local<panda::ObjectRef>& exportCopy, const std::string& apiPath) CopyPropertyApiFilter() argument

Completed in 6 milliseconds