summaryrefslogtreecommitdiff
path: root/sal/android
AgeCommit message (Collapse)AuthorFilesLines
2014-08-30Start of support for Android on AArch64Tor Lillqvist1-6/+8
The build does not get far before it runs into trouble in the GNU libstdc++ headers, though: android-ndk-r10/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/include/bits/opt_random.h:33:23: fatal error: x86intrin.h: No such file or directory Change-Id: I9d459c64980091ba8bf5b3d631d47342625f6be9
2014-07-01android: LibreOfficeKit needs the path to program/ as the starting point.Jan Holesovsky1-1/+14
Change-Id: I7d4534649361e1bfa2c285e67e6765a4be55ec69
2014-07-01lok bootstrap: nicer function names, clean-upTomaž Vajngerl1-21/+24
+ prevent lokandroid JNI functions to be removed from the library + basic use of lok Office / Document in LibreOfficeMainActivity Change-Id: I7bfe53738cf821b2270ab3e024cc506a7cff42f0
2014-06-30android: Make the extract_files() part of setup / init.Jan Holesovsky2-24/+9
We need to have the files extracted before we attempt to initialize LibreOfficeKit (call libreofficekit_hook), otherwise the .rdb's are not there. Change-Id: Ib49db7e945a709d18a063eb488a27df18fef542b
2014-06-30android: Make use of LibreOfficeKit.Jan Holesovsky2-19/+40
Now the LibreOfficeKit is used to actually attempt to bootstrap LibreOffice; at the moment fails to do that. Change-Id: I91220dbff783213bf7702e7213a5646859db4581
2014-06-30android: Introduce LibreOfficeKit.java to bootstrap using LibreOfficeKit.Jan Holesovsky2-7/+134
Change-Id: I5e1758c15684b06ab6809f62f4da6d5f50c071a9
2014-05-15Resolves fdo#70681: fixincludeguards.pl: all that's leftThomas Arnhold1-3/+3
Change-Id: I3e51a62710bb46c8255fd228d41d9300c90a1fb5 Reviewed-on: https://gerrit.libreoffice.org/9360 Reviewed-by: Thomas Arnhold <thomas@arnhold.org> Tested-by: Thomas Arnhold <thomas@arnhold.org>
2014-04-03Kill superfluous vertical whitespaceTor Lillqvist2-5/+0
Change-Id: I8c37b9ec45836f9c0e2dc0cf232f96f23c7c36d3
2013-10-13lo_dlcall_argc_argv() is unusedTor Lillqvist1-12/+0
Change-Id: I318bb78b148564f64373dcb87bfb458c10f87489
2013-04-22Move to MPLv2 license headers, with ESC decision and author's permission.Michael Meeks1-27/+4
2013-03-27-Werror=unused-macrosStephan Bergmann1-7/+0
Change-Id: I3c64ed78577988767a7da859e68a7f63f890f7dc
2013-02-26createWindowFoo is unusedTor Lillqvist1-14/+0
Change-Id: Ia61efc5d5ee65178fd7d868cb57eed9ba3c0519e
2013-02-23No NativeActivity, so native_app_glue and struct android_app are meaninglessTor Lillqvist2-576/+8
Leave the NativeActivity-related code in androidinst.cxx for reference for now. Change-Id: I760c02ea361361be2d2b69c4cad1e38311f51247
2013-02-21remove un-conditional 20 second sleep on-start for now.Michael Meeks1-0/+2
Change-Id: I37ff2164b1f0fcdc4f3fad41f344b0d73105a2c1
2013-02-21android: finally starting and rendering at least something again.Michael Meeks1-0/+1
Only renders on very-first-start after install (oddly). We initialize vcl in it's own thread to avoid problems. Thanks to tml for fixing a linking issue. Change-Id: I960d11c6098681356fea0634970545aa9af9bacb
2013-02-21Revert "Clean up remains of NativeActivity-based Android app support"Michael Meeks2-8/+575
This reverts commit cecc926070ee3d2ad6296fc5e0cfcde8642bb140. Conflicts: sal/android/lo-bootstrap.c sal/inc/osl/detail/android-bootstrap.h
2012-11-22Add lo_get_app_data_dir()Tor Lillqvist1-0/+7
Change-Id: I13ab54ce5c6d67f1623b7f1923678091660d202d
2012-11-21Clean up remains of NativeActivity-based Android app supportTor Lillqvist2-575/+8
We haven't been able to build NativeActivity-based apps (like the android/qa/sc and anroid/qa/desktop thingies) since we switched to DISABLE_DYNLOADING and a single DSO liblo-native-code.so anyway. No lo_main() any more. <sal/main.h> should not be included ever when compiling for Android of iOS now. Lots of stuff binned from vcl's androidinst.cxx, in the (vain?) hope that it will reduce the amount of never invoked GUI code that gets linked in. Change-Id: I25f584864c40110774c728a23151e089620442d9
2012-11-21re-base on ALv2 code. Includes:Michael Meeks1-10/+10
Patch contributed by Herbert Duerr: #i118662# remove berkeleyDB from module xmlhelp (author=orwitt) http://svn.apache.org/viewvc?view=revision&revision=1213188 #i119141# remove ISCII converter for now http://svn.apache.org/viewvc?view=revision&revision=1306246 make exceptions for cppunittester verbose http://svn.apache.org/viewvc?view=revision&revision=1174831 Patches contributed by Pedro Giffuni: Avoid some uses of non portable #!/bin/bash in shell scripts. http://svn.apache.org/viewvc?view=revision&revision=1235297 Patch contributed by Oliver-Rainer Wittmann 88652: applied patch, remove unicows deps http://svn.apache.org/viewvc?view=revision&revision=1177585 drop OS/2 code, remove in-line assembler ARM atomics, and obsolete armarch header.
2012-11-21We don't need the library search path anymoreTor Lillqvist1-33/+4
As we don't use any dlopen() etc wrappers now with just one single DSO, we have no use for the library search path either. Change-Id: Ifaf11c4785a90fe5c7dafb3310bc7933ea31238c
2012-11-21Enable storing some files gzipped in the .apkTor Lillqvist1-11/+91
We gzip them separately in the Makefile and the gzipped result will be stored without (further) compression in the .apk. Use this to store the ttf font files. Shaves off a bit .apk size. This might seem a bit odd way to do it, why not store these files in the normal Zip compressed fashion in the .apk? It seems hard to tell Ant (based on path, not extension) what files to compress and what not, so we have to keep telling it to not (further) compress any files at all. Change-Id: I0d40d8811e6c9df6b28c285845b1db225507f5d4
2012-10-11Use DISABLE_DYNLOADING on AndroidTor Lillqvist1-724/+36
IN this branch these changes are not conditional. Unclear yet whether this is what we finally will want to use or not. Maybe should make these changes conditional and do this stuff in master instead? Change-Id: I379d570a0e00648d295c675fd90eba6594ba3182
2012-09-21Guard against lack of slashes in dli_fnameTor Lillqvist1-1/+4
Change-Id: Id9c452d9c1034f2e7969a9eae7588f2eb81a8813
2012-09-19dung out no longer needed initUCBHelper methods; thanks to sberg.Michael Meeks1-21/+0
2012-09-05Detach thread before returning from android_main()Tor Lillqvist1-0/+1
Change-Id: I593e94e90971b6be681de48dce74f7df2293c10e
2012-08-16For kicks, enable cross-building for Android on MIPSTor Lillqvist1-3/+3
Change-Id: I6fa2b9a50c525fb2d8666a144409eb9a3ad2698a
2012-08-06android: expose dummy JNI gnustl patching method for x86Michael Meeks1-3/+3
2012-07-20android: x86 porting work.Michael Meeks1-13/+17
2012-06-12Use XToolkit2::createScreenCompatibleDeviceUsingBufferTor Lillqvist1-6/+34
Render directly to a direct ByteBuffer allocated on the Java side. Change-Id: I2d66e4146df77e92260918a78ef22cd9b8c95384
2012-06-05Use 32bpp bitmaps on Android (and iOS)Tor Lillqvist1-0/+23
Modify DocumentLoader correspondingly. Take Android bug 32588 into account. Ideal would be to extend the XDevice stuff, or something, so that one could hand it a pre-allocated RGBA buffer into which the drawing/rendering would go. Then one could get rid of the silly convert-to-BMP phase, which prefixes the bitmap data with BMP and DIB headers (and thus, I guess, has to copy and allocate another copy). Will see. Change-Id: I4597cd933db8faa8105dc8f19638d712d5d2238a
2012-05-31Add a BGR to RGBA twiddling JNI functionTor Lillqvist1-0/+44
Change-Id: Iafa2c1805eea2f521479dc97d5668d82b1c91bef
2012-05-30Add temporary test JNI method createWindowFoo()...Tor Lillqvist1-0/+19
Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191
2012-05-16Create the redirection thread in detached stateTor Lillqvist1-1/+4
Change-Id: I293fa84452f00a41f4a33d4a45eee6d1a32ff761
2012-05-16Add stdout and stderr redirection to the Android logTor Lillqvist1-0/+208
On a (non-rooted) device it is not possible to set the log.redirect-stdio property so that it would be effective (i.e. read by the Zygote process when it starts). Such redirection has to be done in-process. Add a (JNI-callable) method to set it up: Point file descriptors 1 and 2 at pipes that are read by a thread that logs each line through the Android logging API. Code based on Android's own logwrapper.c. Change-Id: Id5308293595096a44a2ffed2dbc0c252be109de7
2012-04-02Refactor where patch_libgnustl_shared() and extract_files() are calledTor Lillqvist1-5/+14
2012-04-02Add a JNI_OnLoad() to store the JavaVM* also from non-NativeActivity appsTor Lillqvist1-5/+25
2012-03-30Use correct JNI name mangling of underscoresTor Lillqvist1-2/+2
2012-03-28Add JNI wrapper for InitUCBHelper() and call itTor Lillqvist1-0/+21
2012-03-22Add JNI wrappers for InitVCL and osl_setCommandArgsTor Lillqvist1-24/+106
2012-02-20Work around the fact that empty directories are not present in an .apkTor Lillqvist1-1/+11
The SDK tooling that constructs .apk packages doesn't put empty directories in them. Which makes sense I guess. "Hidden" files (like .gitignore) are also skipped. So a directory like sc/qa/unit/qpro/indeterminate does not show up at all. So, we must pretend that any opendir() of a directory under /assets succeeds. If the .apk doesn't contain any files in such a directory, treat it as existing but empty. We can't know if the corresponding directory from which /assets was constructed actually does exist but is empty or if it doesn't exist.
2012-01-31Add lo_dlclose()Tor Lillqvist1-0/+13
2012-01-31Log time taken by dlopen()Tor Lillqvist1-1/+9
2012-01-27Drop accidental #includeTor Lillqvist1-1/+1
2012-01-27Tweak the st_mode returned by lo_apk_lstat() to match reality betterTor Lillqvist1-3/+3
2012-01-27android: attach as daemon with given JNI version, and don't exit.Michael Meeks1-5/+13
2012-01-27android: push the redraw-needed command into the app thread & waitMichael Meeks1-0/+24
2012-01-26Use lo-bootstrap as the log tagTor Lillqvist1-1/+1
2012-01-26Call the JavaVM's AttachCurrentThread(), can't hurt...Tor Lillqvist1-0/+2
2012-01-26Move the sleep earlier, and log itTor Lillqvist1-3/+6
2012-01-26android: move lo-bootstrap to osl/detail, Attach threads as createdMichael Meeks1-1/+1