Lines Matching refs:nativeModule

62         NativeModule* nativeModule = headNativeModule_;  in ~NativeModuleManager()  local
63 while (nativeModule != nullptr) { in ~NativeModuleManager()
64 nativeModule = nativeModule->next; in ~NativeModuleManager()
75 headNativeModule_ = nativeModule; in ~NativeModuleManager()
256 void NativeModuleManager::Register(NativeModule* nativeModule) in Register() argument
258 if (nativeModule == nullptr) { in Register()
263 HILOG_DEBUG("native module name is '%{public}s'", nativeModule->name); in Register()
265 const char *nativeModuleName = nativeModule->name == nullptr ? "" : nativeModule->name; in Register()
268 if (nativeModule->flags == IS_APP_MODULE_FLAGS) { in Register()
284 tailNativeModule_->version = nativeModule->version; in Register()
285 tailNativeModule_->fileName = nativeModule->fileName; in Register()
289 tailNativeModule_->refCount = nativeModule->refCount; in Register()
290 tailNativeModule_->registerCallback = nativeModule->registerCallback; in Register()
291 tailNativeModule_->getJSCode = nativeModule->getJSCode; in Register()
292 tailNativeModule_->getABCCode = nativeModule->getABCCode; in Register()
303 headNativeModule_->version = nativeModule->version; in Register()
304 headNativeModule_->fileName = nativeModule->fileName; in Register()
307 headNativeModule_->refCount = nativeModule->refCount; in Register()
308 headNativeModule_->registerCallback = nativeModule->registerCallback; in Register()
309 headNativeModule_->getJSCode = nativeModule->getJSCode; in Register()
310 headNativeModule_->getABCCode = nativeModule->getABCCode; in Register()
530 std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, NativeModule* nativeModule) in MoveApiAllowListCheckerPtr() argument
533 nativeModule->apiAllowListChecker.reset(apiAllowListChecker.release()); in MoveApiAllowListCheckerPtr()
595 NativeModule* nativeModule = in LoadNativeModule() local
616 NativeModule* nativeModule = in LoadNativeModule() local
619 if (nativeModule == nullptr) { in LoadNativeModule()
625nativeModule = FindNativeModuleByCache(strModule.c_str(), nativeModulePath, cacheNativeModule, in LoadNativeModule()
628 nativeModule = in LoadNativeModule()
634 if (nativeModule == nullptr) { in LoadNativeModule()
642nativeModule = FindNativeModuleByDisk(strCutName.c_str(), path, relativePath, internal, isAppModul… in LoadNativeModule()
646nativeModule = FindNativeModuleByDisk(moduleName, prefix_.c_str(), relativePath, internal, isAppMo… in LoadNativeModule()
651 nativeModule = in LoadNativeModule()
659 MoveApiAllowListCheckerPtr(apiAllowListChecker, nativeModule); in LoadNativeModule()
663 HILOG_DEBUG("load native module %{public}s", (nativeModule == nullptr) ? "failed" : "success"); in LoadNativeModule()
664 return nativeModule; in LoadNativeModule()
1140 NativeModule* nativeModule = headNativeModule_; in RemoveNativeModuleByCache() local
1141 if (!strcasecmp(nativeModule->moduleName, moduleKey.c_str())) { in RemoveNativeModuleByCache()
1146 delete[] nativeModule->name; in RemoveNativeModuleByCache()
1147 if (nativeModule->moduleName) { in RemoveNativeModuleByCache()
1148 delete[] nativeModule->moduleName; in RemoveNativeModuleByCache()
1153 delete nativeModule; in RemoveNativeModuleByCache()