Home
last modified time | relevance | path

Searched refs:Translate (Results 1 – 25 of 245) sorted by relevance

12345678910

/external/llvm-project/llvm/unittests/ADT/
DStringSwitchTest.cpp15 auto Translate = [](StringRef S) { in TEST() local
35 EXPECT_EQ(1, Translate("1")); in TEST()
36 EXPECT_EQ(2, Translate("2")); in TEST()
37 EXPECT_EQ(11, Translate("B")); in TEST()
38 EXPECT_EQ(-1, Translate("b")); in TEST()
39 EXPECT_EQ(-1, Translate("")); in TEST()
40 EXPECT_EQ(-1, Translate("Test")); in TEST()
44 auto Translate = [](StringRef S) { in TEST() local
64 EXPECT_EQ(1, Translate("1")); in TEST()
65 EXPECT_EQ(2, Translate("2")); in TEST()
[all …]
/external/skia/modules/skottie/tests/
DImage.cpp52 { 1, SkMatrix::Translate(50,25) * SkMatrix::Scale(.5f,.5f) * SkMatrix::Translate(-50,-25), in DEF_TEST()
54 { 2, SkMatrix::Translate(-50, 0), in DEF_TEST()
56 { 3, SkMatrix::Translate(0, -25), in DEF_TEST()
58 { 4, SkMatrix::Translate(50, 0), in DEF_TEST()
60 { 5, SkMatrix::Translate(0, 25), in DEF_TEST()
/external/skia/gm/
Dcrbug_224618.cpp61 SkM44 zoom = SkM44::Translate(0.f, 0.f, radius); in onDraw()
62 SkM44 postZoom = SkM44::Translate(0.f, 0.f, -radius - 1.f); in onDraw()
86 model = SkM44::Translate(radius, radius) * proj * // project and place content in onDraw()
88 SkM44::Translate(-radius, -radius); // center content in onDraw()
Dpreservefillrule.cpp76 star7_evenOdd.transform(SkMatrix::Translate(0, fStarSize)); in onDraw()
80 star5_winding.transform(SkMatrix::Translate(fStarSize, 0)); in onDraw()
84 star5_evenOdd.transform(SkMatrix::Translate(0, fStarSize)); in onDraw()
Dpostercircle.cpp122 SkM44 model = SkM44::Translate(kStageWidth/2, kStageHeight/2 + 25, 0) in onDraw()
124 * SkM44::Translate(0, ringY, 0) in onDraw()
126 * SkM44::Translate(0, 0, kRingRadius); in onDraw()
Dsample_matrix_constant.cpp66 rtCtx->drawRect(nullptr, std::move(paint), GrAA::kNo, SkMatrix::Translate(tx, ty), in __anon79ee04020202()
73 rtCtx->drawRect(nullptr, std::move(paint), GrAA::kNo, SkMatrix::Translate(tx, ty), in __anon79ee04020302()
Ddftext_blob_persp.cpp134 persp = SkMatrix::Concat(persp, SkMatrix::Translate(-x, -y)); in drawBlob()
135 persp = SkMatrix::Concat(SkMatrix::Translate(x, y), persp); in drawBlob()
/external/webrtc/modules/desktop_capture/win/
Ddxgi_output_duplicator.cc204 dest_rect.Translate(offset); in Duplicate()
210 updated_region.Translate(offset.x(), offset.y()); in Duplicate()
225 source_rect.Translate(last_frame_offset_); in Duplicate()
226 target_rect.Translate(offset); in Duplicate()
229 updated_region.Translate(offset.x(), offset.y()); in Duplicate()
244 result.Translate(offset); in GetTranslatedDesktopRect()
388 desktop_rect_.Translate(position); in TranslateRect()
/external/libchrome/mojo/public/tools/bindings/pylib/mojom_tests/parse/
Drun_translate.py16 from mojom.parse.translate import Translate
27 print Translate(Parse(f.read(), filename),
/external/skia/modules/skottie/src/
DTransform.cpp59 return SkMatrix::Translate(fPosition.x, fPosition.y) in totalMatrix()
63 * SkMatrix::Translate(-fAnchorPoint.x, -fAnchorPoint.y); in totalMatrix()
183 return SkM44::Translate(position.x, position.y, position.z) in totalMatrix()
188 * SkM44::Translate(-anchor_point.x, -anchor_point.y, -anchor_point.z); in totalMatrix()
/external/angle/src/tests/gl_tests/gles1/
DMatrixMultTest.cpp54 angle::Mat4 testMatrix = angle::Mat4::Translate(angle::Vector3(1.0f, 0.0f, 0.0f)); in TEST_P()
67 EXPECT_EQ(angle::Mat4::Translate(angle::Vector3(2.0f, 0.0f, 0.0f)), outputMatrix); in TEST_P()
DMatrixBuiltinsTest.cpp55 TEST_P(MatrixBuiltinsTest, Translate) in TEST_P() argument
61 angle::Mat4 testMatrix = angle::Mat4::Translate(angle::Vector3(x, y, z)); in TEST_P()
/external/rust/crates/libz-sys/src/zlib/contrib/ada/
Dbuffer_demo.adb53 Translate (Compressor, Source, I, Compressed_Data, L, Finish);
83 Translate
Dzlib.adb253 Translate (Filter, No_Data, Last, Out_Data, Out_Last, Flush);
280 Translate
423 Translate
477 procedure Translate subprogram
502 end Translate;
683 Translate
Dmtest.adb104 procedure Translate is new Generic_Translate subprogram
123 Translate (Deflate);
Dtest.adb103 procedure Translate is new ZLib.Generic_Translate subprogram
315 Translate (Filter);
331 Translate (Filter);
/external/skia/bench/
DDrawBitmapAABench.cpp62 DEF_BENCH( return new DrawBitmapAABench(false, SkMatrix::Translate(17.5f, 17.5f), "translate"); )
75 DEF_BENCH( return new DrawBitmapAABench(true, SkMatrix::Translate(17.5f, 17.5f), "translate"); )
/external/rust/crates/regex-syntax/src/
Derror.rs20 Translate(hir::Error), enumerator
38 Error::Translate(err) in from()
48 Error::Translate(ref x) => x.description(), in description()
58 Error::Translate(ref x) => x.fmt(f), in fmt()
/external/webrtc/modules/desktop_capture/
Ddesktop_geometry.h140 void Translate(int32_t dx, int32_t dy);
141 void Translate(DesktopVector d) { Translate(d.x(), d.y()); } in Translate() function
Dcropping_window_capturer_win.cc226 region_rect.Translate(window_region_rect_.left(), in ShouldUseScreenCapturer()
273 window_rect.Translate(-screen_rect.left(), -screen_rect.top()); in GetWindowRectInVirtualScreen()
/external/skia/src/shaders/gradients/
DSkSweepGradient.cpp16 : SkGradientShaderBase(desc, SkMatrix::Translate(-center.x(), -center.y())) in SkSweepGradient()
63 p->append_matrix(alloc, SkMatrix::Scale(fTScale, 1) * SkMatrix::Translate(fTBias, 0)); in appendGradientStages()
/external/skia/docs/examples/
DChromeMDRefreshTab.cpp146 path.transform(SkMatrix::Translate(0, 30)); in draw()
151 border_path.transform(SkMatrix::Translate(0, 30)); in draw()
DMatrix_isFinite.cpp7 SkMatrix matrix = SkMatrix::Translate(SK_ScalarNaN, 0); in draw()
DMatrix_MakeTrans.cpp7 SkMatrix matrix = SkMatrix::Translate(64, 48); in draw()
/external/pdfium/testing/fuzzers/
Dpdf_fm2js_fuzzer.cc21 CFXJSE_FormCalcContext::Translate(input.AsStringView(), &js); in LLVMFuzzerTestOneInput()

12345678910