/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | SetFrameRateTest.cpp | 68 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 …]
|
D | FrameRateSelectionStrategyTest.cpp | 61 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 …]
|
D | TestableSurfaceFlinger.h | 799 auto& mutableLayers() { return this->mLayers; } in mutableLayers()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | CachedSet.cpp | 71 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 …]
|
D | Flattener.cpp | 89 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 …]
|
D | Predictor.cpp | 29 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/ |
D | HardwareBgDrawable.java | 32 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/ |
D | DrawFrameTask.cpp | 55 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()
|
D | DrawFrameTask.h | 122 std::vector<sp<DeferredLayerUpdater> > mLayers; variable
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/ |
D | CachedSet.h | 65 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
|
D | Predictor.h | 27 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
|
D | Flattener.h | 247 std::vector<CachedSet> mLayers; variable
|
/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | LayerLifecycleManager.cpp | 65 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 …]
|
D | LayerLifecycleManager.h | 112 std::vector<std::unique_ptr<RequestedLayerState>> mLayers; variable
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputTest.cpp | 4554 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/ |
D | DisplayAreaPolicyBuilder.java | 705 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/ |
D | Main.cpp | 419 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/ |
D | HWC2.cpp | 95 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()
|
D | HWC2.h | 305 Layers mLayers; variable
|