Home
last modified time | relevance | path

Searched refs:JSON_SC_TYPE (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/base/security/security_component_manager/frameworks/security_component/src/
H A Dsec_comp_base.cpp28 const std::string JsonTagConstants::JSON_SC_TYPE = "type"; member in OHOS::Security::SecurityComponent::JsonTagConstants
250 if ((jsonSrc.find(JsonTagConstants::JSON_SC_TYPE) == jsonSrc.end()) || in FromJson()
251 !jsonSrc.at(JsonTagConstants::JSON_SC_TYPE).is_number()) { in FromJson()
252 … SC_LOG_ERROR(LABEL, "json: %{public}s tag invalid.", JsonTagConstants::JSON_SC_TYPE.c_str()); in FromJson()
255 int32_t value = jsonSrc.at(JsonTagConstants::JSON_SC_TYPE).get<int32_t>(); in FromJson()
303 jsonRes[JsonTagConstants::JSON_SC_TYPE] = type_; in ToJson()
/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/test/unittest/src/
H A Dtest_common.cpp22 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT; in BuildLocationComponentInfo()
78 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = SAVE_COMPONENT; in BuildSaveComponentInfo()
134 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = PASTE_COMPONENT; in BuildPasteComponentInfo()
H A Dlocation_button_test.cpp87 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = WRONG_TYPE;
90 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = 0;
104 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT;
139 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT;
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/
H A Dservice_test_common.cpp22 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT; in BuildLocationComponentJson()
78 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = SAVE_COMPONENT; in BuildSaveComponentJson()
134 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = PASTE_COMPONENT; in BuildPasteComponentJson()
H A Dsec_comp_manager_test.cpp476 jsonVaild[JsonTagConstants::JSON_SC_TYPE] = UNKNOWN_SC_TYPE;
481 jsonVaild[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT;
H A Dsec_comp_info_helper_test.cpp126 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = UNKNOWN_SC_TYPE;
/ohos5.0/base/security/security_component_manager/test/fuzztest/security_component/common/
H A Dfuzz_common.cpp77 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = LOCATION_COMPONENT; in ConstructLocationJson()
119 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = SAVE_COMPONENT; in ConstructSaveJson()
160 jsonComponent[JsonTagConstants::JSON_SC_TYPE] = PASTE_COMPONENT; in ConstructPasteJson()
/ohos5.0/base/security/security_component_manager/interfaces/inner_api/security_component/include/
H A Dsec_comp_base.h41 static const std::string JSON_SC_TYPE; variable