Home
last modified time | relevance | path

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

/frameworks/native/services/surfaceflinger/tests/unittests/
DSetFrameRateTest.cpp68 std::vector<sp<Layer>> mLayers; member in android::SetFrameRateTest
88 for (auto layer : mLayers) { in commitTransaction()
100 auto layer = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
111 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
112 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
113 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
136 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
137 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
138 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
175 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
[all …]
DFrameRateSelectionStrategyTest.cpp61 std::vector<sp<Layer>> mLayers; member in android::FrameRateSelectionStrategyTest
81 for (auto layer : mLayers) { in commitTransaction()
97 auto layer = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
110 auto parent = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
111 auto child1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
112 auto child2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
134 auto layer1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
135 auto layer2 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
136 auto layer3 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
175 auto layer1 = mLayers.emplace_back(layerFactory->createLayer(mFlinger)); in TEST_P()
[all …]
DTestableSurfaceFlinger.h799 auto& mutableLayers() { return this->mLayers; } in mutableLayers()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DCachedSet.cpp71 mLayers.emplace_back(std::move(layer)); in CachedSet()
76 mLayers.emplace_back(layer, lastUpdate); in addLayer()
86 if (mLayers.size() == 1) { in getNonBufferHash()
102 for (const Layer& layer : mLayers) { in getComponentDisplayCost()
111 if (mLayers.size() == 1) { in getCreationCost()
129 for (const Layer& layer : mLayers) { in hasBufferUpdate()
144 std::transform(mLayers.begin(), mLayers.end(), std::back_inserter(layers), in decompose()
151 LOG_ALWAYS_FATAL_IF(mLayers.size() > 1, "[%s] This should only be called on single-layer sets", in updateAge()
154 if (mLayers[0].getFramesSinceBufferUpdate() == 0) { in updateAge()
198 for (const auto& layer : mLayers) { in render()
[all …]
DFlattener.cpp89 if (mCurrentGeometry != hash || (!mLayers.empty() && !isSameStack(layers, mLayers))) { in flattenLayers()
102 ++mFinalLayerCounts[mLayers.size()]; in flattenLayers()
157 for (const CachedSet& layer : mLayers) { in dumpLayers()
248 for (const CachedSet& cachedSet : mLayers) { in resetActivities()
254 mLayers.clear(); in resetActivities()
264 for (const auto& layer : mLayers) { in computeLayersHash()
277 if (mLayers.empty()) { in mergeWithCachedSets()
283 mLayers = std::move(merged); in mergeWithCachedSets()
294 for (const CachedSet& layer : mLayers) { in mergeWithCachedSets()
303 auto currentLayerIter = mLayers.begin(); in mergeWithCachedSets()
[all …]
DPredictor.cpp29 if (mLayers.size() != other.size()) { in getApproximateMatch()
34 for (size_t i = 0; i < mLayers.size(); ++i) { in getApproximateMatch()
36 if (mLayers[i].getHash() == other[i]->getHash()) { in getApproximateMatch()
42 if (mLayers[i].getCompositionType() == in getApproximateMatch()
50 if (mLayers[i].getCompositionType() != other[i]->getCompositionType()) { in getApproximateMatch()
60 ftl::Flags<LayerStateField> differingFields = mLayers[i].getDifferingFields(*other[i]); in getApproximateMatch()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DHardwareBgDrawable.java32 private final Drawable[] mLayers; field in HardwareBgDrawable
47 mLayers = layers; in HardwareBgDrawable()
85 mLayers[0].setBounds(bounds.left, bounds.top, bounds.right, top); in draw()
87 mLayers[1].setBounds(bounds.left, top, bounds.right, bounds.bottom); in draw()
90 mLayers[1].draw(canvas); in draw()
91 mLayers[0].draw(canvas); in draw()
93 mLayers[0].draw(canvas); in draw()
94 mLayers[1].draw(canvas); in draw()
97 mLayers[0].draw(canvas); in draw()
/frameworks/base/libs/hwui/renderthread/
DDrawFrameTask.cpp55 for (size_t i = 0; i < mLayers.size(); i++) { in pushLayerUpdate()
56 if (mLayers[i].get() == layer) { in pushLayerUpdate()
60 mLayers.push_back(layer); in pushLayerUpdate()
64 for (size_t i = 0; i < mLayers.size(); i++) { in removeLayerUpdate()
65 if (mLayers[i].get() == layer) { in removeLayerUpdate()
66 mLayers.erase(mLayers.begin() + i); in removeLayerUpdate()
182 for (size_t i = 0; i < mLayers.size(); i++) { in syncFrameState()
183 if (mLayers[i]) { in syncFrameState()
184 mLayers[i]->apply(); in syncFrameState()
189 mLayers.clear(); in syncFrameState()
DDrawFrameTask.h122 std::vector<sp<DeferredLayerUpdater> > mLayers; variable
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DCachedSet.h65 size_t getLayerCount() const { return mLayers.size(); } in getLayerCount()
66 const Layer& getFirstLayer() const { return mLayers[0]; } in getFirstLayer()
79 const std::vector<Layer>& getConstituentLayers() const { return mLayers; } in getConstituentLayers()
105 mLayers.insert(mLayers.end(), other.mLayers.cbegin(), other.mLayers.cend()); in append()
156 std::vector<Layer> mLayers; variable
DPredictor.h27 LayerStack(const std::vector<const LayerState*>& layers) : mLayers(copyLayers(layers)) {} in LayerStack()
55 if (mLayers.size() != other.mLayers.size()) { in compare()
57 mLayers.size(), other.mLayers.size()); in compare()
61 for (size_t l = 0; l < mLayers.size(); ++l) { in compare()
62 const auto& thisLayer = mLayers[l]; in compare()
63 const auto& otherLayer = other.mLayers[l]; in compare()
79 for (const LayerState& layer : mLayers) { in dump()
87 for (const LayerState& layer : mLayers) {
103 std::vector<const LayerState> mLayers; variable
DFlattener.h247 std::vector<CachedSet> mLayers; variable
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerLifecycleManager.cpp65 for (auto& rootLayer : mLayers) { in addLayers()
86 mLayers.emplace_back(std::move(newLayer)); in addLayers()
166 auto it = mLayers.begin(); in onHandlesDestroyed()
167 while (it != mLayers.end()) { in onHandlesDestroyed()
171 std::iter_swap(it, mLayers.end() - 1); in onHandlesDestroyed()
172 mDestroyedLayers.emplace_back(std::move(mLayers.back())); in onHandlesDestroyed()
173 if (it == mLayers.end() - 1) { in onHandlesDestroyed()
174 it = mLayers.erase(mLayers.end() - 1); in onHandlesDestroyed()
176 mLayers.erase(mLayers.end() - 1); in onHandlesDestroyed()
292 for (auto& layer : mLayers) { in commitChanges()
[all …]
DLayerLifecycleManager.h112 std::vector<std::unique_ptr<RequestedLayerState>> mLayers; variable
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
DOutputTest.cpp4554 for (size_t i = 0; i < mLayers.size(); i++) { in GenerateClientCompositionRequestsTest_ThreeLayers()
4555 mLayers[i].mOutputLayerState.clearClientTarget = false; in GenerateClientCompositionRequestsTest_ThreeLayers()
4556 mLayers[i].mOutputLayerState.visibleRegion = Region(kDisplayFrame); in GenerateClientCompositionRequestsTest_ThreeLayers()
4557 mLayers[i].mLayerFEState.isOpaque = true; in GenerateClientCompositionRequestsTest_ThreeLayers()
4558 mLayers[i].mLayerSettings.geometry.boundaries = in GenerateClientCompositionRequestsTest_ThreeLayers()
4560 mLayers[i].mLayerSettings.source.solidColor = {1.0f, 1.0f, 1.0f}; in GenerateClientCompositionRequestsTest_ThreeLayers()
4561 mLayers[i].mLayerSettings.alpha = 1.0f; in GenerateClientCompositionRequestsTest_ThreeLayers()
4562 mLayers[i].mLayerSettings.disableBlending = false; in GenerateClientCompositionRequestsTest_ThreeLayers()
4565 .WillRepeatedly(Return(&mLayers[i].mOutputLayer)); in GenerateClientCompositionRequestsTest_ThreeLayers()
4566 EXPECT_CALL(mLayers[i].mOutputLayer, requiresClientComposition()) in GenerateClientCompositionRequestsTest_ThreeLayers()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaPolicyBuilder.java705 private final boolean[] mLayers; field in DisplayAreaPolicyBuilder.Feature.Builder
726 mLayers = new boolean[mPolicy.getMaxWindowLayer() + 1]; in Builder()
733 Arrays.fill(mLayers, true); in all()
766 mLayers[i] = true; in upTo()
791 mLayers[mPolicy.getMaxWindowLayer()] = false; in build()
793 return new Feature(mName, mId, mLayers.clone(), mNewDisplayAreaSupplier); in build()
797 mLayers[layerFromType(type, true)] = value; in set()
799 mLayers[layerFromType(type, true)] = value; in set()
800 mLayers[layerFromType(TYPE_SYSTEM_ALERT, false)] = value; in set()
801 mLayers[layerFromType(TYPE_SYSTEM_OVERLAY, false)] = value; in set()
[all …]
/frameworks/native/cmds/flatland/
DMain.cpp419 result = mLayers[i].setUp(ld, mGLHelper); in setUp()
445 mLayers[i].tearDown(); in tearDown()
513 result = mLayers[i].render(); in doFrame()
520 result = mLayers[i].prepareComposition(); in doFrame()
535 result = mLayers[i].compose(); in doFrame()
579 Layer mLayers[MAX_NUM_LAYERS]; member in BenchmarkRunner
/frameworks/native/services/surfaceflinger/DisplayHardware/
DHWC2.cpp95 std::swap(mLayers, destroyingLayers); in ~Display()
141 mLayers.emplace(layerId, layer); in createLayer()
146 mLayers.erase(layerId); in onLayerDestroyed()
634 auto it = mLayers.find(id); in getLayerById()
635 return it != mLayers.end() ? it->second.lock() : nullptr; in getLayerById()
DHWC2.h305 Layers mLayers; variable