/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | gradient_property.cpp | 30 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 D | dm_kv_info.cpp | 39 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 D | radio_composed_element.cpp | 39 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 D | water_flow_item_composed_element.cpp | 34 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 D | sheet_composed_element.cpp | 32 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 D | row_split_composed_element.cpp | 38 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 D | loading_progress_composed_element.cpp | 38 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 D | column_split_composed_element.cpp | 38 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 D | toggle_composed_element.cpp | 42 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 D | blank_composed_element.cpp | 40 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 D | stepper_composed_element.cpp | 39 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 D | qrcode_composed_element.cpp | 39 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 D | menu_composed_element.cpp | 35 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 D | navigation_menus_composed_element.cpp | 22 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local 23 return resultJson; in ToJsonObject()
|
H A D | navigation_title_composed_element.cpp | 22 auto resultJson = InspectorComposedElement::ToJsonObject(); in ToJsonObject() local 23 return resultJson; in ToJsonObject()
|
H A D | inspector_composed_element.cpp | 249 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 D | progress_composed_element.cpp | 47 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 D | date_picker_composed_element.cpp | 45 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 D | data_panel_composed_element.cpp | 48 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 D | list_item_group_composed_element.cpp | 93 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 D | text_composed_element.cpp | 62 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 D | grid_container_composed_element.cpp | 45 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 D | search_composed_element.cpp | 42 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 D | response_data.cpp | 22 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 D | quick_fix_manager_apply_task.cpp | 533 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...] |