/frameworks/native/services/surfaceflinger/tests/ |
D | LayerTypeTransaction_test.cpp | 77 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 …]
|
D | RelativeZ_test.cpp | 72 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()
|
D | ScreenCapture_test.cpp | 149 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/ |
D | GameModeTest.cpp | 95 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()
|
D | LayerLifecycleManagerTest.cpp | 70 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/ |
D | Layer.h | 774 bool setChildLayer(const sp<Layer>& childLayer, int32_t z); 775 bool setChildRelativeLayer(const sp<Layer>& childLayer,
|
D | Layer.cpp | 866 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()
|