Home
last modified time | relevance | path

Searched refs:childLayer (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/
DLayerTypeTransaction_test.cpp77 sp<SurfaceControl> childLayer; in TEST_P() local
79 childLayer = LayerTransactionTest::createLayer("childLayer", 0 /* buffer width */, in TEST_P()
84 .setColor(childLayer, half3{1.0f, 0.0f, 0.0f}) in TEST_P()
86 .show(childLayer) in TEST_P()
89 .setCrop(childLayer, Rect(0, 0, 20, 30)) in TEST_P()
92 Transaction().setRelativeLayer(childLayer, parent, -1).setLayer(childLayer, 1).apply(); in TEST_P()
102 Transaction().setLayer(childLayer, 1).setRelativeLayer(childLayer, parent, -1).apply(); in TEST_P()
122 sp<SurfaceControl> childLayer; in TEST_P() local
124 childLayer = LayerTransactionTest::createLayer("childLayer", 0 /* buffer width */, in TEST_P()
129 .setColor(childLayer, half3{1.0f, 0.0f, 0.0f}) in TEST_P()
[all …]
DRelativeZ_test.cpp70 sp<SurfaceControl> childLayer = in TEST_F() local
73 Transaction{}.setRelativeLayer(childLayer, mForegroundLayer, 1).show(childLayer).apply(); in TEST_F()
83 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F()
88 Transaction{}.reparent(childLayer, mBackgroundLayer).apply(); in TEST_F()
156 sp<SurfaceControl> childLayer = in TEST_F() local
162 .setRelativeLayer(childLayer, relativeToLayer, 1) in TEST_F()
163 .show(childLayer) in TEST_F()
188 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F()
199 Transaction{}.reparent(childLayer, mForegroundLayer).apply(); in TEST_F()
DScreenCapture_test.cpp127 sp<SurfaceControl> childLayer; in TEST_F() local
128 ASSERT_NO_FATAL_FAILURE(childLayer = createLayer("child-test", 10, 10, in TEST_F()
131 ASSERT_NO_FATAL_FAILURE(fillBufferQueueLayerColor(childLayer, Color::BLUE, 10, 10)); in TEST_F()
133 Transaction().show(parentLayer).setLayer(parentLayer, INT32_MAX).show(childLayer).apply(true); in TEST_F()
682 sp<SurfaceControl> childLayer; in TEST_F() local
685 ASSERT_NO_FATAL_FAILURE(childLayer = createLayer("test layer", 0, 0, in TEST_F()
696 .show(childLayer) in TEST_F()
701 .setColor(childLayer, {childColor.r / 255, childColor.g / 255, childColor.b / 255}) in TEST_F()
703 .setCrop(childLayer, childBounds) in TEST_F()
/frameworks/native/services/surfaceflinger/tests/unittests/
DGameModeTest.cpp121 sp<BufferStateLayer> childLayer = createBufferStateLayer(); in TEST_F() local
123 rootLayer->addChild(childLayer); in TEST_F()
126 EXPECT_EQ(childLayer->getGameMode(), GameMode::Performance); in TEST_F()
131 sp<BufferStateLayer> childLayer = createBufferStateLayer(); in TEST_F() local
133 rootLayer->addChild(childLayer); in TEST_F()
136 EXPECT_EQ(childLayer->getGameMode(), GameMode::Performance); in TEST_F()
138 rootLayer->removeChild(childLayer); in TEST_F()
139 EXPECT_EQ(childLayer->getGameMode(), GameMode::Unsupported); in TEST_F()
/frameworks/native/services/surfaceflinger/
DLayer.cpp771 bool Layer::setChildLayer(const sp<Layer>& childLayer, int32_t z) { in setChildLayer() argument
772 ssize_t idx = mCurrentChildren.indexOf(childLayer); in setChildLayer()
776 if (childLayer->setLayer(z)) { in setChildLayer()
778 mCurrentChildren.add(childLayer); in setChildLayer()
784 bool Layer::setChildRelativeLayer(const sp<Layer>& childLayer, in setChildRelativeLayer() argument
786 ssize_t idx = mCurrentChildren.indexOf(childLayer); in setChildRelativeLayer()
790 if (childLayer->setRelativeLayer(relativeToHandle, relativeZ)) { in setChildRelativeLayer()
792 mCurrentChildren.add(childLayer); in setChildRelativeLayer()
DLayer.h806 bool setChildLayer(const sp<Layer>& childLayer, int32_t z);
807 bool setChildRelativeLayer(const sp<Layer>& childLayer,