Searched refs:TestUtils (Results 1 - 25 of 91) sorted by relevance

1234

/frameworks/support/v7/mediarouter/tests/src/android/support/v7/app/
H A DMediaRouteChooserDialogTest.java24 import android.support.v7.media.TestUtils;
42 RouteInfo routeInfo1 = TestUtils.createRouteInfo("ROUTE_ID_1", "ROUTE_NAME_1");
43 RouteInfo routeInfo2 = TestUtils.createRouteInfo("ROUTE_ID_2", "ROUTE_NAME_1");
50 RouteInfo routeInfo1 = TestUtils.createRouteInfo("ROUTE_ID_1", "Route ABC");
51 RouteInfo routeInfo2 = TestUtils.createRouteInfo("ROUTE_ID_2", "Route XYZ");
58 RouteInfo routeInfo1 = TestUtils.createRouteInfo("ROUTE_ID_1", "living room abc");
59 RouteInfo routeInfo2 = TestUtils.createRouteInfo("ROUTE_ID_2", "LIVING ROOM XYZ");
63 RouteInfo routeInfo3 = TestUtils.createRouteInfo("ROUTE_ID_3", "LIVING ROOM ABC");
64 RouteInfo routeInfo4 = TestUtils.createRouteInfo("ROUTE_ID_4", "living room xyz");
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
H A DXmlConfigTests.java59 SSLContext context = TestUtils.getSSLContext(source);
60 TestUtils.assertConnectionSucceeds(context, "android.com", 443);
61 TestUtils.assertConnectionSucceeds(context, "developer.android.com", 443);
62 TestUtils.assertUrlConnectionSucceeds(context, "google.com", 443);
77 SSLContext context = TestUtils.getSSLContext(source);
78 TestUtils.assertConnectionFails(context, "android.com", 443);
79 TestUtils.assertConnectionFails(context, "developer.android.com", 443);
80 TestUtils.assertUrlConnectionFails(context, "google.com", 443);
103 SSLContext context = TestUtils.getSSLContext(source);
104 TestUtils
[all...]
H A DNetworkSecurityConfigTests.java128 SSLContext context = TestUtils.getSSLContext(testSource);
129 TestUtils.assertConnectionFails(context, "android.com", 443);
138 SSLContext context = TestUtils.getSSLContext(new TestConfigSource(domainMap, defaultConfig));
139 TestUtils.assertConnectionFails(context, "android.com", 443);
140 TestUtils.assertConnectionSucceeds(context, "google.com", 443);
156 = TestUtils.getSSLContext(new TestConfigSource(domainMap, getSystemStoreConfig()));
157 TestUtils.assertConnectionFails(context, "android.com", 443);
158 TestUtils.assertConnectionSucceeds(context, "google.com", 443);
174 = TestUtils.getSSLContext(new TestConfigSource(domainMap, getEmptyConfig()));
175 TestUtils
[all...]
/frameworks/support/compat/tests/java/android/support/v4/view/
H A DGravityCompatTest.java24 import android.support.v4.testutils.TestUtils;
95 TestUtils.assertRectangleBounds("Left / top aligned under LTR: ",
101 TestUtils.assertRectangleBounds("Center / top aligned under LTR: ",
107 TestUtils.assertRectangleBounds("Right / top aligned under LTR: ",
113 TestUtils.assertRectangleBounds("Left / center aligned under LTR: ",
119 TestUtils.assertRectangleBounds("Center / center aligned under LTR: ",
125 TestUtils.assertRectangleBounds("Right / center aligned under LTR: ",
131 TestUtils.assertRectangleBounds("Left / bottom aligned under LTR: ",
137 TestUtils.assertRectangleBounds("Center / bottom aligned under LTR: ",
143 TestUtils
[all...]
/frameworks/base/libs/hwui/tests/unit/
H A DSnapshotTests.cpp21 #include <tests/common/TestUtils.h>
26 auto actualRoot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(0, 0, 100, 100));
27 auto root = TestUtils::makeSnapshot(Matrix4::identity(), Rect(10, 10, 90, 90));
28 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90));
51 auto actualRoot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(0, 0, 100, 100));
52 auto root = TestUtils::makeSnapshot(Matrix4::identity(), Rect(10, 10, 90, 90));
57 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90));
67 auto child = TestUtils::makeSnapshot(Matrix4::identity(), Rect(50, 50, 90, 90));
H A DSkiaPipelineTests.cpp27 #include "tests/common/TestUtils.h"
40 auto redNode = TestUtils::createSkiaNode(0, 0, 1, 1,
53 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE);
55 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED);
59 auto halfGreenNode = TestUtils::createSkiaNode(0, 0, 2, 2,
74 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE);
76 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE);
77 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN);
79 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), (unsigned int)SK_ColorTRANSPARENT);
80 ASSERT_EQ(TestUtils
[all...]
H A DRenderNodeTests.cpp26 #include "tests/common/TestUtils.h"
42 auto child = TestUtils::createNode(0, 0, 200, 400,
46 auto parent = TestUtils::createNode(0, 0, 200, 400,
51 TestUtils::syncHierarchyPropertiesAndDisplayList(parent);
56 TestUtils::recordNode(*parent, [](Canvas& canvas) {
63 TestUtils::syncHierarchyPropertiesAndDisplayList(parent);
70 auto child = TestUtils::createNode(0, 0, 200, 400,
74 auto parent = TestUtils::createNode(0, 0, 200, 400,
84 TestUtils::syncHierarchyPropertiesAndDisplayList(parent);
91 TestUtils
[all...]
H A DLeakCheckTests.cpp22 #include "tests/common/TestUtils.h"
33 auto node = TestUtils::createNode(0, 0, 100, 100,
47 frameBuilder.deferRenderNode(*TestUtils::getSyncedNode(node));
53 auto node = TestUtils::createNode(0, 0, 200, 200,
64 frameBuilder.deferRenderNode(*TestUtils::getSyncedNode(node));
H A DRenderNodeDrawableTests.cpp27 #include "tests/common/TestUtils.h"
42 auto rootNode = TestUtils::createNode(0, 0, 200, 400,
68 auto node = TestUtils::createSkiaNode(0, 0, 100, 100,
78 auto node = TestUtils::createSkiaNode(0, 0, 100, 100,
104 auto parent = TestUtils::createSkiaNode(0, 0, 100, 100,
142 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE);
144 auto rootNode = TestUtils::createSkiaNode(0, 0, 1, 1,
157 ASSERT_EQ(SK_ColorRED, TestUtils::getColor(surface, 0, 0));
161 ASSERT_EQ(SK_ColorWHITE, TestUtils::getColor(surface, 0, 0));
165 ASSERT_EQ(SK_ColorRED, TestUtils
[all...]
H A DRecordingCanvasTests.cpp24 #include <tests/common/TestUtils.h>
57 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 200, [](RecordingCanvas& canvas) {
65 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 100, [](RecordingCanvas& canvas) {
81 auto dl = TestUtils::createDisplayList<RecordingCanvas>(200, 200, [](RecordingCanvas& canvas) {
92 auto dl = TestUtils::createDisplayList<RecordingCanvas>(200, 200, [](RecordingCanvas& canvas) {
113 auto dl = TestUtils::createDisplayList<RecordingCanvas>(200, 200, [](RecordingCanvas& canvas) {
129 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 200, [](RecordingCanvas& canvas) {
146 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 200, [](RecordingCanvas& canvas) {
159 auto dl = TestUtils::createDisplayList<RecordingCanvas>(100, 200, [](RecordingCanvas& canvas) {
166 dl = TestUtils
[all...]
H A DCanvasContextTests.cpp22 #include "tests/common/TestUtils.h"
36 auto rootNode = TestUtils::createNode(0, 0, 200, 400, nullptr);
47 TestUtils::MockFunctor functor;
H A DLinearAllocatorTests.cpp20 #include <tests/common/TestUtils.h>
50 la.create<TestUtils::SignalingDtor>()->setSignal(destroyed + i);
55 la.create<TestUtils::SignalingDtor>(destroyed + 5 + i);
77 auto sigdtor = la.create<TestUtils::SignalingDtor>();
124 LsaVector<std::unique_ptr<TestUtils::SignalingDtor> > vector(stdAllocator);
126 vector.emplace_back(new TestUtils::SignalingDtor(&destroyed));
H A DBakedOpStateTests.cpp22 #include <tests/common/TestUtils.h>
37 auto parentSnapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(100, 200));
46 auto parentSnapshot = TestUtils::makeSnapshot(translate10x20, Rect(100, 200));
72 auto parentSnapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(100, 200));
79 auto parentSnapshot = TestUtils::makeSnapshot(translate10x20, Rect(100, 200));
171 auto parentSnapshot = TestUtils::makeSnapshot(snapshotMatrix, Rect(200, 200));
187 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(100, 200));
207 auto snapshot = TestUtils::makeSnapshot(translate10x20, Rect()); // Note: empty clip
215 auto snapshot = TestUtils::makeSnapshot(translate10x20, Rect(100, 200));
235 auto snapshot = TestUtils
[all...]
H A DFatVectorTests.cpp20 #include <tests/common/TestUtils.h>
99 FatVector<TestUtils::SignalingDtor, 0> v;
111 FatVector<TestUtils::SignalingDtor, 10> v;
H A DFrameBuilderTests.cpp26 #include <tests/common/TestUtils.h>
131 auto node = TestUtils::createNode<RecordingCanvas>(0, 0, 100, 200,
133 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(25, 25));
139 frameBuilder.deferRenderNode(*TestUtils::getSyncedNode(node));
159 auto node = TestUtils::createNode<RecordingCanvas>(0, 0, 100, 200,
167 frameBuilder.deferRenderNode(*TestUtils::getSyncedNode(node));
187 auto node = TestUtils::createNode<RecordingCanvas>(0, 0, 200, 200,
196 frameBuilder.deferRenderNode(*TestUtils::getSyncedNode(node));
204 auto node = TestUtils::createNode<RecordingCanvas>(0, 0, 200, 200,
213 frameBuilder.deferRenderNode(*TestUtils
[all...]
H A DSkiaRenderPropertiesTests.cpp27 #include "tests/common/TestUtils.h"
60 auto node = TestUtils::createSkiaNode(0, 0, CANVAS_WIDTH, CANVAS_HEIGHT,
81 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 100, 100), TestUtils::getClipBounds(&canvas))
90 EXPECT_EQ(SkRect::MakeLTRB(25, 25, 75, 75), TestUtils::getClipBounds(&canvas));
99 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 30, 40), TestUtils::getClipBounds(&canvas));
/frameworks/base/services/tests/servicestests/src/com/android/server/testutis/
H A DTestUtils.java22 public class TestUtils { class
23 private TestUtils() { method in class:TestUtils
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/
H A DTestUtils.java21 public class TestUtils { class
/frameworks/support/v7/mediarouter/tests/src/android/support/v7/media/
H A DTestUtils.java19 public class TestUtils { class
/frameworks/base/libs/hwui/tests/microbench/
H A DFrameBuilderBench.cpp28 #include "tests/common/TestUtils.h"
42 auto node = TestUtils::createNode<RecordingCanvas>(0, 0, 200, 200,
44 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(10, 10));
57 TestUtils::syncHierarchyPropertiesAndDisplayList(node);
62 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
75 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
101 sp<RenderNode> rootNode = TestUtils::createNode<RecordingCanvas>(0, 0, gDisplay.w, gDisplay.h,
106 TestUtils::syncHierarchyPropertiesAndDisplayList(rootNode);
115 TestUtils::runOnRenderThread([&state](RenderThread& thread) {
131 TestUtils
[all...]
H A DFontBench.cpp20 #include "tests/common/TestUtils.h"
28 TestUtils::runOnRenderThread([&state](renderthread::RenderThread& thread) {
40 TestUtils::layoutTextUnscaled(paint, "This is a test",
/frameworks/base/libs/hwui/tests/common/
H A DTestUtils.cpp17 #include "TestUtils.h"
35 SkColor TestUtils::interpolateColor(float fraction, SkColor start, SkColor end) {
52 sp<DeferredLayerUpdater> TestUtils::createTextureLayerUpdater(
68 sp<DeferredLayerUpdater> TestUtils::createTextureLayerUpdater(
85 void TestUtils::layoutTextUnscaled(const SkPaint& paint, const char* text,
121 void TestUtils::drawUtf8ToCanvas(Canvas* canvas, const char* text,
127 void TestUtils::drawUtf8ToCanvas(Canvas* canvas, const char* text,
133 void TestUtils::TestTask::run() {
152 std::unique_ptr<uint16_t[]> TestUtils::asciiToUtf16(const char* str) {
161 SkColor TestUtils
[all...]
/frameworks/base/libs/hwui/tests/common/scenes/
H A DPartialDamageAnimation.cpp45 sp<RenderNode> card = TestUtils::createNode(x, y,
61 TestUtils::recordNode(*cards[0], [curFrame](Canvas& canvas) {
62 SkColor color = TestUtils::interpolateColor(
H A DTextAnimation.cpp33 card = TestUtils::createNode(0, 0, width, height,
42 TestUtils::drawUtf8ToCanvas(&canvas, "Test string", paint, 400, i * 100);
49 TestUtils::drawUtf8ToCanvas(&canvas, "This is a neat circle of text!", paint, path);
H A DGlyphStressAnimation.cpp37 container = TestUtils::createNode(0, 0, width, height, nullptr);
45 std::unique_ptr<uint16_t[]> text = TestUtils::asciiToUtf16(

Completed in 3119 milliseconds

1234