/developtools/packing_tool/adapter/ohos/ |
H A D | VerifyCollection.java | 109 private String bundleType = "app";
field in VerifyCollection 141 public void setBundleType(String bundleType) {
in setBundleType() argument 142 this.bundleType = bundleType;
in setBundleType() 146 return bundleType;
in getBundleType()
|
H A D | AppInfo.java | 112 private String bundleType = "app"; field in AppInfo 177 return bundleType; in getBundleType() 221 bundleType = type; in setBundleType()
|
H A D | ModuleAppInfo.java | 118 private String bundleType = "app"; field in ModuleAppInfo 164 bundleType = type; in setBundleType() 181 return bundleType; in getBundleType()
|
H A D | HapVerifyInfo.java | 113 private String bundleType = "app";
field in HapVerifyInfo 385 return bundleType;
in getBundleType() 388 public void setBundleType(String bundleType) {
in setBundleType() argument 389 this.bundleType = bundleType;
in setBundleType()
|
H A D | PackageUtil.java | 100 * @return the bundleType 159 String bundleType = appObject.getString(Constants.BUNDLE_TYPE); in getBundleTypeFromModuleJson() 160 return bundleType != null ? bundleType : Constants.APP; in getBundleTypeFromModuleJson() 697 String bundleType = ""; in checkBundleTypeConsistency() 699 bundleType = getBundleTypeFromPath(Paths.get(hapPathList.get(0))); in checkBundleTypeConsistency() 701 bundleType = getBundleTypeFromPath(Paths.get(hspPathList.get(0))); in checkBundleTypeConsistency() 703 if (bundleType == null || bundleType.isEmpty()) { in checkBundleTypeConsistency() 707 if (!bundleType in checkBundleTypeConsistency() [all...] |
H A D | ModuleJsonUtil.java | 31 private static final String BUNDLE_TYPE = "bundleType";
176 * get the bundleType fa module.
433 // check bundleType
in verifyAppInPackInfo() 435 LOG.error("ModuleJsonUtil:verifyAppInPackInfo bundleType is different.");
in verifyAppInPackInfo() 455 * verify bundleType in pack.info file.
475 LOG.error("bundleType in pack.info is not same.");
in checkBundleTypeInPackInfo() 695 String errMsg = "verify pack.info failed, different version, bundleType or bundleName.";
in mergeTwoPackInfoByPackagePair() 1260 " true settings. Add the bundleType field to the app.json5 file and set it atomicService.";
in parseStageBundleType() 1266 String bundleType = getJsonString(appObj, BUNDLE_TYPE);
in parseStageBundleType() 1267 if (bundleType in parseStageBundleType() [all...] |
H A D | CompressVerify.java | 477 LOG.error("CompressVerify::isArgsValidInAppMode bundleType is inconsistent."); in isVerifyValidInAppMode() 538 String bundleType = new String(); in checkBundleTypeConsistency() 546 bundleType = hapVerifyInfo.getBundleType(); in checkBundleTypeConsistency() 549 bundleType = hapVerifyInfo.getBundleType(); in checkBundleTypeConsistency() 553 if (!bundleType.equals(hapVerifyInfo.getBundleType())) { in checkBundleTypeConsistency() 554 LOG.error("bundleType is not same"); in checkBundleTypeConsistency() 560 if (!bundleType.equals(hapVerifyInfo.getBundleType())) { in checkBundleTypeConsistency() 561 LOG.error("bundleType is not same"); in checkBundleTypeConsistency()
|
H A D | Compressor.java | 482 String bundleType = ModuleJsonUtil.parseStageBundleType(jsonString); in compressHap() 483 if (TYPE_SHARED.equals(bundleType)) { in compressHap() 729 String bundleType = hapVerifyInfos.get(0).getBundleType(); in checkAppAtomicServiceCompressedSizeValid() 730 if (!bundleType.equals(ATOMIC_SERVICE)) { in checkAppAtomicServiceCompressedSizeValid() 2908 String bundleType = hapVerifyInfo.getBundleType(); in checkHapIsValid() 2909 if (TYPE_SHARED.equals(bundleType)) { in checkHapIsValid() 2911 " when bundleType is shared."); in checkHapIsValid()
|
/developtools/packing_tool/packing_tool/frameworks/src/json/ |
H A D | module_json.cpp | 27 const std::string BUNDLE_TYPE = "bundleType"; 829 const std::string& bundleType, const bool& installationFree) in CheckStageBundleType() 831 if (bundleType.compare(APP) == 0) { in CheckStageBundleType() 833 LOGE("installationFree must be false in module %s when bundleType is app", moduleName.c_str()); in CheckStageBundleType() 837 } else if (bundleType.compare(ATOMIC_SERVICE) == 0) { in CheckStageBundleType() 839 LOGE("installationfree must be true in module %s when bundleType is atomicService", in CheckStageBundleType() 844 } else if (bundleType.compare(SHARED) == 0) { in CheckStageBundleType() 846 LOGE("moduleType must be shared bundleType is shared[bundleType=%s][moduleType=%s]", in CheckStageBundleType() 847 bundleType in CheckStageBundleType() 828 CheckStageBundleType(const std::string& moduleName, const std::string& moduleType, const std::string& bundleType, const bool& installationFree) CheckStageBundleType() argument 1076 std::string bundleType; IsModuleAtomicServiceValid() local 1092 std::string bundleType; CheckEntryInAtomicService() local 1130 std::string bundleType; CheckAtomicServiceInstallationFree() local [all...] |
H A D | module_json_stage.cpp | 27 const std::string BUNDLE_TYPE = "bundleType"; 444 bool ModuleJson::GetStageBundleType(std::string& bundleType) in GetStageBundleType() argument 468 "true settings. Add the bundleType field to the app.json5 file and set it atomicService."); in GetStageBundleType() 471 bundleType = APP; in GetStageBundleType() 473 } else if (appObj->GetString(BUNDLE_TYPE.c_str(), &bundleType) == Result::SUCCESS) { in GetStageBundleType() 474 return CheckStageBundleType(moduleName, moduleType, bundleType, installationFree); in GetStageBundleType() 607 std::string bundleType; in GetStageHapVerifyInfo() local 613 if (!GetStageBundleType(bundleType)) { in GetStageHapVerifyInfo() 622 hapVerifyInfo.SetBundleType(bundleType); in GetStageHapVerifyInfo()
|
H A D | pack_info.cpp | 32 const std::string BUNDLE_TYPE = "bundleType"; 208 bool PackInfo::GetBundleType(std::string& bundleType, const std::string& defaultBundleType) in GetBundleType() argument 215 return GetBundleTypeByAppObj(appObj, bundleType, defaultBundleType); in GetBundleType() 218 bool PackInfo::GetBundleTypeByAppObj(const std::unique_ptr<PtJson>& appObj, std::string& bundleType, in GetBundleTypeByAppObj() argument 226 if (appObj->GetString(BUNDLE_TYPE.c_str(), &bundleType) != Result::SUCCESS) { in GetBundleTypeByAppObj() 231 bundleType = defaultBundleType; in GetBundleTypeByAppObj()
|
H A D | hap_verify_info.cpp | 193 void HapVerifyInfo::SetBundleType(const std::string& bundleType) in SetBundleType() argument 195 bundleType_ = bundleType; in SetBundleType()
|
H A D | module_json_fa.cpp | 27 const std::string BUNDLE_TYPE = "bundleType"; 224 bool ModuleJson::GetFaBundleType(std::string& bundleType) in GetFaBundleType() argument 231 bundleType = ATOMIC_SERVICE; in GetFaBundleType() 233 bundleType = APP; in GetFaBundleType() 697 std::string bundleType; in GetFaHapVerifyInfo() local 704 if (!GetFaBundleType(bundleType)) { in GetFaHapVerifyInfo() 714 hapVerifyInfo.SetBundleType(bundleType); in GetFaHapVerifyInfo()
|
H A D | hap_verify_utils.cpp | 106 verifyCollection.bundleType = hapVerifyInfo.GetBundleType(); in CheckAppFieldsIsSame() 140 if (verifyCollection.bundleType != hapVerifyInfo.GetBundleType()) { in AppFieldsIsSame() 141 LOGE("input module bundleType is different."); in AppFieldsIsSame()
|
/developtools/packing_tool/packing_tool/frameworks/src/ |
H A D | fast_app_packager.cpp | 95 LOGE("bundleType is inconsistent."); in IsVerifyValidInFastAppMode() 274 std::string bundleType; in CheckBundleTypeConsistency() local 276 bundleType = GetBundleTypeFromPath(hapPathList.front()); in CheckBundleTypeConsistency() 278 bundleType = GetBundleTypeFromPath(hspPathList.front()); in CheckBundleTypeConsistency() 280 if (bundleType.empty()) { in CheckBundleTypeConsistency() 284 if (GetBundleTypeFromPath(hapPath) != bundleType) { in CheckBundleTypeConsistency() 285 LOGE("bundleType is not same"); in CheckBundleTypeConsistency() 290 if (GetBundleTypeFromPath(hspPath) != bundleType) { in CheckBundleTypeConsistency() 291 LOGE("bundleType is not same"); in CheckBundleTypeConsistency() 295 if (bundleType in CheckBundleTypeConsistency() 361 std::string bundleType; GetBundleTypeFromModuleJson() local [all...] |
H A D | app_packager.cpp | 74 std::string bundleType; in CheckBundleTypeConsistency() local 85 bundleType = hapVerifyInfo.GetBundleType(); in CheckBundleTypeConsistency() 92 bundleType = hapVerifyInfo.GetBundleType(); in CheckBundleTypeConsistency() 100 if (bundleType != hapVerifyInfo.GetBundleType()) { in CheckBundleTypeConsistency() 101 LOGE("bundleType is not same"); in CheckBundleTypeConsistency() 111 if (bundleType != hapVerifyInfo.GetBundleType()) { in CheckBundleTypeConsistency() 112 LOGE("bundleType is not same"); in CheckBundleTypeConsistency() 241 LOGE("bundleType is inconsistent."); in GetAndCheckHapPathAndHspPath()
|
H A D | hap_packager.cpp | 323 std::string bundleType; in CompressHap() local 324 if (!moduleJson_.GetStageBundleType(bundleType)) { in CompressHap() 327 if (Constants::TYPE_SHARED == bundleType) { in CompressHap()
|
/developtools/packing_tool/packing_tool/frameworks/test/unittest/json/module_json_stage_test/ |
H A D | module_json_stage_test.cpp | 56 "\"bundleType\": \"atomicService\"," 323 "\"bundleType\": \"atomicService\"," 463 "\"bundleType\": \"atomicService\"," 593 "\"bundleType\": \"atomicService\"," 636 "\"bundleType\": \"atomicService\"," 778 "\"bundleType\": \"atomicService\"," 920 "\"bundleType\": \"atomicService\"," 1594 std::string bundleType = ""; in HWTEST_F() local 1597 EXPECT_FALSE(moduleJson.GetStageBundleType(bundleType)); in HWTEST_F() 1598 EXPECT_STREQ(bundleType in HWTEST_F() 1610 std::string bundleType = ""; HWTEST_F() local 1626 std::string bundleType = ""; HWTEST_F() local [all...] |
/developtools/packing_tool/packing_tool/frameworks/include/json/ |
H A D | pack_info.h | 67 bool GetBundleType(std::string& bundleType, const std::string& defaultBundleType); 68 bool GetBundleTypeByAppObj(const std::unique_ptr<PtJson>& appObj, std::string& bundleType,
|
H A D | module_json.h | 73 bool GetStageBundleType(std::string& bundleType); 116 bool GetFaBundleType(std::string& bundleType); 199 const std::string& bundleType, const bool& installationFree);
|
H A D | hap_verify_info.h | 71 void SetBundleType(const std::string& bundleType);
|
H A D | hap_verify_utils.h | 47 std::string bundleType = "app"; member
|
/developtools/packing_tool/packing_tool/frameworks/test/unittest/json/pack_info_test/ |
H A D | pack_info_test.cpp | 37 "\"bundleType\": \"bundleApp\"," 149 "\"bundleType\": \"bundleApp\"," 175 "\"bundleType\": \"\"," 227 "\"bundleType\": \"bundleApp\"," 241 "\"bundleType\": \"bundleApp\"," 256 "\"bundleType\": \"bundleApp\"," 270 "\"bundleType\": \"bundleApp\"," 285 "\"bundleType\": \"bundleApp\"," 980 std::string bundleType = ""; in HWTEST_F() local 982 EXPECT_TRUE(packInfo.GetBundleType(bundleType, defaultBundleTyp in HWTEST_F() 995 std::string bundleType = ""; HWTEST_F() local 1012 std::string bundleType = ""; HWTEST_F() local 1027 std::string bundleType = ""; HWTEST_F() local 1044 std::string bundleType = ""; HWTEST_F() local [all...] |
/developtools/packing_tool/packing_tool/frameworks/test/unittest/json/module_json_test/ |
H A D | module_json_test.cpp | 39 "\"bundleType\": \"atomicService\"," 203 "\"bundleType\": \"atomicService\"," 444 "\"bundleType\": \"test_atomicService\"" 459 "\"bundleType\": \"atomicService\"" 474 "\"bundleType\": \"atomicService\"" 487 "\"bundleType\": \"atomicService\"" 500 "\"bundleType\": \"shared\"" 537 "\"bundleType\": \"atomicService\"" 552 "\"bundleType\": \"shared\"" 563 "\"bundleType\" 1728 std::string bundleType = ""; HWTEST_F() local 1743 std::string bundleType = ""; HWTEST_F() local 3393 std::string bundleType = ""; HWTEST_F() local 4432 std::string bundleType = ""; HWTEST_F() local 5234 std::string bundleType = "app"; HWTEST_F() local 5250 std::string bundleType = "app"; HWTEST_F() local 5266 std::string bundleType = ""; HWTEST_F() local 5282 std::string bundleType = "atomicService"; HWTEST_F() local 5298 std::string bundleType = "shared"; HWTEST_F() local 5314 std::string bundleType = "shared"; HWTEST_F() local 5330 std::string bundleType = "appService"; HWTEST_F() local 6939 std::string bundleType = ""; HWTEST_F() local [all...] |
/developtools/ace_ets2bundle/compiler/ |
H A D | main.js | 116 projectConfig.bundleType = projectConfig.bundleType || process.env.bundleType || ''; 1104 'sdkInfo', 'checkEntry', 'obfuscateHarType', 'isCrossplatform', 'enableDebugLine', 'bundleType'
|