Lines Matching refs:nativeModulePath
233 char nativeModulePath[NATIVE_PATH_NUMBER][NAPI_PATH_MAX];
235 if (!GetNativeModulePath(moduleName, pathKey, "", isAppModule, nativeModulePath, NAPI_PATH_MAX)) {
242 FindNativeModuleByCache(name.c_str(), nativeModulePath, cacheNativeModule, cacheHeadTailNativeModule);
247 loadPath = nativeModulePath[0];
250 loadPath = std::string(appLibPathMap_[pathKey]) + "/" + nativeModulePath[0];
583 char nativeModulePath[NATIVE_PATH_NUMBER][NAPI_PATH_MAX];
584 nativeModulePath[0][0] = 0;
585 nativeModulePath[1][0] = 0;
586 nativeModulePath[2][0] = 0; // 2 : Element index value
590 if (!GetNativeModulePath(strCutName.c_str(), path, relativePath, isAppModule, nativeModulePath, NAPI_PATH_MAX)) {
596 FindNativeModuleByCache(strModule.c_str(), nativeModulePath, cacheNativeModule, cacheHeadTailNativeModule);
607 if (!GetNativeModulePath(moduleName, prefixTmp.c_str(), relativePath, isAppModule, nativeModulePath,
617 FindNativeModuleByCache(key.c_str(), nativeModulePath, cacheNativeModule, cacheHeadTailNativeModule);
625 nativeModule = FindNativeModuleByCache(strModule.c_str(), nativeModulePath, cacheNativeModule,
629 FindNativeModuleByCache(key.c_str(), nativeModulePath, cacheNativeModule, cacheHeadTailNativeModule);
643 errInfo, nativeModulePath, cacheNativeModule);
647 errInfo, nativeModulePath, cacheNativeModule);
652 FindNativeModuleByCache(moduleName, nativeModulePath, cacheNativeModule, cacheHeadTailNativeModule);
682 const char* relativePath, bool isAppModule, char nativeModulePath[][NAPI_PATH_MAX], int32_t pathLength)
753 if (sprintf_s(nativeModulePath[0], pathLength, "%s/%s", prefix, dupModuleName) == -1) {
763 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix) == -1) {
767 if (sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s%s",
772 if (sprintf_s(nativeModulePath[1], pathLength, "%s/lib%s_napi%s%s",
777 if (sprintf_s(nativeModulePath[2], pathLength, "%s/%s%s", // 2 : Element index value
784 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix) == -1) {
793 sprintfResult = sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s",
797 sprintfResult = sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", dupModuleName, soPostfix);
804 if (sprintf_s(nativeModulePath[0], pathLength, "%s/lib%s%s", prefix, dupModuleName, soPostfix) == -1) {
809 if (sprintf_s(nativeModulePath[1], pathLength, "%s/lib%s%s", libPath.c_str(),
828 if (sprintf_s(nativeModulePath[0], pathLength, "%s/%s/lib%s%s%s",
832 if (sprintf_s(nativeModulePath[1], pathLength, "%s/%s/lib%s_napi%s%s",
836 if (sprintf_s(nativeModulePath[2], pathLength, "%s/%s/%s%s", // 2 : Element index value
843 if (sprintf_s(nativeModulePath[0], pathLength, "lib%s%s", afterDot, soPostfix) == -1) {
847 if (sprintf_s(nativeModulePath[0], pathLength, "%s/%s/lib%s%s",
853 if (sprintf_s(nativeModulePath[1], pathLength, "%s/%s/lib%s%s",
984 char nativeModulePath[][NAPI_PATH_MAX], NativeModule* cacheNativeModule)
1001 char* loadPath = nativeModulePath[0];
1008 loadPath = nativeModulePath[1];
1013 HILOG_ERROR("%{public}s does not exist, errMsg %{public}s", nativeModulePath[0], errInfo.c_str());
1026 loadPath = nativeModulePath[2]; // 2 : Element index value
1187 char nativeModulePath[][NAPI_PATH_MAX],
1204 while (label < NATIVE_PATH_NUMBER && strcmp(temp->systemFilePath, nativeModulePath[label])) {