Home
last modified time | relevance | path

Searched refs:comp (Results 1 – 15 of 15) sorted by relevance

/base/security/security_component_manager/services/security_component_service/sa/sa_main/
Dsec_comp_info_helper.cpp39 void SecCompInfoHelper::AdjustSecCompRect(SecCompBase* comp, float scale) in AdjustSecCompRect() argument
41 comp->rect_.width_ *= scale; in AdjustSecCompRect()
42 comp->rect_.height_ *= scale; in AdjustSecCompRect()
43 comp->rect_.x_ = comp->windowRect_.x_ + (comp->rect_.x_ - comp->windowRect_.x_) * scale; in AdjustSecCompRect()
44 comp->rect_.y_ = comp->windowRect_.y_ + (comp->rect_.y_ - comp->windowRect_.y_) * scale; in AdjustSecCompRect()
47 comp->rect_.x_, comp->rect_.y_, comp->rect_.width_, comp->rect_.height_); in AdjustSecCompRect()
52 SecCompBase* comp = nullptr; in ParseComponent() local
55 comp = ConstructComponent<LocationButton>(jsonComponent); in ParseComponent()
58 comp = ConstructComponent<PasteButton>(jsonComponent); in ParseComponent()
61 comp = ConstructComponent<SaveButton>(jsonComponent); in ParseComponent()
[all …]
Dsec_comp_info_helper.h43 static bool CheckComponentValid(SecCompBase* comp);
48 static void AdjustSecCompRect(SecCompBase* comp, float scale);
/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
Dsec_comp_info_helper_test.cpp89 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); variable
90 ASSERT_NE(nullptr, comp);
91 ASSERT_TRUE(comp->GetValid());
121 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); variable
122 ASSERT_TRUE(comp->GetValid());
125 comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent);
126 ASSERT_EQ(nullptr, comp);
231 SecCompBase* comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent); variable
232 ASSERT_TRUE(comp->GetValid());
237 comp = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent);
[all …]
/base/update/updater/test/unittest/updater_binary/
Dupdater_binary_unittest.cpp145 ComponentInfoExt *comp = (ComponentInfoExt*)malloc( in CreatePackageBin() local
147 if (comp == nullptr) { in CreatePackageBin()
151 BuildCompnentInfo(comp[i], testFileNames_[i], testFileNames_[i], componentType); in CreatePackageBin()
155 BuildCompnentInfo(comp[index++], "/hos"); in CreatePackageBin()
156 BuildCompnentInfo(comp[index++], "/system"); in CreatePackageBin()
157 BuildCompnentInfo(comp[index++], "/vendor"); in CreatePackageBin()
161 ret = CreatePackage(&pkgInfo, comp, packagePath.c_str(), GetTestPrivateKeyName().c_str()); in CreatePackageBin()
163 free(comp[i].componentAddr); in CreatePackageBin()
164 free(comp[i].filePath); in CreatePackageBin()
165 free(comp[i].version); in CreatePackageBin()
[all …]
/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/
Dlocation_button_test.cpp56 LocationButton comp; variable
58 ASSERT_TRUE(comp.FromJson(jsonComponent));
70 LocationButton comp; variable
71 ASSERT_FALSE(comp.FromJson(jsonComponent));
84 LocationButton comp; variable
85 ASSERT_TRUE(comp.FromJson(jsonComponent));
88 ASSERT_FALSE(comp.FromJson(jsonComponent));
91 ASSERT_FALSE(comp.FromJson(jsonComponent));
103 LocationButton comp; variable
107 ASSERT_FALSE(comp.FromJson(jsonComponent));
[all …]
Dsec_comp_kit_test.cpp93 LocationButton comp; variable
94 comp.fontSize_ = TestCommon::TEST_SIZE;
95 comp.iconSize_ = TestCommon::TEST_SIZE;
96 comp.padding_.top = TestCommon::TEST_DIMENSION;
97 comp.padding_.right = TestCommon::TEST_DIMENSION;
98 comp.padding_.bottom = TestCommon::TEST_DIMENSION;
99 comp.padding_.left = TestCommon::TEST_DIMENSION;
100 comp.textIconSpace_ = TestCommon::TEST_SIZE;
101 comp.bgColor_.value = TestCommon::TEST_COLOR;
102 comp.fontColor_.value = TestCommon::TEST_COLOR;
[all …]
/base/update/updater/test/fuzztest/UpdaterStartUpdaterProc_fuzzer/
DUpdaterStartUpdaterProc_fuzzer.cpp123 ComponentInfoExt comp[fstabFile.size()]; in CreatePackageZip() local
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[i].id = componentInfoIdBase; in CreatePackageZip()
135 comp[i].resType = 1; in CreatePackageZip()
136 comp[i].type = 1; in CreatePackageZip()
[all …]
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/
Dextractandexecutescript_fuzzer.cpp256 ComponentInfoExt comp[inputFile.size()]; in CreatePackageBin() local
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[i].id = componentInfoIdBase; in CreatePackageBin()
268 comp[i].resType = 1; in CreatePackageBin()
269 comp[i].type = 1; in CreatePackageBin()
[all …]
/base/update/updater/test/unittest/package/
Dpackage_unittest.cpp101 ComponentInfoExt comp[testFileNames_.size()]; in TestPackagePack() local
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[i].id = i + componentIdBase; in TestPackagePack()
113 comp[i].resType = 1; in TestPackagePack()
114 comp[i].type = 1; in TestPackagePack()
[all …]
/base/update/updater/test/fuzztest/package_fuzzer/
Dpackage_fuzzer.cpp97 ComponentInfoExt comp[testFileNames_.size()]; in TestPackagePack() local
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[n].id = n + componentIdBase; in TestPackagePack()
108 comp[n].resType = 1; in TestPackagePack()
109 comp[n].type = 1; in TestPackagePack()
[all …]
/base/update/updater/services/package/pkg_package/
Dpkg_upgradefile.cpp768 int32_t UpgradeFileEntry::GetUpGradeCompInfo(UpgradeCompInfo &comp) in GetUpGradeCompInfo() argument
770 if (memset_s(&comp, sizeof(comp), 0, sizeof(comp)) != EOK) { in GetUpGradeCompInfo()
776 fileInfo_.fileInfo.identity, {comp.address, sizeof(comp.address)}, len); in GetUpGradeCompInfo()
782 …ret = PkgFileImpl::ConvertStringToBuffer(fileInfo_.version, {comp.version, sizeof(comp.version)}, … in GetUpGradeCompInfo()
787 ret = memcpy_s(comp.digest, sizeof(comp.digest), fileInfo_.digest, sizeof(fileInfo_.digest)); in GetUpGradeCompInfo()
803 UpgradeCompInfo comp; in EncodeHeader() local
804 int ret = GetUpGradeCompInfo(comp); in EncodeHeader()
810 WriteLE32(reinterpret_cast<uint8_t *>(&comp.size), fileInfo_.fileInfo.unpackedSize); in EncodeHeader()
811 WriteLE16(reinterpret_cast<uint8_t *>(&comp.id), fileInfo_.id); in EncodeHeader()
812 WriteLE32(reinterpret_cast<uint8_t *>(&comp.originalSize), fileInfo_.originalSize); in EncodeHeader()
[all …]
Dpkg_upgradefile.h97 int32_t GetUpGradeCompInfo(UpgradeCompInfo &comp);
/base/hiviewdfx/hiview/base/include/
Devent_priority_queue.h31 std::make_heap(this->c.begin(), this->c.end(), this->comp); in remove()
/base/update/updater/interfaces/kits/include/package/
Dpackage.h110 int32_t CreatePackage(const UpgradePkgInfoExt *pkgInfo, ComponentInfoExt comp[],
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
Delf_imitate.cpp854 auto comp = [](DfxSymbol a, DfxSymbol b) { return a.funcVaddr_ < b.funcVaddr_; }; in ParseSymbols() local
855 std::sort(symbols.begin(), symbols.end(), comp); in ParseSymbols()