Home
last modified time | relevance | path

Searched refs:apiAllowListChecker (Results 1 – 13 of 13) sorted by relevance

/ohos5.0/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
H A Dapp_module_checker_test.cpp86 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker(nullptr);
87 bool ret = appModuleChecker_->CheckModuleLoadable("module4", apiAllowListChecker);
105 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker(nullptr);
106 bool ret = appModuleChecker_->CheckModuleLoadable("module4", apiAllowListChecker);
124 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker(nullptr);
125 bool ret = appModuleChecker_->CheckModuleLoadable("module2", apiAllowListChecker);
/ohos5.0/foundation/arkui/napi/module_manager/
H A Dmodule_load_checker.cpp21 const char* moduleName, std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) in CheckModuleLoadable() argument
24 apiAllowListChecker = nullptr; in CheckModuleLoadable()
29 return moduleCheckerDelegate_->CheckModuleLoadable(moduleName, apiAllowListChecker); in CheckModuleLoadable()
H A Dnative_module_manager.cpp530 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, NativeModule* nativeModule) in MoveApiAllowListCheckerPtr() argument
532 if (apiAllowListChecker != nullptr) { in MoveApiAllowListCheckerPtr()
533 nativeModule->apiAllowListChecker.reset(apiAllowListChecker.release()); in MoveApiAllowListCheckerPtr()
555 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker = nullptr; in LoadNativeModule() local
557 !moduleLoadChecker_->CheckModuleLoadable(moduleName, apiAllowListChecker)) { in LoadNativeModule()
659 MoveApiAllowListCheckerPtr(apiAllowListChecker, nativeModule); in LoadNativeModule()
986 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker = nullptr; in FindNativeModuleByDisk() local
987 …(moduleLoadChecker_ && !moduleLoadChecker_->CheckModuleLoadable(moduleName, apiAllowListChecker)) { in FindNativeModuleByDisk()
1076 MoveApiAllowListCheckerPtr(apiAllowListChecker, tailNativeModule_); in FindNativeModuleByDisk()
1098 MoveApiAllowListCheckerPtr(apiAllowListChecker, tailNativeModule_); in FindNativeModuleByDisk()
H A Dmodule_checker_delegate.h39 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) = 0;
H A Dmodule_load_checker.h40 …kModuleLoadable(const char* moduleName, std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker);
H A Dnative_module_manager.h72 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker = nullptr; member
161 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, NativeModule* nativeModule);
/ohos5.0/foundation/ability/form_fwk/services/form_render_service/src/
H A Dform_module_checker.cpp86 std::unique_ptr<ApiAllowListChecker> &apiAllowListChecker) in CheckModuleLoadable() argument
94 if (apiAllowListChecker == nullptr) { in CheckModuleLoadable()
95apiAllowListChecker = std::make_unique<ApiAllowListChecker>([](const std::string& apiPath) { in CheckModuleLoadable()
/ohos5.0/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Dapp_module_checker.cpp23 … std::unique_ptr<ApiAllowListChecker> &apiAllowListChecker) in CheckModuleLoadable() argument
25 apiAllowListChecker = nullptr; in CheckModuleLoadable()
/ohos5.0/foundation/arkui/napi/module_manager/test/mock/src/
H A Dmock_native_module_manager.cpp73 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) in CheckModuleLoadable() argument
75 apiAllowListChecker = nullptr; in CheckModuleLoadable()
/ohos5.0/foundation/ability/form_fwk/services/form_render_service/include/
H A Dform_module_checker.h36 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) override;
/ohos5.0/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/
H A Dapp_module_checker.h39 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) override;
/ohos5.0/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp309 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker = module->apiAllowListChecker; in CheckArkApiAllowList() local
310 if (apiAllowListChecker != nullptr) { in CheckArkApiAllowList()
312 if ((*apiAllowListChecker)(apiPath)) { in CheckArkApiAllowList()
313 …CopyPropertyApiFilter(apiAllowListChecker, context.ecmaVm, context.exportObj, exportCopy, apiPath); in CheckArkApiAllowList()
320 …ativeEngine::CopyPropertyApiFilter(const std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, in CopyPropertyApiFilter() argument
329 if ((*apiAllowListChecker)(curPath)) { in CopyPropertyApiFilter()
333 CopyPropertyApiFilter(apiAllowListChecker, ecmaVm, value, subObject, curPath); in CopyPropertyApiFilter()
H A Dark_native_engine.h367 … static void CopyPropertyApiFilter(const std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker,