Home
last modified time | relevance | path

Searched refs:FromString (Results 1 - 25 of 138) sorted by relevance

123456

/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dcolor_factory.cpp23 std::make_pair<Color, Color>(Color::FromString("#F7CE00"), Color::FromString("#F99B11")); in ColorFactory()
25 std::make_pair<Color, Color>(Color::FromString("#F76223"), Color::FromString("#F2400A")); in ColorFactory()
27 std::make_pair<Color, Color>(Color::FromString("#F772AC"), Color::FromString("#E65392")); in ColorFactory()
29 std::make_pair<Color, Color>(Color::FromString("#A575EB"), Color::FromString("#A12DF7")); in ColorFactory()
31 std::make_pair<Color, Color>(Color::FromString("#7B79F7"), Color::FromString("# in ColorFactory()
[all...]
/foundation/communication/netmanager_base/test/netconnmanager/unittest/net_conn_multi_test/
H A Dnet_proxy_from_string_test.cpp44 auto newProxyOpt = HttpProxy::FromString(proxyStr); in HWTEST_F()
53 auto newProxyOpt = HttpProxy::FromString(proxyStr); in HWTEST_F()
60 auto newProxyOpt = HttpProxy::FromString(""); in HWTEST_F()
66 auto newProxyOpt = HttpProxy::FromString("not proxy"); in HWTEST_F()
72 auto newProxyOpt = HttpProxy::FromString("fake.domen\t\t"); in HWTEST_F()
78 auto newProxyOpt = HttpProxy::FromString("\t0\t"); in HWTEST_F()
86 auto newProxyOpt = HttpProxy::FromString("fake.domain\t0\texclude.this"); in HWTEST_F()
94 auto newProxyOpt = HttpProxy::FromString("fake.domain\t0\texclude.this"); in HWTEST_F()
102 auto newProxyOpt = HttpProxy::FromString("fake.domain\t0\texclude.this,and.this"); in HWTEST_F()
110 auto newProxyOpt = HttpProxy::FromString("fak in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/test/mock/core/common/
H A Dmock_theme_default.h33 pickerTheme->focusColor_ = Color::FromString("#FFFF0000"); in GetPickerTheme()
49 pickerTheme->dividerColor_ = Color::FromString("#FFFF0000"); in GetPickerTheme()
52 pickerTheme->pressColor_ = Color::FromString("#FFFF0000"); in GetPickerTheme()
53 pickerTheme->hoverColor_ = Color::FromString("#FF000000"); in GetPickerTheme()
54 pickerTheme->lunarswitchTextColor_ = Color::FromString("#FF000000"); in GetPickerTheme()
/foundation/arkui/ace_engine/adapter/ohos/capability/html/
H A Dhtml_to_span.cpp194 Dimension HtmlToSpan::FromString(const std::string& str) in FromString() function in OHOS::Ace::HtmlToSpan
256 font->fontSize = FromString(value); in InitFont()
295 style->textIndent = FromString(value); in InitParagrap()
381 obj->dimension = FromString(value); in InitDimension()
422 return Color::FromString(color); in ToSpanColor()
471 textShadow.SetOffsetX(FromString(attribute[FIRST_PARAM]).Value()); in InitShadow()
474 textShadow.SetOffsetY(FromString(attribute[SECOND_PARAM]).Value()); in InitShadow()
477 textShadow.SetBlurRadius(FromString(attribute[THIRD_PARAM]).Value()); in InitShadow()
548 paddings->top = NG::CalcLength::FromString(words[TOP_PARAM]); in SetPaddingOption()
549 paddings->right = NG::CalcLength::FromString(word in SetPaddingOption()
[all...]
/foundation/communication/bluetooth_service/test/unittest/gatt/
H A Dgatt_service_test.cpp71 uuid_ = UUID::FromString("00001820-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
115 uuid_test = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
141 uuid_test = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
168 uuid_test = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
191 uuid_test = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
222 uuid_test = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
H A Dgatt_server_test.cpp105 uuidSerPer = UUID::FromString("00001810-0000-1000-8000-00805F9B34F7"); in HWTEST_F()
140 uuidSerPer = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
182 uuidSerPer = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
223 uuidSerPer = UUID::FromString("00001810-0000-1000-8000-00805F9B34F5"); in HWTEST_F()
248 uuidSerPer = UUID::FromString("00001810-0000-1000-8000-00805F9B34F9"); in HWTEST_F()
H A Dgatt_descriptor_test.cpp84 uuid_ = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
86 uuid_test = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
131 uuid_test = UUID::FromString("00001810-0000-1000-8000-00805F9B34FB"); in HWTEST_F()
/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_test_ng.h39 Color::FromString("#182431") };
41 const Color CLICK_ARROW_COLOR = Color::FromString("#19182431");
43 const Color INDICATOR_TEXT_FONT_COLOR = Color::FromString("#ff182431");
/foundation/arkui/ace_engine/test/unittest/base/
H A Ddimension_test.cpp284 * @tc.desc: FromString().
290 * @tc.steps1: Test the function FromString of the class Dimension. in HWTEST_F()
293 EXPECT_DOUBLE_EQ(Dimension::FromString(DIMENSION_PX_STR).Value(), DEFAULT_DOUBLE); in HWTEST_F()
294 EXPECT_DOUBLE_EQ(Dimension::FromString(DIMENSION_VP_STR).Value(), DEFAULT_DOUBLE); in HWTEST_F()
295 EXPECT_DOUBLE_EQ(Dimension::FromString(DIMENSION_FP_STR).Value(), DEFAULT_DOUBLE); in HWTEST_F()
296 EXPECT_DOUBLE_EQ(Dimension::FromString(DIMENSION_LPX_STR).Value(), DEFAULT_DOUBLE); in HWTEST_F()
297 EXPECT_DOUBLE_EQ(Dimension::FromString(DIMENSION_PCT_STR).Value(), DEFAULT_DOUBLE); in HWTEST_F()
298 EXPECT_DOUBLE_EQ(Dimension::FromString(DIMENSION_AUTO_STR).Value(), DEFAULT_DOUBLE); in HWTEST_F()
299 EXPECT_DOUBLE_EQ(Dimension::FromString("").Value(), ZERO_DOUBLE); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_layout_property.cpp23 divider.strokeWidth = Dimension::FromString(json->GetString("strokeWidth")); in ItemDividerFromJson()
24 divider.startMargin = Dimension::FromString(json->GetString("startMargin")); in ItemDividerFromJson()
25 divider.endMargin = Dimension::FromString(json->GetString("endMargin")); in ItemDividerFromJson()
105 UpdateSpace(Dimension::FromString(json->GetString("space"))); in FromJson()
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_settings.h39 virtual void FromString(const std::string& value) = 0;
92 void FromString(const std::string& value) override
126 void FromString(const std::string& value) override
149 void FromString(const std::string& value) override
H A Drs_profiler_settings.cpp45 FromString(parameter.ToString()); in operator =()
66 parameter->FromString(value); in Set()
/foundation/communication/bluetooth_service/test/unittest/ble/
H A Dble_test.cpp31 Bluetooth::UUID g_uuid = Bluetooth::UUID::FromString("00000000-0000-1000-8000-00805F9B34FB");
32 Bluetooth::UUID g_serviceDataUuid = Bluetooth::UUID::FromString("00000000-0000-1000-8000-00805F9B34FA");
33 Bluetooth::UUID g_serviceUuid = Bluetooth::UUID::FromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF");
34 Bluetooth::UUID g_serviceUuidMask = Bluetooth::UUID::FromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF");
35 Bluetooth::UUID g_serviceSolicitationUuid = Bluetooth::UUID::FromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF");
36 Bluetooth::UUID g_serviceSolicitationUuidMask = Bluetooth::UUID::FromString("FFFFFFF0-FFFF-FFFF-FFFF-FFFFFFFFFFFF");
/foundation/arkui/ace_engine/test/unittest/core/property/
H A Dlayout_constraint_test_ng.cpp67 CalcLength width = CalcLength::FromString(widthStr); in HWTEST_F()
69 CalcLength height = CalcLength::FromString(heightStr); in HWTEST_F()
82 height = CalcLength::FromString(heightStr); in HWTEST_F()
94 width = CalcLength::FromString(widthStr); in HWTEST_F()
125 height = CalcLength::FromString(heightStr); in HWTEST_F()
357 CalcLength width = CalcLength::FromString(widthStr); in HWTEST_F()
359 CalcLength height = CalcLength::FromString(heightStr); in HWTEST_F()
373 height = CalcLength::FromString(heightStr); in HWTEST_F()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
H A Drender_context.cpp184 brp.radiusTopLeft = Dimension::FromString(borderRadius->GetString("topLeft")); in FromJson()
185 brp.radiusTopRight = Dimension::FromString(borderRadius->GetString("topRight")); in FromJson()
186 brp.radiusBottomLeft = Dimension::FromString(borderRadius->GetString("bottomLeft")); in FromJson()
187 brp.radiusBottomRight = Dimension::FromString(borderRadius->GetString("bottomRight")); in FromJson()
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Djsi_badge_bridge.cpp51 jsiBadgeBridge.badgeConfig_.badgeColor = { Color::FromString(valStr), true }; in ParseBadgeConfig()
59 jsiBadgeBridge.badgeConfig_.textColor = { Color::FromString(valStr), true }; in ParseBadgeConfig()
H A Djsi_chart_bridge.cpp54 [](const std::string& valStr, AxisOption& axis) { axis.color = Color::FromString(valStr); } }, in GetAttrOptionsAxis()
96 PointInfo& pointInfo) { pointInfo.SetFillColor(Color::FromString(valStr)); } }, in GetAttrOptionsSeriesPoint()
107 PointInfo& pointInfo) { pointInfo.SetStrokeColor(Color::FromString(valStr)); } }, in GetAttrOptionsSeriesPoint()
151 chartOptions.SetTargetColor(Color::FromString(valStr)); } }, in GetChartAttrOptionsSeriesLineStyle()
304 segmentInfo.SetSegmentColor(Color::FromString(valStr)); in ParseTextInfoAndSegmentInfo()
306 textInfo.SetColor(Color::FromString(valStr)); in ParseTextInfoAndSegmentInfo()
424 dataSet.SetStrokeColor(Color::FromString(valStr)); in GetAttrDataset()
426 dataSet.SetFillColor(Color::FromString(valStr)); in GetAttrDataset()
460 segment.SetStartColor(Color::FromString(valStr)); in ParseAttrSegment()
463 segment.SetEndColor(Color::FromString(valSt in ParseAttrSegment()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dcalc_length.h109 static CalcLength FromString(const std::string& str) in FromString() function in OHOS::Ace::NG::CalcLength
111 return CalcLength(Dimension::FromString(str)); in FromString()
/foundation/communication/bluetooth/frameworks/js/napi/include/
H A Dnapi_bluetooth_ble_utils.h74 GattCharacteristic characteristic_ = {UUID::FromString("0"), 0, 0};
78 GattDescriptor descriptor_ = {UUID::FromString("0"), 0};
/foundation/communication/bluetooth_service/test/unittest/spp/
H A Dspp_test.cpp56 insecureUuid_ = UUID::FromString("00001101-0000-1000-8000-00805F9B34FB"); in SetUp()
58 uuid_ = UUID::FromString("11111111-0000-1000-8000-00805F9B34FB"); in SetUp()
/foundation/arkui/ace_engine/frameworks/core/components/chart/
H A Dchart_component.h292 Color strokeColor_ = Color::FromString("#ff0000");
294 Color fillColor_ = Color::FromString("#ff0000");
563 Color fillColor_ = Color::FromString("#ff6384");
564 Color strokeColor_ = Color::FromString("#ff6384");
/foundation/arkui/ace_engine/test/unittest/core/layout/
H A Dlayout_property_test_ng.cpp778 auto width = CalcLength::FromString("1px"); in HWTEST_F()
779 auto height = CalcLength::FromString("1px"); in HWTEST_F()
784 width = CalcLength::FromString("0px"); in HWTEST_F()
785 height = CalcLength::FromString("0px"); in HWTEST_F()
815 auto width = CalcLength::FromString("1px"); in HWTEST_F()
816 auto height = CalcLength::FromString("1px"); in HWTEST_F()
859 auto width = CalcLength::FromString("10px"); in HWTEST_F()
860 auto height = CalcLength::FromString("10px"); in HWTEST_F()
893 auto width = CalcLength::FromString("10px"); in HWTEST_F()
894 auto height = CalcLength::FromString("1 in HWTEST_F()
[all...]
/foundation/ability/ability_runtime/test/fuzztest/wantagenthelperstring_fuzzer/
H A Dwantagenthelperstring_fuzzer.cpp39 auto newWantAgent = WantAgentHelper::FromString(str); in DoSomethingInterestingWithMyAPI()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/preview_mock/
H A Dpreview_mock_model_ng.cpp26 const Color bgColor = Color::FromString("#808080"); in Create()
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/bundle_resource/
H A Dbundle_system_state.h40 bool FromString(const std::string &systemState);

Completed in 19 milliseconds

123456