/frameworks/native/services/surfaceflinger/tests/ |
D | Stress_test.cpp | 56 std::array<surfaceflinger::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/CompositionEngine/tests/planner/ |
D | FlattenerTest.cpp | 71 void initializeOverrideBuffer(const std::vector<const LayerState*>& layers); 72 void initializeFlattener(const std::vector<const LayerState*>& layers); 73 void expectAllLayersFlattened(const std::vector<const LayerState*>& layers); 151 void FlattenerTest::initializeOverrideBuffer(const std::vector<const LayerState*>& layers) { in initializeOverrideBuffer() argument 152 for (const auto layer : layers) { in initializeOverrideBuffer() 157 void FlattenerTest::initializeFlattener(const std::vector<const LayerState*>& layers) { in initializeFlattener() argument 159 initializeOverrideBuffer(layers); in initializeFlattener() 160 EXPECT_EQ(getNonBufferHash(layers), in initializeFlattener() 161 mFlattener->flattenLayers(layers, getNonBufferHash(layers), mTime)); in initializeFlattener() 165 initializeOverrideBuffer(layers); in initializeFlattener() [all …]
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | RefreshRateConfigsTest.cpp | 64 auto getBestRefreshRateAndSignals(const std::vector<LayerRequirement>& layers, in getBestRefreshRateAndSignals() 66 return RefreshRateConfigs::getBestRefreshRate(layers, signals); in getBestRefreshRateAndSignals() 69 DisplayModePtr getBestRefreshRate(const std::vector<LayerRequirement>& layers = {}, in getBestRefreshRate() 71 return getBestRefreshRateAndSignals(layers, signals).first; 287 std::vector<LayerRequirement> layers = {{.weight = 1.f}}; in TEST_F() local 288 auto& lr = layers[0]; in TEST_F() 292 EXPECT_EQ(kMode60, configs.getBestRefreshRate(layers)); in TEST_F() 296 EXPECT_EQ(kMode90, configs.getBestRefreshRate(layers)); in TEST_F() 301 EXPECT_EQ(kMode90, configs.getBestRefreshRate(layers)); in TEST_F() 305 EXPECT_EQ(kMode60, configs.getBestRefreshRate(layers)); in TEST_F() [all …]
|
/frameworks/native/services/vr/hardware_composer/tests/ |
D | vr_composer_test.cpp | 130 frame.layers.push_back(ComposerView::ComposerLayer{ in TEST_F() 149 ASSERT_EQ(1u, received_frame.layers.size()); in TEST_F() 150 ASSERT_EQ(frame.layers[0].id, received_frame.layers[0].id); in TEST_F() 151 ASSERT_NE(nullptr, received_frame.layers[0].buffer.get()); in TEST_F() 152 ASSERT_TRUE(received_frame.layers[0].fence->isValid()); in TEST_F() 153 ASSERT_EQ(frame.layers[0].display_frame.left, in TEST_F() 154 received_frame.layers[0].display_frame.left); in TEST_F() 155 ASSERT_EQ(frame.layers[0].display_frame.top, in TEST_F() 156 received_frame.layers[0].display_frame.top); in TEST_F() 157 ASSERT_EQ(frame.layers[0].display_frame.right, in TEST_F() [all …]
|
/frameworks/native/libs/vr/libdvr/ |
D | dvr_hardware_composer_client.cpp | 134 return frame->frame.layers.size(); in dvrHwcFrameGetLayerCount() 161 return frame->frame.layers[layer_index].id; in dvrHwcFrameGetLayerId() 167 frame->frame.layers[layer_index].buffer.get()); in dvrHwcFrameGetLayerBuffer() 173 return frame->frame.layers[layer_index].fence->dup(); in dvrHwcFrameGetLayerFence() 179 frame->frame.layers[layer_index].display_frame.left, in dvrHwcFrameGetLayerDisplayFrame() 180 frame->frame.layers[layer_index].display_frame.top, in dvrHwcFrameGetLayerDisplayFrame() 181 frame->frame.layers[layer_index].display_frame.right, in dvrHwcFrameGetLayerDisplayFrame() 182 frame->frame.layers[layer_index].display_frame.bottom, in dvrHwcFrameGetLayerDisplayFrame() 188 frame->frame.layers[layer_index].crop.left, in dvrHwcFrameGetLayerCrop() 189 frame->frame.layers[layer_index].crop.top, in dvrHwcFrameGetLayerCrop() [all …]
|
/frameworks/native/services/vr/hardware_composer/aidl/android/dvr/ |
D | parcelable_composer_frame.cpp | 51 std::vector<ParcelableComposerLayer> layers; in writeToParcel() local 52 for (size_t i = 0; i < frame_.layers.size(); ++i) in writeToParcel() 53 layers.push_back(ParcelableComposerLayer(frame_.layers[i])); in writeToParcel() 55 ret = parcel->writeParcelableVector(layers); in writeToParcel() 98 std::vector<ParcelableComposerLayer> layers; in readFromParcel() local 99 ret = parcel->readParcelableVector(&layers); in readFromParcel() 102 frame_.layers.clear(); in readFromParcel() 103 for (size_t i = 0; i < layers.size(); ++i) in readFromParcel() 104 frame_.layers.push_back(layers[i].layer()); in readFromParcel()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | HardwareBgDrawable.java | 40 public HardwareBgDrawable(boolean roundTop, Drawable[] layers) { in HardwareBgDrawable() argument 41 super(layers); in HardwareBgDrawable() 42 if (layers.length != 2) { in HardwareBgDrawable() 46 mLayers = layers; in HardwareBgDrawable() 51 final Drawable[] layers; in getLayers() local 53 layers = new Drawable[]{ in getLayers() 58 layers = new Drawable[]{ in getLayers() 64 layers[1].setTintList(Utils.getColorAttr(context, android.R.attr.colorPrimary)); in getLayers() 65 return layers; in getLayers()
|
/frameworks/av/media/libstagefright/renderfright/tests/ |
D | RenderEngineTest.cpp | 255 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/ |
D | RenderEngineTest.cpp | 528 const std::vector<renderengine::LayerSettings>& layers) { in invokeDraw() argument 530 mRE->drawLayers(settings, layers, mBuffer, true, base::unique_fd()); in invokeDraw() 540 if (layers.size() > 0 && mGLESRE != nullptr) { in invokeDraw() 547 std::vector<renderengine::LayerSettings> layers; in drawEmptyLayers() local 548 invokeDraw(settings, layers); in drawEmptyLayers() 758 std::vector<renderengine::LayerSettings> layers; in fillBuffer() local 766 layers.push_back(layer); in fillBuffer() 768 invokeDraw(settings, layers); in fillBuffer() 802 std::vector<renderengine::LayerSettings> layers; in fillRedOffsetBuffer() local 810 layers.push_back(layer); in fillRedOffsetBuffer() [all …]
|
/frameworks/native/libs/renderengine/skia/ |
D | Cache.cpp | 118 auto layers = std::vector<LayerSettings>{layer, caster}; in drawShadowLayers() 119 renderengine->drawLayers(display, layers, dstTexture, kUseFrameBufferCache, in drawShadowLayers() 156 auto layers = std::vector<LayerSettings>{layer}; in drawImageLayers() 157 renderengine->drawLayers(display, layers, dstTexture, kUseFrameBufferCache, in drawImageLayers() 185 auto layers = std::vector<LayerSettings>{layer}; in drawSolidLayers() 186 renderengine->drawLayers(display, layers, dstTexture, kUseFrameBufferCache, in drawSolidLayers() 209 auto layers = std::vector<LayerSettings>{layer}; in drawBlurLayers() 210 renderengine->drawLayers(display, layers, dstTexture, kUseFrameBufferCache, in drawBlurLayers() 256 auto layers = std::vector<LayerSettings>{layer}; in drawClippedLayers() 257 renderengine->drawLayers(display, layers, dstTexture, kUseFrameBufferCache, in drawClippedLayers() [all …]
|
/frameworks/base/core/java/android/hardware/ |
D | HardwareBuffer.java | 190 @Format int format, @IntRange(from = 1) int layers, @Usage long usage) { in create() 200 if (layers <= 0) { in create() 201 throw new IllegalArgumentException("Invalid layer count " + layers); in create() 206 long nativeObject = nCreateHardwareBuffer(width, height, format, layers, usage); in create() 228 @Format int format, @IntRange(from = 1) int layers, @Usage long usage) { in isSupported() 238 if (layers <= 0) { in isSupported() 239 throw new IllegalArgumentException("Invalid layer count " + layers); in isSupported() 244 return nIsSupported(width, height, format, layers, usage); in isSupported() 440 private static native long nCreateHardwareBuffer(int width, int height, int format, int layers, in nCreateHardwareBuffer() argument 456 private static native boolean nIsSupported(int width, int height, int format, int layers, in nIsSupported() argument
|
/frameworks/native/services/surfaceflinger/tests/tracing/ |
D | TransactionTraceTestSuite.cpp | 94 EXPECT_EQ(expectedLastEntry.layers().layers_size(), actualLastEntry.layers().layers_size()); in TEST_P() 96 i < expectedLastEntry.layers().layers_size() && i < actualLastEntry.layers().layers_size(); in TEST_P() 98 auto expectedLayer = expectedLastEntry.layers().layers(i); in TEST_P() 99 auto actualLayer = actualLastEntry.layers().layers(i); in TEST_P()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/impl/planner/ |
D | Predictor.h | 27 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/ |
D | GLES_layers.md | 4 …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… 29 …layers 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/ |
D | android_os_GraphicsEnvironment.cpp | 92 void setDebugLayers_native(JNIEnv* env, jobject clazz, jstring layers) { in setDebugLayers_native() argument 93 if (layers != nullptr) { in setDebugLayers_native() 94 ScopedUtfChars layersChars(env, layers); in setDebugLayers_native() 99 void setDebugLayersGLES_native(JNIEnv* env, jobject clazz, jstring layers) { in setDebugLayersGLES_native() argument 100 if (layers != nullptr) { in setDebugLayersGLES_native() 101 ScopedUtfChars layersChars(env, layers); in setDebugLayersGLES_native()
|
/frameworks/native/services/surfaceflinger/CompositionEngine/src/planner/ |
D | Flattener.cpp | 66 NonBufferHash Flattener::flattenLayers(const std::vector<const LayerState*>& layers, in flattenLayers() argument 69 const size_t unflattenedDisplayCost = calculateDisplayCost(layers); in flattenLayers() 77 if (mCurrentGeometry != hash || (!mLayers.empty() && !isSameStack(layers, mLayers))) { in flattenLayers() 83 ++mInitialLayerCounts[layers.size()]; in flattenLayers() 88 const bool alreadyHadCachedSets = mergeWithCachedSets(layers, now); in flattenLayers() 203 size_t Flattener::calculateDisplayCost(const std::vector<const LayerState*>& layers) const { in calculateDisplayCost() 208 for (const LayerState* layer : layers) { in calculateDisplayCost() 261 bool Flattener::mergeWithCachedSets(const std::vector<const LayerState*>& layers, time_point now) { in mergeWithCachedSets() argument 266 merged.reserve(layers.size()); in mergeWithCachedSets() 267 for (const LayerState* layer : layers) { in mergeWithCachedSets() [all …]
|
D | Predictor.cpp | 169 const std::vector<const LayerState*>& layers, NonBufferHash hash) const { in getPredictedPlan() argument 178 if (layers.empty()) { in getPredictedPlan() 184 if (std::optional<NonBufferHash> approximateMatch = getApproximateMatch(layers); in getPredictedPlan() 198 const std::vector<const LayerState*>& layers, bool hasSkippedLayers, in recordResult() argument 201 recordPredictedResult(*predictedPlan, layers, std::move(result)); in recordResult() 207 if (!hasSkippedLayers && findSimilarPrediction(layers, result)) { in recordResult() 212 mCandidates.emplace_front(flattenedHash, Prediction(layers, result)); in recordResult() 331 const std::vector<const LayerState*>& layers) const { in getApproximateMatch() 334 if (const auto approximateMatchOpt = exampleStack.getApproximateMatch(layers); in getApproximateMatch() 343 return candidate.prediction.getExampleLayerStack().getApproximateMatch(layers) != in getApproximateMatch() [all …]
|
/frameworks/base/libs/hwui/pipeline/skia/ |
D | SkiaPipeline.cpp | 92 void SkiaPipeline::renderLayersImpl(const LayerUpdateQueue& layers, bool opaque) { in renderLayersImpl() argument 96 for (size_t i = 0; i < layers.entries().size(); i++) { in renderLayersImpl() 97 RenderNode* layerNode = layers.entries()[i].renderNode.get(); in renderLayersImpl() 111 const Rect& layerDamage = layers.entries()[i].damage; in renderLayersImpl() 301 static void collectLayers(RenderNode* node, LayerUpdateQueue* layers) { in collectLayers() argument 306 layers->enqueueLayerWithDamage(node, Rect(prop.getWidth(), prop.getHeight())); in collectLayers() 309 dl->updateChildren([&](RenderNode* child) { collectLayers(child, layers); }); in collectLayers() 314 static void recordLayers(const LayerUpdateQueue& layers, in recordLayers() argument 318 for (size_t i = 0; i < layers.entries().size(); i++) { in recordLayers() 319 RenderNode* layerNode = layers.entries()[i].renderNode.get(); in recordLayers() [all …]
|
/frameworks/native/libs/renderengine/benchmark/ |
D | RenderEngineBench.cpp | 159 auto layers = std::vector<LayerSettings>{layer}; in copyBuffer() 162 re.drawLayers(display, layers, texture, kUseFrameBufferCache, base::unique_fd()).get(); in copyBuffer() 178 static void benchDrawLayers(RenderEngine& re, const std::vector<LayerSettings>& layers, in benchDrawLayers() argument 192 auto [status, drawFence] = re.drawLayers(display, layers, outputBuffer, in benchDrawLayers() 256 auto layers = std::vector<LayerSettings>{layer, blurLayer}; in BM_blur() 257 benchDrawLayers(*re, layers, benchState, "blurred"); in BM_blur()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/ |
D | InstantInsetLayerDrawable.java | 28 public InstantInsetLayerDrawable(Drawable[] layers) { in InstantInsetLayerDrawable() argument 29 super(layers); in InstantInsetLayerDrawable()
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 50 desc->width, desc->height, format, desc->layers, usage, in AHardwareBuffer_allocate() 59 desc->width, desc->height, desc->layers, strerror(-err), gbuffer->handle); in AHardwareBuffer_allocate() 88 outDesc->layers = gbuffer->getLayerCount(); in AHardwareBuffer_describe() 378 status_t err = gBuffer->isSupported(desc->width, desc->height, desc->format, desc->layers, in AHardwareBuffer_isSupported() 391 trialDesc.layers = desc->layers == 6 ? 6 : 12; in AHardwareBuffer_isSupported() 393 trialDesc.layers = desc->layers == 1 ? 1 : 2; in AHardwareBuffer_isSupported() 445 format, desc->layers, usage, desc->stride)); in AHardwareBuffer_createFromHandle() 463 if (desc->width == 0 || desc->height == 0 || desc->layers == 0) { in AHardwareBuffer_isValidDescription() 480 if (desc->height != 1 || desc->layers != 1) { in AHardwareBuffer_isValidDescription() 499 if (desc->layers != 1) { in AHardwareBuffer_isValidDescription() [all …]
|
/frameworks/base/graphics/java/android/graphics/drawable/ |
D | TransitionDrawable.java | 82 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()
|
/frameworks/native/vulkan/vkjson/ |
D | vkjson_instance.cc | 72 device.layers.resize(layer_count); in VkJsonGetDevice() 74 device.layers.data()); in VkJsonGetDevice() 308 std::vector<VkLayerProperties> layers(count); in VkJsonGetInstance() local 309 result = vkEnumerateInstanceLayerProperties(&count, layers.data()); in VkJsonGetInstance() 312 instance.layers.reserve(count); in VkJsonGetInstance() 313 for (auto& layer : layers) { in VkJsonGetInstance() 314 instance.layers.push_back(VkJsonLayer{layer, std::vector<VkExtensionProperties>()}); in VkJsonGetInstance() 316 &instance.layers.back().extensions)) in VkJsonGetInstance()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | RefreshRateConfigs.cpp | 260 auto RefreshRateConfigs::getBestRefreshRate(const std::vector<LayerRequirement>& layers, in getBestRefreshRate() argument 266 mGetBestRefreshRateCache->arguments == std::make_pair(layers, signals)) { in getBestRefreshRate() 270 const auto result = getBestRefreshRateLocked(layers, signals); in getBestRefreshRate() 271 mGetBestRefreshRateCache = GetBestRefreshRateCache{{layers, signals}, result}; in getBestRefreshRate() 275 auto RefreshRateConfigs::getBestRefreshRateLocked(const std::vector<LayerRequirement>& layers, in getBestRefreshRateLocked() argument 280 ALOGV("%s: %zu layers", __func__, layers.size()); in getBestRefreshRateLocked() 291 for (const auto& layer : layers) { in getBestRefreshRateLocked() 357 if (layers.empty() || noVoteLayers == layers.size()) { in getBestRefreshRateLocked() 364 if (noVoteLayers + minVoteLayers == layers.size()) { in getBestRefreshRateLocked() 378 for (const auto& layer : layers) { in getBestRefreshRateLocked() [all …]
|
/frameworks/native/services/surfaceflinger/Tracing/ |
D | LayerTracing.cpp | 116 LayersProto layers(mFlinger.dumpDrawingStateProto(mFlags)); in notify() local 119 mFlinger.dumpOffscreenLayersProto(layers); in notify() 121 entry.mutable_layers()->Swap(&layers); in notify()
|