about late resume, when PowerManagerService write on to /sys/power/state to call late resume

by Dianne Hackborn » Wed, 21 Apr 2010 06:47:43 GMT


Sponsored Links
 



Sorry, that isn't true.  If the process running the VM has permission to
access the file, then the Java code can access it.  Android doesn't use the
VM to enforce this (or most) kinds of security.

-- 
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, and so won't reply to such e-mails.  All such
questions should be posted on public forums, where I and others can see and
answer them.

--



Other Threads

1. low performance of "audio out" thread in android 1.5

Hi,I meet a problem where "audio out" thread of media playback is of
unexpected high performance (8% of 624MHz) during video+audio playback. It
does not come up for pure audio playback. Anybody met similar situations
here?

I find the problem is because that "audio out" thread is not able to obtain
audio writing buffer timely. I use 8 buffer count in track creation, so dont
really understand why this happens.

At least one thing I find is that there are some changes in the following
function:
status_t AudioTrack::obtainBuffer(Buffer* audioBuffer, int32_t waitCount).
It uses a specific interval of 10 ms (WAIT_PERIOD_MS) as a timing out to
check the availability of audio write buffer. However, in older code base,
which might be a couple of months ago, the timing out is 1 second. And I
changed it back to be 1 second and that big performance cost was gone. So I
guess if it could be due to many times of conditional response function in &
out.

Any one here could shed some light on why there is a change from 1s to 10ms?
And I am not sure if I have used a correct method to solve this problem. So
please correct me if I made any misunderstanding. Thanks.

-- 
Thanks,
Andy

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

2. 1.5: Phone no longer stays awake when "Stay Awake" is enabled under Development settings

It's very strange, but now it looks like I don't have that problem anymore.
 I'm sitting here looking at the phone (which is connected to my computer)
and it has not gone into screen lock - i can still see what's on the screen.
Only difference is I updated to 1.5r2, but I would imagine resolving our
previous issue would take a change to the phone's build?  I'm confused.

-R







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

3. Android FancyGestureDetector

4. G1 camera focal length

5. Remove screen lock like the MENU key do?

6. Speech Recognition Grammar

7. I cant find some jar file....