Android: Change how detecting call state (introduced in r27746) works, from polling...
commit9792adb39c3b80df6bab7962d16aa7374071de11
authorkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Fri, 12 Nov 2010 21:04:13 +0000 (12 21:04 +0000)
committerkugel <kugel@a1c6a512-1295-4272-9138-f99709370657>
Fri, 12 Nov 2010 21:04:13 +0000 (12 21:04 +0000)
tree77c555919d5c08f9a54f2b28cababe1d2d207f7e
parenteb9ab5ab01125a85232bc4f4062bdf8b1d806e11
Android: Change how detecting call state (introduced in r27746) works, from polling to event based.

* For some reason, the polling methid is much more inefficient than I thought. According to htop it caused up to 15% CPU load on some phones (e.g. Galaxy S).
The event based causes no CPU load.
Rockbox' idle CPU load is now back to 0%, while it was previously dominated by polling the call state.

* Also stop on outgoing calls (no need to explicitely pause for making a call anymore).
* Factor out the detection mechanism to separate files.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28564 a1c6a512-1295-4272-9138-f99709370657
android/AndroidManifest.xml
android/src/org/rockbox/RockboxTelephony.java [new file with mode: 0644]
android/src/org/rockbox/RockboxTimer.java
firmware/SOURCES
firmware/target/hosted/android/kernel-android.c
firmware/target/hosted/android/system-android.c
firmware/target/hosted/android/telephony-android.c [new file with mode: 0644]