• Home
  • Raw
  • Download

Lines Matching refs:hapVerifyInfo

125         for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) {  in checkSharedApppIsValid()
126 if (!moduleName.equals(hapVerifyInfo.getModuleName())) { in checkSharedApppIsValid()
130 if (!hapVerifyInfo.getDependencyItemList().isEmpty()) { in checkSharedApppIsValid()
134 if (!TYPE_SHARED.equals(hapVerifyInfo.getModuleType())) { in checkSharedApppIsValid()
175 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkAppFieldsIsSame()
176 if (hapVerifyInfo.getBundleName().isEmpty() || in checkAppFieldsIsSame()
177 !verifyCollection.bundleName.equals(hapVerifyInfo.getBundleName())) { in checkAppFieldsIsSame()
181 if (!verifyCollection.getBundleType().equals(hapVerifyInfo.getBundleType())) { in checkAppFieldsIsSame()
185 …if (hapVerifyInfo.getVendor().isEmpty() || !verifyCollection.vendor.equals(hapVerifyInfo.getVendor… in checkAppFieldsIsSame()
189 if (verifyCollection.versionCode != hapVerifyInfo.getVersion().versionCode) { in checkAppFieldsIsSame()
193 if (!verifyCollection.versionName.equals(hapVerifyInfo.getVersion().versionName)) { in checkAppFieldsIsSame()
197 …if (verifyCollection.minCompatibleVersionCode != hapVerifyInfo.getVersion().minCompatibleVersionCo… in checkAppFieldsIsSame()
201 …if (verifyCollection.compatibleApiVersion != hapVerifyInfo.getApiVersion().getCompatibleApiVersion… in checkAppFieldsIsSame()
205 … if (verifyCollection.targetApiVersion != hapVerifyInfo.getApiVersion().getTargetApiVersion()) { in checkAppFieldsIsSame()
209 … if (!verifyCollection.releaseType.equals(hapVerifyInfo.getApiVersion().getReleaseType())) { in checkAppFieldsIsSame()
213 if (!verifyCollection.targetBundleName.equals(hapVerifyInfo.getTargetBundleName())) { in checkAppFieldsIsSame()
217 if (verifyCollection.targetPriority != hapVerifyInfo.getTargetPriority()) { in checkAppFieldsIsSame()
221 if (verifyCollection.debug != hapVerifyInfo.isDebug()) { in checkAppFieldsIsSame()
316 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkAbilityNameIsValid()
317 long noDuplicatedCount = hapVerifyInfo.getAbilityNames().stream().distinct().count(); in checkAbilityNameIsValid()
318 if (noDuplicatedCount != hapVerifyInfo.getAbilityNames().size()) { in checkAbilityNameIsValid()
320hapVerifyInfo.getModuleName() + " ability duplicated, please rename ability name."); in checkAbilityNameIsValid()
438 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkEntryIsValid()
439 if (ENTRY.equals(hapVerifyInfo.getModuleType())) { in checkEntryIsValid()
440 entryHapVerifyInfos.add(hapVerifyInfo); in checkEntryIsValid()
441 } else if (FEATURE.equals(hapVerifyInfo.getModuleType())) { in checkEntryIsValid()
442 featureHapVerifyInfos.add(hapVerifyInfo); in checkEntryIsValid()
443 } else if (!SHARED_LIBRARY.equals(hapVerifyInfo.getModuleType())) { in checkEntryIsValid()
478 for (HapVerifyInfo hapVerifyInfo : featureHapVerifyInfos) { in checkEntryIsValid()
479 if (!checkFeature(hapVerifyInfo, deviceHap)) { in checkEntryIsValid()
480 LOG.warning(hapVerifyInfo.getModuleName() + " can not be covered by entry."); in checkEntryIsValid()
600 for (HapVerifyInfo hapVerifyInfo : entryHapVerifyInfos) { in classifyEntry()
601 for (String device : hapVerifyInfo.getDeviceType()) { in classifyEntry()
603 deviceHaps.get(device).add(hapVerifyInfo); in classifyEntry()
606 deviceHaps.get(device).add(hapVerifyInfo); in classifyEntry()
699 for (HapVerifyInfo hapVerifyInfo : entryHaps) { in checkApiVersionCovered()
700 …if (hapVerifyInfo.getDistroFilter() == null || hapVerifyInfo.getDistroFilter().apiVersion == null)… in checkApiVersionCovered()
703 if (hapVerifyInfo.getDistroFilter().apiVersion.policy == null) { in checkApiVersionCovered()
707 if (INCLUDE.equals(hapVerifyInfo.getDistroFilter().apiVersion.policy)) { in checkApiVersionCovered()
712 include.addAll(hapVerifyInfo.getDistroFilter().apiVersion.value); in checkApiVersionCovered()
713 } else if (EXCLUDE.equals(hapVerifyInfo.getDistroFilter().apiVersion.policy)) { in checkApiVersionCovered()
718 exclude = Stream.of(exclude, hapVerifyInfo.getDistroFilter().apiVersion.value). in checkApiVersionCovered()
749 for (HapVerifyInfo hapVerifyInfo : entryHaps) { in checkScreenShapeCovered()
750 …if (hapVerifyInfo.getDistroFilter() == null || hapVerifyInfo.getDistroFilter().screenShape == null… in checkScreenShapeCovered()
753 if (hapVerifyInfo.getDistroFilter().screenShape.policy == null) { in checkScreenShapeCovered()
757 if (INCLUDE.equals(hapVerifyInfo.getDistroFilter().screenShape.policy)) { in checkScreenShapeCovered()
761 include.addAll(hapVerifyInfo.getDistroFilter().screenShape.value); in checkScreenShapeCovered()
762 } else if (EXCLUDE.equals(hapVerifyInfo.getDistroFilter().screenShape.policy)) { in checkScreenShapeCovered()
766 exclude = Stream.of(exclude, hapVerifyInfo.getDistroFilter().screenShape.value). in checkScreenShapeCovered()
796 for (HapVerifyInfo hapVerifyInfo : entryHaps) { in checkScreenWindowCovered()
797 …if (hapVerifyInfo.getDistroFilter() == null || hapVerifyInfo.getDistroFilter().screenWindow == nul… in checkScreenWindowCovered()
800 if (hapVerifyInfo.getDistroFilter().screenWindow.policy == null) { in checkScreenWindowCovered()
804 if (INCLUDE.equals(hapVerifyInfo.getDistroFilter().screenWindow.policy)) { in checkScreenWindowCovered()
808 include.addAll(hapVerifyInfo.getDistroFilter().screenWindow.value); in checkScreenWindowCovered()
809 } else if (EXCLUDE.equals(hapVerifyInfo.getDistroFilter().screenWindow.policy)) { in checkScreenWindowCovered()
813 exclude = Stream.of(exclude, hapVerifyInfo.getDistroFilter().screenWindow.value). in checkScreenWindowCovered()
843 for (HapVerifyInfo hapVerifyInfo : entryHaps) { in checkScreenDensityCovered()
844 …if (hapVerifyInfo.getDistroFilter() == null || hapVerifyInfo.getDistroFilter().screenDensity == nu… in checkScreenDensityCovered()
847 if (hapVerifyInfo.getDistroFilter().screenDensity.policy == null) { in checkScreenDensityCovered()
851 if (INCLUDE.equals(hapVerifyInfo.getDistroFilter().screenDensity.policy)) { in checkScreenDensityCovered()
855 include.addAll(hapVerifyInfo.getDistroFilter().screenDensity.value); in checkScreenDensityCovered()
856 } else if (EXCLUDE.equals(hapVerifyInfo.getDistroFilter().screenDensity.policy)) { in checkScreenDensityCovered()
860 exclude = Stream.of(exclude, hapVerifyInfo.getDistroFilter().screenDensity.value). in checkScreenDensityCovered()
890 for (HapVerifyInfo hapVerifyInfo : entryHaps) { in checkCountryCodeCovered()
891 …if (hapVerifyInfo.getDistroFilter() == null || hapVerifyInfo.getDistroFilter().countryCode == null… in checkCountryCodeCovered()
894 if (hapVerifyInfo.getDistroFilter().countryCode.policy == null) { in checkCountryCodeCovered()
898 if (INCLUDE.equals(hapVerifyInfo.getDistroFilter().countryCode.policy)) { in checkCountryCodeCovered()
902 include.addAll(hapVerifyInfo.getDistroFilter().countryCode.value); in checkCountryCodeCovered()
903 } else if (EXCLUDE.equals(hapVerifyInfo.getDistroFilter().countryCode.policy)) { in checkCountryCodeCovered()
907 exclude = Stream.of(exclude, hapVerifyInfo.getDistroFilter().countryCode.value). in checkCountryCodeCovered()
1015 for (HapVerifyInfo hapVerifyInfo : allHapVerifyInfo) { in checkDependencyIsValid()
1016 if (isInstallationFree != hapVerifyInfo.isInstallationFree()) { in checkDependencyIsValid()
1022 for (HapVerifyInfo hapVerifyInfo : allHapVerifyInfo) { in checkDependencyIsValid()
1024 dependencyList.add(hapVerifyInfo); in checkDependencyIsValid()
1025 if (!dfsTraverseDependency(hapVerifyInfo, allHapVerifyInfo, dependencyList, depth)) { in checkDependencyIsValid()
1044 HapVerifyInfo hapVerifyInfo, List<HapVerifyInfo> allHapVerifyInfo, in dfsTraverseDependency() argument
1055 for (DependencyItem dependency : hapVerifyInfo.getDependencyItemList()) { in dfsTraverseDependency()
1056 if (!dependency.getBundleName().equals(hapVerifyInfo.getBundleName())) { in dfsTraverseDependency()
1064 dependency.getModuleName(), hapVerifyInfo, allHapVerifyInfo); in dfsTraverseDependency()
1084 for (HapVerifyInfo hapVerifyInfo : allHapVerifyInfo) { in checkDependencyInFileList()
1085 …if (moduleName.equals(hapVerifyInfo.getModuleName()) && bundleName.equals(hapVerifyInfo.getBundleN… in checkDependencyInFileList()
1101 …String moduleName, HapVerifyInfo hapVerifyInfo, List<HapVerifyInfo> allHapVerifyInfo) throws Bundl… in getLayerDependency() argument
1104 if (item.getModuleName().equals(moduleName) && checkModuleJoint(hapVerifyInfo, item)) { in getLayerDependency()
1163 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in getHapVerifyInfoListNames()
1164 moduleNames.add((hapVerifyInfo.getModuleName())); in getHapVerifyInfoListNames()
1176 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in checkAtomicServiceModuleSize()
1177 List<String> dependencies = getModuleDependency(hapVerifyInfo, hapVerifyInfoList); in checkAtomicServiceModuleSize()
1183 long fileSize = hapVerifyInfo.getFileLength(); in checkAtomicServiceModuleSize()
1190 … if (hapVerifyInfo.getModuleType().equals(ENTRY) && (fileSize >= entryLimit * FILE_LENGTH_1M)) { in checkAtomicServiceModuleSize()
1191 … LOG.error("module " + hapVerifyInfo.getModuleName() + " and it's dependencies size is " + in checkAtomicServiceModuleSize()
1195 …if (!hapVerifyInfo.getModuleType().equals(ENTRY) && (fileSize >= notEntryLimit * FILE_LENGTH_1M)) { in checkAtomicServiceModuleSize()
1196 … LOG.error("module " + hapVerifyInfo.getModuleName() + " and it's dependencies size is " + in checkAtomicServiceModuleSize()
1222 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in getDeviceHapVerifyInfoMap()
1223 List<String> deviceTypes = hapVerifyInfo.getDeviceType(); in getDeviceHapVerifyInfoMap()
1227 infos.add(hapVerifyInfo); in getDeviceHapVerifyInfoMap()
1230 deviceInfoMap.get(device).add(hapVerifyInfo); in getDeviceHapVerifyInfoMap()
1277 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkAtomicServiceSumLimit()
1278 fileSize += hapVerifyInfo.getFileLength(); in checkAtomicServiceSumLimit()
1295 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in checkAtomicServicePreloadsIsValid()
1296 moduleNames.add(hapVerifyInfo.getModuleName()); in checkAtomicServicePreloadsIsValid()
1299 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in checkAtomicServicePreloadsIsValid()
1301 List<PreloadItem> preloadItems = hapVerifyInfo.getPreloadItems(); in checkAtomicServicePreloadsIsValid()
1306 " in " + hapVerifyInfo.getModuleName() + "."); in checkAtomicServicePreloadsIsValid()
1312 " in " + hapVerifyInfo.getModuleName() + "."); in checkAtomicServicePreloadsIsValid()
1315 if (moduleName.equals(hapVerifyInfo.getModuleName())) { in checkAtomicServicePreloadsIsValid()
1316 … LOG.error("can not preload self, " + hapVerifyInfo.getModuleName() + " preload self."); in checkAtomicServicePreloadsIsValid()
1323 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in checkAtomicServicePreloadsIsValid()
1324 moduleNameWithType.put(hapVerifyInfo.getModuleName(), hapVerifyInfo.getModuleType()); in checkAtomicServicePreloadsIsValid()
1326 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in checkAtomicServicePreloadsIsValid()
1327 List<PreloadItem> preloadItems = hapVerifyInfo.getPreloadItems(); in checkAtomicServicePreloadsIsValid()
1333 + hapVerifyInfo.getModuleName() + " preloads a " in checkAtomicServicePreloadsIsValid()
1363 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in checkFileSize()
1364 if (hapVerifyInfo.getModuleType().equals(ENTRY) && in checkFileSize()
1365 (hapVerifyInfo.getFileLength() >= entryLimit * FILE_LENGTH_1M)) { in checkFileSize()
1366 LOG.error("module " + hapVerifyInfo.getModuleName() + "'s size is " + in checkFileSize()
1367 getCeilFileSize(hapVerifyInfo.getFileLength(), entryLimit) + in checkFileSize()
1371 if (!hapVerifyInfo.getModuleType().equals(ENTRY) && in checkFileSize()
1372 (hapVerifyInfo.getFileLength() >= notEntryLimit * FILE_LENGTH_1M)) { in checkFileSize()
1373 LOG.error("module " + hapVerifyInfo.getModuleName() + "'s size is " + in checkFileSize()
1374 getCeilFileSize(hapVerifyInfo.getFileLength(), notEntryLimit) + in checkFileSize()
1391 private static List<String> getModuleDependency(HapVerifyInfo hapVerifyInfo, in getModuleDependency() argument
1394 dependencyModules.addAll(hapVerifyInfo.getDependencies()); in getModuleDependency()
1395 List<String> dependencyItems = hapVerifyInfo.getDependencies(); in getModuleDependency()
1413 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfoList) { in findAtomicServiceHapVerifyInfo()
1414 if (hapVerifyInfo.getModuleName().equals(moduleName)) { in findAtomicServiceHapVerifyInfo()
1415 return hapVerifyInfo; in findAtomicServiceHapVerifyInfo()