Home
last modified time | relevance | path

Searched refs:childLayer (Results 1 – 7 of 7) 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.cpp72 sp<SurfaceControl> childLayer = in TEST_F() local
75 Transaction{}.setRelativeLayer(childLayer, mForegroundLayer, 1).show(childLayer).apply(); in TEST_F()
85 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F()
90 Transaction{}.reparent(childLayer, mBackgroundLayer).apply(); in TEST_F()
158 sp<SurfaceControl> childLayer = in TEST_F() local
164 .setRelativeLayer(childLayer, relativeToLayer, 1) in TEST_F()
165 .show(childLayer) in TEST_F()
190 Transaction{}.reparent(childLayer, nullptr).apply(); in TEST_F()
201 Transaction{}.reparent(childLayer, mForegroundLayer).apply(); in TEST_F()
DScreenCapture_test.cpp149 sp<SurfaceControl> childLayer; in TEST_F() local
150 ASSERT_NO_FATAL_FAILURE(childLayer = createLayer("child-test", 10, 10, in TEST_F()
153 ASSERT_NO_FATAL_FAILURE(fillBufferQueueLayerColor(childLayer, Color::BLUE, 10, 10)); in TEST_F()
155 Transaction().show(parentLayer).setLayer(parentLayer, INT32_MAX).show(childLayer).apply(true); in TEST_F()
187 sp<SurfaceControl> childLayer; in TEST_F() local
188 ASSERT_NO_FATAL_FAILURE(childLayer = createLayer("child-test", 0, 0, in TEST_F()
192 fillBufferLayerColor(childLayer, Color::GREEN, size.width(), size.height())); in TEST_F()
195 Transaction().setLayer(parentLayer, INT32_MAX).show(childLayer).apply(true); in TEST_F()
200 captureArgs.layerHandle = childLayer->getHandle(); in TEST_F()
248 sp<SurfaceControl> childLayer; in TEST_F() local
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DGameModeTest.cpp95 sp<Layer> childLayer = createLayer(); in TEST_F() local
97 rootLayer->addChild(childLayer); in TEST_F()
100 EXPECT_EQ(childLayer->getGameMode(), GameMode::Performance); in TEST_F()
105 sp<Layer> childLayer = createLayer(); in TEST_F() local
107 rootLayer->addChild(childLayer); in TEST_F()
110 EXPECT_EQ(childLayer->getGameMode(), GameMode::Performance); in TEST_F()
112 rootLayer->removeChild(childLayer); in TEST_F()
113 EXPECT_EQ(childLayer->getGameMode(), GameMode::Unsupported); in TEST_F()
DLayerLifecycleManagerTest.cpp70 std::unique_ptr<RequestedLayerState> childLayer(uint32_t id, uint32_t parentId) { in childLayer() function in android::surfaceflinger::frontend::LayerLifecycleManagerTest
169 layers.emplace_back(childLayer(3, /*parent*/ 2)); in TEST_F()
193 layers.emplace_back(childLayer(3, /*parent*/ 2)); in TEST_F()
194 layers.emplace_back(childLayer(4, /*parent*/ 3)); in TEST_F()
214 layers.emplace_back(childLayer(3, /*parent*/ 2)); in TEST_F()
215 layers.emplace_back(childLayer(4, /*parent*/ 3)); in TEST_F()
235 layers.emplace_back(childLayer(3, /*parent*/ 2)); in TEST_F()
236 layers.emplace_back(childLayer(4, /*parent*/ 3)); in TEST_F()
260 layers.emplace_back(childLayer(3, /*parent*/ 2)); in TEST_F()
261 layers.emplace_back(childLayer(4, /*parent*/ 3)); in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/
DLayer.h774 bool setChildLayer(const sp<Layer>& childLayer, int32_t z);
775 bool setChildRelativeLayer(const sp<Layer>& childLayer,
DLayer.cpp866 bool Layer::setChildLayer(const sp<Layer>& childLayer, int32_t z) { in setChildLayer() argument
867 ssize_t idx = mCurrentChildren.indexOf(childLayer); in setChildLayer()
871 if (childLayer->setLayer(z)) { in setChildLayer()
873 mCurrentChildren.add(childLayer); in setChildLayer()
879 bool Layer::setChildRelativeLayer(const sp<Layer>& childLayer, in setChildRelativeLayer() argument
881 ssize_t idx = mCurrentChildren.indexOf(childLayer); in setChildRelativeLayer()
885 if (childLayer->setRelativeLayer(relativeToHandle, relativeZ)) { in setChildRelativeLayer()
887 mCurrentChildren.add(childLayer); in setChildRelativeLayer()