Home
last modified time | relevance | path

Searched refs:tx (Results 1 - 25 of 34) sorted by relevance

12

/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/
H A Dmatrix_test.cpp40 float tx = 1; in HWTEST_F() local
42 matrix_.SetTranslate(tx, ty); in HWTEST_F()
43 ASSERT_EQ(matrix_.GetTransX(), tx); in HWTEST_F()
57 float tx = 0; in HWTEST_F() local
59 matrix_.SetTranslate(tx, ty); in HWTEST_F()
60 ASSERT_EQ(matrix_.GetTransX(), tx); in HWTEST_F()
74 float tx = 1; in HWTEST_F() local
76 matrix_.SetTranslate(tx, ty); in HWTEST_F()
77 ASSERT_EQ(matrix_.GetTransX(), tx); in HWTEST_F()
91 float tx in HWTEST_F() local
108 float tx = 0; HWTEST_F() local
125 float tx = 1; HWTEST_F() local
142 float tx = 0.5; HWTEST_F() local
159 float tx = 1; HWTEST_F() local
177 float tx = 1; HWTEST_F() local
230 float tx = 0; HWTEST_F() local
249 float tx = 1; HWTEST_F() local
268 float tx = 0; HWTEST_F() local
287 float tx = 1; HWTEST_F() local
379 float tx = 1; HWTEST_F() local
435 float tx = 1; HWTEST_F() local
459 float tx = 0; HWTEST_F() local
479 float tx = 0; HWTEST_F() local
499 float tx = 0; HWTEST_F() local
518 float tx = 1; HWTEST_F() local
[all...]
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/spancolorfill/
H A Dfill_interpolator.h99 float tx; in Begin() local
102 tx = x; in Begin()
105 transType_->Transform(&tx, &ty); in Begin()
106 int32_t x1 = MATH_ROUND32(tx * SUBPIXEL_SCALE); in Begin()
109 tx = x + len; in Begin()
111 transType_->Transform(&tx, &ty); in Begin()
112 int32_t x2 = MATH_ROUND32(tx * SUBPIXEL_SCALE); in Begin()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/include/
H A Dmatrix.h108 constexpr Matrix(float sx, float kx, float tx, float ky, float sy, float ty, float p0, float p1, float p2, in Matrix() argument
110 : fMat_ { sx, kx, tx, ky, sy, ty, p0, p1, p2 }, operType_(operType) {} in Matrix()
121 Matrix &SetTranslate(const float tx, const float ty);
135 void SetTranslateAndScale(const float tx, const float ty, const float sx, const float sy);
141 static void TransXY(const Matrix &m, const float tx, const float sy, Point &pt);
H A Dbasic_transformer.h125 void SetTranslateParam(const float tx, const float ty);
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/
H A Dmatrix.cpp35 Matrix &Matrix::SetTranslate(const float tx, const float ty) in SetTranslate() argument
37 *this = Matrix(1, 0, tx, 0, 1, ty, 0, 1, 1, (tx == 0 || ty == 0) ? IDENTITY : TRANSLATE); in SetTranslate()
119 void Matrix::SetTranslateAndScale(const float tx, const float ty, const float sx, const float sy) in SetTranslateAndScale() argument
123 fMat_[IMAGE_TRANSX] = tx; in SetTranslateAndScale()
135 if (tx != 0 || ty != 0) { in SetTranslateAndScale()
219 void Matrix::TransXY(const Matrix &m, const float tx, const float ty, Point &pt) in TransXY() argument
222 pt.x = tx + m.fMat_[IMAGE_TRANSX]; in TransXY()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/rsxform_fuzzer/
H A Drs_xform_fuzzer.cpp38 scalar tx = GetObject<scalar>(); in RsXformFuzzTest() local
40 RSXform::Make(cos, sin, tx, ty); in RsXformFuzzTest()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/text/
H A Drs_xform.h29 static RSXform Make(scalar cos, scalar sin, scalar tx, scalar ty) in Make()
31 RSXform xform = { cos, sin, tx, ty }; in Make()
39 out += " tx:" + std::to_string(tx_); in Dump()
/foundation/arkui/ace_engine/frameworks/core/components/svg/
H A Drosen_render_svg.cpp43 double tx = GetLayoutSize().Width() * 0.5 - (viewBox_.Width() * 0.5 + viewBox_.Left()) * scale; in UpdateTransformByGlobalOffset() local
46 rsNode->SetTranslate({ tx, ty }); in UpdateTransformByGlobalOffset()
/foundation/arkui/ace_engine/frameworks/core/components/shape/
H A Drosen_render_shape_container.cpp58 double tx = GetLayoutSize().Width() * 0.5 - (viewBoxWidth * 0.5 + viewBoxLeft) * scale; in PerformLayout() local
67 rsNode->SetTranslate({ tx, ty }); in PerformLayout()
93 double tx = GetLayoutSize().Width() * 0.5 - (viewBoxWidth * 0.5 + viewBoxLeft) * scale; in Paint() local
96 skOffCanvas_->translate(tx, ty); in Paint()
127 double tx = GetLayoutSize().Width() * 0.5 - (viewBoxWidth * 0.5 + viewBoxLeft) * scale; in Paint() local
130 tmpCanvas->Translate(tx, ty); in Paint()
219 double tx = GetLayoutSize().Width() * 0.5 - (viewBoxWidth * 0.5 + viewBoxLeft) * scale; in BitmapMesh() local
223 skOffCanvas_->translate(tx, ty); in BitmapMesh()
226 offCanvas_->Translate(tx, ty); in BitmapMesh()
/foundation/arkui/ace_engine/frameworks/core/components_ng/image_provider/adapter/
H A Dskia_svg_dom.cpp47 float tx = 0.0; in FitImage() local
74 tx = (layout_.Width() - svgSize_.Width() * scaleX) * HALF; in FitImage()
78 canvas->translate(tx, ty); in FitImage()
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/
H A Dl2cap_core.c533 L2capErfcTxPacket *tx = NULL; in L2capProcessRxReqSeq() local
545 tx = ListGetNodeData(node); in L2capProcessRxReqSeq()
546 header = BufferPtr(PacketHead(tx->pkt)); in L2capProcessRxReqSeq()
574 tx = ListGetNodeData(node); in L2capProcessRxReqSeq()
576 ListRemoveNode(erfc->txList, tx); in L2capProcessRxReqSeq()
577 PacketFree(tx->pkt); in L2capProcessRxReqSeq()
578 L2capFree(tx); in L2capProcessRxReqSeq()
589 L2capErfcTxPacket *tx = NULL; in L2capErfcTxOneFrame() local
601 tx = ListGetNodeData(node); in L2capErfcTxOneFrame()
602 pktHeader = BufferPtr(PacketHead(tx in L2capErfcTxOneFrame()
765 L2capErfcTxPacket *tx = NULL; L2capErfcDoTx() local
813 L2capErfcTxPacket *tx = NULL; L2capErfcTx() local
921 L2capErfcTxPacket *tx = NULL; L2capAddNewPacket() local
[all...]
H A Dl2cap_inst.c276 L2capErfcTxPacket *tx = NULL; in L2capDestroyChannelTx() local
284 tx = ListGetNodeData(node); in L2capDestroyChannelTx()
285 ListRemoveNode(chan->erfc.txList, tx); in L2capDestroyChannelTx()
286 PacketFree(tx->pkt); in L2capDestroyChannelTx()
287 L2capFree(tx); in L2capDestroyChannelTx()
/foundation/graphic/graphic_surface/surface/src/
H A Dsurface_utils.cpp168 float tx = 0.f; in ComputeTransformMatrix() local
179 tx = (float(crop.x) / bufferWidth); in ComputeTransformMatrix()
189 std::array<float, MATRIX_ARRAY_SIZE> cropMatrix = {sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1}; in ComputeTransformMatrix()
256 float tx = 0.f; in ComputeTransformMatrixV2() local
277 tx = (float(crop.x) / bufferWidth); in ComputeTransformMatrixV2()
287 std::array<float, MATRIX_ARRAY_SIZE> cropMatrix = {sx, 0, 0, 0, 0, sy, 0, 0, 0, 0, 1, 0, tx, ty, 0, 1}; in ComputeTransformMatrixV2()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_pattern.cpp44 double tx = contentSize.Width() * 0.5 - (portWidth * 0.5 + portLeft) * scale; in ViewPortTransform() local
52 context->OnTransformTranslateUpdate({ tx, ty, 0 }); in ViewPortTransform()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/draw/textblob_fuzzer/
H A Dtext_blob_fuzzer.cpp167 scalar tx = GetObject<scalar>(); in TextBlobFuzzTest005() local
169 RSXform xform[] = { RSXform::Make(cos, sin, tx, ty), RSXform::Make(cos, sin, tx, ty), in TextBlobFuzzTest005()
170 RSXform::Make(cos, sin, tx, ty) }; in TextBlobFuzzTest005()
/foundation/graphic/graphic_utils_lite/frameworks/diagram/vertexprimitive/
H A Dgeometry_bezier_arc.cpp40 float tx = (1.0f - x0) * BEZIER_ARC_DELTAX / BEZIER_ARC_EQUAL_DIVISION; in ArcToBezier() local
44 float ty = y0 - tx * x0 / y0; in ArcToBezier()
49 px[1] = x0 + tx; in ArcToBezier()
51 px[2] = x0 + tx; in ArcToBezier()
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dmatrix2d.h28 static void Translate(TransformParam& param, double tx, double ty);
H A Dmatrix2d.cpp70 void Matrix2D::Translate(TransformParam& param, double tx, double ty) in Translate() argument
74 skMatrix = skMatrix.postTranslate(tx, ty); in Translate()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/canvas/
H A Djs_matrix2d.cpp263 double tx = 0; in JsTranslate() local
266 JSViewAbstract::ParseJsDouble(info[JS_MATRIX2D_PARAMETER_COUNTS_0], tx); in JsTranslate()
272 tx *= density; in JsTranslate()
274 NG::Matrix2D::Translate(transform_, tx, ty); in JsTranslate()
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/utils/matrix_fuzzer/
H A Dmatrix_fuzzer.cpp97 scalar tx = GetObject<scalar>(); in MatrixFuzzTest001() local
112 matrix.SetMatrix(tx, ty, tz, sx, sy, sz, dx, dy, dz); in MatrixFuzzTest001()
/foundation/arkui/ace_engine/test/mock/core/rosen/
H A Dmock_canvas.h38 MOCK_METHOD2(Translate, void(float tx, float ty));
H A Dtesting_canvas.h63 virtual void Translate(float tx, float ty) {} in Translate() argument
/foundation/communication/netmanager_base/services/netstatsmanager/src/
H A Dnet_stats_service.cpp155 uint64_t tx = 0; in GetDumpMessage()
158 GetIfaceTxBytes(tx, name); in GetDumpMessage()
159 message.append("\t" + name + "-TxBytes: " + std::to_string(tx)); in GetDumpMessage()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_particles_drawable.cpp62 * [ cos -sin tx ]
70 float tx = position.x_ - cos * center.x_ + sin * center.y_; in MakeRSXform() local
72 return Drawing::RSXform::Make(cos, sin, tx, ty); in MakeRSXform()
/foundation/arkui/ace_engine/test/unittest/core/pattern/canvas/
H A Dcanvas_custom_paint_method_test_ng.cpp1391 double tx = .0; in HWTEST_F() local
1393 paintMethod->TranslateMatrix(tx, ty); in HWTEST_F()
1395 paintMethod->TranslateMatrix(tx, ty); in HWTEST_F()
1396 tx = 1.0; in HWTEST_F()
1398 paintMethod->TranslateMatrix(tx, ty); in HWTEST_F()
1400 paintMethod->TranslateMatrix(tx, ty); in HWTEST_F()

Completed in 17 milliseconds

12