Commit graph

27 commits

Author SHA1 Message Date
Tor Lillqvist
3ea3c6afa2 Use XToolkit2::createScreenCompatibleDeviceUsingBuffer
Render directly to a direct ByteBuffer allocated on the Java side.

Change-Id: I2d66e4146df77e92260918a78ef22cd9b8c95384
2012-06-12 13:50:50 +03:00
Tor Lillqvist
8ae077379e Use 32bpp bitmaps on Android (and iOS)
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-06-05 17:17:41 +03:00
Tor Lillqvist
9776138e97 Add a BGR to RGBA twiddling JNI function
Change-Id: Iafa2c1805eea2f521479dc97d5668d82b1c91bef
2012-05-31 16:20:53 +03:00
Tor Lillqvist
c9f5b8a334 Add temporary test JNI method createWindowFoo()...
Change-Id: I8f99399faa3b0762bdea2aac09f1b849639cd191
2012-05-30 00:02:18 +03:00
Tor Lillqvist
7309b1c1dc Add an "extra" called lo-extra-libs for a list of libs to load early
Change-Id: I41900eca9a46acbd2f1dfac98fcfc73a62acc150
2012-05-30 00:02:16 +03:00
Michael Meeks
1a9be1b62e android: disable document recovery, it doesn't demo so well. 2012-05-28 14:50:50 +01:00
Michael Meeks
e363e668c7 android: make launcher function as expected - starts writer.
Remove now redundant FONTCONFIG cmdline arguments, and add fallbacks
for not having cmdline arguments in the intent when launching.
2012-05-28 14:50:50 +01:00
Michael Meeks
1bb9a60a96 android: un-break env. var parsing (sorry) 2012-05-23 15:58:49 +01:00
Michael Meeks
b36ff96d1d android: make launcher function as expected - starts writer.
Remove now redundant FONTCONFIG cmdline arguments, and add fallbacks
for not having cmdline arguments in the intent when launching.
2012-05-23 15:55:55 +01:00
Tor Lillqvist
40fab3bd05 Don't create the local.properties files in the source tree from configure
Change-Id: Ic87be0146360c5e32f1f12f255c897e051c9a50c
2012-05-16 18:59:28 +03:00
Tor Lillqvist
182c1e4f99 Call lo-bootstrap's redirect_stdio
Change-Id: I45732ac81d00837ce517ed5c527c8c767e690abf
2012-05-16 10:12:25 +03:00
Tor Lillqvist
cafcd85774 Set TMPDIR also in non-NativeActivity apps 2012-04-05 20:46:22 +03:00
Tor Lillqvist
6b6ca3d116 Automate setting of FONTCONFIG_FILE 2012-04-02 12:39:53 +03:00
Tor Lillqvist
a9a50cd9ff Refactor where patch_libgnustl_shared() and extract_files() are called 2012-04-02 12:39:52 +03:00
Tor Lillqvist
6db50818c1 Add JNI wrapper for InitUCBHelper() and call it 2012-03-28 16:57:59 +03:00
Tor Lillqvist
5814229948 Add JNI wrappers for InitVCL and osl_setCommandArgs 2012-03-22 22:49:48 +02:00
Tor Lillqvist
2cbb41b3ab Edit a comment a bit 2012-03-22 22:49:47 +02:00
Tor Lillqvist
10d74d9afe Need also android/Bootstrap/local.properties 2012-02-03 12:47:30 +02:00
Tor Lillqvist
73a47ed375 Set TMPDIR for osl_getTempDirURL() 2012-01-31 14:06:37 +02:00
Tor Lillqvist
427edef2c7 putenv() does seem to be process-wide 2012-01-31 14:05:39 +02:00
Tor Lillqvist
420f3f8a5c Add setting environment variables 2012-01-12 01:28:03 +02:00
Tor Lillqvist
3267d34fb9 Need to trim trailing newline from the indirect command line string 2012-01-11 14:27:44 +02:00
Tor Lillqvist
11c9125c28 Work around http://code.google.com/p/android/issues/detail?id=23351 2012-01-11 13:48:55 +02:00
Tor Lillqvist
6aac868d65 Add comment about how to use the lo-strace "extra" (option) 2011-12-22 15:45:33 +02:00
Tor Lillqvist
e730da8be7 Turn Bootstrap into a "library" project from Ant's point of view 2011-12-14 18:04:50 +02:00
Tor Lillqvist
00373d2097 Move .gitignore one level up 2011-12-12 22:15:01 +02:00
Tor Lillqvist
5510127e89 Android code refactorig and hacking
Sorry for the large unstructured commit. But hey, the Android code is
experimental so far.

Extract the native lo-bootstrap code into a fairly normal library
built in sal. (Previously it was the JNI part of the "Bootstrap" app.)
Just linkink normally to liblo-bootstrap from C++ code that uses it
works fine, no need to do a dlsym lookup.

Bootstrap is still a subclass of NativeActivity and can thus still be
used as an "app" (to start unit tests, or whatever), but can also be
used from some other app's Java code to just get access to the
lo-bootstrap native methods.

Introduce a new top-level "module", android, for Bootstrap and the
experiments with DocumentLoader.

Note that the experimental DocumentLoader app still crashes. It can't
create the com.sun.star.frame.Desktop instance.

I spent lots of time debugging in the painfully inadequate
ndk-gdb. (Even the newer gdb build from the "mingw-and-ndk" project is
quite crappy in many ways.) I should really experiment with
corresponding code on a normal platform first before even trying on
Android. Basically, I think that if I just can get the concept of Java
code that instantiates and uses LO components *in-process* working on
a normal desktop platform, it should work on Android, too.
2011-11-30 21:52:52 +02:00