Home
last modified time | relevance | path

Searched refs:mLayer (Results 1 – 19 of 19) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/
DSetFrameRate_test.cpp32 mLayer = nullptr; in TearDown()
37 ASSERT_EQ(nullptr, mLayer.get()); in CreateLayer()
39 ASSERT_NO_FATAL_FAILURE(mLayer = createLayer("TestLayer", mLayerWidth, mLayerHeight, in CreateLayer()
41 ASSERT_NE(nullptr, mLayer.get()); in CreateLayer()
48 fillLayerColor(mLayerType, mLayer, color, mLayerWidth, mLayerHeight)); in PostBuffers()
55 sp<SurfaceControl> mLayer; member in android::SetFrameRateTest
61 native_window_set_frame_rate(mLayer->getSurface().get(), 100.f, in TEST_F()
65 .setFrameRate(mLayer, 200.f, ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT) in TEST_F()
68 native_window_set_frame_rate(mLayer->getSurface().get(), 300.f, in TEST_F()
76 .setFrameRate(mLayer, 400.f, ANATIVEWINDOW_FRAME_RATE_COMPATIBILITY_DEFAULT) in TEST_F()
DSetGeometry_test.cpp31 mLayer = createLayer("Layer", mLayerWidth, mLayerHeight); in SetUp()
32 fillBufferQueueLayerColor(mLayer, Color::RED, mLayerWidth, mLayerHeight); in SetUp()
33 asTransaction([&](Transaction& t) { t.setLayer(mLayer, INT32_MAX - 1).show(mLayer); }); in SetUp()
46 mLayer = 0; in TearDown()
50 sp<SurfaceControl> mLayer; member in android::SetGeometryTest
58 Transaction{}.setGeometry(mLayer, source, dest, 0).apply(); in TEST_F()
71 Transaction{}.setGeometry(mLayer, source, dest, 0).apply(); in TEST_F()
84 Transaction{}.setGeometry(mLayer, source, dest, 0).apply(); in TEST_F()
94 Transaction{}.setGeometry(mLayer, source, dest, 0).apply(); in TEST_F()
/frameworks/base/core/java/android/view/
DTextureView.java113 private TextureLayer mLayer; field in TextureView
206 if (mLayer != null) { in setOpaque()
248 if (mLayer != null) { in destroyHardwareLayer()
249 mLayer.detachSurfaceTexture(); in destroyHardwareLayer()
250 mLayer.destroy(); in destroyHardwareLayer()
251 mLayer = null; in destroyHardwareLayer()
356 mLayer.setLayerPaint(mLayerPaint); // ensure layer paint is up to date in draw()
385 if (mLayer == null) { in getTextureLayer()
390 mLayer = mAttachInfo.mThreadedRenderer.createTextureLayer(); in getTextureLayer()
397 mLayer.setSurfaceTexture(mSurface); in getTextureLayer()
[all …]
/frameworks/base/libs/hwui/
DDeferredLayerUpdater.cpp43 , mLayer(nullptr) {
66 if (!mLayer) { in destroyLayer()
75 mLayer->postDecStrong(); in destroyLayer()
77 mLayer = nullptr; in destroyLayer()
122 if (!mLayer) { in apply()
123 mLayer = new Layer(mRenderState, mColorFilter, mAlpha, mMode); in apply()
126 mLayer->setColorFilter(mColorFilter); in apply()
127 mLayer->setAlpha(mAlpha, mMode); in apply()
167 mLayer->getTransform() = *mTransform; in apply()
175 mLayer->setBlend(mBlend); in updateLayer()
[all …]
DDeferredLayerUpdater.h86 Layer* backingLayer() { return mLayer; } in backingLayer()
146 Layer* mLayer; variable
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp1064 EXPECT_CALL(mOutput, belongsInOutput(sp<LayerFE>(mLayer.layerFE))) in OutputEnsureOutputLayerIfVisibleTest()
1068 .WillRepeatedly(Return(&mLayer.outputLayer)); in OutputEnsureOutputLayerIfVisibleTest()
1074 mLayer.layerFEState.isVisible = true; in OutputEnsureOutputLayerIfVisibleTest()
1075 mLayer.layerFEState.isOpaque = true; in OutputEnsureOutputLayerIfVisibleTest()
1076 mLayer.layerFEState.contentDirty = true; in OutputEnsureOutputLayerIfVisibleTest()
1077 mLayer.layerFEState.geomLayerBounds = FloatRect{0, 0, 100, 200}; in OutputEnsureOutputLayerIfVisibleTest()
1078 mLayer.layerFEState.geomLayerTransform = ui::Transform(TR_IDENT, 100, 200); in OutputEnsureOutputLayerIfVisibleTest()
1079 mLayer.layerFEState.transparentRegionHint = Region(Rect(0, 0, 100, 100)); in OutputEnsureOutputLayerIfVisibleTest()
1081 mLayer.outputLayerState.visibleRegion = Region(Rect(0, 0, 50, 200)); in OutputEnsureOutputLayerIfVisibleTest()
1082 mLayer.outputLayerState.coveredRegion = Region(Rect(50, 0, 100, 200)); in OutputEnsureOutputLayerIfVisibleTest()
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityWindowInfo.java113 private int mLayer = UNDEFINED_WINDOW_ID; field in AccessibilityWindowInfo
193 return mLayer; in getLayer()
205 mLayer = layer; in setLayer()
577 parcel.writeInt(mLayer); in writeToParcel()
607 mLayer = other.mLayer; in init()
630 mLayer = parcel.readInt(); in initFromParcel()
680 builder.append(", layer=").append(mLayer); in toString()
718 mLayer = UNDEFINED_WINDOW_ID; in clear()
805 if (mLayer != other.mLayer) { in differenceFrom()
/frameworks/native/services/surfaceflinger/
DRefreshRateOverlay.cpp161 mLayer = mClient->getLayerUser(mIBinder); in createLayer()
162 mLayer->setFrameRate(Layer::FrameRate(0, Layer::FrameRateCompatibility::NoVote)); in createLayer()
165 ssize_t idx = mFlinger.mCurrentState.layersSortedByZ.indexOf(mLayer); in createLayer()
166 if (mLayer->setLayer(INT32_MAX - 2) && idx >= 0) { in createLayer()
168 mFlinger.mCurrentState.layersSortedByZ.add(mLayer); in createLayer()
206 mLayer->setFrame(frame); in setViewport()
213 mLayer->setBuffer(buffer, Fence::NO_FENCE, 0, 0, {}); in changeRefreshRate()
DMonitoredProducer.cpp34 mLayer(layer) {} in MonitoredProducer()
164 return mLayer.promote(); in getLayer()
DRefreshRateOverlay.h76 sp<Layer> mLayer; variable
DBufferLayerConsumer.cpp79 mLayer(layer), in BufferLayerConsumer()
462 mLayer->onDisconnect(); in onDisconnect()
503 mLayer->addAndGetFrameTimestamps(newTimestamps, outDelta); in addAndGetFrameTimestamps()
DMonitoredProducer.h82 wp<Layer> mLayer; variable
DBufferLayerConsumer.h335 Layer* mLayer GUARDED_BY(mMutex);
DLayer.h848 sp<Layer> mLayer; variable
853 mFlinger->onHandleDestroyed(mLayer); in ~LayerCleaner()
858 : mFlinger(flinger), mLayer(layer) {} in LayerCleaner()
DSurfaceFlinger.cpp5569 mLayer(layer), in captureLayers()
5575 Rect getBounds() const override { return mLayer->getBufferSize(mLayer->getDrawingState()); } in captureLayers()
5577 return mLayer->getBufferSize(mLayer->getDrawingState()).getHeight(); in captureLayers()
5580 return mLayer->getBufferSize(mLayer->getDrawingState()).getWidth(); in captureLayers()
5615 mTransform = mLayer->getTransform().inverse(); in captureLayers()
5627 ReparentForDrawing reparent(mLayer, screenshotParentLayer, sourceCrop); in captureLayers()
5633 const sp<Layer> mLayer; in captureLayers() member in android::SurfaceFlinger::captureLayers::LayerRenderArea
/frameworks/native/services/surfaceflinger/tests/unittests/
DHWComposerTest.cpp125 HWC2::impl::Layer mLayer{*mHal, mCapabilies, kDisplayId, kLayerId}; member
158 auto result = mLayer.setLayerGenericMetadata(kLayerGenericMetadata1Name, in TEST_F()
168 result = mLayer.setLayerGenericMetadata(kLayerGenericMetadata2Name, in TEST_F()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowContainerTests.java958 private final int mLayer; field in WindowContainerTests.TestWindowContainer
973 final int layer1 = w1.mLayer;
974 final int layer2 = w2.mLayer;
988 mLayer = layer; in TestWindowContainer()
1065 private int mLayer; field in WindowContainerTests.TestWindowContainerBuilder
1073 mLayer = 0; in TestWindowContainerBuilder()
1080 mLayer = layer; in setLayer()
1105 return new TestWindowContainer(mWm, mLayer, mIsAnimating, mIsVisible, in build()
/frameworks/base/services/core/java/com/android/server/wm/
DWallpaperController.java226 return mWallpaperTarget != null && mWallpaperTarget.mLayer >= win.mBaseLayer; in isBelowWallpaperTarget()
DWindowState.java366 int mLayer; field in WindowState
943 mLayer = 0; in WindowState()
1355 return mLayer; in getSurfaceLayer()
4495 windowInfo.layer = mLayer; in getWindowInfo()