Home
last modified time | relevance | path

Searched refs:mirrorLayer (Results 1 – 9 of 9) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/
DMirrorLayer_test.cpp72 sp<SurfaceControl> mirrorLayer = mClient->mirrorSurface(mChildLayer.get()); in TEST_F() local
73 ASSERT_NE(mirrorLayer, nullptr); in TEST_F()
77 .reparent(mirrorLayer, mParentLayer) in TEST_F()
78 .setPosition(mirrorLayer, 500, 500) in TEST_F()
79 .show(mirrorLayer) in TEST_F()
83 Transaction().setPosition(mirrorLayer, 550, 550).apply(); in TEST_F()
173 sp<SurfaceControl> mirrorLayer = mClient->mirrorSurface(mChildLayer.get()); in TEST_F() local
175 .reparent(mirrorLayer, mParentLayer) in TEST_F()
176 .setPosition(mirrorLayer, 500, 500) in TEST_F()
177 .show(mirrorLayer) in TEST_F()
[all …]
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerLifecycleManager.cpp424 RequestedLayerState* mirrorLayer = getLayerFromId(mirroringLayerId); in updateDisplayMirrorLayers() local
425 bool canBeMirrored = canMirrorRootLayer(*mirrorLayer, rootLayer); in updateDisplayMirrorLayers()
427 std::find(mirrorLayer->mirrorIds.begin(), mirrorLayer->mirrorIds.end(), in updateDisplayMirrorLayers()
428 rootLayer.id) != mirrorLayer->mirrorIds.end(); in updateDisplayMirrorLayers()
431 mirrorLayer->mirrorIds.emplace_back(rootLayer.id); in updateDisplayMirrorLayers()
432 linkLayer(rootLayer.id, mirrorLayer->id); in updateDisplayMirrorLayers()
433 mirrorLayer->changes |= RequestedLayerState::Changes::Mirror; in updateDisplayMirrorLayers()
435 swapErase(mirrorLayer->mirrorIds, rootLayer.id); in updateDisplayMirrorLayers()
436 unlinkLayer(rootLayer.id, mirrorLayer->id); in updateDisplayMirrorLayers()
437 mirrorLayer->changes |= RequestedLayerState::Changes::Mirror; in updateDisplayMirrorLayers()
/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerHierarchyTest.cpp314 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 11); in TEST_F()
330 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 11); in TEST_F()
341 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 11); in TEST_F()
363 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 11); in TEST_F()
395 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 12); in TEST_F()
765 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 11); in TEST_F()
784 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 2); in TEST_F()
DLayerHierarchyTest.h169 virtual void mirrorLayer(uint32_t id, uint32_t parentId, uint32_t layerIdToMirror) { in mirrorLayer() function
536 void mirrorLayer(uint32_t id, uint32_t parent, uint32_t layerToMirror) override { in mirrorLayer() function
537 LayerHierarchyTestBase::mirrorLayer(id, parent, layerToMirror); in mirrorLayer()
DTestableSurfaceFlinger.h582 auto mirrorLayer(const LayerCreationArgs& args, const sp<IBinder>& mirrorFromHandle, in mirrorLayer() function
584 return mFlinger->mirrorLayer(args, mirrorFromHandle, outResult); in mirrorLayer()
DLayerSnapshotTest.cpp516 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 11); in TEST_F()
1333 mirrorLayer(/*layer*/ 14, /*parent*/ 1, /*layerToMirror*/ 11); in TEST_F()
/frameworks/native/services/surfaceflinger/
DClient.cpp107 status_t status = mFlinger->mirrorLayer(args, mirrorFromHandle, *outResult); in mirrorSurface()
DSurfaceFlinger.cpp5974 status_t SurfaceFlinger::mirrorLayer(const LayerCreationArgs& args, in mirrorLayer() function in android::SurfaceFlinger
5981 sp<Layer> mirrorLayer; in mirrorLayer() local
5993 status_t result = createEffectLayer(mirrorArgs, &outResult.handle, &mirrorLayer); in mirrorLayer()
5998 mirrorLayer->setClonedChild(mirrorFrom->createClone()); in mirrorLayer()
6001 outResult.layerId = mirrorLayer->sequence; in mirrorLayer()
6002 outResult.layerName = String16(mirrorLayer->getDebugName()); in mirrorLayer()
6003 return addClientLayer(mirrorArgs, outResult.handle, mirrorLayer /* layer */, in mirrorLayer()
DSurfaceFlinger.h875 status_t mirrorLayer(const LayerCreationArgs& args, const sp<IBinder>& mirrorFromHandle,