/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | XmlConfigTests.java | 49 TestUtils.makeApplicationInfo()); in testEmptyConfigFile() 61 SSLContext context = TestUtils.getSSLContext(source); in testEmptyConfigFile() 62 TestUtils.assertConnectionSucceeds(context, "android.com", 443); in testEmptyConfigFile() 63 TestUtils.assertConnectionSucceeds(context, "developer.android.com", 443); in testEmptyConfigFile() 64 TestUtils.assertUrlConnectionSucceeds(context, "google.com", 443); in testEmptyConfigFile() 69 TestUtils.makeApplicationInfo()); in testEmptyAnchors() 80 SSLContext context = TestUtils.getSSLContext(source); in testEmptyAnchors() 81 TestUtils.assertConnectionFails(context, "android.com", 443); in testEmptyAnchors() 82 TestUtils.assertConnectionFails(context, "developer.android.com", 443); in testEmptyAnchors() 83 TestUtils.assertUrlConnectionFails(context, "google.com", 443); in testEmptyAnchors() [all …]
|
D | NetworkSecurityConfigTests.java | 129 SSLContext context = TestUtils.getSSLContext(testSource); in testEmptyConfig() 130 TestUtils.assertConnectionFails(context, "android.com", 443); in testEmptyConfig() 139 … SSLContext context = TestUtils.getSSLContext(new TestConfigSource(domainMap, defaultConfig)); in testEmptyPerNetworkSecurityConfig() 140 TestUtils.assertConnectionFails(context, "android.com", 443); in testEmptyPerNetworkSecurityConfig() 141 TestUtils.assertConnectionSucceeds(context, "google.com", 443); in testEmptyPerNetworkSecurityConfig() 157 = TestUtils.getSSLContext(new TestConfigSource(domainMap, getSystemStoreConfig())); in testBadPin() 158 TestUtils.assertConnectionFails(context, "android.com", 443); in testBadPin() 159 TestUtils.assertConnectionSucceeds(context, "google.com", 443); in testBadPin() 175 = TestUtils.getSSLContext(new TestConfigSource(domainMap, getEmptyConfig())); in testGoodPin() 176 TestUtils.assertConnectionSucceeds(context, "android.com", 443); in testGoodPin() [all …]
|
/frameworks/base/libs/hwui/tests/unit/ |
D | RenderNodeTests.cpp | 42 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 45 auto parent = TestUtils::createNode(0, 0, 200, 400, in TEST() 50 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() 55 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST() 62 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() 69 auto child = TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 72 auto parent = TestUtils::createNode(0, 0, 200, 400, in TEST() 82 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() 89 TestUtils::recordNode(*parent, [](Canvas& canvas) { in TEST() 98 TestUtils::syncHierarchyPropertiesAndDisplayList(parent); in TEST() [all …]
|
D | WebViewFunctorManagerTests.cpp | 31 nullptr, TestUtils::createMockFunctor(RenderMode::OpenGL_ES), RenderMode::OpenGL_ES); in TEST() 34 TestUtils::runOnRenderThreadUnmanaged([](renderthread::RenderThread&) { in TEST() 37 auto& counts = TestUtils::countsForFunctor(functor); in TEST() 45 nullptr, TestUtils::createMockFunctor(RenderMode::OpenGL_ES), RenderMode::OpenGL_ES); in TEST() 51 TestUtils::runOnRenderThreadUnmanaged([](renderthread::RenderThread&) { in TEST() 54 auto& counts = TestUtils::countsForFunctor(functor); in TEST() 59 TestUtils::runOnRenderThreadUnmanaged([&](auto&) { in TEST() 66 TestUtils::runOnRenderThreadUnmanaged([&](auto&) { in TEST() 75 TestUtils::runOnRenderThreadUnmanaged([](renderthread::RenderThread&) { in TEST() 86 nullptr, TestUtils::createMockFunctor(RenderMode::OpenGL_ES), RenderMode::OpenGL_ES); in TEST() [all …]
|
D | SkiaPipelineTests.cpp | 43 auto redNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST() 56 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST() 59 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST() 63 auto redNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST() 87 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST() 92 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorRED); in RENDERTHREAD_SKIA_PIPELINE_TEST() 96 auto halfGreenNode = TestUtils::createSkiaNode( in RENDERTHREAD_SKIA_PIPELINE_TEST() 111 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST() 114 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in RENDERTHREAD_SKIA_PIPELINE_TEST() 115 ASSERT_EQ(TestUtils::getColor(surface, 0, 1), SK_ColorGREEN); in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
D | RenderNodeDrawableTests.cpp | 44 TestUtils::createNode(0, 0, 200, 400, [](RenderProperties& props, Canvas& canvas) { in TEST() 69 auto node = TestUtils::createSkiaNode( in drawOrderedNode() 81 auto node = TestUtils::createSkiaNode( in drawOrderedNode() 108 auto parent = TestUtils::createSkiaNode(0, 0, 100, 100, [](RenderProperties& props, in TEST() 145 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorBLUE); in TEST() 147 auto rootNode = TestUtils::createSkiaNode( in TEST() 160 ASSERT_EQ(SK_ColorRED, TestUtils::getColor(surface, 0, 0)); in TEST() 164 ASSERT_EQ(SK_ColorWHITE, TestUtils::getColor(surface, 0, 0)); in TEST() 168 ASSERT_EQ(SK_ColorRED, TestUtils::getColor(surface, 0, 0)); in TEST() 191 ASSERT_EQ(TestUtils::getColor(surface, 0, 0), SK_ColorWHITE); in TEST() [all …]
|
D | SkiaDisplayListTests.cpp | 100 TestUtils::MockFunctor functor; in TEST() 105 nullptr, TestUtils::createMockFunctor(RenderMode::OpenGL_ES), RenderMode::OpenGL_ES); in TEST() 106 auto& counts = TestUtils::countsForFunctor(functor2); in TEST() 117 TestUtils::runOnRenderThread([&](auto&) { in TEST() 129 TestUtils::runOnRenderThread([](auto&) { in TEST() 143 auto rootNode = TestUtils::createNode(0, 0, 200, 400, nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST() 165 TestUtils::MockTreeObserver observer; in RENDERTHREAD_SKIA_PIPELINE_TEST() 202 auto rootNode = TestUtils::createNode(0, 0, 200, 400, nullptr); in RENDERTHREAD_SKIA_PIPELINE_TEST() 236 TestUtils::MockTreeObserver observer; in RENDERTHREAD_SKIA_PIPELINE_TEST() 260 TestUtils::MockTreeObserver observer; in RENDERTHREAD_SKIA_PIPELINE_TEST() [all …]
|
D | LinearAllocatorTests.cpp | 50 la.create<TestUtils::SignalingDtor>()->setSignal(destroyed + i); in TEST() 55 la.create<TestUtils::SignalingDtor>(destroyed + 5 + i); in TEST() 77 auto sigdtor = la.create<TestUtils::SignalingDtor>(); in TEST() 123 LsaVector<std::unique_ptr<TestUtils::SignalingDtor> > vector(stdAllocator); in TEST() 125 vector.emplace_back(new TestUtils::SignalingDtor(&destroyed)); in TEST()
|
D | SkiaRenderPropertiesTests.cpp | 59 auto node = TestUtils::createSkiaNode( in testProperty() 82 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 100, 100), TestUtils::getClipBounds(&canvas)) in TEST() 93 EXPECT_EQ(SkRect::MakeLTRB(25, 25, 75, 75), TestUtils::getClipBounds(&canvas)); in TEST() 104 EXPECT_EQ(SkRect::MakeLTRB(10, 20, 30, 40), TestUtils::getClipBounds(&canvas)); in TEST()
|
D | CanvasContextTests.cpp | 36 auto rootNode = TestUtils::createNode(0, 0, 200, 400, nullptr); in RENDERTHREAD_TEST() 47 TestUtils::MockFunctor functor; in RENDERTHREAD_TEST()
|
D | GpuMemoryTrackerTests.cpp | 41 if (TestUtils::isRenderThreadRunning()) { in destroyEglContext() 42 … TestUtils::runOnRenderThread([](RenderThread& thread) { thread.destroyRenderingContext(); }); in destroyEglContext()
|
D | FatVectorTests.cpp | 98 FatVector<TestUtils::SignalingDtor, 0> v; in TEST() 110 FatVector<TestUtils::SignalingDtor, 10> v; in TEST()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.cpp | 35 std::unordered_map<int, TestUtils::CallCounts> TestUtils::sMockFunctorCounts{}; 37 SkColor TestUtils::interpolateColor(float fraction, SkColor start, SkColor end) { in interpolateColor() 54 sp<DeferredLayerUpdater> TestUtils::createTextureLayerUpdater( in createTextureLayerUpdater() 68 sp<DeferredLayerUpdater> TestUtils::createTextureLayerUpdater( in createTextureLayerUpdater() 81 void TestUtils::drawUtf8ToCanvas(Canvas* canvas, const char* text, const Paint& paint, float x, in drawUtf8ToCanvas() 92 void TestUtils::drawUtf8ToCanvas(Canvas* canvas, const char* text, const Paint& paint, in drawUtf8ToCanvas() 99 void TestUtils::TestTask::run() { in run() 113 std::unique_ptr<uint16_t[]> TestUtils::asciiToUtf16(const char* str) { in asciiToUtf16() 122 SkColor TestUtils::getColor(const sk_sp<SkSurface>& surface, int x, int y) { in getColor() 161 SkRect TestUtils::getClipBounds(const SkCanvas* canvas) { in getClipBounds() [all …]
|
/frameworks/base/libs/hwui/tests/common/scenes/ |
D | MagnifierAnimation.cpp | 34 magnifier = TestUtils::createBitmap(200, 100); in createContent() 39 card = TestUtils::createNode( in createContent() 46 TestUtils::drawUtf8ToCanvas(&canvas, "Test string", paint, 10, 400); in createContent() 49 zoomImageView = TestUtils::createNode( in createContent()
|
D | TextAnimation.cpp | 30 card = TestUtils::createNode(0, 0, width, height, [](RenderProperties& props, in createContent() 38 TestUtils::drawUtf8ToCanvas(&canvas, "Test string", paint, 400, i * 100); in createContent() 45 TestUtils::drawUtf8ToCanvas(&canvas, "This is a neat circle of text!", paint, path); in createContent()
|
D | PartialDamageAnimation.cpp | 42 TestUtils::createNode(x, y, x + dp(100), y + dp(100), in createContent() 57 TestUtils::recordNode(*cards[0], [curFrame](Canvas& canvas) { in doFrame() 58 SkColor color = TestUtils::interpolateColor(curFrame / 150.0f, 0xFFF44336, 0xFFF8BBD0); in doFrame()
|
D | TvApp.cpp | 96 return TestUtils::createNode( in createBitmapNode() 108 return TestUtils::createNode(left, top, left + width, top + height, in createSharedBitmapNode() 116 return TestUtils::createNode(left, top, left + width, top + height, in createInfoNode() 125 TestUtils::drawUtf8ToCanvas(&canvas, text, paint, 10, 30); in createInfoNode() 127 TestUtils::drawUtf8ToCanvas(&canvas, text2, paint, 10, 54); in createInfoNode() 134 return TestUtils::createNode(left, top, left + width, top + height, in createColorNode() 148 return TestUtils::createNode(x, y, x + width, y + height, [width, height, selected, this]( in createCard()
|
D | ListViewAnimation.cpp | 36 sk_sp<Bitmap> bitmap(TestUtils::createBitmap(size, size, &skBitmap)); in createRandomCharIcon() 64 auto bitmap = TestUtils::createBitmap(size, size, &skBitmap); in createBoxBitmap() 93 TestUtils::drawUtf8ToCanvas(&canvas, buf, textPaint, itemHeight, dp(25)); in createListItem() 95 TestUtils::drawUtf8ToCanvas(&canvas, "This is some more text on the card", textPaint, in createListItem()
|
D | RecentsAnimation.cpp | 45 sk_sp<Bitmap> thumb(TestUtils::createBitmap(thumbnailSize, thumbnailSize, &bitmap)); in createContent() 64 mThumbnail.eraseColor(TestUtils::interpolateColor(curFrame / 150.0f, Color::Green_500, in doFrame() 70 return TestUtils::createNode( in createCard()
|
D | GlyphStressAnimation.cpp | 35 container = TestUtils::createNode(0, 0, width, height, nullptr); in createContent() 55 TestUtils::drawUtf8ToCanvas(canvas.get(), text, paint, 0, 100 * (i + 2)); in doFrame()
|
D | SaveLayer2Animation.cpp | 55 TestUtils::drawUtf8ToCanvas(&canvas, offscreen.c_str(), mBluePaint, bounds.fLeft, in createContent() 62 TestUtils::drawUtf8ToCanvas(&canvas, onscreen.c_str(), mGreenPaint, bounds.fLeft, in createContent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/ |
D | AutomaticBrightnessControllerTest.java | 103 Sensor lightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in testNoHysteresisAtMinBrightness() 128 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux1)); in testNoHysteresisAtMinBrightness() 143 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMinBrightness() 149 Sensor lightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, "Light Sensor"); in testNoHysteresisAtMaxBrightness() 174 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux1)); in testNoHysteresisAtMaxBrightness() 189 listener.onSensorChanged(TestUtils.createSensorEvent(lightSensor, (int) lux2)); in testNoHysteresisAtMaxBrightness()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/display/whitebalance/ |
D | AmbientSensorTest.java | 38 import com.android.server.display.TestUtils; 72 mLightSensor = TestUtils.createSensor(Sensor.TYPE_LIGHT, null); in setUp() 73 mAmbientColorSensor = TestUtils.createSensor(AMBIENT_COLOR_TYPE, AMBIENT_COLOR_TYPE_STR); in setUp() 95 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, 100)); in testAmbientBrightnessSensorCallback_NoCallbacks() 121 listener.onSensorChanged(TestUtils.createSensorEvent(mLightSensor, luxValue)); in testAmbientBrightnessSensorCallback_CallbacksCalled() 154 listener.onSensorChanged(TestUtils.createSensorEvent(mAmbientColorSensor, colorTempValue)); in testAmbientColorTemperatureSensorCallback_CallbacksCalled()
|
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/util/perf/ |
D | TimedStatement.java | 19 import com.android.layoutlib.bridge.intensive.util.TestUtils; 108 TestUtils.gc(); in doCalibration() 115 TestUtils.gc(); in doCalibration() 146 TestUtils.gc(); in evaluate() 156 TestUtils.gc(); in evaluate()
|
/frameworks/base/services/tests/servicestests/utils/com/android/server/testutils/ |
D | TestUtils.java | 25 public class TestUtils { class 26 private TestUtils() { in TestUtils() method in TestUtils
|