summaryrefslogtreecommitdiffstats
path: root/android
AgeCommit message (Collapse)AuthorFilesLines
2010-11-12Android: Change how detecting call state (introduced in r27746) works, from ↵Thomas Martitz3-32/+103
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
2010-11-10Touchscreen: Improved scroll thresholdThomas Martitz1-0/+19
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
2010-11-07android: don't crash if the user presses HOME while the loading screen is ↵Jonathan Gordon1-3/+6
showing, this shuld also be made canceleable later git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28530 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: add a script which allows headless installation of the Android ↵Maurus Cuelenaere2-1/+65
tools required for compilation git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28525 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: replace hardcoded strings with Android strings, allowing translationsMaurus Cuelenaere3-3/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28518 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: make R.java depend on android/res dirMaurus Cuelenaere1-1/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28517 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: Use our translations for the yes/no/ok/cancel buttons in the yesno ↵Thomas Martitz2-8/+6
and keyboard dialog. Second part of FS#11708. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28515 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: only display progress dialog when extraction happensMaurus Cuelenaere1-17/+19
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28514 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: greatly simplify Android YesNo and KeyboardInput widgetsMaurus Cuelenaere7-144/+69
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28513 a1c6a512-1295-4272-9138-f99709370657
2010-11-06Android: Use wakeup objects instead of polling for the dialog results in the ↵Thomas Martitz2-39/+10
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
2010-11-05Android: prevent NullPointerException in RockboxServiceMaurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28511 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: don't display the loading screen etc. when the library is already ↵Maurus Cuelenaere1-0/+4
loaded git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28510 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: clean up extracting a bit + add user-visible error-reportingMaurus Cuelenaere2-87/+81
Also put ResultReceiver on the RockboxActivity UI thread. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28509 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: prevent loading the library twiceMaurus Cuelenaere1-1/+4
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28508 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: add uninstall option to installApk.sh scriptMaurus Cuelenaere1-0/+3
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28507 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port: replace waiting hack in AndroidActivity with a ResultReceiver, ↵Maurus Cuelenaere2-55/+58
added bonus is unzip progress feedback git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28506 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port:Maurus Cuelenaere2-43/+41
* 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
2010-11-05A bit of indentation/whitespace changes in the xml files.Thomas Martitz4-33/+48
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28504 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Fix a small dependency issue, the directories need to be created first.Thomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28503 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android: Show the Rockbox in the background in the keyboard/yesno dialogs.Thomas Martitz1-2/+2
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28502 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port: add a CLI APK install+launch script, useful for quick installationMaurus Cuelenaere1-0/+5
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28491 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port: remove obsoleted build.sh shell scriptMaurus Cuelenaere1-63/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28490 a1c6a512-1295-4272-9138-f99709370657
2010-11-05Android port: $(TEMP_APK) depends on $(AP_), so add it to its dependenciesMaurus Cuelenaere1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28489 a1c6a512-1295-4272-9138-f99709370657
2010-10-31tabs -> spaces in the new Yesno java files and remove unused imports.Thomas Martitz2-16/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28422 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Add support multimedia keys/buttons to the core, and adapt Rockbox on ↵Thomas Martitz4-0/+188
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
2010-10-31Factor out the start/stopForeground and notification icon management into a ↵Thomas Martitz5-129/+176
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
2010-10-31Use a native yes/no dialog instead of rockbox's internal one on androidJonathan Gordon5-1/+115
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28415 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Remove the use of the instance field in non-anymore-static methodsThomas Martitz1-19/+15
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28412 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Pass the framebuffer to the service in the constructor rather than later ↵Thomas Martitz1-1/+2
from native code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28411 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Clean up r28408 coding style a bit to follow our guidelines with regard toThomas Martitz4-57/+59
brace placement, tabs and 80 char line width. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28410 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Use a Native keyboard GUI instead of rockbox's internal one on androidJonathan Gordon9-4/+171
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28407 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Clean up usage of RockboxService. Add a proper way to check if rockbox is ↵Jonathan Gordon3-27/+68
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
2010-10-30Android: Nicer launcher and statusbar icons made by Dustin Skoracki (taken ↵Thomas Martitz6-0/+0
from FS#11234). He also made some with white border, but I like this ones more. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28400 a1c6a512-1295-4272-9138-f99709370657
2010-10-29Android: Delay the progress dialog so it's not shown until after 0.5s are ↵Thomas Martitz1-14/+30
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
2010-10-29Initialize (instantiate) RockboxFramebuffer from the C code like with the ↵Thomas Martitz4-20/+14
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
2010-10-28Redo "r28369, Android load progress screen". git+svn lost the actual code ↵Jonathan Gordon2-1/+7
changed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28372 a1c6a512-1295-4272-9138-f99709370657
2010-10-28Android: Display a "Loading, please wait" dialog while we wait for the ↵Jonathan Gordon2-64/+68
rockbox service to start git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28369 a1c6a512-1295-4272-9138-f99709370657
2010-10-24Make sure the view always has focus and can be focused in touch mode so the ↵Jonathan Gordon1-1/+9
front buttons work after a touch git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28348 a1c6a512-1295-4272-9138-f99709370657
2010-09-24Minor build script tweaks to make android auto-buildable.Björn Stenberg2-17/+14
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28156 a1c6a512-1295-4272-9138-f99709370657
2010-09-22Removed a bit too much, libmisc.so shall still depend on rockbox.zipThomas Martitz1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28142 a1c6a512-1295-4272-9138-f99709370657
2010-09-22Android port: Remove the "make zip" dependency of make apk again (see r28068).Thomas Martitz2-4/+9
It was reintroduced in r28138. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28141 a1c6a512-1295-4272-9138-f99709370657
2010-09-21Polished the makefile a bit.Björn Stenberg2-24/+25
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28138 a1c6a512-1295-4272-9138-f99709370657
2010-09-20Stricter subst to avoid erroneous substitution.Björn Stenberg1-1/+1
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28130 a1c6a512-1295-4272-9138-f99709370657
2010-09-20Added some missing build information.Björn Stenberg1-14/+8
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28129 a1c6a512-1295-4272-9138-f99709370657
2010-09-20Remove R.java from version control, it's auto-generated.Thomas Martitz1-24/+0
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28127 a1c6a512-1295-4272-9138-f99709370657
2010-09-12The zip target isn't a good prerequisite for another make target so remove it.Thomas Martitz1-7/+8
zip has no prerequisites, so it's always made, which leads to targets depending on zip to be also always made. In the end that means that libmisc.so is always unzipped even if it didn't change. OTOH it means that make zip is now needed explicitly; so it now goes like 'make && make zip && make apk git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28068 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Adhere to the 80-char line width limit.Thomas Martitz3-31/+54
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28067 a1c6a512-1295-4272-9138-f99709370657
2010-09-12Redo r28059, minBufferSize() turned out a bit more unstable on my Legend. ↵Thomas Martitz1-1/+3
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
2010-09-12Code style changes in the java part (whitespaces and braces) to match ↵Thomas Martitz5-537/+558
Rockbox coding style. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28065 a1c6a512-1295-4272-9138-f99709370657
2010-09-12The rockbox header got lost at some point.Thomas Martitz1-0/+21
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28064 a1c6a512-1295-4272-9138-f99709370657