1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/target/hosted/android
Thomas Martitz c1bd9b0361 Rework powermgmt to enable code re-use on appliation and sims.
* Introduce CONFIG_BATTERY_MEASURE define, to allow targets (application)
to break powermgmt.c's assumption about the ability to read battery voltage.
There's now additionally percentage (android) and remaining time measure
(maemo). No measure at all also works (sdl app). If voltage can't be measured,
then battery_level() is king and it'll be used for power_history and runtime
estimation.

* Implement target's API in the simulator, i.e. _battery_voltage(), so it
doesn't need to implement it's own powermgmt.c and other stubs. Now
the sim behaves much more like a native target, although it still
changes the simulated battery voltage quickly,

* Other changes include include renaming battery_adc_voltage() to
_battery_voltage(), for consistency with the new target functions and
making some of the apps code aware that voltage and runtime estimation
is not always available.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31548 a1c6a512-1295-4272-9138-f99709370657
2012-01-03 23:44:38 +00:00
..
app usb-target.h: remove 2011-12-31 18:44:55 +00:00
button-android.c Android: Fix crash on start up. 2011-07-22 06:50:41 +00:00
buttonmap.h Rockbox as an application: Commit current Android port progress. 2010-08-02 20:34:47 +00:00
debug-android.c Android: Minor changes in ldebugf. 2011-08-14 13:58:39 +00:00
dir-target.h Get rid of get_user_file_path and do the path handling in wrappers for open() and friends. 2010-12-06 22:26:31 +00:00
fs-android.c RaaA: Improve tagcache search to make the database built. 2010-12-23 19:02:18 +00:00
kernel-android.c Android: Change headphone detection to call into native. 2011-07-19 23:44:56 +00:00
lc-android.c Extend lc_open() to also being able to load overlay plugins. 2010-09-09 16:17:21 +00:00
lcd-android.c Android: Partly revert r29569 and only call the new getJavaEnvironment() when needed. 2011-03-16 14:33:55 +00:00
pcm-android.c Shuffle some functions around so that interfacing with playback.c in particular isn't required. Though playback does finish the audio init, pcm doesn't care who does it. 2011-09-01 12:15:43 +00:00
powermgmt-android.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
system-android.c Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
system-target.h Commit to certain names for cache coherency APIs and discard the aliases. 2011-12-17 07:27:24 +00:00
telephony-android.c Android: Refactor some of the glue code. 2011-07-18 21:02:47 +00:00