Home
last modified time | relevance | path

Searched refs:resultJson (Results 1 - 25 of 86) sorted by relevance

1234

/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dgradient_property.cpp30 static void GetColorsAndRepeating(std::unique_ptr<JsonValue>& resultJson, const Gradient& gradient) in GetColorsAndRepeating() argument
43 resultJson->Put("colors", jsonColorArray); in GetColorsAndRepeating()
44 resultJson->Put("repeating", gradient.GetRepeat() ? "true" : "false"); in GetColorsAndRepeating()
49 auto resultJson = JsonUtil::Create(true); in LinearGradientToJson() local
51 return resultJson; in LinearGradientToJson()
53 CHECK_NULL_RETURN(linearGradient_, resultJson); in LinearGradientToJson()
55 resultJson->Put("angle", linearGradient_->angle->ToString().c_str()); in LinearGradientToJson()
62 resultJson->Put("direction", "GradientDirection.LeftTop"); in LinearGradientToJson()
64 resultJson->Put("direction", "GradientDirection.LeftBottom"); in LinearGradientToJson()
66 resultJson in LinearGradientToJson()
91 auto resultJson = JsonUtil::Create(true); SweepGradientToJson() local
122 auto resultJson = JsonUtil::Create(true); RadialGradientToJson() local
[all...]
/foundation/distributedhardware/device_manager/utils/src/kvadapter/
H A Ddm_kv_info.cpp39 nlohmann::json resultJson = nlohmann::json::parse(result, nullptr, false); in ConvertJsonToDmKVValue() local
40 if (resultJson.is_discarded()) { in ConvertJsonToDmKVValue()
43 if (IsString(resultJson, UDID_HASH_KEY)) { in ConvertJsonToDmKVValue()
44 kvValue.udidHash = resultJson[UDID_HASH_KEY].get<std::string>(); in ConvertJsonToDmKVValue()
46 if (IsString(resultJson, APP_ID_KEY)) { in ConvertJsonToDmKVValue()
47 kvValue.appID = resultJson[APP_ID_KEY].get<std::string>(); in ConvertJsonToDmKVValue()
49 if (IsString(resultJson, ANOY_DEVICE_ID_KEY)) { in ConvertJsonToDmKVValue()
50 kvValue.anoyDeviceId = resultJson[ANOY_DEVICE_ID_KEY].get<std::string>(); in ConvertJsonToDmKVValue()
52 if (IsString(resultJson, SALT_KEY)) { in ConvertJsonToDmKVValue()
53 kvValue.salt = resultJson[SALT_KE in ConvertJsonToDmKVValue()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dradio_composed_element.cpp39 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
41 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
43 return resultJson; in ToJsonObject()
51 auto resultJson = JsonUtil::Create(true); in GetValue() local
52 resultJson->Put("value", value.c_str()); in GetValue()
53 resultJson->Put("group", group.c_str()); in GetValue()
54 return resultJson->ToString(); in GetValue()
H A Dwater_flow_item_composed_element.cpp34 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
36 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
38 return resultJson; in ToJsonObject()
H A Dsheet_composed_element.cpp32 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
34 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
36 return resultJson; in ToJsonObject()
H A Drow_split_composed_element.cpp38 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
40 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
42 return resultJson; in ToJsonObject()
H A Dloading_progress_composed_element.cpp38 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
40 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
42 return resultJson; in ToJsonObject()
H A Dcolumn_split_composed_element.cpp38 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
40 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
42 return resultJson; in ToJsonObject()
H A Dtoggle_composed_element.cpp42 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
44 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
46 return resultJson; in ToJsonObject()
H A Dblank_composed_element.cpp40 auto resultJson = JsonUtil::Create(true); in ToJsonObject() local
42 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
44 return resultJson; in ToJsonObject()
H A Dstepper_composed_element.cpp39 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
41 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
43 return resultJson; in ToJsonObject()
H A Dqrcode_composed_element.cpp39 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
41 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
43 return resultJson; in ToJsonObject()
H A Dmenu_composed_element.cpp35 auto resultJson = JsonUtil::Create(true); in ToJsonObject() local
37 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
39 return resultJson; in ToJsonObject()
H A Dnavigation_menus_composed_element.cpp22 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
23 return resultJson; in ToJsonObject()
H A Dnavigation_title_composed_element.cpp22 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
23 return resultJson; in ToJsonObject()
H A Dinspector_composed_element.cpp249 auto resultJson = JsonUtil::Create(true); in ToJsonObject() local
251 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
254 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
257 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
260 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
264 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
268 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
271 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
275 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
278 return resultJson; in ToJsonObject()
1331 auto resultJson = JsonUtil::Create(true); GetBindPopup() local
1462 GetColorsAndRepeating( std::unique_ptr<JsonValue>& resultJson, const Gradient& gradient) const GetColorsAndRepeating() argument
1483 auto resultJson = JsonUtil::Create(true); GetLinearGradient() local
1532 auto resultJson = JsonUtil::Create(true); GetSweepGradient() local
1568 auto resultJson = JsonUtil::Create(true); GetRadialGradient() local
[all...]
H A Dprogress_composed_element.cpp47 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
49 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
52 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
54 return resultJson; in ToJsonObject()
H A Ddate_picker_composed_element.cpp45 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
47 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
50 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
52 return resultJson; in ToJsonObject()
H A Ddata_panel_composed_element.cpp48 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
50 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
53 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
55 return resultJson; in ToJsonObject()
H A Dlist_item_group_composed_element.cpp93 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
95 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
98 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
100 return resultJson; in ToJsonObject()
H A Dtext_composed_element.cpp62 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
64 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
66 return resultJson; in ToJsonObject()
109 auto resultJson = JsonUtil::Create(true); in GetTextDecoration() local
110 resultJson->Put("type", ConvertWrapTextDecorationToStirng(textDecoration).c_str()); in GetTextDecoration()
111 resultJson->Put("color", ConvertColorToString(textDecorationColor).c_str()); in GetTextDecoration()
112 resultJson->Put("style", ConvertWrapTextDecorationStyleToString(textDecorationStyle).c_str()); in GetTextDecoration()
113 return resultJson->ToString(); in GetTextDecoration()
H A Dgrid_container_composed_element.cpp45 auto resultJson = ColumnComposedElement::ToJsonObject(); in ToJsonObject() local
47 resultJson->Put(value.first.c_str(), value.second(*this)); in ToJsonObject()
49 return resultJson; in ToJsonObject()
H A Dsearch_composed_element.cpp42 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local
44 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
46 return resultJson; in ToJsonObject()
/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dresponse_data.cpp22 auto resultJson = JsonUtil::Create(true); in GetResultString() local
24 resultJson->Put(std::string("code").c_str(), ACTION_SUCCESS); in GetResultString()
25 resultJson->Put(std::string("data").c_str(), GetStringValue()); in GetResultString()
27 resultJson->Put(std::string("code").c_str(), COMMON_ERROR_CODE); in GetResultString()
28 resultJson->Put(std::string("data").c_str(), GetStringValue()); in GetResultString()
31 return resultJson; in GetResultString()
/foundation/ability/ability_runtime/services/quickfixmgr/src/
H A Dquick_fix_manager_apply_task.cpp533 bool QuickFixManagerApplyTask::ExtractQuickFixDataFromJson(nlohmann::json& resultJson) in ExtractQuickFixDataFromJson() argument
535 if (!resultJson.contains(QUICK_FIX_BUNDLE_NAME) || !resultJson.at(QUICK_FIX_BUNDLE_NAME).is_string()) { in ExtractQuickFixDataFromJson()
539 bundleName_ = resultJson.at(QUICK_FIX_BUNDLE_NAME).get<std::string>(); in ExtractQuickFixDataFromJson()
541 if (!resultJson.contains(QUICK_FIX_BUNDLE_VERSION_CODE) || in ExtractQuickFixDataFromJson()
542 !resultJson.at(QUICK_FIX_BUNDLE_VERSION_CODE).is_number()) { in ExtractQuickFixDataFromJson()
546 bundleVersionCode_ = resultJson.at(QUICK_FIX_BUNDLE_VERSION_CODE).get<int32_t>(); in ExtractQuickFixDataFromJson()
548 if (!resultJson.contains(QUICK_FIX_PATCH_VERSION_CODE) || in ExtractQuickFixDataFromJson()
549 !resultJson.at(QUICK_FIX_PATCH_VERSION_CODE).is_number()) { in ExtractQuickFixDataFromJson()
553 patchVersionCode_ = resultJson in ExtractQuickFixDataFromJson()
571 auto resultJson = nlohmann::json::parse(result->ToString(), nullptr, false); SetQuickFixInfo() local
[all...]

Completed in 9 milliseconds

1234