Home
last modified time | relevance | path

Searched refs:layers (Results 1 – 25 of 159) sorted by relevance

1234567

/frameworks/native/services/surfaceflinger/CompositionEngine/tests/planner/
DFlattenerTest.cpp72 void initializeOverrideBuffer(const std::vector<const LayerState*>& layers);
73 void initializeFlattener(const std::vector<const LayerState*>& layers);
74 void expectAllLayersFlattened(const std::vector<const LayerState*>& layers);
152 void FlattenerTest::initializeOverrideBuffer(const std::vector<const LayerState*>& layers) { in initializeOverrideBuffer() argument
153 for (const auto layer : layers) { in initializeOverrideBuffer()
158 void FlattenerTest::initializeFlattener(const std::vector<const LayerState*>& layers) { in initializeFlattener() argument
160 initializeOverrideBuffer(layers); in initializeFlattener()
161 EXPECT_EQ(getNonBufferHash(layers), in initializeFlattener()
162 mFlattener->flattenLayers(layers, getNonBufferHash(layers), mTime)); in initializeFlattener()
166 initializeOverrideBuffer(layers); in initializeFlattener()
[all …]
/frameworks/native/services/surfaceflinger/tests/
DStress_test.cpp56 std::array<perfetto::protos::LayerProto*, 10> layers = {}; in generateLayerProto() local
57 for (size_t i = 0; i < layers.size(); ++i) { in generateLayerProto()
58 layers[i] = layersProto.add_layers(); in generateLayerProto()
59 layers[i]->set_id(i); in generateLayerProto()
62 layers[0]->add_children(1); in generateLayerProto()
63 layers[1]->set_parent(0); in generateLayerProto()
64 layers[0]->add_children(2); in generateLayerProto()
65 layers[2]->set_parent(0); in generateLayerProto()
66 layers[0]->add_children(3); in generateLayerProto()
67 layers[3]->set_parent(0); in generateLayerProto()
[all …]
/frameworks/native/services/surfaceflinger/tests/unittests/
DRefreshRateSelectorTest.cpp105 auto getRankedFrameRates(const std::vector<LayerRequirement>& layers, in getRankedFrameRates()
108 RefreshRateSelector::getRankedFrameRates(layers, signals, pacesetterFps);
116 auto getRankedRefreshRatesAsPair(const std::vector<LayerRequirement>& layers, in getRankedRefreshRatesAsPair()
118 const auto result = getRankedFrameRates(layers, signals); in getRankedRefreshRatesAsPair()
122 FrameRateMode getBestFrameRateMode(const std::vector<LayerRequirement>& layers = {}, in getBestFrameRateMode()
124 return getRankedFrameRates(layers, signals).ranking.front().frameRateMode;
127 ScoredFrameRate getBestScoredFrameRate(const std::vector<LayerRequirement>& layers = {}, in getBestScoredFrameRate()
129 return getRankedFrameRates(layers, signals).ranking.front();
267 std::vector<LayerRequirement> layers; in testFrameRateCategoryWithMultipleLayers() local
281 layers.push_back(layer); in testFrameRateCategoryWithMultipleLayers()
[all …]
DLayerLifecycleManagerTest.cpp86 std::vector<std::unique_ptr<RequestedLayerState>> layers; in TEST_F() local
87 layers.emplace_back(rootLayer(1)); in TEST_F()
88 layers.emplace_back(rootLayer(2)); in TEST_F()
89 layers.emplace_back(rootLayer(3)); in TEST_F()
90 lifecycleManager.addLayers(std::move(layers)); in TEST_F()
101 std::vector<std::unique_ptr<RequestedLayerState>> layers; in TEST_F() local
102 layers.emplace_back(rootLayer(1)); in TEST_F()
103 lifecycleManager.addLayers(std::move(layers)); in TEST_F()
136 std::vector<std::unique_ptr<RequestedLayerState>> layers; in TEST_F() local
137 layers.emplace_back(rootLayer(1)); in TEST_F()
[all …]
DFpsReporterTest.cpp135 std::vector<std::unique_ptr<frontend::RequestedLayerState>> layers; in createRootLayer() local
136 layers.emplace_back(std::make_unique<frontend::RequestedLayerState>( in createRootLayer()
139 mLifecycleManager.addLayers(std::move(layers)); in createRootLayer()
144 std::vector<std::unique_ptr<frontend::RequestedLayerState>> layers; in createLayer() local
145 layers.emplace_back(std::make_unique<frontend::RequestedLayerState>( in createLayer()
148 mLifecycleManager.addLayers(std::move(layers)); in createLayer()
/frameworks/native/libs/renderengine/skia/
DCache.cpp126 auto layers = std::vector<LayerSettings>{layer, caster}; in drawShadowLayers()
127 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawShadowLayers()
163 auto layers = std::vector<LayerSettings>{layer}; in drawImageLayers()
164 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawImageLayers()
191 auto layers = std::vector<LayerSettings>{layer}; in drawSolidLayers()
192 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawSolidLayers()
214 auto layers = std::vector<LayerSettings>{layer}; in drawBlurLayers()
215 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawBlurLayers()
260 auto layers = std::vector<LayerSettings>{layer}; in drawClippedLayers()
261 renderengine->drawLayers(display, layers, dstTexture, base::unique_fd()); in drawClippedLayers()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DHardwareBgDrawable.java41 public HardwareBgDrawable(boolean roundTop, Drawable[] layers) { in HardwareBgDrawable() argument
42 super(layers); in HardwareBgDrawable()
43 if (layers.length != 2) { in HardwareBgDrawable()
47 mLayers = layers; in HardwareBgDrawable()
52 final Drawable[] layers; in getLayers() local
54 layers = new Drawable[]{ in getLayers()
59 layers = new Drawable[]{ in getLayers()
65 layers[1].setTintList(Utils.getColorAttr(context, android.R.attr.colorPrimary)); in getLayers()
66 return layers; in getLayers()
/frameworks/av/media/libstagefright/renderfright/tests/
DRenderEngineTest.cpp255 std::vector<const renderengine::LayerSettings*> layers, in invokeDraw()
259 sRE->drawLayers(settings, layers, buffer, true, base::unique_fd(), &fence); in invokeDraw()
269 if (layers.size() > 0) { in invokeDraw()
276 std::vector<const renderengine::LayerSettings*> layers; in drawEmptyLayers() local
279 invokeDraw(settings, layers, buffer); in drawEmptyLayers()
447 std::vector<const renderengine::LayerSettings*> layers; in fillBuffer() local
454 layers.push_back(&layer); in fillBuffer()
456 invokeDraw(settings, layers, mBuffer); in fillBuffer()
489 std::vector<const renderengine::LayerSettings*> layers; in fillRedOffsetBuffer() local
496 layers.push_back(&layer); in fillRedOffsetBuffer()
[all …]
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp473 const std::vector<renderengine::LayerSettings>& layers) { in invokeDraw() argument
475 mRE->drawLayers(settings, layers, mBuffer, base::unique_fd()); in invokeDraw()
487 std::vector<renderengine::LayerSettings> layers; in drawEmptyLayers() local
488 invokeDraw(settings, layers); in drawEmptyLayers()
677 std::vector<renderengine::LayerSettings> layers; in fillBuffer() local
685 layers.push_back(layer); in fillBuffer()
687 invokeDraw(settings, layers); in fillBuffer()
721 std::vector<renderengine::LayerSettings> layers; in fillRedOffsetBuffer() local
729 layers.push_back(layer); in fillRedOffsetBuffer()
730 invokeDraw(settings, layers); in fillRedOffsetBuffer()
[all …]
DRenderEngineThreadedTest.cpp126 std::vector<renderengine::LayerSettings> layers; in TEST_F() local
143 mThreadedRE->drawLayers(settings, layers, buffer, std::move(bufferFence)); in TEST_F()
164 std::vector<renderengine::LayerSettings> layers; in TEST_F() local
182 mThreadedRE->drawLayers(settings, layers, buffer, std::move(bufferFence)); in TEST_F()
197 std::vector<renderengine::LayerSettings> layers = {std::move(layer)}; in TEST_F() local
215 mThreadedRE->drawLayers(settings, layers, buffer, std::move(bufferFence)); in TEST_F()
223 std::vector<renderengine::LayerSettings> layers; in TEST_F() local
243 mThreadedRE->drawLayers(settings, layers, buffer, std::move(bufferFence)); in TEST_F()
/frameworks/native/libs/renderengine/
DRenderEngine.cpp99 const std::vector<LayerSettings>& layers, in drawLayers() argument
104 updateProtectedContext(layers, buffer); in drawLayers()
105 drawLayersInternal(std::move(resultPromise), display, layers, buffer, std::move(bufferFence)); in drawLayers()
109 void RenderEngine::updateProtectedContext(const std::vector<LayerSettings>& layers, in updateProtectedContext() argument
113 std::any_of(layers.begin(), layers.end(), [](const LayerSettings& layer) { in updateProtectedContext()
/frameworks/native/libs/nativewindow/rust/src/
Dlib.rs49 layers: u32, in is_supported()
57 layers, in is_supported()
80 layers: u32, in new()
87 layers, in new()
169 pub fn layers(&self) -> u32 { in layers() method
170 self.description().layers in layers()
192 layers: 0, in description()
305 layers: 1, in from_raw_allows_getters()
338 assert_eq!(buffer.layers(), 1); in basic_getters()
/frameworks/base/core/java/android/hardware/
DHardwareBuffer.java216 @Format int format, @IntRange(from = 1) int layers, @Usage long usage) { in create()
223 if (layers <= 0) { in create()
224 throw new IllegalArgumentException("Invalid layer count " + layers); in create()
229 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage); in create()
251 @Format int format, @IntRange(from = 1) int layers, @Usage long usage) { in isSupported()
258 if (layers <= 0) { in isSupported()
259 throw new IllegalArgumentException("Invalid layer count " + layers); in isSupported()
264 return nIsSupported(width, height, format, layers, usage); in isSupported()
443 private static native long nCreateHardwareBuffer(int width, int height, int format, int layers, in nCreateHardwareBuffer() argument
459 private static native boolean nIsSupported(int width, int height, int format, int layers, in nIsSupported() argument
/frameworks/native/services/surfaceflinger/tests/tracing/
DTransactionTraceTestSuite.cpp161 std::vector<LayerInfo> layers; in getLayerInfosFromProto() local
162 layers.reserve(static_cast<size_t>(entry.layers().layers_size())); in getLayerInfosFromProto()
164 for (int i = 0; i < entry.layers().layers_size(); i++) { in getLayerInfosFromProto()
165 auto layer = entry.layers().layers(i); in getLayerInfosFromProto()
177 layers.push_back(layerInfo); in getLayerInfosFromProto()
179 std::sort(layers.begin(), layers.end(), compareById); in getLayerInfosFromProto()
182 return layers; in getLayerInfosFromProto()
184 for (auto& layer : layers) { in getLayerInfosFromProto()
189 return layers; in getLayerInfosFromProto()
200 EXPECT_EQ(expectedLastEntry.layers().layers_size(), actualLastEntry.layers().layers_size()); in TEST_P()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/
DPredictor.h27 LayerStack(const std::vector<const LayerState*>& layers) : mLayers(copyLayers(layers)) {} in LayerStack() argument
95 std::vector<const LayerState> copyLayers(const std::vector<const LayerState*>& layers) { in copyLayers() argument
97 copiedLayers.reserve(layers.size()); in copyLayers()
98 std::transform(layers.cbegin(), layers.cend(), std::back_inserter(copiedLayers), in copyLayers()
171 Prediction(const std::vector<const LayerState*>& layers, Plan plan)
172 : mExampleLayerStack(layers), mPlan(std::move(plan)) {}
242 std::optional<PredictedPlan> getPredictedPlan(const std::vector<const LayerState*>& layers,
265 const std::vector<const LayerState*>& layers) const;
268 void recordPredictedResult(PredictedPlan, const std::vector<const LayerState*>& layers,
270 bool findSimilarPrediction(const std::vector<const LayerState*>& layers, Plan result);
/frameworks/native/opengl/libs/EGL/
DGLES_layers.md4 …ader will be instantiated. If debug layers are enabled, the LayerLoader will scan specified direc…
6 …ist will be specified by colon separated filenames (see [Enabling layers](#Enabling-layers) below).
8 The layers will be traversed in the order they are specified, so the first layer will be directly b…
29layers are not required to do anything with the info provided by `AndroidGLESLayer_Initialize` or …
31 ## Placing layers
33 Where layers can be found, in order of priority
56 …Determine the ABI of your target application, then install an APK containing the layers you wish t…
58 adb install --abi armeabi-v7a layers.apk
63 ## Enabling layers
68 # Enable layers
[all …]
/frameworks/base/core/jni/
Dandroid_os_GraphicsEnvironment.cpp87 void setDebugLayers_native(JNIEnv* env, jobject clazz, jstring layers) { in setDebugLayers_native() argument
88 if (layers != nullptr) { in setDebugLayers_native()
89 ScopedUtfChars layersChars(env, layers); in setDebugLayers_native()
94 void setDebugLayersGLES_native(JNIEnv* env, jobject clazz, jstring layers) { in setDebugLayersGLES_native() argument
95 if (layers != nullptr) { in setDebugLayersGLES_native()
96 ScopedUtfChars layersChars(env, layers); in setDebugLayersGLES_native()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/
DPredictor.cpp173 const std::vector<const LayerState*>& layers, NonBufferHash hash) const { in getPredictedPlan() argument
182 if (layers.empty()) { in getPredictedPlan()
188 if (std::optional<NonBufferHash> approximateMatch = getApproximateMatch(layers); in getPredictedPlan()
202 const std::vector<const LayerState*>& layers, bool hasSkippedLayers, in recordResult() argument
205 recordPredictedResult(*predictedPlan, layers, std::move(result)); in recordResult()
211 if (!hasSkippedLayers && findSimilarPrediction(layers, result)) { in recordResult()
216 mCandidates.emplace_front(flattenedHash, Prediction(layers, result)); in recordResult()
335 const std::vector<const LayerState*>& layers) const { in getApproximateMatch()
338 if (const auto approximateMatchOpt = exampleStack.getApproximateMatch(layers); in getApproximateMatch()
347 return candidate.prediction.getExampleLayerStack().getApproximateMatch(layers) != in getApproximateMatch()
[all …]
DFlattener.cpp78 NonBufferHash Flattener::flattenLayers(const std::vector<const LayerState*>& layers, in flattenLayers() argument
81 const size_t unflattenedDisplayCost = calculateDisplayCost(layers); in flattenLayers()
89 if (mCurrentGeometry != hash || (!mLayers.empty() && !isSameStack(layers, mLayers))) { in flattenLayers()
95 ++mInitialLayerCounts[layers.size()]; in flattenLayers()
100 const bool alreadyHadCachedSets = mergeWithCachedSets(layers, now); in flattenLayers()
215 size_t Flattener::calculateDisplayCost(const std::vector<const LayerState*>& layers) const { in calculateDisplayCost()
220 for (const LayerState* layer : layers) { in calculateDisplayCost()
273 bool Flattener::mergeWithCachedSets(const std::vector<const LayerState*>& layers, time_point now) { in mergeWithCachedSets() argument
278 merged.reserve(layers.size()); in mergeWithCachedSets()
279 for (const LayerState* layer : layers) { in mergeWithCachedSets()
[all …]
/frameworks/native/libs/bufferstreams/rust/src/
Dstream_config.rs26 pub layers: u32, field
38 HardwareBuffer::new(self.width, self.height, self.layers, self.format, self.usage) in create_hardware_buffer()
51 layers: 1, in test_create_hardware_buffer()
/frameworks/av/media/codec2/sfplugin/utils/
DCodec2CommonUtils.cpp84 .layers = 1, in isHalPixelFormatSupported()
99 .layers = 1, in isHalPixelFormatSupported()
114 .layers = 1, in isHalPixelFormatSupported()
/frameworks/native/libs/renderengine/benchmark/
DRenderEngineBench.cpp127 auto layers = std::vector<LayerSettings>{layer}; in copyBuffer()
129 sp<Fence> waitFence = re.drawLayers(display, layers, texture, base::unique_fd()).get().value(); in copyBuffer()
144 static void benchDrawLayers(RenderEngine& re, const std::vector<LayerSettings>& layers, in benchDrawLayers() argument
159 re.drawLayers(display, layers, outputBuffer, base::unique_fd()).get().value(); in benchDrawLayers()
223 auto layers = std::vector<LayerSettings>{layer, blurLayer}; in BM_blur()
224 benchDrawLayers(*re, layers, benchState, "blurred"); in BM_blur()
/frameworks/native/services/surfaceflinger/
DRenderArea.h45 std::vector<std::pair<Layer*, sp<LayerFE>>> layers; in fromTraverseLayersLambda()
51 layers.emplace_back(layer, layer->copyCompositionEngineLayerFE()); in fromTraverseLayersLambda()
53 return layers; in fromTraverseLayersLambda()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaCpuPipeline.cpp32 void SkiaCpuPipeline::renderLayersImpl(const LayerUpdateQueue& layers, bool opaque) { in renderLayersImpl() argument
34 for (size_t i = 0; i < layers.entries().size(); i++) { in renderLayersImpl()
35 RenderNode* layerNode = layers.entries()[i].renderNode.get(); in renderLayersImpl()
42 bool rendered = renderLayerImpl(layerNode, layers.entries()[i].damage); in renderLayersImpl()
/frameworks/base/graphics/java/android/graphics/drawable/
DTransitionDrawable.java82 public TransitionDrawable(Drawable[] layers) { in TransitionDrawable() argument
83 this(new TransitionState(null, null, null), layers); in TransitionDrawable()
100 private TransitionDrawable(TransitionState state, Drawable[] layers) { in TransitionDrawable() argument
101 super(layers, state); in TransitionDrawable()

1234567