/external/skqp/dm/ |
DMGpuTestProcs.cpp | 39 Reporter* reporter, const GrContextOptions& options) { 69 ReporterContext ctx(reporter, SkString(GrContextFactory::ContextTypeName(contextType))); 71 (*test)(reporter, ctxInfo); 77 (*test)(reporter, ctxInfo);
|
/external/skqp/tests/ |
ColorFilterTest.cpp | 39 static void test_composecolorfilter_limit(skiatest::Reporter* reporter) { 47 REPORTER_ASSERT(reporter, i > 2); // we need to have succeeded at least once! 51 REPORTER_ASSERT(reporter, false); // we never saw a nullptr :( 56 DEF_TEST(ColorFilter, reporter) { 73 REPORTER_ASSERT(reporter, cf); 83 REPORTER_ASSERT(reporter, cf->asColorMode(&c, (SkBlendMode*)&m)); 96 REPORTER_ASSERT(reporter, c == expectedColor); 97 REPORTER_ASSERT(reporter, m == expectedMode); 101 REPORTER_ASSERT(reporter, cf2) [all...] |
PathOpsConicQuadIntersectionTest.cpp | 27 static void conicQuadIntersection(skiatest::Reporter* reporter, int index) { 42 REPORTER_ASSERT(reporter, 0); 46 REPORTER_ASSERT(reporter, 0); 59 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); 61 reporter->bumpTestCount(); 64 DEF_TEST(PathOpsConicQuadIntersection, reporter) { 66 conicQuadIntersection(reporter, index); 67 reporter->bumpTestCount(); 71 DEF_TEST(PathOpsConicQuadIntersectionOneOff, reporter) { [all...] |
PathOpsCubicConicIntersectionTest.cpp | 31 static void cubicConicIntersection(skiatest::Reporter* reporter, int index) { 46 REPORTER_ASSERT(reporter, 0); 50 REPORTER_ASSERT(reporter, 0); 63 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); 65 reporter->bumpTestCount(); 68 DEF_TEST(PathOpsCubicConicIntersection, reporter) { 70 cubicConicIntersection(reporter, index); 71 reporter->bumpTestCount(); 75 DEF_TEST(PathOpsCubicConicIntersectionOneOff, reporter) { [all...] |
PathOpsCubicQuadIntersectionTest.cpp | 54 static void cubicQuadIntersection(skiatest::Reporter* reporter, int index) { 70 REPORTER_ASSERT(reporter, 0); 74 REPORTER_ASSERT(reporter, 0); 87 REPORTER_ASSERT(reporter, xy1.approximatelyEqual(xy2)); 89 reporter->bumpTestCount(); 92 DEF_TEST(PathOpsCubicQuadIntersection, reporter) { 94 cubicQuadIntersection(reporter, index); 95 reporter->bumpTestCount(); 99 DEF_TEST(PathOpsCubicQuadIntersectionOneOff, reporter) { [all...] |
PathOpsThreeWayTest.cpp | 42 static void testSetTest(skiatest::Reporter* reporter, int index) { 74 DEF_TEST(PathOpsThreeWay, reporter) { 76 testSetTest(reporter, index); 77 reporter->bumpTestCount(); 81 DEF_TEST(PathOpsThreeWayOneOff, reporter) { 83 testSetTest(reporter, index);
|
SpecialSurfaceTest.cpp | 34 skiatest::Reporter* reporter, 38 REPORTER_ASSERT(reporter, offset == surfSubset.fLeft); 39 REPORTER_ASSERT(reporter, offset == surfSubset.fTop); 40 REPORTER_ASSERT(reporter, kSmallerSize == surfSubset.width()); 41 REPORTER_ASSERT(reporter, kSmallerSize == surfSubset.height()); 49 REPORTER_ASSERT(reporter, img); 52 REPORTER_ASSERT(reporter, surfSubset == imgSubset); 55 REPORTER_ASSERT(reporter, !surf->getCanvas()); 58 DEF_TEST(SpecialSurface_Raster, reporter) { [all...] |
UtilsTest.cpp | 28 static void test_autounref(skiatest::Reporter* reporter) { 30 REPORTER_ASSERT(reporter, obj.unique()); 33 REPORTER_ASSERT(reporter, &obj == tmp.get()); 34 REPORTER_ASSERT(reporter, obj.unique()); 36 REPORTER_ASSERT(reporter, &obj == tmp.release()); 37 REPORTER_ASSERT(reporter, obj.unique()); 38 REPORTER_ASSERT(reporter, nullptr == tmp.release()); 39 REPORTER_ASSERT(reporter, nullptr == tmp.get()); 42 REPORTER_ASSERT(reporter, !obj.unique()) [all...] |
EmptyPathTest.cpp | 15 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path, 49 ERRORF(reporter, "%s style[%d] cap[%d] join[%d] antialias[%d]" 63 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw, 96 drawAndTest(reporter, path, paint, shouldDraw); 98 drawAndTest(reporter, path, paint, shouldDraw); 125 static void test_emptydrawing(skiatest::Reporter* reporter) { 149 iter_paint(reporter, path, shouldDraw, allowCaps ? kDrawCaps : kDontDrawCaps) [all...] |
FontMgrAndroidParserTest.cpp | 43 skiatest::Reporter* reporter) { 44 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5); 45 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif")); 46 REPORTER_ASSERT(reporter, 48 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont); 56 REPORTER_ASSERT(reporter, isALPHA(c) || isDIGIT(c) || '-' == c); 68 REPORTER_ASSERT(reporter, !file.fFileName.isEmpty() && 116 template <int N, typename T> static double test_parse_fixed_r(skiatest::Reporter* reporter, [all...] |
LayerDrawLooperTest.cpp | 44 static void test_frontToBack(skiatest::Reporter* reporter) { 65 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 66 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrc); 68 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX()); 69 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY()); 73 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 74 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrcOver); 76 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX()); 77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY()) [all...] |
QuickRejectTest.cpp | 62 static void test_drawBitmap(skiatest::Reporter* reporter) { 75 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 79 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 83 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 87 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 95 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 98 static void test_layers(skiatest::Reporter* reporter) { 102 REPORTER_ASSERT(reporter, false == canvas.quickReject(r)) [all...] |
SGTest.cpp | 24 static void check_inval(skiatest::Reporter* reporter, const sk_sp<sksg::Node>& root, 37 REPORTER_ASSERT(reporter, bbox == expected_bounds); 38 REPORTER_ASSERT(reporter, ic.bounds() == expected_inval_bounds); 42 REPORTER_ASSERT(reporter, expected_damage->size() == damage_count); 51 REPORTER_ASSERT(reporter, r1 == r2); 56 static void inval_test1(skiatest::Reporter* reporter) { 69 check_inval(reporter, root, 79 check_inval(reporter, root [all...] |
SerializationTest.cpp | 37 static void TestAlignment(T* testObj, skiatest::Reporter* reporter) { 41 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); 43 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); 158 static void TestObjectSerializationNoAlign(T* testObj, skiatest::Reporter* reporter) { 162 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); 173 REPORTER_ASSERT(reporter, !buffer.isValid()); 182 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); 185 REPORTER_ASSERT(reporter, offsetAfter - offsetBefore == bytesWritten) 366 serialize_and_compare_typeface(std::move(typeface), "A!", reporter); local 382 serialize_and_compare_typeface(std::move(typeface), "abc", reporter); local [all...] |
StrokeTest.cpp | 22 static void test_strokecubic(skiatest::Reporter* reporter) { 51 static void test_strokerect(skiatest::Reporter* reporter) { 74 REPORTER_ASSERT(reporter, equal(outer, fillPath.getBounds())); 78 REPORTER_ASSERT(reporter, fillPath.isNestedFillRects(nested) == isMiter); 82 REPORTER_ASSERT(reporter, equal(nested[0], outer)); 83 REPORTER_ASSERT(reporter, equal(nested[1], inner)); 88 static void test_strokerec_equality(skiatest::Reporter* reporter) { [all...] |
TDPQueueTest.cpp | 14 static void simple_test(skiatest::Reporter* reporter) { 16 REPORTER_ASSERT(reporter, 0 == heap.count()); 19 REPORTER_ASSERT(reporter, 1 == heap.count()); 20 REPORTER_ASSERT(reporter, 0 == heap.peek()); 22 REPORTER_ASSERT(reporter, 0 == heap.count()); 26 REPORTER_ASSERT(reporter, 2 == heap.count()); 27 REPORTER_ASSERT(reporter, 0 == heap.peek()); 29 REPORTER_ASSERT(reporter, 1 == heap.count()); 30 REPORTER_ASSERT(reporter, 1 == heap.peek()) [all...] |
/external/icu/tools/srcgen/src/main/java/com/android/icu4j/srcgen/ |
TranslateJcite.java | 20 import com.google.currysrc.api.process.Reporter; 66 protected String processComment(Reporter reporter, Comment commentNode, String commentText) { 123 protected boolean visitTagElement(Reporter reporter, ASTRewrite rewrite, TagElement tagNode) {
|
/external/skia/tests/ |
EmptyPathTest.cpp | 15 static void drawAndTest(skiatest::Reporter* reporter, const SkPath& path, 49 ERRORF(reporter, "%s style[%d] cap[%d] join[%d] antialias[%d]" 63 static void iter_paint(skiatest::Reporter* reporter, const SkPath& path, bool shouldDraw, 96 drawAndTest(reporter, path, paint, shouldDraw); 98 drawAndTest(reporter, path, paint, shouldDraw); 125 static void test_emptydrawing(skiatest::Reporter* reporter) { 149 iter_paint(reporter, path, shouldDraw, allowCaps ? kDrawCaps : kDontDrawCaps) [all...] |
FontMgrAndroidParserTest.cpp | 43 skiatest::Reporter* reporter) { 44 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5); 45 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif")); 46 REPORTER_ASSERT(reporter, 48 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont); 56 REPORTER_ASSERT(reporter, isALPHA(c) || isDIGIT(c) || '-' == c); 68 REPORTER_ASSERT(reporter, !file.fFileName.isEmpty() && 116 template <int N, typename T> static double test_parse_fixed_r(skiatest::Reporter* reporter, [all...] |
LayerDrawLooperTest.cpp | 44 static void test_frontToBack(skiatest::Reporter* reporter) { 65 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 66 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrc); 68 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX()); 69 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY()); 73 REPORTER_ASSERT(reporter, context->next(&canvas, &paint)); 74 REPORTER_ASSERT(reporter, paint.getBlendMode() == SkBlendMode::kSrcOver); 76 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX()); 77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY()) [all...] |
QuickRejectTest.cpp | 62 static void test_drawBitmap(skiatest::Reporter* reporter) { 75 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 79 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 83 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 87 REPORTER_ASSERT(reporter, 0 == *dst.getAddr32(5, 5)); 95 REPORTER_ASSERT(reporter, 0xFFFFFFFF == *dst.getAddr32(5, 5)); 98 static void test_layers(skiatest::Reporter* reporter) { 102 REPORTER_ASSERT(reporter, false == canvas.quickReject(r)) [all...] |
SGTest.cpp | 24 static void check_inval(skiatest::Reporter* reporter, const sk_sp<sksg::Node>& root, 37 REPORTER_ASSERT(reporter, bbox == expected_bounds); 38 REPORTER_ASSERT(reporter, ic.bounds() == expected_inval_bounds); 42 REPORTER_ASSERT(reporter, expected_damage->size() == damage_count); 51 REPORTER_ASSERT(reporter, r1 == r2); 56 static void inval_test1(skiatest::Reporter* reporter) { 69 check_inval(reporter, root, 79 check_inval(reporter, root [all...] |
SerializationTest.cpp | 37 static void TestAlignment(T* testObj, skiatest::Reporter* reporter) { 41 REPORTER_ASSERT(reporter, SkAlign4(bytesWrittenToMemory) == bytesWrittenToMemory); 43 REPORTER_ASSERT(reporter, SkAlign4(bytesReadFromMemory) == bytesReadFromMemory); 158 static void TestObjectSerializationNoAlign(T* testObj, skiatest::Reporter* reporter) { 162 REPORTER_ASSERT(reporter, SkAlign4(bytesWritten) == bytesWritten); 173 REPORTER_ASSERT(reporter, !buffer.isValid()); 182 REPORTER_ASSERT(reporter, buffer2.isValid() == !testInvalid); 185 REPORTER_ASSERT(reporter, offsetAfter - offsetBefore == bytesWritten) 366 serialize_and_compare_typeface(std::move(typeface), "A!", reporter); local 382 serialize_and_compare_typeface(std::move(typeface), "abc", reporter); local [all...] |
TDPQueueTest.cpp | 14 static void simple_test(skiatest::Reporter* reporter) { 16 REPORTER_ASSERT(reporter, 0 == heap.count()); 19 REPORTER_ASSERT(reporter, 1 == heap.count()); 20 REPORTER_ASSERT(reporter, 0 == heap.peek()); 22 REPORTER_ASSERT(reporter, 0 == heap.count()); 26 REPORTER_ASSERT(reporter, 2 == heap.count()); 27 REPORTER_ASSERT(reporter, 0 == heap.peek()); 29 REPORTER_ASSERT(reporter, 1 == heap.count()); 30 REPORTER_ASSERT(reporter, 1 == heap.peek()) [all...] |
VkWrapTests.cpp | 32 void wrap_tex_test(skiatest::Reporter* reporter, GrContext* context) { 42 REPORTER_ASSERT(reporter, tex); 50 REPORTER_ASSERT(reporter, !tex); 52 REPORTER_ASSERT(reporter, !tex); 61 REPORTER_ASSERT(reporter, !tex); 63 REPORTER_ASSERT(reporter, !tex); 72 REPORTER_ASSERT(reporter, tex); 78 void wrap_rt_test(skiatest::Reporter* reporter, GrContext* context) [all...] |