/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_polyline.cpp | 62 JSRef<JSVal> val = pointsArray->GetValueAt(i); in JSPoints() 67 if (pointArray->GetValueAt(0)->IsNumber()) { in JSPoints() 68 … point.first = Dimension(pointArray->GetValueAt(0)->ToNumber<double>(), DimensionUnit::VP); in JSPoints() 69 } else if (pointArray->GetValueAt(0)->IsString()) { in JSPoints() 70 … point.first = StringUtils::StringToDimension(pointArray->GetValueAt(0)->ToString(), true); in JSPoints() 74 if (pointArray->GetValueAt(1)->IsNumber()) { in JSPoints() 75 … point.second = Dimension(pointArray->GetValueAt(1)->ToNumber<double>(), DimensionUnit::VP); in JSPoints() 76 } else if (pointArray->GetValueAt(1)->IsString()) { in JSPoints() 77 … point.second = StringUtils::StringToDimension(pointArray->GetValueAt(1)->ToString(), true); in JSPoints()
|
H A D | js_polygon.cpp | 88 JSRef<JSVal> val = pointsArray->GetValueAt(i); in JsPoints() 93 if (pointArray->GetValueAt(0)->IsNumber()) { in JsPoints() 94 … shapePoint.first = Dimension(pointArray->GetValueAt(0)->ToNumber<double>(), DimensionUnit::VP); in JsPoints() 95 } else if (pointArray->GetValueAt(0)->IsString()) { in JsPoints() 96 … shapePoint.first = StringUtils::StringToDimension(pointArray->GetValueAt(0)->ToString(), true); in JsPoints() 100 if (pointArray->GetValueAt(1)->IsNumber()) { in JsPoints() 101 … shapePoint.second = Dimension(pointArray->GetValueAt(1)->ToNumber<double>(), DimensionUnit::VP); in JsPoints() 102 } else if (pointArray->GetValueAt(1)->IsString()) { in JsPoints() 103 … shapePoint.second = StringUtils::StringToDimension(pointArray->GetValueAt(1)->ToString(), true); in JsPoints()
|
H A D | js_repeat_virtual_scroll.cpp | 68 JSRef<JSArray> pair = templateOptsArray->GetValueAt(i); in ParseAndVerifyParams() 69 if (!pair->GetValueAt(0)->IsString()) { in ParseAndVerifyParams() 72 if (!pair->GetValueAt(1)->IsObject()) { in ParseAndVerifyParams() 75 auto type = pair->GetValueAt(0)->ToString(); in ParseAndVerifyParams() 76 auto opts = JSRef<JSObject>::Cast(pair->GetValueAt(1)); in ParseAndVerifyParams() 107 JSRef<JSArray> pair = templateOptsArray->GetValueAt(i); in Create() 108 auto type = pair->GetValueAt(0)->ToString(); in Create() 109 auto opts = JSRef<JSObject>::Cast(pair->GetValueAt(1)); in Create() 146 list.emplace_back(jsArr->GetValueAt(i)->ToString()); in Create() 165 list.emplace_back(jsArr->GetValueAt(i)->ToString()); in Create()
|
H A D | js_particle.cpp | 101 if (jsArray->GetValueAt(0)->IsNumber()) { in ParseParticleRange() 102 from = jsArray->GetValueAt(0)->ToNumber<float>(); in ParseParticleRange() 105 if (jsArray->GetValueAt(1)->IsNumber()) { in ParseParticleRange() 106 to = jsArray->GetValueAt(1)->ToNumber<float>(); in ParseParticleRange() 137 auto arrayItemJsValue = curveConfigJsArray->GetValueAt(i); in ParseAnimationFloatArray() 270 auto fromJsValue = floatRangeJsArray->GetValueAt(0); in ParseFloatInitRange() 281 auto toJsValue = floatRangeJsArray->GetValueAt(1); in ParseFloatInitRange() 465 auto arrayItemJsValue = curveConfigJsArray->GetValueAt(i); in ParseAnimationColorArray() 584 JSParticle::ParseJsColor(colorRangeJsArray->GetValueAt(1), toColor); in ParseColorInitRange() 729 if (!paramArray->GetValueAt(i)->IsObject()) { in ParseParticleArray() [all …]
|
H A D | js_gauge.cpp | 156 JSRef<JSVal> jsValue = jsColor->GetValueAt(i); in SetColors() 160 JSRef<JSArray> tempColors = jsColor->GetValueAt(i); in SetColors() 161 double value = tempColors->GetValueAt(1)->ToNumber<double>(); in SetColors() 162 float weight = tempColors->GetValueAt(1)->ToNumber<float>(); in SetColors() 164 if (!ParseJsColor(tempColors->GetValueAt(0), selectedColor)) { in SetColors() 199 JSRef<JSVal> jsValue = jsColorsArray->GetValueAt(i); in SetGradientColors() 205 float weight = tempColors->GetValueAt(1)->ToNumber<float>(); in SetGradientColors() 211 JSRef<JSVal> jsColorValue = tempColors->GetValueAt(0); in SetGradientColors()
|
H A D | js_data_change_listener.h | 157 if (jsArr->GetValueAt(i)->IsObject()) { in OnDatasetChange() 158 JSRef<JSObject> value = JSRef<JSObject>::Cast(jsArr->GetValueAt(i)); in OnDatasetChange() 246 if (keys->GetValueAt(i)->IsString()) { in transferKey() 247 keyList.push_back(keys->GetValueAt(i)->ToString()); in transferKey()
|
H A D | js_rect_shape.cpp | 121 JSRef<JSVal> radiusItem = array->GetValueAt(i); in SetRadiusWithArrayValue() 134 JSRef<JSVal> radiusX = radiusArray->GetValueAt(0); in SetRadiusWithArrayValue() 135 JSRef<JSVal> radiusY = radiusArray->GetValueAt(1); in SetRadiusWithArrayValue()
|
H A D | js_relative_container.cpp | 109 JSRef<JSVal> idVal = array->GetValueAt(i); in ParseBarrierInfo() 134 ParseBarrierInfo(array->GetValueAt(i), barrierInfoItem); in JsBarrier() 194 ParseGuideline(array->GetValueAt(i), guidelineInfoItem); in JsGuideline()
|
H A D | js_line.cpp | 124 parseJsDimension(array->GetValueAt(0), point.first); in SetPoint() 125 parseJsDimension(array->GetValueAt(1), point.second); in SetPoint()
|
H A D | js_rect.cpp | 69 JSRef<JSVal> value = propertyNames->GetValueAt(i); in Create() 195 JSRef<JSVal> radiusItem = array->GetValueAt(i); in SetRadiusWithArrayValue() 203 JSRef<JSVal> radiusX = radiusArray->GetValueAt(0); in SetRadiusWithArrayValue() 204 JSRef<JSVal> radiusY = radiusArray->GetValueAt(1); in SetRadiusWithArrayValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/nativeModule/ |
H A D | arkts_native_particle_bridge.cpp | 81 panda::ArrayRef::GetValueAt(vm, array, index * DISTURBANCE_FIELD_SIZE + STEP_8); in SetDisturbanceField() 86 panda::ArrayRef::GetValueAt(vm, array, index * DISTURBANCE_FIELD_SIZE + STEP_9); in SetDisturbanceField() 123 Local<JSValueRef> index = panda::ArrayRef::GetValueAt(vm, array, i * EMITTER_SIZE + STEP_0); in SetEmitter() 128 … Local<JSValueRef> hasEmitRate = panda::ArrayRef::GetValueAt(vm, array, i * EMITTER_SIZE + STEP_1); in SetEmitter() 134 … Local<JSValueRef> emitRate = panda::ArrayRef::GetValueAt(vm, array, i * EMITTER_SIZE + STEP_2); in SetEmitter() 140 … Local<JSValueRef> hasPosition = panda::ArrayRef::GetValueAt(vm, array, i * EMITTER_SIZE + STEP_3); in SetEmitter() 146 … Local<JSValueRef> positionX = panda::ArrayRef::GetValueAt(vm, array, i * EMITTER_SIZE + STEP_4); in SetEmitter() 150 … Local<JSValueRef> positionY = panda::ArrayRef::GetValueAt(vm, array, i * EMITTER_SIZE + STEP_5); in SetEmitter() 156 … Local<JSValueRef> hasSize = panda::ArrayRef::GetValueAt(vm, array, i * EMITTER_SIZE + STEP_6); in SetEmitter() 162 … Local<JSValueRef> sizeWidth = panda::ArrayRef::GetValueAt(vm, array, i * EMITTER_SIZE + STEP_7); in SetEmitter() [all …]
|
H A D | arkts_native_relative_container_bridge.cpp | 66 Local<JSValueRef> referencedId = panda::ArrayRef::GetValueAt(vm, array, i); in ParseReferencedId() 95 Local<JSValueRef> idVal = panda::ArrayRef::GetValueAt(vm, idsArr, i); in SetGuideLine() 100 Local<JSValueRef> directionVal = panda::ArrayRef::GetValueAt(vm, directionsArr, i); in SetGuideLine() 104 Local<JSValueRef> posStartVal = panda::ArrayRef::GetValueAt(vm, in SetGuideLine() 111 Local<JSValueRef> posEndVal = panda::ArrayRef::GetValueAt(vm, in SetGuideLine() 157 Local<JSValueRef> idVal = panda::ArrayRef::GetValueAt(vm, idsArr, i); in SetBarrier() 158 Local<JSValueRef> directionVal = panda::ArrayRef::GetValueAt(vm, directionsArr, i); in SetBarrier() 159 Local<JSValueRef> referencedIdVal = panda::ArrayRef::GetValueAt(vm, referenceIdsArr, i); in SetBarrier()
|
H A D | arkts_native_line_bridge.cpp | 42 Local<JSValueRef> starItem = panda::ArrayRef::GetValueAt(vm, arrayVal, 0); in SetStartPoint() 43 Local<JSValueRef> endItem = panda::ArrayRef::GetValueAt(vm, arrayVal, 1); in SetStartPoint() 110 Local<JSValueRef> starItem = panda::ArrayRef::GetValueAt(vm, arrayVal, 0); in SetEndPoint() 111 Local<JSValueRef> endItem = panda::ArrayRef::GetValueAt(vm, arrayVal, 1); in SetEndPoint()
|
H A D | arkts_native_polygon_bridge.cpp | 50 Local<JSValueRef> xValue = panda::ArrayRef::GetValueAt(vm, xPointArray, i); in SetPolygonPoints() 51 Local<JSValueRef> yValue = panda::ArrayRef::GetValueAt(vm, yPointArray, i); in SetPolygonPoints()
|
H A D | arkts_native_polyline_bridge.cpp | 50 Local<JSValueRef> xValue = panda::ArrayRef::GetValueAt(vm, xPointArray, i); in SetPoints() 51 Local<JSValueRef> yValue = panda::ArrayRef::GetValueAt(vm, yPointArray, i); in SetPoints()
|
H A D | arkts_utils.cpp | 198 auto item = panda::ArrayRef::GetValueAt(vm, params, i); in GetResourceObject() 346 auto identity = panda::ArrayRef::GetValueAt(vm, params, 0); in CompleteResourceObjectFromParams() 503 auto param = panda::ArrayRef::GetValueAt(vm, params, 0); in ParseJsColorFromResource() 553 auto param = panda::ArrayRef::GetValueAt(vm, params, 0); in ParseJsDimensionFromResource() 601 auto param = panda::ArrayRef::GetValueAt(vm, params, 0); in ParseJsDimensionFromResourceNG() 643 auto value = handle->GetValueAt(vm, arg, i); in ParseStringArray() 708 auto param = panda::ArrayRef::GetValueAt(vm, params, 0); in ParseJsIntegerWithResource() 758 auto param = panda::ArrayRef::GetValueAt(vm, params, 0); in ParseResourceToDouble() 979 auto param = panda::ArrayRef::GetValueAt(vm, params, 0); in ParseJsFontFamiliesFromResource() 1200 auto param = panda::ArrayRef::GetValueAt(vm, params, 0); in FillResultForResIdNumIsNegative() [all …]
|
H A D | arkts_native_navigation_utils.cpp | 27 auto item = panda::ArrayRef::GetValueAt(vm, array, index); in ParseBarItems() 117 auto item = panda::ArrayRef::GetValueAt(vm, array, index); in ParseAndSendFunctionParam() 125 auto jsItem = jsArray->GetValueAt(index); in ParseAndSendFunctionParam()
|
H A D | arkts_native_rect_bridge.cpp | 143 Local<JSValueRef> radiusItem = panda::ArrayRef::GetValueAt(vm, arrayVal, i); in SetRadiusWithArray() 155 Local<JSValueRef> radiusX = panda::ArrayRef::GetValueAt(vm, radiusArray, indexX); in SetRadiusWithArray() 156 Local<JSValueRef> radiusY = panda::ArrayRef::GetValueAt(vm, radiusArray, indexY); in SetRadiusWithArray()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/src/animation/ |
H A D | track_animation_state.cpp | 81 startProgress_ = timestamps->GetValueAt(0); in UpdateValid() 82 endProgress_ = timestamps->GetValueAt(size - 1); in UpdateValid() 138 startProgress_ = timestamps->GetValueAt(0); in SetKeyframes() 139 endProgress_ = timestamps->GetValueAt(size - 1); in SetKeyframes() 181 auto startTs = timestamps->GetValueAt(lo); in UpdateIndex() 182 auto endTs = timestamps->GetValueAt(hi); in UpdateIndex() 189 startTs = timestamps->GetValueAt(mid); in UpdateIndex() 190 endTs = timestamps->GetValueAt(endIndex); in UpdateIndex() 230 currentRangeStartTs_ = timestamps->GetValueAt(start); in JumpTo() 231 currentRangeEndTs_ = timestamps->GetValueAt(end); in JumpTo()
|
/ohos5.0/foundation/arkui/napi/test/unittest/ |
H A D | test_ark_api_allowlist.cpp | 64 Local<JSValueRef> nameValue = ArrayRef::GetValueAt(vm, propertyNamesArrayVal, i); in CheckPropertyNames() 80 Local<JSValueRef> nameValue = ArrayRef::GetValueAt(vm, propertyNamesArrayVal, i); in Test001() 109 Local<JSValueRef> nameValue = ArrayRef::GetValueAt(vm, propertyNamesArrayVal, i); in Test002() 183 ArrayRef::GetValueAt(vm, propertyNamesArrayVal, i)->ToString(vm)->ToString(vm).c_str()); 237 ArrayRef::GetValueAt(vm, propertyNamesArrayVal, i)->ToString(vm)->ToString(vm).c_str());
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_foreach_function.cpp | 47 JSRef<JSVal> jsKey = jsKeysArr->GetValueAt(i); in ExecuteIdentityMapper() 68 params[0] = jsArray->GetValueAt(index); in ExecuteBuilderForIndex()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | textureinfo_impl.cpp | 105 const auto& curVal = array_->GetValueAt(slotIndex_); in ArrayChanged() 127 auto curVal = array_->GetValueAt(slotIndex_); in ImageChanged() 138 auto curVal = array_->GetValueAt(slotIndex_); in FactorChanged()
|
H A D | submeshhandler.cpp | 137 auto ptr = submeshes_->GetValueAt(i); in DoComponentEvent() 196 META_NS::SetValue(submeshes_->GetValueAt(index)->RenderSortLayerOrder(), value); in SetRenderSortLayerOrder() 254 META_NS::SetValue(submeshes_->GetValueAt(index)->AABBMin(), vec); in SetAABBMin() 287 META_NS::SetValue(submeshes_->GetValueAt(index)->AABBMax(), vec); in SetAABBMax()
|
H A D | mesh_impl.cpp | 297 SubMeshes()->GetValueAt(i)->SetMaterial(material); in SetMaterialToScene() 300 SubMeshes()->GetValueAt(index)->SetMaterial(material); in SetMaterialToScene() 307 return META_ACCESS_PROPERTY(SubMeshes)->GetValueAt(index)->Material()->GetValue(); in GetMaterial() 380 return META_NS::GetValue(SubMeshes()->GetValueAt(index)->RenderSortLayerOrder()); in GetRenderSortLayerOrder()
|
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/interface/ |
H A D | intf_any.h | 120 AnyReturnValue GetValueAt(IndexType index, T& value) const in GetValueAt() function 152 inline T GetValueAt(const IArrayAny& array, IArrayAny::IndexType index, NonDeduced_t<T> defaultValu… 155 if (!array.GetValueAt(index, t)) {
|