"system_server" during camera preview

by Andy Quan » Sat, 07 Mar 2009 15:42:00 GMT


Sponsored Links
 On real hardware, I happened to find that CPU usage is really high with
"system_server" using around 300MHz when I opened "camera" application in
the launcher panel for preview at 30 fps only. Anybody knows what that
system_server is for during camera preview? I dont find that "system_server"
roars in other applications like media player. Some materials mention that
it has something to do with Java. Could anybody help on this?

-- 
Thanks,
Andy

--~--~---------~--~----~------------~-------~--~----~



"system_server" during camera preview

by Dave Sparks » Sat, 07 Mar 2009 18:08:35 GMT


 Hmm... could that be SurfaceFlinger? I thought it ran in its own
process. If so, it seems likely that you are using the software
blitter instead of a hardware blitter. You didnt mention what hardware
you are using.



--~--~---------~--~----~------------~-------~--~----~


Sponsored Links


"system_server" during camera preview

by Andy Quan » Sun, 08 Mar 2009 01:04:28 GMT


 Dave,
Do you mean that "surfaceflinger" is shown as "system_server" in process
list?

Yes, you are right. I am using software YUV->RGB before calling postbuffer.
I just thought that system_server was only limited to Java level and low
level implementation was counted into processes like "mediaserver" or
"surfaceflinger" :). Could you give some hints on this? Thanks.







-- 
Thanks,
Andy

--~--~---------~--~----~------------~-------~--~----~



"system_server" during camera preview

by Andy Quan » Sun, 08 Mar 2009 01:07:16 GMT


 BTW, it is armv5 compatible processor running at 624MHz with 32k L1 I$/D$
and 256k L2$. The LCD is 320x240. Thanks.









-- 
Thanks,
Andy

--~--~---------~--~----~------------~-------~--~----~



"system_server" during camera preview

by Dianne Hackborn » Mon, 09 Mar 2009 23:56:36 GMT


 SurfaceFlinger runs in the system_server process.








-- 
Dianne Hackborn
Android framework engineer
hack...@android.com

Note: please don't send private questions to me, as I don't have time to
provide private support.  All such questions should be posted on public
forums, where I and others can see and answer them.

--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. android and restful api

Hi there !,

I am a very new to android application development and need to solve
this problem.

In my activity window, I would like to provide a button which makes a
restful api call. That call returns an xml response. My server will
wait until it gets back that response. Once it get backs response. It
opens another activity window and parses the xml results and display
them accordingly.

How is this possible ? . To break down my questions again

How to hit a button which in return does restful API call ?

How to be remain in the wait state until I get the response back ?.
Whats normally done ?. What to do during that wait ?

How to open a new activity window and parse the xml file and display
the results accordingly ?

--RJ





-- 

2. how to parse this string using json

String s  = [{"id": 1, "fields": {"Name": "hello1", "Age": "10" }},
{"id": 2, "model": "fields": {"Name": "hello2", "Age": "12"}}]

I get error when I do this

jObject = new JSONObject(s);


--RJ

-- 

3. Problem Solved Upgrade AmonRa di Dream Re

4. Android laper

5. Oracle Android App Store

6. bug with notifyDataSetChanged() in ArrayAdapter ?

7. Problem With Motorola Droid