Home
last modified time | relevance | path

Searched refs:ToNumber (Results 1 – 25 of 175) sorted by relevance

1234567

/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_grid_col.cpp92 if (xs->IsNumber() && xs->ToNumber<int32_t>() >= 0) { in ParserGridContainerSize()
93 containerSizeArray[XS] = xs->ToNumber<int32_t>(); in ParserGridContainerSize()
96 if (sm->IsNumber() && sm->ToNumber<int32_t>() >= 0) { in ParserGridContainerSize()
97 containerSizeArray[SM] = sm->ToNumber<int32_t>(); in ParserGridContainerSize()
100 if (md->IsNumber() && md->ToNumber<int32_t>() >= 0) { in ParserGridContainerSize()
101 containerSizeArray[MD] = md->ToNumber<int32_t>(); in ParserGridContainerSize()
104 if (lg->IsNumber() && lg->ToNumber<int32_t>() >= 0) { in ParserGridContainerSize()
105 containerSizeArray[LG] = lg->ToNumber<int32_t>(); in ParserGridContainerSize()
108 if (xl->IsNumber() && xl->ToNumber<int32_t>() >= 0) { in ParserGridContainerSize()
109 containerSizeArray[XL] = xl->ToNumber<int32_t>(); in ParserGridContainerSize()
[all …]
H A Djs_grid_row.cpp174 auto columnNumber = jsValue->ToNumber<int32_t>(); in ParserColumns()
182 if (xs->IsNumber() && xs->ToNumber<int32_t>() > 0) { in ParserColumns()
183 containerSizeArray[0] = xs->ToNumber<int32_t>(); in ParserColumns()
186 if (sm->IsNumber() && sm->ToNumber<int32_t>() > 0) { in ParserColumns()
187 containerSizeArray[1] = sm->ToNumber<int32_t>(); in ParserColumns()
190 if (md->IsNumber() && md->ToNumber<int32_t>() > 0) { in ParserColumns()
191 containerSizeArray[2] = md->ToNumber<int32_t>(); in ParserColumns()
194 if (lg->IsNumber() && lg->ToNumber<int32_t>() > 0) { in ParserColumns()
195 containerSizeArray[3] = lg->ToNumber<int32_t>(); in ParserColumns()
198 if (xl->IsNumber() && xl->ToNumber<int32_t>() > 0) { in ParserColumns()
[all …]
H A Djs_particle.cpp102 from = jsArray->GetValueAt(0)->ToNumber<float>(); in ParseParticleRange()
106 to = jsArray->GetValueAt(1)->ToNumber<float>(); in ParseParticleRange()
146 from = fromJsValue->ToNumber<float>(); in ParseAnimationFloatArray()
158 to = toJsValue->ToNumber<float>(); in ParseAnimationFloatArray()
228 auto typeIntValue = typeJsValue->ToNumber<int32_t>(); in ParseFloatUpdater()
272 from = fromJsValue->ToNumber<float>(); in ParseFloatInitRange()
283 to = toJsValue->ToNumber<float>(); in ParseFloatInitRange()
325 auto typeIntValue = typeJsValue->ToNumber<int32_t>(); in ParseParticleObject()
381 auto countIntValue = countJsValue->ToNumber<int32_t>(); in ParseParticleObject()
424 …emitRate = emitRateJsValue->ToNumber<int32_t>() >= 0 ? emitRateJsValue->ToNumber<int32_t>() : emit… in ParseEmitterOption()
[all …]
H A Djs_side_bar.cpp109 style = static_cast<SideBarContainerType>(info[0]->ToNumber<int>()); in Create()
146 …if (info[0]->IsNumber() && info[0]->ToNumber<int32_t>() >= 0 && info[0]->ToNumber<int32_t>() <= 1)… in JsSideBarPosition()
148 static_cast<SideBarPosition>(info[0]->ToNumber<int32_t>())); in JsSideBarPosition()
417 Dimension(left->ToNumber<double>(), DimensionUnit::VP)); in ParseControlButtonOG()
422 Dimension(top->ToNumber<double>(), DimensionUnit::VP)); in ParseControlButtonOG()
434 if (width->IsNumber() && GreatOrEqual(width->ToNumber<double>(), 0.0)) { in ParseControlButtonNG()
435 controlButtonWidth = CalcDimension(width->ToNumber<double>(), DimensionUnit::VP); in ParseControlButtonNG()
440 if (height->IsNumber() && GreatOrEqual(height->ToNumber<double>(), 0.0)) { in ParseControlButtonNG()
445 if (left->IsNumber() && GreatOrEqual(left->ToNumber<double>(), 0.0)) { in ParseControlButtonNG()
453 if (top->IsNumber() && GreatOrEqual(top->ToNumber<double>(), 0.0)) { in ParseControlButtonNG()
[all …]
H A Djs_gesture.cpp252 priorityNum = jsPriorityNum->ToNumber<int32_t>(); in Create()
289 int32_t countNumber = count->ToNumber<int32_t>(); in Create()
357 int32_t fingersNumber = fingers->ToNumber<int32_t>(); in Create()
361 double distanceNumber = distance->ToNumber<double>(); in Create()
367 uint32_t directNum = directionNum->ToNumber<uint32_t>(); in Create()
394 int32_t fingersNumber = fingers->ToNumber<int32_t>(); in Create()
398 double speedNumber = speed->ToNumber<double>(); in Create()
449 double angleNumber = angle->ToNumber<double>(); in Create()
463 gestureMode = jsGestureMode->ToNumber<int32_t>(); in Create()
587 auto distance = args[0]->ToNumber<double>(); in SetDistance()
[all …]
H A Djs_tabs.cpp246 index = indexVal->ToNumber<int32_t>(); in Create()
547 … if (sm->IsNumber() && sm->ToNumber<int32_t>() >= 0 && sm->ToNumber<int32_t>() <= SM_COLUMN_NUM && in SetBarGridAlign()
548 sm->ToNumber<int32_t>() % 2 == 0) { in SetBarGridAlign()
549 columnOption.sm = sm->ToNumber<int32_t>(); in SetBarGridAlign()
552 … if (md->IsNumber() && md->ToNumber<int32_t>() >= 0 && md->ToNumber<int32_t>() <= MD_COLUMN_NUM && in SetBarGridAlign()
553 md->ToNumber<int32_t>() % 2 == 0) { in SetBarGridAlign()
554 columnOption.md = md->ToNumber<int32_t>(); in SetBarGridAlign()
557 … if (lg->IsNumber() && lg->ToNumber<int32_t>() >= 0 && lg->ToNumber<int32_t>() <= LG_COLUMN_NUM && in SetBarGridAlign()
558 lg->ToNumber<int32_t>() % 2 == 0) { in SetBarGridAlign()
559 columnOption.lg = lg->ToNumber<int32_t>(); in SetBarGridAlign()
[all …]
H A Djs_base_node.cpp200 auto widthValue = width->IsNumber() ? width->ToNumber<float>() : 0.0f; in ConstructorCallback()
203 auto heightValue = height->IsNumber() ? height->ToNumber<float>() : 0.0f; in ConstructorCallback()
210 renderType = static_cast<NodeRenderType>(type->ToNumber<uint32_t>()); in ConstructorCallback()
244 touchEvent.type = static_cast<TouchType>(typeJsVal->ToNumber<int32_t>()); in PostTouchEvent()
248 touchEvent.sourceType = static_cast<SourceType>((sourceJsVal->ToNumber<int32_t>())); in PostTouchEvent()
252 touchEvent.sourceTool = static_cast<SourceTool>((sourceToolJsVal->ToNumber<int32_t>())); in PostTouchEvent()
256 touchEvent.force = sourceToolJsVal->ToNumber<float>(); in PostTouchEvent()
266 touchEvent.deviceId = deviceIdJsVal->ToNumber<int32_t>(); in PostTouchEvent()
270 touchEvent.targetDisplayId = targetDisplayIdJsVal->ToNumber<int32_t>(); in PostTouchEvent()
293 touchEvent.tiltX = titleXJsVal->ToNumber<float>(); in PostTouchEvent()
[all …]
H A Djs_slider.cpp148 value = getValue->ToNumber<double>(); in Create()
153 value = valueProperty->ToNumber<double>(); in Create()
157 min = getMin->ToNumber<double>(); in Create()
161 max = getMax->ToNumber<double>(); in Create()
165 step = getStep->ToNumber<double>(); in Create()
200 sliderDirection = static_cast<Axis>(direction->ToNumber<int32_t>()); in Create()
316 SliderModel::GetInstance()->SetMinLabel(info[0]->ToNumber<float>()); in SetMinLabel()
324 SliderModel::GetInstance()->SetMaxLabel(info[0]->ToNumber<float>()); in SetMaxLabel()
342 rangeFromValue = getValueRangeFrom->ToNumber<double>(); in SetValidSlideRange()
347 rangeToValue = getValueRangeTo->ToNumber<double>(); in SetValidSlideRange()
[all …]
H A Djs_animator.cpp393 double mass = info[0]->ToNumber<double>(); in ConstructorCallback()
394 double stiffness = info[1]->ToNumber<double>(); in ConstructorCallback()
395 double damping = info[2]->ToNumber<double>(); in ConstructorCallback()
421 double friction = info[0]->ToNumber<double>(); in ConstructorCallback()
422 double position = info[1]->ToNumber<double>(); in ConstructorCallback()
423 double velocity = info[2]->ToNumber<double>(); in ConstructorCallback()
430 double start = info[0]->ToNumber<double>(); in ConstructorCallback()
431 double end = info[1]->ToNumber<double>(); in ConstructorCallback()
432 double velocity = info[2]->ToNumber<double>(); in ConstructorCallback()
447 double min = info[2]->ToNumber<double>(); in ConstructorCallback()
[all …]
H A Djs_flex_impl.cpp41 auto wrapNum = wrapVal->ToNumber<int32_t>(); in Create()
68 auto direction = directionVal->ToNumber<int32_t>(); in CreateFlexComponent()
74 auto mainAlign = justifyVal->ToNumber<int32_t>(); in CreateFlexComponent()
82 auto crossAlign = alignItemVal->ToNumber<int32_t>(); in CreateFlexComponent()
140 auto direction = directionVal->ToNumber<int32_t>(); in WrapComponent()
157 auto mainAlign = justifyVal->ToNumber<int32_t>(); in WrapComponent()
163 auto crossAlign = alignItemVal->ToNumber<int32_t>(); in WrapComponent()
169 auto alignContent = alignContentVal->ToNumber<int32_t>(); in WrapComponent()
H A Djs_form.cpp90 formInfo.id = id->ToNumber<int64_t>(); in Create()
98 formInfo.dimension = dimension->ToNumber<int32_t>(); in Create()
105 formInfo.renderingMode = renderingMode->ToNumber<int32_t>(); in Create()
108 formInfo.shape = shape->ToNumber<int32_t>(); in Create()
127 width = Dimension(widthValue->ToNumber<double>(), DimensionUnit::VP); in SetSize()
136 height = Dimension(heightValue->ToNumber<double>(), DimensionUnit::VP); in SetSize()
165 auto type = info[0]->ToNumber<int32_t>(); in SetVisibility()
266 reasons.push_back(static_cast<ObscuredReasons>(reason->ToNumber<int32_t>())); in JsObscured()
H A Djs_gauge.cpp95 double gaugeMin = min->IsNumber() ? min->ToNumber<double>() : 0; in Create()
96 double gaugeMax = max->IsNumber() ? max->ToNumber<double>() : 100; in Create()
97 double gaugeValue = value->IsNumber() ? value->ToNumber<double>() : 0; in Create()
118 value = info[0]->ToNumber<float>(); in SetValue()
127 startAngle = std::fmod(info[0]->ToNumber<double>(), FIX_ANGLE); in SetStartAngle()
136 endAngle = std::fmod(info[0]->ToNumber<double>(), FIX_ANGLE); in SetEndAngle()
161 double value = tempColors->GetValueAt(1)->ToNumber<double>(); in SetColors()
162 float weight = tempColors->GetValueAt(1)->ToNumber<float>(); in SetColors()
205 float weight = tempColors->GetValueAt(1)->ToNumber<float>(); in SetGradientColors()
H A Djs_datepicker.cpp198 auto value = style->ToNumber<int32_t>(); in ParseFontOfButtonStyle()
437 auto style = fontStyle->ToNumber<int32_t>(); in ParseTextStyle()
581 pickerDate.SetYear(year->ToNumber<int32_t>()); in ParseDate()
583 pickerDate.SetDay(date->ToNumber<int32_t>()); in ParseDate()
609 pickerTime.SetHour(hour->ToNumber<int32_t>()); in ParseTime()
1285 pickerDate.SetYear(year->ToNumber<int32_t>()); in ParseDate()
1287 pickerDate.SetDay(date->ToNumber<int32_t>()); in ParseDate()
1313 pickerTime.SetHour(hour->ToNumber<int32_t>()); in ParseTime()
1580 pickerTime.SetHour(hour->ToNumber<int32_t>()); in ParseTime()
1893 pickerTime.SetHour(hour->ToNumber<int32_t>()); in ParseTime()
[all …]
H A Djs_view_abstract.cpp1227 typeNum = type->ToNumber<int32_t>(); in CompleteResourceObjectFromParams()
2337 auto value = jsVal->ToNumber<int32_t>(); in JsAlign()
2577 visible = arg->ToNumber<int32_t>(); in SetVisibility()
3099 radio = info[0]->ToNumber<double>(); in JsSphericalEffect()
3157 radio = info[0]->ToNumber<double>(); in JsLightUpEffect()
5417 auto resId = id->ToNumber<int32_t>(); in ParseResourceToDouble()
6273 auto span = jsVal->ToNumber<int32_t>(); in JsGridSpan()
6295 span = val->ToNumber<uint32_t>(); in ParseSpanAndOffset()
6335 zIndex = info[0]->ToNumber<int>(); in JsZIndex()
9548 angle = value->ToNumber<float>(); in GetJsAngle()
[all …]
H A Djs_data_change_listener.h209 dataOperation.index = value->GetProperty("index")->ToNumber<int32_t>(); in transferIndex()
213 … dataOperation.coupleIndex.first = coupleIndex->GetProperty("from")->ToNumber<int32_t>(); in transferIndex()
216 … dataOperation.coupleIndex.second = coupleIndex->GetProperty("to")->ToNumber<int32_t>(); in transferIndex()
219 … dataOperation.coupleIndex.first = coupleIndex->GetProperty("start")->ToNumber<int32_t>(); in transferIndex()
222 … dataOperation.coupleIndex.second = coupleIndex->GetProperty("end")->ToNumber<int32_t>(); in transferIndex()
230 dataOperation.count = value->GetProperty("count")->ToNumber<int32_t>(); in transferCount()
H A Djs_button.cpp126 value = info[0]->ToNumber<int32_t>(); in SetType()
138 auto valueT = info[0]->ToNumber<int32_t>(); in SetButtonStyle()
154 auto valueT = info[0]->ToNumber<int32_t>(); in SetControlSize()
166 auto valueT = info[0]->ToNumber<int32_t>(); in SetRole()
240 auto value = style->ToNumber<int32_t>(); in GetFontContent()
285 auto overflow = overflowValue->ToNumber<int32_t>(); in SetLableStyle()
293 …buttonParameters.maxLines = Positive(maxLines->ToNumber<int32_t>()) ? maxLines->ToNumber<int32_t>(… in SetLableStyle()
310 auto adaptHeight = adaptHeightValue->ToNumber<int32_t>(); in SetLableStyle()
673 … auto styleModeIntValue = optionObj->GetProperty(JSButton::BUTTON_STYLE)->ToNumber<int32_t>(); in ParseCreatePara()
683 … auto controlSizeIntValue = optionObj->GetProperty(JSButton::CONTROL_SIZE)->ToNumber<int32_t>(); in ParseCreatePara()
[all …]
H A Djs_image_animator.cpp115 state = info[0]->ToNumber<int32_t>(); in SetState()
132 duration = info[0]->ToNumber<int32_t>(); in SetDuration()
148 iteration = info[0]->ToNumber<int32_t>(); in SetIteration()
164 fillMode = info[0]->ToNumber<int32_t>(); in SetFillMode()
180 preDecode = info[0]->ToNumber<int32_t>(); in SetPreDecode()
H A Djs_badge.cpp83 badgeParameters.badgePosition = position->ToNumber<int32_t>(); in CreateBadgeParameters()
181 fontWeight = std::to_string(fontWeightValue->ToNumber<int32_t>()); in CreateBadgeParameters()
192 badgeParameters.badgeCount = count->ToNumber<int32_t>(); in CreateBadgeParameters()
196 badgeParameters.badgeMaxCount = maxCount->ToNumber<int32_t>(); in CreateBadgeParameters()
H A Djs_calendar.cpp113 day.month.year = yearValue->ToNumber<int32_t>(); in Create()
114 day.month.month = monthValue->ToNumber<int32_t>(); in Create()
115 day.day = dayValue->ToNumber<int32_t>(); in Create()
163 obtainedMonth.year = yearValue->ToNumber<int32_t>(); in GetCalendarData()
164 obtainedMonth.month = monthValue->ToNumber<int32_t>(); in GetCalendarData()
214 day.month.year = yearValue->ToNumber<int32_t>(); in SetDate()
215 day.month.month = monthValue->ToNumber<int32_t>(); in SetDate()
216 day.day = dayValue->ToNumber<int32_t>(); in SetDate()
266 auto startOfWeek = info[0]->ToNumber<int32_t>(); in SetStartOfWeek()
372 auto dir = info[0]->ToNumber<int32_t>(); in SetDirection()
H A Djs_calendar_picker.cpp78 auto value = style->ToNumber<int32_t>(); in ParseFontOfButtonStyle()
98 auto styleModeIntValue = pickerButtonParamObject->GetProperty("style")->ToNumber<int32_t>(); in ParseButtonStyle()
241 alignType = static_cast<NG::CalendarEdgeAlign>(info[0]->ToNumber<int32_t>()); in SetEdgeAlign()
493 weight = std::to_string(fontWeight->ToNumber<int32_t>()); in ParseTextStyle()
522 pickerDate.SetYear(year->ToNumber<int32_t>()); in ParseDate()
523 pickerDate.SetMonth(month->ToNumber<int32_t>() + 1); // 0-11 means 1 to 12 months in ParseDate()
524 pickerDate.SetDay(date->ToNumber<int32_t>()); in ParseDate()
712 pickerDate.SetYear(year->ToNumber<int32_t>()); in ParseDate()
713 pickerDate.SetMonth(month->ToNumber<int32_t>() + 1); // 0-11 means 1 to 12 months in ParseDate()
714 pickerDate.SetDay(date->ToNumber<int32_t>()); in ParseDate()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/
H A Drs_profiler_utils.h68 static void ToNumber(const std::string& string, int8_t& number);
69 static void ToNumber(const std::string& string, int16_t& number);
70 static void ToNumber(const std::string& string, int32_t& number);
71 static void ToNumber(const std::string& string, int64_t& number);
72 static void ToNumber(const std::string& string, uint8_t& number);
73 static void ToNumber(const std::string& string, uint16_t& number);
74 static void ToNumber(const std::string& string, uint32_t& number);
76 static void ToNumber(const std::string& string, float& number);
77 static void ToNumber(const std::string& string, double& number);
80 static T ToNumber(const std::string& string) in ToNumber() function
[all …]
H A Drs_profiler_utils.cpp180 void Utils::ToNumber(const std::string& string, int8_t& number) in ToNumber() function in OHOS::Rosen::Utils
185 void Utils::ToNumber(const std::string& string, int16_t& number) in ToNumber() function in OHOS::Rosen::Utils
190 void Utils::ToNumber(const std::string& string, int32_t& number) in ToNumber() function in OHOS::Rosen::Utils
195 void Utils::ToNumber(const std::string& string, int64_t& number) in ToNumber() function in OHOS::Rosen::Utils
200 void Utils::ToNumber(const std::string& string, uint8_t& number) in ToNumber() function in OHOS::Rosen::Utils
205 void Utils::ToNumber(const std::string& string, uint16_t& number) in ToNumber() function in OHOS::Rosen::Utils
210 void Utils::ToNumber(const std::string& string, uint32_t& number) in ToNumber() function in OHOS::Rosen::Utils
215 void Utils::ToNumber(const std::string& string, uint64_t& number) in ToNumber() function in OHOS::Rosen::Utils
220 void Utils::ToNumber(const std::string& string, float& number) in ToNumber() function in OHOS::Rosen::Utils
225 void Utils::ToNumber(const std::string& string, double& number) in ToNumber() function in OHOS::Rosen::Utils
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/
H A Darkts_native_render_node_bridge.cpp341 rotationY = thirdArg->ToNumber(vm)->Value(); in SetRotation()
379 offsetX = secondArg->ToNumber(vm)->Value(); in SetShadowOffset()
382 offsetY = thirdArg->ToNumber(vm)->Value(); in SetShadowOffset()
415 alphaValue = alpha->ToNumber(vm)->Value(); in SetShadowAlpha()
441 radiusValue = radius->ToNumber(vm)->Value(); in SetShadowRadius()
457 scaleXValue = scaleX->ToNumber(vm)->Value(); in SetScale()
463 scaleYValue = scaleY->ToNumber(vm)->Value(); in SetScale()
528 widthValue = width->ToNumber(vm)->Value(); in SetFrame()
551 widthValue = width->ToNumber(vm)->Value(); in SetSize()
579 xAxisValue = xAxis->ToNumber(vm)->Value(); in SetPosition()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_string.cpp236 auto start = info[0]->ToNumber<int32_t>(); in GetSubSpanString()
239 length = info[1]->ToNumber<int32_t>(); in GetSubSpanString()
259 auto start = info[0]->ToNumber<int32_t>(); in GetSpans()
260 auto length = info[1]->ToNumber<int32_t>(); in GetSpans()
968 auto start = info[0]->ToNumber<int32_t>(); in InsertString()
988 auto start = info[0]->ToNumber<int32_t>(); in RemoveString()
989 auto length = info[1]->ToNumber<int32_t>(); in RemoveString()
1146 auto start = info[0]->ToNumber<int32_t>(); in RemoveSpan()
1169 auto start = info[0]->ToNumber<int32_t>(); in RemoveSpans()
1190 auto start = info[0]->ToNumber<int32_t>(); in ReplaceSpanString()
[all …]
/ohos5.0/foundation/multimedia/media_library/frameworks/innerkitsimpl/medialibrary_data_extension/src/operation/
H A Ddisplay_name_info.cpp97 this->yearMonthDay = this->ToNumber(parts[BURST_DISPLAY_NAME_YEAR_INDEX]); in ParseBurstDisplayName()
98 this->hourMinuteSecond = this->ToNumber(parts[BURST_DISPLAY_NAME_HOUR_INDEX]); in ParseBurstDisplayName()
106 int32_t DisplayNameInfo::ToNumber(const std::string &str) in ToNumber() function in OHOS::Media::DisplayNameInfo

1234567