Home
last modified time | relevance | path

Searched refs:shape (Results 1 - 25 of 169) sorted by relevance

1234567

/test/xts/acts/arkui/ace_c_arkui_test/entry/src/main/cpp/checkbox/
H A Dcheckbox_shape_test.cpp22 int32_t shape = ArkUI_CHECKBOX_SHAPE_ROUNDED_SQUARE; in TestCheckboxShape001() local
23 ArkUI_NumberValue shape_value[] = {{.i32 = shape}}; in TestCheckboxShape001()
27 ASSERT_EQ(nodeAPI->getAttribute(checkbox, NODE_CHECKBOX_SHAPE)->value[PARAM_0].i32, shape); in TestCheckboxShape001()
34 int32_t shape = ArkUI_CHECKBOX_SHAPE_CIRCLE; in TestCheckboxShape002() local
35 ArkUI_NumberValue shape_value[] = {{.i32 = shape}}; in TestCheckboxShape002()
39 ASSERT_EQ(nodeAPI->getAttribute(checkbox, NODE_CHECKBOX_SHAPE)->value[PARAM_0].i32, shape); in TestCheckboxShape002()
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/
H A Dtensor_desc.cpp92 OH_NN_ReturnCode TensorDesc::GetShape(int32_t** shape, size_t* shapeNum) const in GetShape() argument
94 if (shape == nullptr) { in GetShape()
95 LOGE("GetShape failed, shape is nullptr."); in GetShape()
98 if (*shape != nullptr) { in GetShape()
99 LOGE("GetShape failed, *shape is not nullptr."); in GetShape()
106 *shape = const_cast<int32_t*>(m_shape.data()); in GetShape()
111 OH_NN_ReturnCode TensorDesc::SetShape(const int32_t* shape, size_t shapeNum) in SetShape() argument
113 if (shape == nullptr) { in SetShape()
114 LOGE("SetShape failed, shape is nullptr."); in SetShape()
123 m_shape.emplace_back(shape[ in SetShape()
[all...]
H A Dtensor_desc.h36 OH_NN_ReturnCode GetShape(int32_t** shape, size_t* shapeNum) const;
37 OH_NN_ReturnCode SetShape(const int32_t* shape, size_t shapeNum);
/foundation/arkui/ace_engine/frameworks/core/components/form/resource/
H A Dform_request_data.h44 int32_t shape = -1; member
50 << index << temporary << shape; in ToString() local
64 shape == formInfo.shape; in operator ==()
/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/
H A DExecutorTest.cpp99 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
127 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
155 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
184 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), dimensions, quantParam, in HWTEST_F()
212 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
240 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape in HWTEST_F()
299 int32_t shape[4] = {1, 100, 100, 11}; HWTEST_F() local
334 int32_t shape[4] = {1, 1, 1, 1}; //minInputDims HWTEST_F() local
369 int32_t shape[4] = {1, 100, 100, 10}; //maxInputDims HWTEST_F() local
[all...]
H A DMemoryTest.cpp561 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
588 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
638 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
665 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
692 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape in HWTEST_F()
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/chart/29/
H A Dindex.js37 shape: "circle",
47 shape: "aaa",
58 shape: "circle",
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_auto_test/src/main/js/default/pages/chart/30/
H A Dindex.js49 shape: "circle",
55 shape: "circle",
90 shape: "circle",
/foundation/ai/neural_network_runtime/test/unittest/components/nn_tensor/
H A Dnn_tensor_test.cpp294 int32_t* shape = &index; in HWTEST_F() local
295 desc.SetShape(shape, shapeNum); in HWTEST_F()
397 int32_t* shape = &index; in HWTEST_F() local
398 desc.SetShape(shape, shapeNum); in HWTEST_F()
462 int32_t* shape = &index; in HWTEST_F() local
463 desc.SetShape(shape, shapeNum); in HWTEST_F()
531 int32_t* shape = &index; in HWTEST_F() local
532 desc.SetShape(shape, shapeNum); in HWTEST_F()
598 int32_t* shape = &index; in HWTEST_F() local
599 desc.SetShape(shape, shapeNu in HWTEST_F()
627 int32_t* shape = &index; HWTEST_F() local
778 int32_t* shape = &index; HWTEST_F() local
809 int32_t* shape = &index; HWTEST_F() local
840 int32_t* shape = &index; HWTEST_F() local
871 int32_t* shape = &index; HWTEST_F() local
902 int32_t* shape = &index; HWTEST_F() local
1079 int32_t* shape = &index; HWTEST_F() local
1107 int32_t* shape = &index; HWTEST_F() local
1138 int32_t* shape = &index; HWTEST_F() local
1173 int32_t* shape = &index; HWTEST_F() local
1252 int32_t* shape = &index; HWTEST_F() local
1282 int32_t* shape = &index; HWTEST_F() local
[all...]
/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/
H A DExecutorTest.cpp99 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
127 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
155 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
184 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), dimensions, quantParam, in HWTEST_F()
212 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
240 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape in HWTEST_F()
[all...]
H A DMemoryTest.cpp561 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
588 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
638 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
665 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape.data(), in HWTEST_F()
692 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t)operandTem.shape.size(), operandTem.shape in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/particle/
H A Dparticle_model.h33 ParticleDisturbanceShapeType shape = ParticleDisturbanceShapeType::RECT; member
43 return !(NearEqual(strength, data.strength) && shape == data.shape && size[0] == data.size[0] && in operator !=()
/test/xts/acts/ai/nncore/opstest/src/
H A Dscatter_nd_test.cpp37 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, sizeof(float)}; member
40 .operands = {indices, updates, shape, output},
58 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 2*sizeof(float)}; member
61 .operands = {indices, updates, shape, output},
79 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 2*sizeof(float)}; member
82 .operands = {indices, updates, shape, output},
100 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 3*sizeof(float)}; member
103 .operands = {indices, updates, shape, output},
238 scatterNdModel.shape, scatterNdModel.output}; in HWTEST_F()
258 graphArgs.operands = {scatterNdModel.indices, scatterNdModel.updates, scatterNdModel.shape, in HWTEST_F()
[all...]
H A Dnncore_utils.cpp28 NN_TensorDesc* createTensorDesc(const int32_t* shape, size_t shapeNum, OH_NN_DataType dataType, OH_NN_Format format) in createTensorDesc() argument
42 if (shape != nullptr) { in createTensorDesc()
43 ret = OH_NNTensorDesc_SetShape(tensorDescTmp, shape, shapeNum); in createTensorDesc()
98 NN_TensorDesc* tensorDesc = createTensorDesc(operandTem.shape.data(), in BuildSingleOpGraph()
99 (uint32_t) operandTem.shape.size(), in BuildSingleOpGraph()
H A Dcrop_test.cpp37 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 3*sizeof(float)}; member
42 .operands = {input, shape, output, axis, offsets},
60 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 3*sizeof(float)}; member
65 .operands = {input, shape, output, axis, offsets},
83 OHNNOperandTest shape = {OH_NN_FLOAT32, OH_NN_TENSOR, shape_shape, shapeValue, 3*sizeof(float)}; member
88 .operands = {input, shape, output, axis, offsets},
193 graphArgs.operands = {cropModel.input, cropModel.input, cropModel.shape, cropModel.output, in HWTEST_F()
215 graphArgs.operands = {cropModel.input, cropModel.shape, cropModel.output, cropModel.output, in HWTEST_F()
240 graphArgs.operands = {cropModel.input, cropModel.shape, cropModel.output, cropModel.axis, in HWTEST_F()
317 tensorDesc = createTensorDesc(operandTem.shape in HWTEST_F()
[all...]
H A Dbroadcast_to_test.cpp34 OHNNOperandTest shape = {OH_NN_INT64, OH_NN_BROADCAST_TO_SHAPE, {2}, &shapeValue, 2*sizeof(int64_t)}; member
36 .operands = {input, output, shape},
51 OHNNOperandTest shape = {OH_NN_INT64, OH_NN_BROADCAST_TO_SHAPE, {2}, &shapeValue, 2*sizeof(int64_t)}; member
53 .operands = {input, output, shape},
68 OHNNOperandTest shape = {OH_NN_INT64, OH_NN_BROADCAST_TO_SHAPE, {2}, &shapeValue, 2*sizeof(int64_t)}; member
70 .operands = {input, output, shape},
176 broadcastToModel.output, broadcastToModel.shape}; in HWTEST_F()
198 broadcastToModel.output, broadcastToModel.shape}; in HWTEST_F()
222 graphArgs.operands = {broadcastToModel.input, broadcastToModel.output, broadcastToModel.shape, activation}; in HWTEST_F()
298 tensorDesc = createTensorDesc(operandTem.shape in HWTEST_F()
[all...]
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dnntensor.cpp345 int32_t* shape = nullptr; in CheckDimRanges() local
347 auto ret = m_tensorDesc->GetShape(&shape, &shapeSize); in CheckDimRanges()
349 LOGE("NNTensor2_0::CheckInputDimRanges failed, failed to get shape from desc."); in CheckDimRanges()
354 if (shape[j] < 0) { in CheckDimRanges()
355 LOGE("Dimension %{public}zu is %{public}d.", j, shape[j]); in CheckDimRanges()
358 uint32_t dim = static_cast<uint32_t>(shape[j]); in CheckDimRanges()
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_slider_modifier.cpp407 auto shape = AceType::MakeRefPtr<ShapeRect>(); in SetSliderBlockShape() local
413 shape->SetWidth(width); in SetSliderBlockShape()
414 shape->SetHeight(height); in SetSliderBlockShape()
415 shape->SetRadiusWidth(radiusWidth); in SetSliderBlockShape()
416 shape->SetRadiusHeight(radiusHeight); in SetSliderBlockShape()
417 SliderModelNG::SetBlockShape(frameNode, shape); in SetSliderBlockShape()
420 auto shape = AceType::MakeRefPtr<Circle>(); in SetSliderBlockShape() local
424 shape->SetWidth(width); in SetSliderBlockShape()
425 shape->SetHeight(height); in SetSliderBlockShape()
426 SliderModelNG::SetBlockShape(frameNode, shape); in SetSliderBlockShape()
429 auto shape = AceType::MakeRefPtr<Ellipse>(); SetSliderBlockShape() local
[all...]
/test/xts/acts/ai/neural_network_runtime/v2_0/common/
H A Dnnrt_utils.cpp37 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in BuildMultiOpGraph()
38 operandTem.shape.data(), quantParam, operandTem.type}; in BuildMultiOpGraph()
86 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in BuildSingleOpGraph()
87 operandTem.shape.data(), quantParam, operandTem.type}; in BuildSingleOpGraph()
226 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in ExecuteGraphMock()
227 operandTem.shape.data(), in ExecuteGraphMock()
269 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in ExecutorWithMemory()
270 operandTem.shape.data(), in ExecutorWithMemory()
/test/xts/acts/ai/neural_network_runtime/v1_0/common/
H A Dnnrt_utils.cpp37 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in BuildMultiOpGraph()
38 operandTem.shape.data(), quantParam, operandTem.type}; in BuildMultiOpGraph()
86 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in BuildSingleOpGraph()
87 operandTem.shape.data(), quantParam, operandTem.type}; in BuildSingleOpGraph()
226 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in ExecuteGraphMock()
227 operandTem.shape.data(), in ExecuteGraphMock()
269 OH_NN_Tensor operand = {operandTem.dataType, (uint32_t) operandTem.shape.size(), in ExecutorWithMemory()
270 operandTem.shape.data(), in ExecutorWithMemory()
/test/xts/acts/ai/nncore/nncoretest/src/
H A DHdiTensorDescTest.cpp151 * @tc.desc: 设置TensorDescShape,shape为空
170 int32_t* shape = nullptr; in HWTEST_F() local
171 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNTensorDesc_GetShape(nullptr, &shape, &shapeLength)); in HWTEST_F()
176 * @tc.desc: 获取TensorDescShape,未设置shape
184 int32_t* shape = nullptr; in HWTEST_F() local
185 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_GetShape(tensorDesc, &shape, &shapeLength)); in HWTEST_F()
186 ASSERT_EQ(nullptr, shape); in HWTEST_F()
202 int32_t* shape = nullptr; in HWTEST_F() local
203 ASSERT_EQ(OH_NN_SUCCESS, OH_NNTensorDesc_GetShape(tensorDesc, &shape, &shapeLength)); in HWTEST_F()
204 ASSERT_EQ(*inputDims, *shape); in HWTEST_F()
[all...]
/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/
H A Dneural_network_core.h367 * The {@link NN_TensorDesc} describes various tensor attributes, such as name/data type/shape/format, etc.\n
478 * @brief Sets the shape of a {@link NN_TensorDesc}.
480 * After the {@link NN_TensorDesc} instance is created, call this method to set the tensor shape. \n
482 * if <b>tensorDesc</b> or <b>shape</b> is a null pointer, or <b>shapeLength</b> is 0,
486 * @param shape The shape list of the tensor that needs to be set.
487 * @param shapeLength The length of the shape list that needs to be set.
494 OH_NN_ReturnCode OH_NNTensorDesc_SetShape(NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength);
497 * @brief Gets the shape of a {@link NN_TensorDesc}.
499 * Call this method to obtain the shape o
[all...]
/foundation/graphic/graphic_3d/3d_widget_adapter/core/src/lume/
H A Dlume_common.cpp339 for (auto shape = shapes_.begin(); shape != shapes_.end();) { in UpdateGeometries()
340 auto find = std::find_if(shapes.begin(), shapes.end(), [&shape](const std::shared_ptr<Geometry>& sNew) { in UpdateGeometries()
341 return (*shape)->GetName() == sNew->GetName(); in UpdateGeometries()
344 shape = shapes_.erase(shape); in UpdateGeometries()
347 shape++; in UpdateGeometries()
1200 std::shared_ptr<Geometry>& shape, CORE3D_NS::INodeSystem& nodeSystem) in DestroyNode()
1203 auto shapeNode = sceneNode->LookupNodeByName(shape->GetName().c_str()); in DestroyNode()
1207 WIDGET_LOGW("Failed to remove: %s", shape in DestroyNode()
1199 DestroyNode(CORE_NS::Entity& sceneEntity, std::shared_ptr<Geometry>& shape, CORE3D_NS::INodeSystem& nodeSystem) DestroyNode() argument
1246 UpdateNodePosition(CORE_NS::Entity& sceneEntity, std::shared_ptr<Geometry>& shape, CORE3D_NS::INodeSystem& nodeSystem) UpdateNodePosition() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/
H A Dcj_button_ffi.cpp141 void FfiOHOSAceFrameworkButtonSetType(int32_t shape) in FfiOHOSAceFrameworkButtonSetType() argument
143 if (!Utils::CheckParamsValid(shape, BUTTON_TYPES.size())) { in FfiOHOSAceFrameworkButtonSetType()
147 ButtonModel::GetInstance()->SetType(static_cast<int>(BUTTON_TYPES[shape])); in FfiOHOSAceFrameworkButtonSetType()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/models/
H A Dmodel_view_impl.cpp90 void ModelViewImpl::AddGeometry(const RefPtr<OHOS::Render3D::SVGeometry>& shape) in AddGeometry() argument
92 GET_COMPONENT_OR_RETURN()->AddGeometry(shape); in AddGeometry()

Completed in 32 milliseconds

1234567