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
1
vote
1 answer

Systrace output not showing graphics/surfaceflinger events

I am able to run systrace but i am not able to see the traces for SurfaceFlinger. GPU, bufferQueues, etc. I gave the following command: systrace.py --time=10 -o mynewtrace.html sched gfx view wm hal video workq Its only giving output for CPU0,…
1
vote
1 answer

Getting BufferQueue state in systrace

I'm trying to get a better understanding of how my application is interacting with the Android's buffering system. Specifically, I want to optimize when my frames are being added to SurfaceFlinger's BufferQueue, in relation to the Vsync signal. I…
Shookit
  • 1,162
  • 2
  • 13
  • 29
1
vote
1 answer

Source crop & Frame values in dumpsys SurfaceFlinger output

I am working on a project on SurfaceFlinger. So, when is the "source-crop" area different from "frame" area(these are the values that appear in the dumpsys SurfaceFlinger output). In other words, when/why are the layer-contents (rendered by the app)…
sg1993
  • 335
  • 2
  • 19
1
vote
0 answers

SIGSEGV at Android boot

I recently installed (with Odin) the latest stock ROM for my SGS2 without wiping data. After that I put a rooted kernel and started using. I found out that: - if I boot the phone, let it get to the lock screen (the first to appear after Samsung…
1
vote
1 answer

how to access StageFright API's to decode h264 video and render from application layer on Android (Gb and ICS)

Is there any sample code which gives me an idea about how to access StageFright API's to decode h264 video as well as Rendering the Decoded data (which will be in YUV420 ) using Surfaceflinger APIs from application layer on Android (GB,ICS).
Prashant
  • 39
  • 1
  • 8
0
votes
0 answers

How can I dump DisplayList

Looking at the source code, after changing DEBUG_DISPLAY_LIST to 1, you can see all DisplayList prints from logcat, but I can’t see any DisplayList prints after modification. Is there any way for me to dump all DisplayLists before…
0
votes
0 answers

How to get frame counts in Android framework native level

I am a rookie to the android framework native development so I was wondering if it is possibile to calculate the frame rate periodically like every two second in android native? If it is possible, how should I do that? I was think that I may need to…
0
votes
1 answer

Does Android 13 remove mEventQueue in SurfaceFlinger.cpp?

how does surfaceflinger in Android 13 handle Refresh and Invalidate events without the mEventQueue
Granth
  • 1
0
votes
0 answers

How to redirect android default image from default display to secondary display?

we are working on android 9, The scenario is we have 2 display in 1st display android image is running but we need to run android default image in second display. How to do it in coding level, can anyone suggest which folder we need to change and…
0
votes
1 answer

Android poor graphics performance

I run Android 9.0 on RCAR-H3 MCU. Sometimes the GUI (all applications) very slow and I saw in the logcat the log like below: W SurfaceFlinger: Timed out waiting for hw vsync; faking it Did the problem come from graphic driver ?
TuanPM
  • 685
  • 8
  • 29
0
votes
0 answers

android 12 porting : Surfaceflinger deadlock

I am trying to port android 12 in my virtual setup. After running for sometime, It goes into some deadlock. On further debugging I found that 'surfaceflinger' process is actually stuck. Using ps -e command I found that It is stuck on…
0
votes
0 answers

Permission Denial: SurfaceFlinger did not recognize request code: 1128 - Unity, Android

I'm working on a 2D Android game in Unity. I have started receiving this message in Logcat - repeating all the time: Error SurfaceFlinger: Permission Denial: SurfaceFlinger did not recognize request code: 1128 Do you have any idea what might be…
zajac.m2
  • 1,218
  • 14
  • 13
0
votes
1 answer

How can I find the pid of Android's SurfaceFlinger service?

I would like to investigate the process ID of said service on Android. I have an Android 9 and access via adb. Can anyone help me? Can I find out the PID using the command top or pidof? Or is there another way to get the PID of the SurfaceFlinger?
Lukas Nothhelfer
  • 820
  • 1
  • 7
  • 23
0
votes
1 answer

Using AHardwareBuffer_fromHardwareBuffer() in Android vendor software?

I am implementing an Android ODM system. I would like to create a VirtualDisplay constructed around an ImageReader so that the process providing the virtual display will receive the series of frames coming out of SurfaceFlinger as HardwareBuffer…
0
votes
1 answer

Is there a way to disable HWC in AOSP and execute everything in GLES?

In Android 8 and above there are two functionalities to handle graphics. SurfaceFlinger uses GLES for some of the layers to render and pass others to handle by Hardware composer. My question is, Is there a way to make the system use only GLES to…
dhan
  • 63
  • 8