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
0 answers

Changing SurfaceFlinger source in android

I am studying the graphic system in Android. What I want to do is to change upper and lower side in Android display. It is like: upper : 1 -> 2 lower : 2 -> 1 To do this, I studied surfaceflinger source code. I got noticed that surfaceflinger…
Yeol_
  • 93
  • 1
  • 1
  • 9
0
votes
0 answers

How to kill/start SurfaceFlinger service in Android(ADB Shell, Source)?

Android Developers!! I have a question for SurfaceFlinger. I'm an android TV developer. I'd like to start TV app without Launcher. But the problem is that Launcher is GMS. So I can't modify this. I can't change this scenario to excute Launcher to…
user3796216
  • 29
  • 1
  • 5
0
votes
1 answer

Error when switching from Portrait to Landscape

My Android app is simple. It has only 1 activity. I created two layouts for the same activity: one for the portrait position (inside the res/layout folder) and one for the landscape position (inside the res/layout-land folder). I give the code for…
Jose Lopez Garcia
  • 972
  • 1
  • 9
  • 21
0
votes
1 answer

Android systrace/atrace is missing events, impossible states in traces

I'm currently using atrace on Android to record and analyze the state of the OS during a video workload. Specifically, I'm monitoring the system's BufferQueue sizes throughout the execution. atrace logs the sizes of these buffers as they are…
Shookit
  • 1,162
  • 2
  • 13
  • 29
0
votes
1 answer

apply filters to frame buffer just before it is displayed

I want to apply some sort of image filter to whatever is being displayed on the screen of an android device. The simplest example of the image filter could be a Sepia filter applied to the frame buffer just before it is displayed on the screen. And…
thunderbird
  • 2,715
  • 5
  • 27
  • 51
0
votes
0 answers

viewing which display is used in surfaceflinger through GDB

I have a surfaceflinger core dump and I'm looking for a frame buffer corruption. I'm running android JB 4.3 on Freescale board with IMX6 and have two displays, one internal LVDS and another external monitor (connected through HDMI) I'm trying to…
icarmel
  • 106
  • 1
0
votes
2 answers

Surfaceflinger notification

In the android displaying processes, SurfaceFlinger does an important role in that situation. By the way, are there any methods to notice the SurfaceFlinger starting or stopping at the application level? Or any other displaying processes to…
0
votes
1 answer

Reading contents of android-layer

I'm working on a project that involves reading the content of a layer that is to be composited by the surfaceflinger. I specifically need to check whether the layer to be composited is all 1-bits 0r all 0-bits. This is to apply some optimizations…
sg1993
  • 335
  • 2
  • 19
0
votes
1 answer

how to show an image without surfaceflinger on android

How to draw some stuff before surfacefligner start on android? In this situation, it's some kind of traditional Linux with framebuffer device, so directly access framebuffer should be OK. How about to use HWComposer directly and how about to use…
XYL
  • 108
  • 5
0
votes
1 answer

Learning about SurfaceFlinger shared library

I want to develop a native android application which uses the SurfaceFlinger library from the Android-4.0.4 I want to learn about how the SurfaceFlinger library works in android, it's flow and also to build and run/debug it using the test data. I…
Abilash
  • 104
  • 1
  • 10
0
votes
3 answers

Get Frame rate statistics on android

I am doing a project where I am scaling the frequency of the GPU of a Nexus 7 through the kernel to save power. To measure QoS/performance I am trying to collect data on frames rendered (drawn/dropped). I am hoping to run a few games/videos to see…
Isuru Daulagala
  • 179
  • 1
  • 10
0
votes
1 answer

What language Android Display Server SurfaceFlinger written in?

What language Android Display Server SurfaceFlinger written in? Java or C. What are some major differences between SurfaceFlinger and X11 or Wayland in terms of drivers, what language are they written in?
Asad Hasan
  • 301
  • 4
  • 9
0
votes
1 answer

What does "SurfaceView" represent in systrace result?

When investigating an game play stuttering issue, I found that bewteen eglSwapBuffer() from the game and postFramebuffer() in surfaceflinger, there is always a delay in "SurfaceView" lasts from 0.5ms to 10ms which seems pretty random and irrelevant…
xiay
  • 855
  • 8
  • 19
0
votes
1 answer

Building SurfaceFlinger from source in Android NDK and using tests directory contents

I am new to Android NDK programming. My question is how to build the SurfaceFlinger library (.so) in Android NDK? I have downloaded the required sufaceflinger source files from github and tried compiling them using ndk-build command, and it asks…
Abilash
  • 104
  • 1
  • 10
0
votes
0 answers

What is the functionality of Window in Android Graphics?

While going throigh the material available online on Android Graphics, I have few queries related to Android Graphics: What is Window ? how it is related to View ? Does every application have its own Window ? Can one application have more than one…
Rahul
  • 1,607
  • 3
  • 23
  • 41