Home
last modified time | relevance | path

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

/foundation/ability/ability_runtime/test/unittest/frameworks_kits_ability_native_test/
H A Dapp_module_checker_test.cpp86 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker(nullptr); in HWTEST_F()
87 bool ret = appModuleChecker_->CheckModuleLoadable("module4", apiAllowListChecker); in HWTEST_F()
105 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker(nullptr); in HWTEST_F()
106 bool ret = appModuleChecker_->CheckModuleLoadable("module4", apiAllowListChecker); in HWTEST_F()
124 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker(nullptr); in HWTEST_F()
125 bool ret = appModuleChecker_->CheckModuleLoadable("module2", apiAllowListChecker); in HWTEST_F()
/foundation/arkui/napi/module_manager/
H A Dmodule_load_checker.cpp21 const char* moduleName, std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) in CheckModuleLoadable()
24 apiAllowListChecker = nullptr; in CheckModuleLoadable()
29 return moduleCheckerDelegate_->CheckModuleLoadable(moduleName, apiAllowListChecker); in CheckModuleLoadable()
20 CheckModuleLoadable( const char* moduleName, std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) CheckModuleLoadable() argument
H A Dmodule_checker_delegate.h39 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) = 0;
H A Dmodule_load_checker.h40 bool CheckModuleLoadable(const char* moduleName, std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker);
H A Dnative_module_manager.cpp530 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, NativeModule* nativeModule) in MoveApiAllowListCheckerPtr()
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 if (moduleLoadChecker_ && !moduleLoadChecker_->CheckModuleLoadable(moduleName, apiAllowListChecker)) { in FindNativeModuleByDisk()
1076 MoveApiAllowListCheckerPtr(apiAllowListChecker, tailNativeModule in FindNativeModuleByDisk()
529 MoveApiAllowListCheckerPtr( std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, NativeModule* nativeModule) MoveApiAllowListCheckerPtr() argument
[all...]
H A Dnative_module_manager.h72 std::unique_ptr<ApiAllowListChecker> apiAllowListChecker = nullptr; member
161 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, NativeModule* nativeModule);
/foundation/ability/ability_runtime/frameworks/native/ability/native/
H A Dapp_module_checker.cpp23 std::unique_ptr<ApiAllowListChecker> &apiAllowListChecker) in CheckModuleLoadable()
25 apiAllowListChecker = nullptr; in CheckModuleLoadable()
22 CheckModuleLoadable(const char *moduleName, std::unique_ptr<ApiAllowListChecker> &apiAllowListChecker) CheckModuleLoadable() argument
/foundation/arkui/napi/module_manager/test/mock/src/
H A Dmock_native_module_manager.cpp73 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) in CheckModuleLoadable()
75 apiAllowListChecker = nullptr; in CheckModuleLoadable()
72 CheckModuleLoadable(const char* moduleName, std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) CheckModuleLoadable() argument
/foundation/ability/form_fwk/services/form_render_service/src/
H A Dform_module_checker.cpp85 std::unique_ptr<ApiAllowListChecker> &apiAllowListChecker) in CheckModuleLoadable()
93 if (apiAllowListChecker == nullptr) { in CheckModuleLoadable()
94 apiAllowListChecker = std::make_unique<ApiAllowListChecker>([](const std::string& apiPath) { in CheckModuleLoadable()
84 CheckModuleLoadable(const char *moduleName, std::unique_ptr<ApiAllowListChecker> &apiAllowListChecker) CheckModuleLoadable() argument
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/
H A Dapp_module_checker.h39 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) override;
/foundation/ability/form_fwk/services/form_render_service/include/
H A Dform_module_checker.h36 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker) override;
/foundation/arkui/napi/native_engine/impl/ark/
H A Dark_native_engine.cpp307 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker = module->apiAllowListChecker; in CheckArkApiAllowList() local
308 if (apiAllowListChecker != nullptr) { in CheckArkApiAllowList()
310 if ((*apiAllowListChecker)(apiPath)) { in CheckArkApiAllowList()
311 CopyPropertyApiFilter(apiAllowListChecker, context.ecmaVm, context.exportObj, exportCopy, apiPath); in CheckArkApiAllowList()
318 void ArkNativeEngine::CopyPropertyApiFilter(const std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, in CopyPropertyApiFilter() argument
327 if ((*apiAllowListChecker)(curPath)) { in CopyPropertyApiFilter()
331 CopyPropertyApiFilter(apiAllowListChecker, ecmaVm, value, subObject, curPath); in CopyPropertyApiFilter()
H A Dark_native_engine.h368 static void CopyPropertyApiFilter(const std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker,

Completed in 10 milliseconds