android window system

210 views
Skip to first unread message

Experand

unread,
Mar 14, 2011, 2:00:29 AM3/14/11
to android-...@googlegroups.com
Hi,

I have a question about android window system. I found two useful links :
and

From what I understood, the android application contacts the window manager to draw surfaces. Window manager creates a connection with the surface flinger to position the surface or resize it etc. And then, application writes the graphics data onto the frame buffer.

What I am looking for is the API between a client of android window system and the server of the android window system. Should I then be looking at the interface between the window manager and the surface flinger? If so, does anybody know the corresponding files? I thought that this API consist only of the public methods of the class SurfaceFlinger in file SurfaceFlinger.cpp. (methods such as getCblk(), openGlobalTransaction(), addLayer etc.) Is that right? The number of these methods seems to be very small.. 

The reason I am looking at this API is that I wanted to know if there is any apparent similarity between the methods of X window system versus the methods of android window system. i.e. are there at least few methods that are functionally equivalent in both the windowing systems? and thus, could we find a correspondence between such functionally equivalent methods?

Thanks for your time.

Amruta

Experand

unread,
Mar 20, 2011, 4:03:26 PM3/20/11
to android-...@googlegroups.com
OK, after further looking into the code, I think that the API of android window system consists of methods of the class SurfaceFlinger as well as methods of the classes that are declared as it's "friend" classes such as Layer, LayerBase etc. Is that correct?
Reply all
Reply to author
Forward
0 new messages