| /developtools/profiler/device/plugins/native_daemon/src/ |
| H A D | hook_service.cpp | 67 std::string bundleName; in ProtocolProc() local 68 if (!LoadStringFromFile(filePath, bundleName)) { in ProtocolProc() 73 bundleName.resize(strlen(bundleName.c_str())); in ProtocolProc() 75 if (bundleName.substr(0, 2) == "./") { // 2: size in ProtocolProc() 76 bundleName = bundleName.substr(2); // 2: point in ProtocolProc() 78 size_t found = bundleName.rfind("/"); in ProtocolProc() 81 procName = bundleName.substr(found + 1); in ProtocolProc() 83 procName = bundleName; in ProtocolProc() [all...] |
| /developtools/packing_tool/adapter/ohos/ |
| H A D | DependencyItem.java | 26 private String bundleName = null;
field in DependencyItem 39 return bundleName;
in getBundleName() 42 public void setBundleName(String bundleName) {
in setBundleName() argument 43 this.bundleName = bundleName;
in setBundleName()
|
| H A D | HQFInfo.java | 24 private String bundleName = "";
field in HQFInfo 43 return bundleName;
in getBundleName() 46 public void setBundleName(String bundleName) {
in setBundleName() argument 47 this.bundleName = bundleName;
in setBundleName()
|
| H A D | HapVerifyInfo.java | 29 * Indicates the bundleName of module.
31 private String bundleName = "";
field in HapVerifyInfo 148 return bundleName;
in getBundleName() 154 public void setBundleName(String bundleName) {
in setBundleName() argument 155 this.bundleName = bundleName;
in setBundleName() 378 if (item.getBundleName() != null && item.getBundleName().equals(bundleName)) {
in convertToDependency()
|
| H A D | HQFVerify.java | 57 String bundleName = hqfVerifyInfos.get(0).getBundleName();
in checkAppFields() 63 if (bundleName == null || !bundleName.equals(hqfVerifyInfo.getBundleName())) {
in checkAppFields() 64 LOG.error("input hqf file has different bundleName.");
in checkAppFields()
|
| H A D | PackageNormalize.java | 44 * PackageNormalize, normalize HSP bundleName and versionCode 57 private static final String BUNDLE_NAME = "bundleName"; 62 * normalize HSP bundleName and versionCode 83 private static void normalize(Path hspPath, Path outPath, String bundleName, int versionCode) in normalize() argument 106 // 2.update bundleName, versionCode to module.json, pack.info in normalize() 107 updateModuleJson(moduleJson, bundleName, versionCode); in normalize() 108 updatePackInfo(packInfo, bundleName, versionCode); in normalize() 133 private static void updateModuleJson(Path moduleJson, String bundleName, int versionCode) in updateModuleJson() argument 146 appObject.put(BUNDLE_NAME, bundleName); in updateModuleJson() 154 private static void updatePackInfo(Path packInfo, String bundleName, in argument [all...] |
| H A D | Want.java | 25 public String bundleName = "";
field in Want
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/profile/model/ |
| H A D | BundleInfo.java | 50 private String bundleName; field in BundleInfo 94 return bundleName; in getBundleName() 97 public void setBundleName(String bundleName) { in setBundleName() argument 98 this.bundleName = bundleName; in setBundleName()
|
| /developtools/profiler/device/plugins/xpower_plugin/src/ |
| H A D | xpower_plugin.cpp | 58 std::string bundleName = protoConfig_.bundle_name(); in Start() local 70 PROFILER_LOG_INFO(LOG_CORE, "bundleName is %s,messagetype is %d", bundleName.c_str(), messageType); in Start() 74 if (bundleName.empty()) { in Start() 78 // check bundleName in Start() 79 int32_t uid = COMMON::GetPackageUid(bundleName); in Start() 81 PROFILER_LOG_ERROR(LOG_CORE, "the bundle name %s is not supported", bundleName.c_str()); in Start() 87 bool isExsit = COMMON::IsProcessExist(bundleName, processId); in Start() 89 PROFILER_LOG_ERROR(LOG_CORE, "%s:the process %s does not exist.", __func__, bundleName.c_str()); in Start() 95 if (!StartPowerManager(messageType, bundleName)) { in Start() 103 StartPowerManager(std::uint32_t messageType, std::string &bundleName) StartPowerManager() argument [all...] |
| /developtools/profiler/device/plugins/ffrt_profiler/service/src/ |
| H A D | ffrt_profiler_socket_service.cpp | 65 std::string bundleName = GetProcessName(pid); in ProtocolProc() local 68 auto [eventFd, smbFd] = ffrtMgr_->GetFfrtProfilerCtx(pid, bundleName); in ProtocolProc() 70 PROFILER_LOG_INFO(LOG_CORE, "Wait for process %s to restart", bundleName.c_str()); in ProtocolProc() 74 PROFILER_LOG_ERROR(LOG_CORE, "Get eventFd and smbFd failed!, name: %s, pid: %d", bundleName.c_str(), pid); in ProtocolProc()
|
| /developtools/profiler/device/plugins/network_profiler/service/src/ |
| H A D | network_profiler_socket_service.cpp | 65 std::string bundleName = GetProcessNameByPid(pid); in ProtocolProc() local 68 auto [eventFd, smbFd] = networkMgr_->GetNetworkProfilerCtx(pid, bundleName); in ProtocolProc() 70 PROFILER_LOG_INFO(LOG_CORE, "Wait for process %s to restart", bundleName.c_str()); in ProtocolProc() 74 PROFILER_LOG_ERROR(LOG_CORE, "Get eventFd and smbFd failed!, name: %s, pid: %d", bundleName.c_str(), pid); in ProtocolProc()
|
| /developtools/packing_tool/packing_tool/frameworks/test/unittest/hqf_verify_test/ |
| H A D | hqf_verify_test.cpp | 59 std::string bundleName("bundleName"); in CreateHqfInfo() 60 hqfInfo.SetBundleName(bundleName); in CreateHqfInfo() 94 std::string bundleName = ""; in HWTEST_F() local 95 hqfInfos.at(0).SetBundleName(bundleName); in HWTEST_F() 109 std::string bundleName("bundleName"); in HWTEST_F() 110 hqfInfo.SetBundleName(bundleName); in HWTEST_F()
|
| /developtools/hdc/hdcd_user_permit/src/ |
| H A D | connection.cpp | 35 string bundleName = "com.ohos.settings"; in OnAbilityConnectDone() local 42 data.WriteString16(Str8ToStr16("bundleName")); in OnAbilityConnectDone() 43 data.WriteString16(Str8ToStr16(bundleName)); in OnAbilityConnectDone() 67 bundleName.c_str(), abilityName.c_str(), parameters.c_str(), ret); in OnAbilityConnectDone()
|
| /developtools/profiler/device/base/src/ |
| H A D | common.cpp | 480 std::string bundleName; in CheckApplicationPermission() local 483 if (!LoadStringFromFile(filePath, bundleName)) { in CheckApplicationPermission() 487 bundleName.resize(strlen(bundleName.c_str())); in CheckApplicationPermission() 489 bundleName = processName; in CheckApplicationPermission() 491 auto pos = bundleName.find(":"); in CheckApplicationPermission() 493 bundleName = bundleName.substr(0, pos); in CheckApplicationPermission() 495 CHECK_TRUE(!bundleName.empty(), false, "Pid or process name is illegal!"); in CheckApplicationPermission() 503 bool ret = proxy->GetApplicationInfo(bundleName, AppExecFw in CheckApplicationPermission() 513 std::string bundleName; CheckApplicationEncryped() local [all...] |
| /developtools/hiperf/src/ |
| H A D | utilities.cpp | 664 bool IsExistDebugByApp(const std::string& bundleName) in IsExistDebugByApp() argument 666 std::string bundleNameTmp = bundleName; in IsExistDebugByApp() 684 std::string bundleName = GetProcessName(pid); in IsExistDebugByPid() local 685 auto pos = bundleName.find(":"); in IsExistDebugByPid() 687 bundleName = bundleName.substr(0, pos); in IsExistDebugByPid() 689 if (!IsSupportNonDebuggableApp() && !IsDebugableApp(bundleName)) { in IsExistDebugByPid() 690 HLOGE("-p option only support debug application for %s", bundleName.c_str()); in IsExistDebugByPid() 698 bool IsDebugableApp(const std::string& bundleName) in IsDebugableApp() argument 701 CHECK_TRUE(bundleName in IsDebugableApp() [all...] |
| /developtools/packing_tool/packing_tool/frameworks/src/ |
| H A D | hqf_verify.cpp | 42 const std::string& bundleName = hqfInfos[0].GetBundleName(); in CheckAppFields() local 49 if (bundleName.empty() || bundleName != info.GetBundleName()) { in CheckAppFields() 50 LOGE("Input hqf file has different bundleName!"); in CheckAppFields()
|
| H A D | package_normalize.cpp | 126 std::string bundleName = parameterMap_.at(Constants::PARAM_BUNDLE_NAME); in Process() local 143 if (!ModifyModuleJson(moduleJsonPath, versionCode, bundleName)) { in Process() 147 if (!ModifyPackInfo(packInfoPath, versionCode, bundleName)) { in Process()
|
| /developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/ |
| H A D | native_memory_profiler_sa_service.cpp | 333 std::string bundleName; in ProtocolProc() local 334 if (!LoadStringFromFile(filePath, bundleName)) { in ProtocolProc() 338 bundleName.resize(strlen(bundleName.c_str())); in ProtocolProc() 340 if (bundleName.substr(0, 2) == "./") { // 2: size, Command line programs will be prefixed with "./" in ProtocolProc() 341 bundleName = bundleName.substr(2); // 2: point in ProtocolProc() 343 FillTaskConfigContext(peerConfig, bundleName); // Save the relevant context for subsequent inspection in ProtocolProc() 347 auto [eventFd, smbFd] = iter->second->hookMgr->GetFds(peerConfig, bundleName); in ProtocolProc() 351 "Get eventFd and smbFd failed!, name: %s, pid: %d", bundleName in ProtocolProc() [all...] |
| /developtools/packing_tool/packing_tool/frameworks/src/json/ |
| H A D | hap_verify_info.cpp | 27 void HapVerifyInfo::SetBundleName(const std::string& bundleName) in SetBundleName() argument 29 bundleName_ = bundleName; in SetBundleName() 361 if (!item.bundleName.empty() && item.bundleName.compare(bundleName_) == 0) { in ConvertToDependency() 362 dependencies_.emplace_back(item.bundleName); in ConvertToDependency()
|
| /developtools/packing_tool/packing_tool/frameworks/test/unittest/package_normalize_test/ |
| H A D | package_normalize_test.cpp | 315 std::string bundleName("extremely-long-long-long"); //24 in HWTEST_F() 316 bundleName.append(bundleName); //48 in HWTEST_F() 317 bundleName.append(bundleName); //96 in HWTEST_F() 318 bundleName.append(bundleName); //192 in HWTEST_F() 323 {OHOS::AppPackingTool::Constants::PARAM_BUNDLE_NAME, bundleName}, in HWTEST_F() 413 std::string bundleName; in HWTEST_F() local 414 EXPECT_TRUE(moduleJson.GetBundleName(bundleName)); in HWTEST_F() 562 std::string bundleName; HWTEST_F() local [all...] |
| /developtools/packing_tool/packing_tool/frameworks/include/json/ |
| H A D | hqf_info.h | 35 void SetBundleName(const std::string& bundleName) in SetBundleName() argument 37 bundleName_ = bundleName; in SetBundleName()
|
| H A D | patch_json.h | 44 bool GetBundleName(std::string& bundleName); 45 bool GetBundleNameByAppObj(const std::unique_ptr<PtJson>& appObj, std::string& bundleName);
|
| H A D | pack_info.h | 64 bool GetBundleName(std::string& bundleName); 65 bool GetBundleNameByAppObj(const std::unique_ptr<PtJson>& appObj, std::string& bundleName); 66 bool SetBundleName(const std::string& bundleName);
|
| H A D | dependency_item.h | 24 std::string bundleName = ""; member
|
| /developtools/packing_tool/packing_tool/frameworks/test/unittest/json/patch_json_test/ |
| H A D | patch_json_test.cpp | 36 "\"bundleName\": \"bundleNametest\"," 198 std::string bundleName; in HWTEST_F() local 199 EXPECT_TRUE(patchJson.GetBundleName(bundleName)); in HWTEST_F() 200 EXPECT_STREQ(bundleName.c_str(), "bundleNametest"); in HWTEST_F() 429 std::string bundleName = "com.example.test"; in HWTEST_F() local 430 bool ret = patchJson.GetBundleName(bundleName); in HWTEST_F() 444 std::string bundleName; in HWTEST_F() local 445 bool ret = patchJson.GetBundleNameByAppObj(appObj, bundleName); in HWTEST_F() 449 ret = patchJson.GetBundleNameByAppObj(appObj, bundleName); in HWTEST_F() 452 appObj = AppPackingTool::PtJson::Parse("{\"name\": \"Json.CN\",\"app\": {\"bundleName\" in HWTEST_F() [all...] |