summaryrefslogtreecommitdiff
path: root/android/src (follow)
Commit message (Collapse)AuthorAge
...
* Add widgets to android port.Antoine Cellerier2011-01-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29170 a1c6a512-1295-4272-9138-f99709370657
* Oops, this line wasn't supposed to make it into svn.Antoine Cellerier2011-01-24
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29133 a1c6a512-1295-4272-9138-f99709370657
* Move android notification display format logic to java code (no functional ↵Antoine Cellerier2011-01-24
| | | | | | change, this is used by FS #11902). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29132 a1c6a512-1295-4272-9138-f99709370657
* Android: Rework notification and change icon sizes to better meet the ↵Thomas Martitz2010-12-10
| | | | | | | | | | systems' standard. The notification now announces the new track on track change, and the the area in the scrolled down notification area shows track infos (title, artist, album). Someone should check if it looks good on hdpi and ldpi screens as I can't verify it right now (emulator crashes). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28785 a1c6a512-1295-4272-9138-f99709370657
* Android: Replace the java based tick timer implemented with a not as bloated ↵Thomas Martitz2010-12-10
| | | | | | and more accurate linux hrtimer based one. Further reduces idle cpu usage (0% on my phone but still 1-2% on a Samsung Galaxy S). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28784 a1c6a512-1295-4272-9138-f99709370657
* Fix extracting libmisc.soThomas Martitz2010-12-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28754 a1c6a512-1295-4272-9138-f99709370657
* Android: Make lcd updates synchronous, doesn't make it faster but smoother ↵Thomas Martitz2010-12-02
| | | | | | | | (no updates are skipped) and guaranteed to be glitch free. test_fps can also now report reasonable numbers: ~62 fps for both 1/1 and 1/4 updates (was 300-400 previously). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28728 a1c6a512-1295-4272-9138-f99709370657
* Android: When the backlight goes off, the RockboxFramebuffer/View isn't made ↵Thomas Martitz2010-11-12
| | | | | | invisible. Force that in order to disable screen updates while backlight is off. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28569 a1c6a512-1295-4272-9138-f99709370657
* Android: Change how detecting call state (introduced in r27746) works, from ↵Thomas Martitz2010-11-12
| | | | | | | | | | | | | 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
* Touchscreen: Improved scroll thresholdThomas Martitz2010-11-10
| | | | | | | | | Remove the hardcoded (and way too small) scroll threshold (the distance moved in pixels before we think the users wants to scroll) and replace it with something based on the actual DPI of the screen. On Android we call the API for that, on other touchscreens we reimplemented Android's formula (as of 2.2) and calculate it. Flyspray: 11727 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28548 a1c6a512-1295-4272-9138-f99709370657
* android: don't crash if the user presses HOME while the loading screen is ↵Jonathan Gordon2010-11-07
| | | | | | showing, this shuld also be made canceleable later git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28530 a1c6a512-1295-4272-9138-f99709370657
* Android: replace hardcoded strings with Android strings, allowing translationsMaurus Cuelenaere2010-11-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28518 a1c6a512-1295-4272-9138-f99709370657
* Android: Use our translations for the yes/no/ok/cancel buttons in the yesno ↵Thomas Martitz2010-11-06
| | | | | | | | and keyboard dialog. Second part of FS#11708. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28515 a1c6a512-1295-4272-9138-f99709370657
* Android: only display progress dialog when extraction happensMaurus Cuelenaere2010-11-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28514 a1c6a512-1295-4272-9138-f99709370657
* Android: greatly simplify Android YesNo and KeyboardInput widgetsMaurus Cuelenaere2010-11-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28513 a1c6a512-1295-4272-9138-f99709370657
* Android: Use wakeup objects instead of polling for the dialog results in the ↵Thomas Martitz2010-11-06
| | | | | | | | keyboard and yesno dialog, allowing a lot of code to be removed. First part of FS#11708 git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28512 a1c6a512-1295-4272-9138-f99709370657
* Android: prevent NullPointerException in RockboxServiceMaurus Cuelenaere2010-11-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28511 a1c6a512-1295-4272-9138-f99709370657
* Android: don't display the loading screen etc. when the library is already ↵Maurus Cuelenaere2010-11-05
| | | | | | loaded git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28510 a1c6a512-1295-4272-9138-f99709370657
* Android: clean up extracting a bit + add user-visible error-reportingMaurus Cuelenaere2010-11-05
| | | | | | Also put ResultReceiver on the RockboxActivity UI thread. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28509 a1c6a512-1295-4272-9138-f99709370657
* Android: prevent loading the library twiceMaurus Cuelenaere2010-11-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28508 a1c6a512-1295-4272-9138-f99709370657
* Android port: replace waiting hack in AndroidActivity with a ResultReceiver, ↵Maurus Cuelenaere2010-11-05
| | | | | | added bonus is unzip progress feedback git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28506 a1c6a512-1295-4272-9138-f99709370657
* Android port:Maurus Cuelenaere2010-11-05
| | | | | | | | * decouple RockboxFramebuffer resume/suspend behaviour from RockboxActivity * make RockboxFramebuffer native methods private * refactor attaching the RockboxFramebuffer view to RockboxActivity git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28505 a1c6a512-1295-4272-9138-f99709370657
* tabs -> spaces in the new Yesno java files and remove unused imports.Thomas Martitz2010-10-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28422 a1c6a512-1295-4272-9138-f99709370657
* Add support multimedia keys/buttons to the core, and adapt Rockbox on ↵Thomas Martitz2010-10-31
| | | | | | android for it (multimedia buttons are found on wired headsets and the lock screen in cyanogenmod). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28421 a1c6a512-1295-4272-9138-f99709370657
* Factor out the start/stopForeground and notification icon management into a ↵Thomas Martitz2010-10-31
| | | | | | separate class, don't let RockboxService.java become a beast. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28416 a1c6a512-1295-4272-9138-f99709370657
* Use a native yes/no dialog instead of rockbox's internal one on androidJonathan Gordon2010-10-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28415 a1c6a512-1295-4272-9138-f99709370657
* Remove the use of the instance field in non-anymore-static methodsThomas Martitz2010-10-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28412 a1c6a512-1295-4272-9138-f99709370657
* Pass the framebuffer to the service in the constructor rather than later ↵Thomas Martitz2010-10-31
| | | | | | from native code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28411 a1c6a512-1295-4272-9138-f99709370657
* Clean up r28408 coding style a bit to follow our guidelines with regard toThomas Martitz2010-10-31
| | | | | | brace placement, tabs and 80 char line width. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28410 a1c6a512-1295-4272-9138-f99709370657
* Use a Native keyboard GUI instead of rockbox's internal one on androidJonathan Gordon2010-10-31
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28407 a1c6a512-1295-4272-9138-f99709370657
* Clean up usage of RockboxService. Add a proper way to check if rockbox is ↵Jonathan Gordon2010-10-31
| | | | | | actually running (checking RockboxService.fb != null was very very bad) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28406 a1c6a512-1295-4272-9138-f99709370657
* Android: Delay the progress dialog so it's not shown until after 0.5s are ↵Thomas Martitz2010-10-29
| | | | | | over. This way it shouldn't show in a normal launch, but only if libmisc.so needs unzipping. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28387 a1c6a512-1295-4272-9138-f99709370657
* Initialize (instantiate) RockboxFramebuffer from the C code like with the ↵Thomas Martitz2010-10-29
| | | | | | | | othe java objects. Remove some @Override annotations to make the Java code build with certain javac versions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28386 a1c6a512-1295-4272-9138-f99709370657
* Redo "r28369, Android load progress screen". git+svn lost the actual code ↵Jonathan Gordon2010-10-28
| | | | | | changed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28372 a1c6a512-1295-4272-9138-f99709370657
* Android: Display a "Loading, please wait" dialog while we wait for the ↵Jonathan Gordon2010-10-28
| | | | | | rockbox service to start git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28369 a1c6a512-1295-4272-9138-f99709370657
* Make sure the view always has focus and can be focused in touch mode so the ↵Jonathan Gordon2010-10-24
| | | | | | front buttons work after a touch git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28348 a1c6a512-1295-4272-9138-f99709370657
* Adhere to the 80-char line width limit.Thomas Martitz2010-09-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28067 a1c6a512-1295-4272-9138-f99709370657
* Redo r28059, minBufferSize() turned out a bit more unstable on my Legend. ↵Thomas Martitz2010-09-12
| | | | | | Now use the MAX() of the old buffer and minBufferSize() git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28066 a1c6a512-1295-4272-9138-f99709370657
* Code style changes in the java part (whitespaces and braces) to match ↵Thomas Martitz2010-09-12
| | | | | | Rockbox coding style. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28065 a1c6a512-1295-4272-9138-f99709370657
* The rockbox header got lost at some point.Thomas Martitz2010-09-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28064 a1c6a512-1295-4272-9138-f99709370657
* Android: Use an explicit 8k buffer for unzipping libmisc.so to remove a ↵Thomas Martitz2010-09-12
| | | | | | warning in logcat. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28063 a1c6a512-1295-4272-9138-f99709370657
* Use getMinBufferSize instead of hardcoding a buffer size.Thomas Martitz2010-09-12
| | | | | | Seems to fix problems on Samsung Galaxy S, thanks to István Nagy. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28059 a1c6a512-1295-4272-9138-f99709370657
* Android: don't compile powermgmt-sim.cThomas Martitz2010-09-01
| | | | | | | | | | | Instead implement a bit of battery monitoring. Currently it only fetches the battery level (in %) every 30s, but it could do more like battery status, charger connected, voltage... Theoretically, we could also exit/quit after some time of inactivity too (perhaps not a bad idea since Rockbox puts a slight but still non-zero CPU load even if doing nothing). Ironically, Rockbox is now the only way to get the exact battery level (at least I haven't found anything yet) on my phone :-) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27974 a1c6a512-1295-4272-9138-f99709370657
* Android port: simplify sending touch events from Java->CMaurus Cuelenaere2010-08-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27833 a1c6a512-1295-4272-9138-f99709370657
* Android port: add support for hardware keysMaurus Cuelenaere2010-08-16
| | | | | | | * Forward Java KeyEvents to C layer and translate them to Rockbox BUTTON_*. * Add a basic Android keymap git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27832 a1c6a512-1295-4272-9138-f99709370657
* Android port: use Arrays.fill() instead of a for-loop for clearing a byte arrayMaurus Cuelenaere2010-08-16
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27831 a1c6a512-1295-4272-9138-f99709370657
* A bit of cleanup.Thomas Martitz2010-08-08
| | | | | | | | | Replace // with /* */ style comments Cleanup copy&paste from the doc examples. Don't pretend to handle exception we don't handle actually. cleanup imports git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27754 a1c6a512-1295-4272-9138-f99709370657
* Run the pcm callback from a separate OS thread, that seems to make audio ↵Thomas Martitz2010-08-08
| | | | | | | | | | | | | playback much more reliable. Especially on the broken HTC phones. Now it recovers from stuttering instead of simply stopping playback on my phone. Previously it was run on the main/UI thread (the docs lie in that regard), which I suspect happened to be blocked if it's in the background and tries to get too much CPU. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27753 a1c6a512-1295-4272-9138-f99709370657
* Android port: The RockboxService introduction broke 1.5/1.6 compability. ↵Thomas Martitz2010-08-07
| | | | | | This should bring it back (heaviliy based on the example given in the Android docs). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27748 a1c6a512-1295-4272-9138-f99709370657
* Android port: handle incoming calls.Thomas Martitz2010-08-07
| | | | | | Stop explicitely if a call comes in, and resume playback (if it was playing before the call) upon hang up. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27746 a1c6a512-1295-4272-9138-f99709370657