Questions tagged [surfaceflinger]

SurfaceFlinger is Android's window compositor. Use this tag for questions specific to SurfaceFlinger component of Android. In addtion, add android tag as well.

SurfaceFlinger is Android's window compositor. Use this tag for questions specific to SurfaceFlinger component of Android. In addtion, add tag too.

100 questions
0
votes
1 answer

Android system use only Part of the Screen

I want to place a hardware keyboard on part of the screen of a specific android smartphone (just like the Galaxy S7 edge Keyboard Cover). So i need the android system to always only use the part of the screen which is not occupied by the keyboard,…
0
votes
1 answer

Android Emulator inside docker container surfaceflinger crashing endldess boot loop

I'm trying to setup some android automation in cloud (Docker in specific). Here is my docker file: ENV DEBIAN_FRONTEND noninteractive RUN echo "debconf shared/accepted-oracle-license-v1-1 select true" | debconf-set-selections && \ echo "debconf…
Mark
  • 67
  • 7
0
votes
1 answer

Why is Layer::drawWithOpenGL never called?

I'm trying to understand Android rendering code a little better. So I add some logging in Layer::drawWithOpenGL() function, which is part of SurfaceFlinger. But it seems, it never gets called. Can someone shed light on why this is the case? Thanks.
mr49
  • 1,053
  • 1
  • 8
  • 26
0
votes
0 answers

I use virtualDisplay to mirror screen on android phone,how can I changge the framerate to 90?

I use virtualDisplay to mirror screen on android phone,how can I changge the framerate to 90? I guess maybe I should modify the code in surfaceflinger or some where,but I don't know,I need help,thanks!!!
Joe
  • 23
  • 4
0
votes
0 answers

Android Surface Flinger Test Program : resize

When I am compile(mm) SurfaceFlinger test program "resize" in aosp(marshmallow - 6.0.1) folder "frameworks/native/services/surfaceflinger/tests/resize" . #include #include #include #include…
Embedded_User
  • 211
  • 2
  • 12
0
votes
1 answer

How to detect if a video is playing on android platform?

Is there some api or method to know if some video is playing on android platform? I want to stop some background job when a video is playing at foreground. The api or method had better comes from surfaceflinger, window manager service etc.…
Tony
  • 57
  • 1
  • 5
0
votes
0 answers

Android Surfaceflinger - how to access functions

Android 5.0.1 (Galaxy S4 i9505 Imperium rom): I'm trying to access various functions of SurfaceFlinger with the aim of either resizing HW Layers or accessing each HW Layer and saving as a bitmap or displaying on a separate Surface (initiated from…
0
votes
1 answer

Why does SurfaceFlinger render layers upside down

Recently, when digging into the SurfaceFlinger code, I discovered it renders its layers upside down, using the method like 1.0f minus vertex Y coordinate. I feel confused. Why do they do this?
linzuojian
  • 602
  • 6
  • 8
0
votes
0 answers

How to access SurfaceFlinger from userspace program?

I would like to write a userspace program to talk to SurfaceFlinger and call its dump function. How can I access SurfaceFlinger and make such a call from my C++ program? I know that SurfaceFlinger is instantiated in main_surfaceflinger.cpp and is…
Matt
  • 796
  • 12
  • 25
0
votes
0 answers

How to use the information provided by "dumpsys" from kernel?

I get the frame information of a running application through dumpsys SurfaceFlinger --latency SurfaceView. Now, I want to get the same information in a piece of code I have written for kernel. How could I access the information provided by dumpsys…
Matt
  • 796
  • 12
  • 25
0
votes
1 answer

How to upscale and render remote(RGB565) frame buffer on Android native?

I have ported remote frame buffer receive C code on Android 4.2.2 which receives frame buffer from host in RGB565 format. Able to render the received framebuffer following the standard android example…
0
votes
1 answer

dumpsys SurfaceFlinger output interpretation

Recently, I have started using dumpsys SurfaceFlinger to gather some information about android graphics. I currently work on a development board called Odroid-XU3. The display is a Dell monitor which is connected to the board through HDMI cable. In…
Matt
  • 796
  • 12
  • 25
0
votes
1 answer

OpenGL context between APP and surfaceflinger in Android

As I know so far, surfaceflinger providers surfaces to APP to render to and then composite all the surfaces to the final screen. (If any mistake, please point out Thx). First question: Is the surface created by surfaceflinger is global available…
CurtisGuo
  • 339
  • 1
  • 3
  • 10
0
votes
1 answer

NEXUS 5 lollipop 5.1 SurfaceFlinger error

Hello there? There is one question. nexus5 lollipop5.1's issue. surfaceflinger there is a code that comes in response to the device screen information in ScreenshotClient update by using. The code looks like the following. unsigned int sw, sh,…
0
votes
0 answers

I can't receive all server responses

In my Android app I'm connected to a server and keep receiving data from it when the app is on run-time, every thing was working so fine, but lately without any code changes, my app keep losing a big amounts of data and not receiving it from the…
Muhammed Refaat
  • 8,914
  • 14
  • 83
  • 118