Home
last modified time | relevance | path

Searched refs:kW (Results 1 – 25 of 293) sorted by relevance

12345678910>>...12

/external/skia/tests/
DCopySurfaceTest.cpp31 static const int kW = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
33 static const size_t kRowBytes = sizeof(uint32_t) * kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
35 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
36 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
40 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
41 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
46 { 0, 0, kW , kH }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
47 {-1, -1, kW+1, kH+1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
48 { 1, 1, kW-1, kH-1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
55 { kW/2, kH/4}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DApplyGammaTest.cpp98 static const int kW = 256; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
100 static const size_t kRowBytes = sizeof(uint32_t) * kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
104 baseDesc.fWidth = kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
107 const SkImageInfo ii = SkImageInfo::MakeN32Premul(kW, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
109 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
111 for (int x = 0; x < kW; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
112 srcPixels.get()[y*kW+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
119 SkAutoTMalloc<uint32_t> read(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
145 sk_memset32(read.get(), 0, kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
154 for (int x = 0; x < kW && !abort; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DVkWrapTests.cpp30 const int kW = 1024; variable
39 GrBackendTexture origBackendTex = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, in wrap_tex_test()
53 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
67 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
80 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
92 GrBackendTexture origBackendTex = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, in wrap_rt_test()
99 GrBackendRenderTarget origBackendRT(kW, kH, 1, 0, imageInfo); in wrap_rt_test()
109 GrBackendRenderTarget backendRT(kW, kH, 1, 0, backendCopy); in wrap_rt_test()
120 GrBackendRenderTarget backendRT(kW, kH, 1, 0, backendCopy); in wrap_rt_test()
134 GrBackendTexture origBackendTex = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, in wrap_trt_test()
[all …]
DClearTest.cpp66 static const int kW = 10; in clear_op_test() local
69 SkIRect fullRect = SkIRect::MakeWH(kW, kH); in clear_op_test()
74 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in clear_op_test()
76 SkIRect outerTopEdge = SkIRect::MakeXYWH(0, 0, kW, 1); in clear_op_test()
77 SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); in clear_op_test()
78 SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); in clear_op_test()
82 SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); in clear_op_test()
84 SkIRect innerTopEdge = SkIRect::MakeXYWH(1, 1, kW-2, 1); in clear_op_test()
85 SkIRect innerRightEdge = SkIRect::MakeXYWH(kW-2, 1, 1, kH-2); in clear_op_test()
86 SkIRect innerBottomEdge = SkIRect::MakeXYWH(1, kH-2, kW-2, 1); in clear_op_test()
[all …]
DSRGBReadWritePixelsTest.cpp184 static constexpr int kW = 255; variable
188 std::unique_ptr<uint32_t[]> data(new uint32_t[kW * kH]); in make_data()
190 for (int i = 0; i < kW; ++i) { in make_data()
191 data[j * kW + i] = (0xFF << 24) | (i << 16) | (i << 8) | i; in make_data()
201 desc.fWidth = kW; in make_surface_context()
226 auto writeII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
235 auto readII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
DSurfaceTest.cpp809 const int kW = surface->width(); in test_surface_draw_partially() local
814 surface->getCanvas()->drawRect(SkRect::MakeWH(SkIntToScalar(kW), SkIntToScalar(kH)/2), in test_surface_draw_partially()
816 std::unique_ptr<uint32_t[]> pixels(new uint32_t[kW * kH]); in test_surface_draw_partially()
817 sk_memset32(pixels.get(), ~origColor, kW * kH); in test_surface_draw_partially()
819 SkImageInfo readInfo = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in test_surface_draw_partially()
820 SkAssertResult(surface->readPixels(readInfo, pixels.get(), kW * sizeof(uint32_t), 0, 0)); in test_surface_draw_partially()
831 for (int x = 0; x < kW && !stop; ++x) { in test_surface_draw_partially()
832 REPORTER_ASSERT(reporter, rectColorPM == pixels[x + y * kW]); in test_surface_draw_partially()
833 if (rectColorPM != pixels[x + y * kW]) { in test_surface_draw_partially()
840 for (int x = 0; x < kW && !stop; ++x) { in test_surface_draw_partially()
[all …]
/external/skqp/tests/
DCopySurfaceTest.cpp31 static const int kW = 10; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
33 static const size_t kRowBytes = sizeof(uint32_t) * kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
35 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
36 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
40 SkAutoTMalloc<uint32_t> dstPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
41 for (int i = 0; i < kW * kH; ++i) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
46 { 0, 0, kW , kH }, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
47 {-1, -1, kW+1, kH+1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
48 { 1, 1, kW-1, kH-1}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
55 { kW/2, kH/4}, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DApplyGammaTest.cpp98 static const int kW = 256; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
100 static const size_t kRowBytes = sizeof(uint32_t) * kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
104 baseDesc.fWidth = kW; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
107 const SkImageInfo ii = SkImageInfo::MakeN32Premul(kW, kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
109 SkAutoTMalloc<uint32_t> srcPixels(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
111 for (int x = 0; x < kW; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
112 srcPixels.get()[y*kW+x] = SkPreMultiplyARGB(x, y, x, 0xFF); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
119 SkAutoTMalloc<uint32_t> read(kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
145 sk_memset32(read.get(), 0, kW * kH); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
154 for (int x = 0; x < kW && !abort; ++x) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DVkWrapTests.cpp30 const int kW = 1024; variable
39 GrBackendTexture origBackendTex = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, in wrap_tex_test()
53 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
67 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
80 GrBackendTexture backendTex = GrBackendTexture(kW, kH, backendCopy); in wrap_tex_test()
92 GrBackendTexture origBackendTex = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, in wrap_rt_test()
99 GrBackendRenderTarget origBackendRT(kW, kH, 1, 0, imageInfo); in wrap_rt_test()
109 GrBackendRenderTarget backendRT(kW, kH, 1, 0, backendCopy); in wrap_rt_test()
120 GrBackendRenderTarget backendRT(kW, kH, 1, 0, backendCopy); in wrap_rt_test()
134 GrBackendTexture origBackendTex = gpu->createTestingOnlyBackendTexture(nullptr, kW, kH, in wrap_trt_test()
[all …]
DClearTest.cpp67 static const int kW = 10; in clear_op_test() local
70 SkIRect fullRect = SkIRect::MakeWH(kW, kH); in clear_op_test()
75 SkIRect mid1Rect = SkIRect::MakeXYWH(1, 1, kW-2, kH-2); in clear_op_test()
77 SkIRect outerTopEdge = SkIRect::MakeXYWH(0, 0, kW, 1); in clear_op_test()
78 SkIRect outerRightEdge = SkIRect::MakeXYWH(kW-1, 0, 1, kH); in clear_op_test()
79 SkIRect outerBottomEdge = SkIRect::MakeXYWH(0, kH-1, kW, 1); in clear_op_test()
83 SkIRect mid2Rect = SkIRect::MakeXYWH(2, 2, kW-4, kH-4); in clear_op_test()
85 SkIRect innerTopEdge = SkIRect::MakeXYWH(1, 1, kW-2, 1); in clear_op_test()
86 SkIRect innerRightEdge = SkIRect::MakeXYWH(kW-2, 1, 1, kH-2); in clear_op_test()
87 SkIRect innerBottomEdge = SkIRect::MakeXYWH(1, kH-2, kW-2, 1); in clear_op_test()
[all …]
DSRGBReadWritePixelsTest.cpp184 static constexpr int kW = 255; variable
188 std::unique_ptr<uint32_t[]> data(new uint32_t[kW * kH]); in make_data()
190 for (int i = 0; i < kW; ++i) { in make_data()
191 data[j * kW + i] = (0xFF << 24) | (i << 16) | (i << 8) | i; in make_data()
201 desc.fWidth = kW; in make_surface_context()
226 auto writeII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
235 auto readII = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType, in test_write_read()
DSurfaceTest.cpp810 const int kW = surface->width(); in test_surface_draw_partially() local
815 surface->getCanvas()->drawRect(SkRect::MakeWH(SkIntToScalar(kW), SkIntToScalar(kH)/2), in test_surface_draw_partially()
817 std::unique_ptr<uint32_t[]> pixels(new uint32_t[kW * kH]); in test_surface_draw_partially()
818 sk_memset32(pixels.get(), ~origColor, kW * kH); in test_surface_draw_partially()
820 SkImageInfo readInfo = SkImageInfo::Make(kW, kH, kRGBA_8888_SkColorType, kPremul_SkAlphaType); in test_surface_draw_partially()
821 SkAssertResult(surface->readPixels(readInfo, pixels.get(), kW * sizeof(uint32_t), 0, 0)); in test_surface_draw_partially()
832 for (int x = 0; x < kW && !stop; ++x) { in test_surface_draw_partially()
833 REPORTER_ASSERT(reporter, rectColorPM == pixels[x + y * kW]); in test_surface_draw_partially()
834 if (rectColorPM != pixels[x + y * kW]) { in test_surface_draw_partially()
841 for (int x = 0; x < kW && !stop; ++x) { in test_surface_draw_partially()
[all …]
/external/skqp/gm/
Dshadowutils.cpp26 static constexpr int kW = 800; variable
91 if (x + dx > kW - 3 * kPad) { in draw_paths()
204 DEF_SIMPLE_GM(shadow_utils, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
208 DEF_SIMPLE_GM(shadow_utils_occl, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
212 DEF_SIMPLE_GM(shadow_utils_gray, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
Ddrawimageset.cpp187 static constexpr SkScalar kW = kM * kTileW; in onDraw() local
193 matrices[1].setRotate(90, kW / 2.f, kH / 2.f); in onDraw()
198 matrices[3].postTranslate(kW, kH); in onDraw()
202 matrices[4].postRotate(90, kW / 2.f, kH / 2.f); in onDraw()
205 static constexpr SkScalar kTranslate = SkTMax(kW, kH) * 2.f + 10.f; in onDraw()
Dcirculararcs.cpp17 constexpr int kW = 1000; variable
53 constexpr SkScalar kGridW = kW / 2.f; in draw_arcs()
64 canvas->drawLine(0.f , kGridH, SkIntToScalar(kW), kGridH, linePaint); in draw_arcs()
67 #define DEF_ARC_GM(name) DEF_SIMPLE_GM(circular_arcs_##name, canvas, kW, kH)
/external/skia/gm/
Dshadowutils.cpp26 static constexpr int kW = 800; variable
91 if (x + dx > kW - 3 * kPad) { in draw_paths()
204 DEF_SIMPLE_GM(shadow_utils, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
208 DEF_SIMPLE_GM(shadow_utils_occl, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
212 DEF_SIMPLE_GM(shadow_utils_gray, canvas, kW, kH) { in DEF_SIMPLE_GM() argument
Ddrawimageset.cpp187 static constexpr SkScalar kW = kM * kTileW; in onDraw() local
193 matrices[1].setRotate(90, kW / 2.f, kH / 2.f); in onDraw()
198 matrices[3].postTranslate(kW, kH); in onDraw()
202 matrices[4].postRotate(90, kW / 2.f, kH / 2.f); in onDraw()
205 static constexpr SkScalar kTranslate = SkTMax(kW, kH) * 2.f + 10.f; in onDraw()
Dcirculararcs.cpp17 constexpr int kW = 1000; variable
53 constexpr SkScalar kGridW = kW / 2.f; in draw_arcs()
64 canvas->drawLine(0.f , kGridH, SkIntToScalar(kW), kGridH, linePaint); in draw_arcs()
67 #define DEF_ARC_GM(name) DEF_SIMPLE_GM(circular_arcs_##name, canvas, kW, kH)
/external/icu/icu4c/source/data/unit/
Duz_Cyrl.txt161 one{"{0} kW"}
162 other{"{0} kW"}
372 one{"{0} kW"}
373 other{"{0} kW"}
583 one{"{0} kW"}
584 other{"{0} kW"}
Dug.txt339 one{"{0}kW"}
340 other{"{0}kW"}
542 one{"{0} kW"}
543 other{"{0} kW"}
Dksh.txt459 one{"{0}kW"}
460 other{"{0}kW"}
461 zero{"{0}kW"}
729 one{"{0} kW"}
730 other{"{0} kW"}
731 zero{"{0} kW"}
Dse.txt496 one{"{0}kW"}
497 other{"{0}kW"}
498 two{"{0}kW"}
787 one{"{0} kW"}
788 other{"{0} kW"}
789 two{"{0} kW"}
Dcy.txt2039 dnam{"kW"}
2040 few{"{0}kW"}
2041 many{"{0}kW"}
2042 one{"{0}kW"}
2043 other{"{0}kW"}
2044 two{"{0}kW"}
2045 zero{"{0}kW"}
2866 dnam{"kW-awr"}
2867 few{"{0} kW-awr"}
2868 many{"{0} kW-awr"}
[all …]
Dfy.txt417 one{"{0} kW"}
418 other{"{0} kW"}
662 one{"{0} kW"}
663 other{"{0} kW"}
/external/v8/src/
Dunicode.cc89 template <int kW>
92 uchar chars[kW];
106 template <bool ranges_are_linear, int kW>
109 const MultiCharacterSpecialCase<kW>* multi_chars, in LookupMapping()
158 const MultiCharacterSpecialCase<kW>& mapping = multi_chars[value >> 2]; in LookupMapping()
160 for (length = 0; length < kW; length++) { in LookupMapping()
162 if (mapped == MultiCharacterSpecialCase<kW>::kEndOfEncoding) break; in LookupMapping()

12345678910>>...12