Home
last modified time | relevance | path

Searched refs:comp (Results 1 - 17 of 17) sorted by relevance

/base/security/security_component_manager/services/security_component_service/sa/sa_main/
H A Dsec_comp_info_helper.cpp38 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 Dsec_comp_info_helper_test.cpp91 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 Dsec_comp_perm_manager_test.cpp195 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 Dupdater_binary_unittest.cpp143 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 Dlocation_button_test.cpp56 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 Dsec_comp_kit_test.cpp95 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 DUpdaterStartUpdaterProc_fuzzer.cpp123 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 Dextractandexecutescript_fuzzer.cpp256 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 Dpackage_fuzzer.cpp97 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 Dpackage_unittest.cpp101 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 Dsec_comp_info_helper.h40 static bool CheckComponentValid(SecCompBase* comp);
45 static void AdjustSecCompRect(SecCompBase* comp, float scale);
/base/print/print_fwk/services/print_service/include/
H A Dprint_map_safe.h70 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 Dpkg_upgradefile.cpp769 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 Dpkg_upgradefile.h98 int32_t GetUpGradeCompInfo(UpgradeCompInfo &comp);
/base/hiviewdfx/hiview/base/include/
H A Devent_priority_queue.h31 std::make_heap(this->c.begin(), this->c.end(), this->comp); in remove()
/base/update/updater/interfaces/kits/include/package/
H A Dpackage.h105 * @param comp component information list
110 int32_t CreatePackage(const UpgradePkgInfoExt *pkgInfo, std::vector<ComponentInfoExt> &comp,
/base/hiviewdfx/faultloggerd/test/unittest/unwind/
H A Delf_imitate.cpp850 auto comp = [](DfxSymbol a, DfxSymbol b) { return a.funcVaddr_ < b.funcVaddr_; }; in ParseSymbols() local
851 std::sort(symbols.begin(), symbols.end(), comp); in ParseSymbols()

Completed in 13 milliseconds