/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/ |
H A D | location_button_test.cpp | 54 nlohmann::json jsonComponent; variable 69 nlohmann::json jsonComponent; variable 82 nlohmann::json jsonComponent; variable 102 nlohmann::json jsonComponent; variable 137 nlohmann::json jsonComponent; variable 172 nlohmann::json jsonComponent; variable 198 nlohmann::json jsonComponent; variable 221 nlohmann::json jsonComponent; variable 244 nlohmann::json jsonComponent; variable 269 nlohmann::json jsonComponent; variable [all …]
|
H A D | test_common.cpp | 22 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT; in BuildLocationComponentInfo() 23 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildLocationComponentInfo() 29 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildLocationComponentInfo() 73 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in BuildLocationComponentInfo() 78 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = SAVE_COMPONENT; in BuildSaveComponentInfo() 79 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildSaveComponentInfo() 80 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildSaveComponentInfo() 129 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in BuildSaveComponentInfo() 135 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildPasteComponentInfo() 136 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildPasteComponentInfo() [all …]
|
H A D | paste_button_test.cpp | 53 nlohmann::json jsonComponent; variable 57 ASSERT_TRUE(button.FromJson(jsonComponent)); 61 ASSERT_FALSE(button.FromJson(jsonComponent)); 65 ASSERT_FALSE(button.FromJson(jsonComponent)); 69 ASSERT_FALSE(button.FromJson(jsonComponent)); 73 ASSERT_FALSE(button.FromJson(jsonComponent)); 77 ASSERT_FALSE(button.FromJson(jsonComponent)); 95 nlohmann::json jsonComponent; variable 125 nlohmann::json jsonComponent; variable 128 ASSERT_TRUE(comp1.FromJson(jsonComponent)); [all …]
|
H A D | save_button_test.cpp | 53 nlohmann::json jsonComponent; variable 57 ASSERT_TRUE(button.FromJson(jsonComponent)); 61 ASSERT_FALSE(button.FromJson(jsonComponent)); 65 ASSERT_FALSE(button.FromJson(jsonComponent)); 69 ASSERT_FALSE(button.FromJson(jsonComponent)); 73 ASSERT_FALSE(button.FromJson(jsonComponent)); 77 ASSERT_FALSE(button.FromJson(jsonComponent)); 95 nlohmann::json jsonComponent; variable 125 nlohmann::json jsonComponent; variable 128 ASSERT_TRUE(comp1.FromJson(jsonComponent)); [all …]
|
H A D | test_common.h | 39 static void BuildLocationComponentInfo(nlohmann::json& jsonComponent); 40 static void BuildSaveComponentInfo(nlohmann::json& jsonComponent); 41 static void BuildPasteComponentInfo(nlohmann::json& jsonComponent);
|
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
H A D | sec_comp_info_helper_test.cpp | 89 nlohmann::json jsonComponent; variable 104 nlohmann::json jsonComponent; variable 120 nlohmann::json jsonComponent; variable 230 nlohmann::json jsonComponent; variable 257 nlohmann::json jsonComponent; variable 287 nlohmann::json jsonComponent; variable 312 nlohmann::json jsonComponent; variable 337 nlohmann::json jsonComponent; variable 361 nlohmann::json jsonComponent; variable 383 nlohmann::json jsonComponent; variable [all …]
|
H A D | service_test_common.cpp | 22 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT; in BuildLocationComponentJson() 23 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildLocationComponentJson() 24 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildLocationComponentJson() 73 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in BuildLocationComponentJson() 78 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = SAVE_COMPONENT; in BuildSaveComponentJson() 79 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildSaveComponentJson() 80 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildSaveComponentJson() 129 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in BuildSaveComponentJson() 135 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in BuildPasteComponentJson() 136 jsonComponent[JsonTagConstants::JSON_RECT] = nlohmann::json { in BuildPasteComponentJson() [all …]
|
H A D | service_test_common.h | 58 static void BuildLocationComponentJson(nlohmann::json& jsonComponent); 59 static void BuildSaveComponentJson(nlohmann::json& jsonComponent); 60 static void BuildPasteComponentJson(nlohmann::json& jsonComponent);
|
H A D | sec_comp_entity_test.cpp | 177 nlohmann::json jsonComponent; variable 178 ServiceTestCommon::BuildLocationComponentJson(jsonComponent); 179 SecCompBase* other = SecCompInfoHelper::ParseComponent(LOCATION_COMPONENT, jsonComponent);
|
/ohos5.0/base/security/security_component_manager/test/fuzztest/security_component/common/ |
H A D | fuzz_common.cpp | 76 nlohmann::json jsonComponent; in ConstructLocationJson() local 78 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in ConstructLocationJson() 111 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in ConstructLocationJson() 112 return jsonComponent.dump(); in ConstructLocationJson() 118 nlohmann::json jsonComponent; in ConstructSaveJson() local 120 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in ConstructSaveJson() 153 jsonComponent[JsonTagConstants::JSON_WINDOW_ID] = 0; in ConstructSaveJson() 154 return jsonComponent.dump(); in ConstructSaveJson() 159 nlohmann::json jsonComponent; in ConstructPasteJson() local 161 jsonComponent[JsonTagConstants::JSON_NODE_ID] = 0; in ConstructPasteJson() [all …]
|
H A D | fuzz_common.h | 56 void ConstructWindowJson(nlohmann::json &jsonComponent,
|
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
H A D | sec_comp_manager.h | 54 int32_t RegisterSecurityComponent(SecCompType type, const nlohmann::json& jsonComponent, 56 int32_t UpdateSecurityComponent(int32_t scId, const nlohmann::json& jsonComponent, 59 int32_t ReportSecurityComponentClickEvent(int32_t scId, const nlohmann::json& jsonComponent, 80 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller);
|
H A D | sec_comp_info_helper.h | 28 T* ConstructComponent(const nlohmann::json& jsonComponent) in ConstructComponent() argument 31 if ((componentPtr != nullptr) && !componentPtr->FromJson(jsonComponent)) { in ConstructComponent() 40 static SecCompBase* ParseComponent(SecCompType type, const nlohmann::json& jsonComponent);
|
H A D | sec_comp_manager.cpp | 342 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller, int32_t& scId) in RegisterSecurityComponent() argument 350 SecCompBase* componentPtr = SecCompInfoHelper::ParseComponent(type, jsonComponent); in RegisterSecurityComponent() 365 SecCompEnhanceAdapter::CheckComponentInfoEnhance(caller.pid, component, jsonComponent); in RegisterSecurityComponent() 386 int32_t SecCompManager::UpdateSecurityComponent(int32_t scId, const nlohmann::json& jsonComponent, in UpdateSecurityComponent() argument 401 SecCompBase* report = SecCompInfoHelper::ParseComponent(sc->GetType(), jsonComponent); in UpdateSecurityComponent() 417 … SecCompEnhanceAdapter::CheckComponentInfoEnhance(caller.pid, reportComponentInfo, jsonComponent); in UpdateSecurityComponent() 440 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller) in CheckClickSecurityComponentInfo() argument 443 SecCompBase* report = SecCompInfoHelper::ParseComponent(sc->GetType(), jsonComponent); in CheckClickSecurityComponentInfo() 460 "CALLER_BUNDLE_NAME", bundleName, "COMPONENT_INFO", jsonComponent.dump().c_str()); in CheckClickSecurityComponentInfo() 497 const nlohmann::json& jsonComponent, const SecCompCallerInfo& caller, in ReportSecurityComponentClickEvent() argument [all …]
|
H A D | sec_comp_info_helper.cpp | 51 …cCompBase* SecCompInfoHelper::ParseComponent(SecCompType type, const nlohmann::json& jsonComponent) in ParseComponent() argument 56 comp = ConstructComponent<LocationButton>(jsonComponent); in ParseComponent() 59 comp = ConstructComponent<PasteButton>(jsonComponent); in ParseComponent() 62 comp = ConstructComponent<SaveButton>(jsonComponent); in ParseComponent()
|
/ohos5.0/base/security/security_component_manager/frameworks/enhance_adapter/test/unittest/src/ |
H A D | sec_comp_enhance_adapter_test.cpp | 113 const nlohmann::json jsonComponent; variable 114 ASSERT_EQ(SC_OK, SecCompEnhanceAdapter::CheckComponentInfoEnhance(0, compInfo, jsonComponent));
|
/ohos5.0/base/security/security_component_manager/frameworks/enhance_adapter/include/ |
H A D | sec_comp_enhance_adapter.h | 58 const nlohmann::json& jsonComponent) = 0; 109 const nlohmann::json& jsonComponent);
|
/ohos5.0/base/security/security_component_manager/frameworks/enhance_adapter/src/ |
H A D | sec_comp_enhance_adapter.cpp | 341 std::shared_ptr<SecCompBase>& compInfo, const nlohmann::json& jsonComponent) in CheckComponentInfoEnhance() argument 347 return srvHandler->CheckComponentInfoEnhance(pid, compInfo, jsonComponent); in CheckComponentInfoEnhance()
|
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/mock/src/ |
H A D | sec_comp_enhance_adapter.cpp | 221 std::shared_ptr<SecCompBase>& compInfo, const nlohmann::json& jsonComponent) in CheckComponentInfoEnhance() argument
|