/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
H A D | sec_comp_info_helper.cpp | 38 void SecCompInfoHelper::AdjustSecCompRect(SecCompBase* comp, float scale) in AdjustSecCompRect() argument 40 comp->rect_.width_ *= scale; in AdjustSecCompRect() 41 comp->rect_.height_ *= scale; in AdjustSecCompRect() 42 comp->rect_.x_ = comp->windowRect_.x_ + (comp->rect_.x_ - comp->windowRect_.x_) * scale; in AdjustSecCompRect() 43 comp->rect_.y_ = comp->windowRect_.y_ + (comp in AdjustSecCompRect() 51 SecCompBase* comp = nullptr; ParseComponent() local 139 CheckSecCompBaseButton(const SecCompBase* comp) CheckSecCompBaseButton() argument 180 CheckSecCompBase(const SecCompBase* comp) CheckSecCompBase() argument 206 CheckComponentValid(SecCompBase* comp) CheckComponentValid() argument [all...] |
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
H A D | sec_comp_info_helper_test.cpp | 91 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); in HWTEST_F() local 92 ASSERT_NE(nullptr, comp); in HWTEST_F() 93 ASSERT_TRUE(comp->GetValid()); in HWTEST_F() 123 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); in HWTEST_F() local 124 ASSERT_TRUE(comp->GetValid()); in HWTEST_F() 127 comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); in HWTEST_F() 128 ASSERT_EQ(nullptr, comp); in HWTEST_F() 233 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); in HWTEST_F() local 234 ASSERT_TRUE(comp->GetValid()); in HWTEST_F() 245 comp in HWTEST_F() 260 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 289 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 314 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 339 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 363 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 385 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 414 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 445 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 478 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 505 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 527 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 549 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 567 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local 596 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); HWTEST_F() local [all...] |
H A D | sec_comp_perm_manager_test.cpp | 195 SecCompBase* comp = SecCompInfoHelper::ParseComponent(SAVE_COMPONENT, jsonComponent); in HWTEST_F() local 196 ASSERT_NE(nullptr, comp); in HWTEST_F() 197 std::shared_ptr<SecCompBase> shared_comp(comp); in HWTEST_F()
|
/base/update/updater/test/unittest/updater_binary/ |
H A D | updater_binary_unittest.cpp | 143 ComponentInfoExt *comp = (ComponentInfoExt*)malloc( in CreatePackageBin() local 145 if (comp == nullptr) { in CreatePackageBin() 149 BuildCompnentInfo(comp[i], testFileNames_[i], testFileNames_[i], componentType); in CreatePackageBin() 153 BuildCompnentInfo(comp[index++], "/hos"); in CreatePackageBin() 154 BuildCompnentInfo(comp[index++], "/system"); in CreatePackageBin() 155 BuildCompnentInfo(comp[index++], "/vendor"); in CreatePackageBin() 159 ret = CreatePackage(&pkgInfo, comp, packagePath.c_str(), GetTestPrivateKeyName().c_str()); in CreatePackageBin() 161 free(comp[i].componentAddr); in CreatePackageBin() 162 free(comp[i].filePath); in CreatePackageBin() 163 free(comp[ in CreatePackageBin() 192 BuildCompnentInfo(ComponentInfoExt &comp, const std::string &cmpName, const std::string &scriptPath = �, uint8_t componentType = 0) const BuildCompnentInfo() argument [all...] |
/base/security/security_component_manager/frameworks/inner_api/security_component/test/unittest/src/ |
H A D | location_button_test.cpp | 56 LocationButton comp; in HWTEST_F() local 58 ASSERT_TRUE(comp.FromJson(jsonComponent)); in HWTEST_F() 70 LocationButton comp; in HWTEST_F() local 71 ASSERT_FALSE(comp.FromJson(jsonComponent)); in HWTEST_F() 84 LocationButton comp; in HWTEST_F() local 85 ASSERT_TRUE(comp.FromJson(jsonComponent)); in HWTEST_F() 88 ASSERT_FALSE(comp.FromJson(jsonComponent)); in HWTEST_F() 91 ASSERT_FALSE(comp.FromJson(jsonComponent)); in HWTEST_F() 103 LocationButton comp; in HWTEST_F() local 107 ASSERT_FALSE(comp in HWTEST_F() 138 LocationButton comp; HWTEST_F() local 173 LocationButton comp; HWTEST_F() local 199 LocationButton comp; HWTEST_F() local 222 LocationButton comp; HWTEST_F() local 245 LocationButton comp; HWTEST_F() local [all...] |
H A D | sec_comp_kit_test.cpp | 95 LocationButton comp; in HWTEST_F() local 96 comp.fontSize_ = TestCommon::TEST_SIZE; in HWTEST_F() 97 comp.iconSize_ = TestCommon::TEST_SIZE; in HWTEST_F() 98 comp.padding_.top = TestCommon::TEST_DIMENSION; in HWTEST_F() 99 comp.padding_.right = TestCommon::TEST_DIMENSION; in HWTEST_F() 100 comp.padding_.bottom = TestCommon::TEST_DIMENSION; in HWTEST_F() 101 comp.padding_.left = TestCommon::TEST_DIMENSION; in HWTEST_F() 102 comp.textIconSpace_ = TestCommon::TEST_SIZE; in HWTEST_F() 103 comp.bgColor_.value = TestCommon::TEST_COLOR; in HWTEST_F() 104 comp in HWTEST_F() [all...] |
/base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/ |
H A D | UpdaterStartUpdaterProc_fuzzer.cpp | 123 std::vector<ComponentInfoExt> comp(fstabFile.size()); in CreatePackageZip() 125 comp[i].componentAddr = strdup(fstabFile[i].c_str()); in CreatePackageZip() 128 comp[i].filePath = strdup(filePath.c_str()); in CreatePackageZip() 129 comp[i].version = strdup("55555555"); in CreatePackageZip() 131 ret = BuildFileDigest(*comp[i].digest, sizeof(comp[i].digest), filePath); in CreatePackageZip() 132 comp[i].size = GetFileSize(filePath); in CreatePackageZip() 133 comp[i].originalSize = comp[i].size; in CreatePackageZip() 134 comp[ in CreatePackageZip() [all...] |
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/ |
H A D | extractandexecutescript_fuzzer.cpp | 256 std::vector<ComponentInfoExt> comp(inputFile.size()); in CreatePackageBin() 258 comp[i].componentAddr = strdup(inputFile[i].c_str()); in CreatePackageBin() 261 comp[i].filePath = strdup(filePath.c_str()); in CreatePackageBin() 262 comp[i].version = strdup("55555555"); in CreatePackageBin() 264 ret = BuildFileDigest(*comp[i].digest, sizeof(comp[i].digest), filePath); in CreatePackageBin() 265 comp[i].size = GetFileSize(filePath); in CreatePackageBin() 266 comp[i].originalSize = comp[i].size; in CreatePackageBin() 267 comp[ in CreatePackageBin() [all...] |
/base/update/updater/test/fuzztest/package_fuzzer/ |
H A D | package_fuzzer.cpp | 97 std::vector<ComponentInfoExt> comp(testFileNames_.size()); in TestPackagePack() 99 comp[n].componentAddr = strdup(testFileNames_[n].c_str()); in TestPackagePack() 102 comp[n].filePath = strdup(filePath.c_str()); in TestPackagePack() 103 comp[n].version = strdup("55555555"); in TestPackagePack() 104 ret = BuildFileDigest(*comp[n].digest, sizeof(comp[n].digest), filePath); in TestPackagePack() 105 comp[n].size = GetFileSize(filePath); in TestPackagePack() 106 comp[n].originalSize = comp[n].size; in TestPackagePack() 107 comp[ in TestPackagePack() [all...] |
/base/update/updater/test/unittest/package/ |
H A D | package_unittest.cpp | 101 std::vector<ComponentInfoExt> comp(testFileNames_.size()); in TestPackagePack() 103 comp[i].componentAddr = strdup(testFileNames_[i].c_str()); in TestPackagePack() 106 comp[i].filePath = strdup(filePath.c_str()); in TestPackagePack() 107 comp[i].version = strdup("55555555"); in TestPackagePack() 108 ret = BuildFileDigest(*comp[i].digest, sizeof(comp[i].digest), filePath); in TestPackagePack() 110 comp[i].size = GetFileSize(filePath); in TestPackagePack() 111 comp[i].originalSize = comp[i].size; in TestPackagePack() 112 comp[ in TestPackagePack() [all...] |
/base/security/security_component_manager/interfaces/inner_api/security_component_common/ |
H A D | sec_comp_info_helper.h | 40 static bool CheckComponentValid(SecCompBase* comp); 45 static void AdjustSecCompRect(SecCompBase* comp, float scale);
|
/base/print/print_fwk/services/print_service/include/ |
H A D | print_map_safe.h | 70 std::string FindKey(std::function<bool(const T &)> comp) in FindKey() argument 72 if (comp == nullptr) { in FindKey() 80 if (comp(*(pair.second))) { in FindKey()
|
/base/update/updater/services/package/pkg_package/ |
H A D | pkg_upgradefile.cpp | 769 int32_t UpgradeFileEntry::GetUpGradeCompInfo(UpgradeCompInfo &comp)
in GetUpGradeCompInfo() argument 771 if (memset_s(&comp, sizeof(comp), 0, sizeof(comp)) != EOK) {
in GetUpGradeCompInfo() 777 fileInfo_.fileInfo.identity, {comp.address, sizeof(comp.address)}, len);
in GetUpGradeCompInfo() 783 ret = PkgFileImpl::ConvertStringToBuffer(fileInfo_.version, {comp.version, sizeof(comp.version)}, len);
in GetUpGradeCompInfo() 788 ret = memcpy_s(comp.digest, sizeof(comp in GetUpGradeCompInfo() 804 UpgradeCompInfo comp; EncodeHeader() local [all...] |
H A D | pkg_upgradefile.h | 98 int32_t GetUpGradeCompInfo(UpgradeCompInfo &comp);
|
/base/hiviewdfx/hiview/base/include/ |
H A D | event_priority_queue.h | 31 std::make_heap(this->c.begin(), this->c.end(), this->comp); in remove()
|
/base/update/updater/interfaces/kits/include/package/ |
H A D | package.h | 105 * @param comp component information list
110 int32_t CreatePackage(const UpgradePkgInfoExt *pkgInfo, std::vector<ComponentInfoExt> &comp,
|
/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | elf_imitate.cpp | 850 auto comp = [](DfxSymbol a, DfxSymbol b) { return a.funcVaddr_ < b.funcVaddr_; }; in ParseSymbols() local 851 std::sort(symbols.begin(), symbols.end(), comp); in ParseSymbols()
|