• Home
  • Raw
  • Download

Lines Matching refs:hapVerifyInfos

59 … public static boolean checkHapIsValid(List<HapVerifyInfo> hapVerifyInfos) throws BundleException {  in checkHapIsValid()  argument
60 if (hapVerifyInfos == null || hapVerifyInfos.isEmpty()) { in checkHapIsValid()
65 if (!checkAppFieldsIsSame(hapVerifyInfos)) { in checkHapIsValid()
70 if (!checkModuleNameIsValid(hapVerifyInfos)) { in checkHapIsValid()
74 if (!checkPackageNameIsValid(hapVerifyInfos)) { in checkHapIsValid()
79 if (!checkEntryIsValid(hapVerifyInfos)) { in checkHapIsValid()
83 if (!checkDependencyIsValid(hapVerifyInfos)) { in checkHapIsValid()
88 if (!checkAtomicServiceIsValid(hapVerifyInfos)) { in checkHapIsValid()
93 if (!checkAbilityNameIsValid(hapVerifyInfos)) { in checkHapIsValid()
97 if (!checkTargetModuleNameIsExisted(hapVerifyInfos)) { in checkHapIsValid()
101 if (!checkCompileSdkIsValid(hapVerifyInfos)) { in checkHapIsValid()
105 if (!checkProxyDataUriIsUnique(hapVerifyInfos)) { in checkHapIsValid()
119 …public static boolean checkSharedApppIsValid(List<HapVerifyInfo> hapVerifyInfos) throws BundleExce… in checkSharedApppIsValid() argument
120 if (hapVerifyInfos == null || hapVerifyInfos.isEmpty()) { in checkSharedApppIsValid()
124 String moduleName = hapVerifyInfos.get(0).getModuleName(); in checkSharedApppIsValid()
125 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkSharedApppIsValid()
139 for (int i = 0; i < hapVerifyInfos.size(); i++) { in checkSharedApppIsValid()
140 for (int j = i + 1; j < hapVerifyInfos.size(); j++) { in checkSharedApppIsValid()
141 if (!checkDuplicatedIsValid(hapVerifyInfos.get(i), hapVerifyInfos.get(j))) { in checkSharedApppIsValid()
157 private static boolean checkAppFieldsIsSame(List<HapVerifyInfo> hapVerifyInfos) { in checkAppFieldsIsSame() argument
158 if (hapVerifyInfos.isEmpty()) { in checkAppFieldsIsSame()
163 verifyCollection.bundleName = hapVerifyInfos.get(0).getBundleName(); in checkAppFieldsIsSame()
164 verifyCollection.setBundleType(hapVerifyInfos.get(0).getBundleType()); in checkAppFieldsIsSame()
165 verifyCollection.vendor = hapVerifyInfos.get(0).getVendor(); in checkAppFieldsIsSame()
166 verifyCollection.versionCode = hapVerifyInfos.get(0).getVersion().versionCode; in checkAppFieldsIsSame()
167 verifyCollection.versionName = hapVerifyInfos.get(0).getVersion().versionName; in checkAppFieldsIsSame()
168 …verifyCollection.minCompatibleVersionCode = hapVerifyInfos.get(0).getVersion().minCompatibleVersio… in checkAppFieldsIsSame()
169 …verifyCollection.compatibleApiVersion = hapVerifyInfos.get(0).getApiVersion().getCompatibleApiVers… in checkAppFieldsIsSame()
170 … verifyCollection.targetApiVersion = hapVerifyInfos.get(0).getApiVersion().getTargetApiVersion(); in checkAppFieldsIsSame()
171 verifyCollection.releaseType = hapVerifyInfos.get(0).getApiVersion().getReleaseType(); in checkAppFieldsIsSame()
172 verifyCollection.targetBundleName = hapVerifyInfos.get(0).getTargetBundleName(); in checkAppFieldsIsSame()
173 verifyCollection.targetPriority = hapVerifyInfos.get(0).getTargetPriority(); in checkAppFieldsIsSame()
174 verifyCollection.debug = hapVerifyInfos.get(0).isDebug(); in checkAppFieldsIsSame()
175 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkAppFieldsIsSame()
236 …private static boolean checkModuleNameIsValid(List<HapVerifyInfo> hapVerifyInfos) throws BundleExc… in checkModuleNameIsValid() argument
237 for (int i = 0; i < hapVerifyInfos.size() - 1; ++i) { in checkModuleNameIsValid()
238 if (hapVerifyInfos.get(i).getModuleName().isEmpty()) { in checkModuleNameIsValid()
242 for (int j = i + 1; j < hapVerifyInfos.size(); ++j) { in checkModuleNameIsValid()
243 … if (hapVerifyInfos.get(i).getModuleName().equals(hapVerifyInfos.get(j).getModuleName()) && in checkModuleNameIsValid()
244 !checkDuplicatedIsValid(hapVerifyInfos.get(i), hapVerifyInfos.get(j))) { in checkModuleNameIsValid()
245 … LOG.error("Module: (" + hapVerifyInfos.get(i).getModuleName() + ") and Module: (" + in checkModuleNameIsValid()
246 hapVerifyInfos.get(j).getModuleName() + ") have the same moduleName, " + in checkModuleNameIsValid()
248 … LOG.error("Module: " + hapVerifyInfos.get(i).getModuleName() + " has deviceType " in checkModuleNameIsValid()
249 + hapVerifyInfos.get(i).getDeviceType() + "."); in checkModuleNameIsValid()
250 … LOG.error("Another Module: " + hapVerifyInfos.get(j).getModuleName() + " has deviceType " in checkModuleNameIsValid()
251 + hapVerifyInfos.get(j).getDeviceType() + "."); in checkModuleNameIsValid()
252 if (!EMPTY_STRING.equals(hapVerifyInfos.get(i).getDistroFilter().dump())) { in checkModuleNameIsValid()
253 … LOG.error("Module: " + hapVerifyInfos.get(i).getModuleName() + " DistroFilter is : " in checkModuleNameIsValid()
254 + hapVerifyInfos.get(i).getDistroFilter().dump() + "."); in checkModuleNameIsValid()
256 if (!EMPTY_STRING.equals(hapVerifyInfos.get(j).getDistroFilter().dump())) { in checkModuleNameIsValid()
257 … LOG.error("Another Module: " + hapVerifyInfos.get(j).getModuleName() + " DistroFilter is " in checkModuleNameIsValid()
258 + hapVerifyInfos.get(j).getDistroFilter().dump() + "."); in checkModuleNameIsValid()
276 …private static boolean checkPackageNameIsValid(List<HapVerifyInfo> hapVerifyInfos) throws BundleEx… in checkPackageNameIsValid() argument
277 for (int i = 0; i < hapVerifyInfos.size() - 1; ++i) { in checkPackageNameIsValid()
278 if (hapVerifyInfos.get(i).getPackageName().isEmpty()) { in checkPackageNameIsValid()
281 for (int j = i + 1; j < hapVerifyInfos.size(); ++j) { in checkPackageNameIsValid()
282 … if (hapVerifyInfos.get(i).getPackageName().equals(hapVerifyInfos.get(j).getPackageName()) && in checkPackageNameIsValid()
283 !checkDuplicatedIsValid(hapVerifyInfos.get(i), hapVerifyInfos.get(j))) { in checkPackageNameIsValid()
284 … LOG.error("Module: (" + hapVerifyInfos.get(i).getModuleName() + ") and Module: (" + in checkPackageNameIsValid()
285hapVerifyInfos.get(j).getModuleName() + ") have the same packageName, " + in checkPackageNameIsValid()
287 … LOG.error("Module: " + hapVerifyInfos.get(i).getModuleName() + " has deviceType " in checkPackageNameIsValid()
288 + hapVerifyInfos.get(i).getDeviceType() + "."); in checkPackageNameIsValid()
289 … LOG.error("Another Module: " + hapVerifyInfos.get(j).getModuleName() + " has deviceType " in checkPackageNameIsValid()
290 + hapVerifyInfos.get(j).getDeviceType() + "."); in checkPackageNameIsValid()
291 if (!EMPTY_STRING.equals(hapVerifyInfos.get(i).getDistroFilter().dump())) { in checkPackageNameIsValid()
292 … LOG.error("Module: " + hapVerifyInfos.get(i).getModuleName() + " DistroFilter is : " + in checkPackageNameIsValid()
293 hapVerifyInfos.get(i).getDistroFilter().dump() + "."); in checkPackageNameIsValid()
295 if (!EMPTY_STRING.equals(hapVerifyInfos.get(j).getDistroFilter().dump())) { in checkPackageNameIsValid()
296 … LOG.error("Another Module: " + hapVerifyInfos.get(j).getModuleName() + " DistroFilter is " + in checkPackageNameIsValid()
297 hapVerifyInfos.get(j).getDistroFilter().dump() + "."); in checkPackageNameIsValid()
315 …private static boolean checkAbilityNameIsValid(List<HapVerifyInfo> hapVerifyInfos) throws BundleEx… in checkAbilityNameIsValid() argument
316 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkAbilityNameIsValid()
324 for (int i = 0; i < hapVerifyInfos.size(); ++i) { in checkAbilityNameIsValid()
325 if (hapVerifyInfos.get(i).getAbilityNames().isEmpty()) { in checkAbilityNameIsValid()
328 for (int j = i + 1; j < hapVerifyInfos.size(); ++j) { in checkAbilityNameIsValid()
329 if (!Collections.disjoint(hapVerifyInfos.get(i).getAbilityNames(), in checkAbilityNameIsValid()
330 hapVerifyInfos.get(j).getAbilityNames()) && in checkAbilityNameIsValid()
331 !checkDuplicatedIsValid(hapVerifyInfos.get(i), hapVerifyInfos.get(j))) { in checkAbilityNameIsValid()
332 … LOG.warning("Module: (" + hapVerifyInfos.get(i).getModuleName() + ") and Module: (" + in checkAbilityNameIsValid()
333hapVerifyInfos.get(j).getModuleName() + ") have the same ability name."); in checkAbilityNameIsValid()
334 LOG.warning("Module: " + hapVerifyInfos.get(i).getModuleName() + " has ability " in checkAbilityNameIsValid()
335 + hapVerifyInfos.get(i).getAbilityNames() + "."); in checkAbilityNameIsValid()
336 LOG.warning("Module: " + hapVerifyInfos.get(j).getModuleName() + " has ability " in checkAbilityNameIsValid()
337 + hapVerifyInfos.get(j).getAbilityNames() + "."); in checkAbilityNameIsValid()
354 …private static boolean checkTargetModuleNameIsExisted(List<HapVerifyInfo> hapVerifyInfos) throws B… in checkTargetModuleNameIsExisted() argument
359 for (HapVerifyInfo hapInfo : hapVerifyInfos) { in checkTargetModuleNameIsExisted()
389 …private static boolean checkCompileSdkIsValid(List<HapVerifyInfo> hapVerifyInfos) throws BundleExc… in checkCompileSdkIsValid() argument
390 if (hapVerifyInfos.isEmpty()) { in checkCompileSdkIsValid()
394 String compileSdkVersion = hapVerifyInfos.get(0).getCompileSdkVersion(); in checkCompileSdkIsValid()
395 String compileSdkType = hapVerifyInfos.get(0).getCompileSdkType(); in checkCompileSdkIsValid()
396 for (HapVerifyInfo info : hapVerifyInfos) { in checkCompileSdkIsValid()
409 …private static boolean checkProxyDataUriIsUnique(List<HapVerifyInfo> hapVerifyInfos) throws Bundle… in checkProxyDataUriIsUnique() argument
410 if (hapVerifyInfos.isEmpty()) { in checkProxyDataUriIsUnique()
415 for (HapVerifyInfo info : hapVerifyInfos) { in checkProxyDataUriIsUnique()
435 …private static boolean checkEntryIsValid(List<HapVerifyInfo> hapVerifyInfos) throws BundleExceptio… in checkEntryIsValid() argument
438 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkEntryIsValid()
447 if (hapVerifyInfos.isEmpty() in checkEntryIsValid()
448 …|| (entryHapVerifyInfos.isEmpty() && (!SHARED_LIBRARY.equals(hapVerifyInfos.get(0).getBundleType()… in checkEntryIsValid()
1253 List<HapVerifyInfo> hapVerifyInfos = deviceInfoMap.get(device); in checkAtomicServiceIsValid() local
1254 if (!checkAtomicServiceSumLimit(hapVerifyInfos)) { in checkAtomicServiceIsValid()
1258 if (!checkAtomicServicePreloadsIsValid(hapVerifyInfos)) { in checkAtomicServiceIsValid()
1271 private static boolean checkAtomicServiceSumLimit(List<HapVerifyInfo>hapVerifyInfos) { in checkAtomicServiceSumLimit() argument
1272 int sumLimit = hapVerifyInfos.get(0).getSumSizeLimit(); in checkAtomicServiceSumLimit()
1273 if (!hapVerifyInfos.get(0).isStageModule()) { in checkAtomicServiceSumLimit()
1277 for (HapVerifyInfo hapVerifyInfo : hapVerifyInfos) { in checkAtomicServiceSumLimit()