1
0
Fork 0
forked from len0rd/rockbox
foxbox/apps/gui
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
..
bitmap Use buflib for all skin engine allocations. 2011-11-15 14:11:08 +00:00
charcell Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
skin_engine Rework powermgmt to enable code re-use on appliation and sims. 2012-01-03 23:44:38 +00:00
backdrop.c really the last of the red this time 2010-01-29 08:39:08 +00:00
backdrop.h fix the last of the red... note to self, fix backdrop.h! 2010-01-29 08:25:24 +00:00
buttonbar.c Missed two spots. 2011-10-15 19:47:59 +00:00
buttonbar.h Updated our source code header to explicitly mention that we are GPL v2 or 2008-06-28 18:10:04 +00:00
color_picker.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
color_picker.h color_picker: a bit of rework for color_picker. 2010-02-11 14:18:31 +00:00
icon.c local variable app/gui/icon.c/iconsets can be made static 2011-12-20 21:05:56 +00:00
icon.h Commit FS#12321 - Touchscreen: List line padding, to more easily select lines 2011-10-17 17:38:10 +00:00
list.c FS#12378 : Remove various unused code, and comment out some unused code and data for reference or future use. 2011-12-14 21:45:25 +00:00
list.h FS#12378 : Remove various unused code, and comment out some unused code and data for reference or future use. 2011-12-14 21:45:25 +00:00
option_select.c Fix FS#12262 - Volume (and all sound settings and anything using the "table" setting type) don't get applied correctly when being changed from the quickscreen or by using the %T(..., setting_inc/dec) skin tag 2011-09-07 13:33:05 +00:00
option_select.h invert the quickscreen setting direction on wheel targets for settings which are number lists so pressing up makes it bigger (i.e contrast). fixes http://forums.rockbox.org/index.php/topic,27778.0.html 2011-04-24 07:04:52 +00:00
pitchscreen.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
pitchscreen.h Fix red in bootloaders 2009-07-11 17:16:23 +00:00
quickscreen.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
quickscreen.h Quickscreen: 4th item 2009-08-29 14:42:03 +00:00
scrollbar.c Add new lcd_bmp and lcd_bmp_part APIs. 2011-11-08 21:34:46 +00:00
scrollbar.h New option for the bar tags: 'backdrop, <label>' will draw another image under the progressbar (only works with image and slider bars) 2011-01-24 09:04:28 +00:00
splash.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
splash.h Move some gcc extensions to new gcc_extensions.h header 2010-07-25 14:44:29 +00:00
statusbar-skinned.c skinengine: Rework skin loading so skins can be un/loaded individually. This also means that loading a .cfg which doesnt change themes shouldnt have them reloaded 2011-11-21 10:02:23 +00:00
statusbar-skinned.h Use buflib for all skin engine allocations. 2011-11-15 14:11:08 +00:00
statusbar.c Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. 2011-10-15 19:35:02 +00:00
statusbar.h Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR. 2011-12-19 20:12:52 +00:00
usb_screen.c Fix FS#12423 : Rockbox access to /.rockbox/fonts after usb_enable(true). This fixes entry into USB mode on the Archos Recorder V2 and possibly also other targets using a USB to IDE bridge chip. Fred Bauer found this removes the need for a workaround in glyph_cache_save(). I'm including his patch which removes the workaround. 2011-12-06 00:58:01 +00:00
usb_screen.h Fix warning on USB_NONE targets 2010-10-14 12:29:19 +00:00
viewport.c Get rid of a really annoying #ifdef line to check if backdrop support should be enabled 2011-11-19 13:46:25 +00:00
viewport.h Commit FS#12321 - Touchscreen: List line padding, to more easily select lines 2011-10-17 17:38:10 +00:00
wps.c Fix touchscreens so entering the WPS with a skin with no touchregions reverts to grid mode (caused by r30991) 2011-12-06 10:30:13 +00:00
wps.h Add more INIT_ATTR and add config.h includes to header files with INIT_ATTR. 2011-12-19 20:12:52 +00:00
yesno.c protect the yes/no screen from extra keypresses (which can happen if you display 2 yes/no screens too quickly) 2011-12-28 05:55:05 +00:00
yesno.h Pull yesno_pop out of the radio code as it is a nice simple resuasble yesno api worth reusing 2011-07-21 06:40:01 +00:00