Home
last modified time | relevance | path

Searched refs:layer1 (Results 1 – 12 of 12) sorted by relevance

/frameworks/native/services/surfaceflinger/tests/unittests/
DFrameRateSelectionStrategyTest.cpp134 auto layer1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local
137 addChild(layer1, layer2); in TEST_P()
140 layer1->setFrameRate(FRAME_RATE_VOTE1.vote); in TEST_P()
141 layer1->setFrameRateSelectionStrategy(FrameRateSelectionStrategy::OverrideChildren); in TEST_P()
147 EXPECT_EQ(FRAME_RATE_VOTE1, layer1->getFrameRateForLayerTree()); in TEST_P()
149 layer1->getDrawingState().frameRateSelectionStrategy); in TEST_P()
157 layer1->setFrameRateSelectionStrategy(FrameRateSelectionStrategy::Propagate); in TEST_P()
160 EXPECT_EQ(FRAME_RATE_VOTE1, layer1->getFrameRateForLayerTree()); in TEST_P()
162 layer1->getDrawingState().frameRateSelectionStrategy); in TEST_P()
175 auto layer1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P() local
[all …]
DSchedulerTest.cpp763 const sp<MockLayer> layer1 = sp<MockLayer>::make(mFlinger.flinger()); in TEST_F() local
768 mScheduler->createDisplayEventConnection(Cycle::Render, {}, layer1->getHandle()); in TEST_F()
774 ASSERT_EQ(1u, mScheduler->mutableAttachedChoreographers().count(layer1->getSequence())); in TEST_F()
776 mScheduler->mutableAttachedChoreographers()[layer1->getSequence()] in TEST_F()
779 mScheduler->mutableAttachedChoreographers()[layer1->getSequence()].frameRate.isValid()); in TEST_F()
922 const sp<MockLayer> layer1 = sp<MockLayer>::make(mFlinger.flinger()); in TEST_F() local
933 RequestedLayerState layer1State(LayerCreationArgs(layer1->getSequence())); in TEST_F()
938 RequestedLayerState layer2State(LayerCreationArgs(layer1->getSequence())); in TEST_F()
957 const sp<MockLayer> layer1 = sp<MockLayer>::make(mFlinger.flinger()); in TEST_F() local
968 RequestedLayerState layer1State(LayerCreationArgs(layer1->getSequence())); in TEST_F()
[all …]
DLayerHistoryTest.cpp812 auto layer1 = createLayer("A"); in TEST_F() local
816 EXPECT_CALL(*layer1, isVisible()).WillRepeatedly(Return(true)); in TEST_F()
817 EXPECT_CALL(*layer1, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F()
835 history().record(layer1->getSequence(), layer1->getLayerProps(), time, time, in TEST_F()
855 history().record(layer1->getSequence(), layer1->getLayerProps(), time, time, in TEST_F()
916 layer1.clear(); in TEST_F()
1459 auto layer1 = createLayer("UI"); in TEST_F() local
1462 EXPECT_CALL(*layer1, isVisible()).WillRepeatedly(Return(true)); in TEST_F()
1463 EXPECT_CALL(*layer1, getFrameRateForLayerTree()).WillRepeatedly(Return(Layer::FrameRate())); in TEST_F()
1480 auto props = layer1->getLayerProps(); in TEST_F()
[all …]
DLayerHistoryIntegrationTest.cpp297 auto layer1 = createLegacyAndFrontedEndLayer(1); in TEST_F() local
311 setBufferWithPresentTime(layer1, time); in TEST_F()
329 setBufferWithPresentTime(layer1, time); in TEST_F()
385 destroyLayer(layer1); in TEST_F()
/frameworks/native/services/surfaceflinger/tests/
DLayerCallback_test.cpp290 sp<SurfaceControl> layer1, layer2; in TEST_F() local
291 ASSERT_NO_FATAL_FAILURE(layer1 = createLayerWithBuffer()); in TEST_F()
296 int err = fillTransaction(transaction1, &callback1, layer1); in TEST_F()
309 TransactionUtils::setFrame(transaction1, layer1, in TEST_F()
318 expected.addSurfaces(ExpectedResult::Transaction::PRESENTED, {layer1, layer2}); in TEST_F()
324 sp<SurfaceControl> layer1, layer2; in TEST_F() local
325 ASSERT_NO_FATAL_FAILURE(layer1 = createLayerWithBuffer()); in TEST_F()
330 int err = fillTransaction(transaction1, &callback1, layer1, false, true); in TEST_F()
343 TransactionUtils::setFrame(transaction1, layer1, in TEST_F()
352 expected.addSurfaces(ExpectedResult::Transaction::PRESENTED, {layer1, layer2}, in TEST_F()
[all …]
DLayerRenderTypeTransaction_test.cpp398 sp<SurfaceControl> layer1; in setAlphaBasicHelper() local
400 ASSERT_NO_FATAL_FAILURE(layer1 = createLayer("test 1", 32, 32, layerType)); in setAlphaBasicHelper()
402 ASSERT_NO_FATAL_FAILURE(fillLayerColor(layerType, layer1, {64, 0, 0, 255}, 32, 32)); in setAlphaBasicHelper()
409 .setAlpha(layer1, 0.25f) in setAlphaBasicHelper()
1128 sp<SurfaceControl> layer1; in TEST_P() local
1130 layer1 = createLayer("test", 64, 64, ISurfaceComposerClient::eFXSurfaceBufferState)); in TEST_P()
1136 ASSERT_NO_FATAL_FAILURE(fillBufferLayerColor(layer1, Color::RED, 64, 64)); in TEST_P()
1154 ASSERT_NO_FATAL_FAILURE(fillBufferLayerColor(layer1, Color::GREEN, 64, 64)); in TEST_P()
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DCachedSetTest.cpp186 CachedSet::Layer& layer1 = *mTestLayers[0]->cachedSetLayer.get(); in TEST_F() local
189 CachedSet cachedSet(layer1); in TEST_F()
207 CachedSet::Layer& layer1 = *mTestLayers[0]->cachedSetLayer.get(); in TEST_F() local
211 CachedSet cachedSet(layer1); in TEST_F()
217 expectEqual(decomposed[0], *layer1.getState(), kStartTime); in TEST_F()
255 CachedSet::Layer& layer1 = *mTestLayers[0]->cachedSetLayer.get(); in TEST_F() local
259 CachedSet cachedSet(layer1); in TEST_F()
267 CachedSet::Layer& layer1 = *mTestLayers[0]->cachedSetLayer.get(); in TEST_F() local
271 CachedSet cachedSet(layer1); in TEST_F()
281 CachedSet::Layer& layer1 = *mTestLayers[0]->cachedSetLayer.get(); in TEST_F() local
[all …]
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp703 InjectedLayer layer1; in TEST_F() local
707 injectOutputLayer(layer1); in TEST_F()
712 EXPECT_CALL(*layer1.outputLayer, getLayerFE()).WillOnce(ReturnRef(*layer1.layerFE.get())); in TEST_F()
713 EXPECT_EQ(layer1.outputLayer, mOutput->getOutputLayerForLayer(layer1.layerFE)); in TEST_F()
716 EXPECT_CALL(*layer1.outputLayer, getLayerFE()).WillOnce(ReturnRef(*layer1.layerFE.get())); in TEST_F()
721 EXPECT_CALL(*layer1.outputLayer, getLayerFE()).WillOnce(ReturnRef(*layer1.layerFE.get())); in TEST_F()
767 InjectedLayer layer1; in TEST_F() local
773 injectOutputLayer(layer1); in TEST_F()
784 InjectedLayer layer1; in TEST_F() local
789 EXPECT_CALL(*layer1.outputLayer, updateCompositionState(false, false, ui::Transform::ROT_180)); in TEST_F()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowContainerTests.java128 final TestWindowContainer layer1 = root.addChildWindow(builder.setLayer(1)); in testAdd() local
138 assertEquals(root, layer1.getParentWindow()); in testAdd()
150 assertEquals(layer1, root.getChildAt(4)); in testAdd()
154 assertTrue(layer1.mOnParentChangedCalled); in testAdd()
1689 final int layer1 = w1.mLayer;
1691 if (layer1 < layer2 || (layer1 == layer2 && layer2 < 0)) {
1696 if (layer1 == layer2) return 0;
/frameworks/native/opengl/libs/EGL/
DGLES_layers.md75 adb shell settings put global gpu_debug_layers_gles <layer1:layer2:layerN>
92 adb shell setprop debug.gles.layers <layer1:layer2:layerN>
/frameworks/base/core/proto/android/providers/settings/
Dglobal.proto429 // i.e. <layer1>:<layer2>:...:<layerN>
440 // i.e. <layer1>:<layer2>:...:<layerN>
/frameworks/base/services/core/java/com/android/server/wm/
DWindowState.java734 final int layer1 = w1.mSubLayer;
736 if (layer1 < layer2 || (layer1 == layer2 && layer2 < 0 )) {