803 Commits

Author SHA1 Message Date
Jan Holesovsky
e2ca2f842b android: i18nlangtag is too verbose, and we don't need the info.
Change-Id: Ifc59351913fd2194b23511330d1a90f40d3e158e
2014-07-01 10:32:04 +02:00
Jan Holesovsky
cba65fe064 android: Attempt to load the test file we have in the .apk.
Change-Id: Ib438e8d7de90c202a3be6ad01bd8b7a8341527c1
2014-07-01 09:59:24 +02:00
Tomaž Vajngerl
b046b687f9 lok bootstrap: nicer function names, clean-up
+ prevent lokandroid JNI functions to be removed from the library
+ basic use of lok Office / Document in LibreOfficeMainActivity

Change-Id: I7bfe53738cf821b2270ab3e024cc506a7cff42f0
2014-07-01 09:12:21 +02:00
Tomaž Vajngerl
ca61fdcac9 libreofficekit JNI for Android
Change-Id: Ia905c20fb4ee9b126d65fd3c8e3c1f54649abe1a
2014-07-01 09:12:14 +02:00
Tomaž Vajngerl
3799a6f3a8 LODroid: Make SubTile hold the buffer for a tile
Previously there was only one buffer which contained all the
tiles currently visible. This is inflexible - we need to control
each tile individually. This commit introduces SubTile object,
which is the holder of the buffer for each individual tile.

Change-Id: I511f13dc7fad7c3c04f3d7f23b3abc97a3cc2268
2014-07-01 09:12:08 +02:00
Tomaž Vajngerl
7164161de9 LODroid: remove hasDirectTexture for now
Change-Id: Iaf4ce2df890c0f61c9466a8ea1ec35731d3eed44
2014-07-01 09:12:01 +02:00
Tomaž Vajngerl
2820ecb718 LODroid: Use tile images in LOAndroid2
Change-Id: Ic274d19467b8d0915ae438a0651f19da14392697
2014-07-01 09:11:53 +02:00
Tomaž Vajngerl
2c3d341f81 LODroid: Don't ignore size change event, clean-up GeckoLayerClient
Change-Id: I615a762334434068681ecb1cc7ae6890319bd7ec
2014-07-01 09:11:44 +02:00
Tomaž Vajngerl
0d55277947 LODroid: cleanup
Change-Id: I3c2b156c6ed5c6a27ac845481150150812eef1ec
2014-07-01 09:11:33 +02:00
Jan Holesovsky
1e9b5f17f8 android: Add missing mkdir.
Change-Id: I9c06a1a2efcb3c436287a3aac15d976fcafbd19d
2014-06-30 19:35:51 +02:00
Jan Holesovsky
cd77f78755 android: Enable debugging messages as the first thing we do.
Additionally log what we are trying to open - very useful for debugging
bootstrap problems ;-)

Change-Id: I942b144d97a57cbcb709b2d67029bfa09b339be2
2014-06-30 14:48:04 +02:00
Jan Holesovsky
d2eeb05da6 android: Correct location and name of sofficerc.
Without that, URE_BOOTSTRAP does not get set up, and we are unable to
bootstrap.

Change-Id: I7727e2a9dcbb958e006fadf6243e1ca343633f7e
2014-06-30 14:48:04 +02:00
Jan Holesovsky
f918192ece android: Relink liblo-native-code.so when a library changes.
This is so that calls like 'make configmgr android' produce an .apk with
updated code changes from configmgr as expected.

Change-Id: I5f576b01269cf3f559a8a6389af298a3758e7309
2014-06-30 14:48:04 +02:00
Jan Holesovsky
faeccde59c android: Make LOAndroid3 debuggable.
Change-Id: I0fcfd784d6705cfab4790e1023851d5c537a482f
2014-06-30 14:48:03 +02:00
Jan Holesovsky
d5d480dcce android: copy-stuff rule is copy'n'pasted around, consolidate it.
Change-Id: I0a746904fa363f987e96165d8def326eb87dcf8f
2014-06-30 14:48:03 +02:00
Jan Holesovsky
c72d300ba0 android: Make the extract_files() part of setup / init.
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-30 14:48:03 +02:00
Jan Holesovsky
db89e5ff81 android: Make use of LibreOfficeKit.
Now the LibreOfficeKit is used to actually attempt to bootstrap LibreOffice;
at the moment fails to do that.

Change-Id: I91220dbff783213bf7702e7213a5646859db4581
2014-06-30 14:48:03 +02:00
Jan Holesovsky
74ab9835f9 android: Introduce LibreOfficeKit.java to bootstrap using LibreOfficeKit.
Change-Id: I5e1758c15684b06ab6809f62f4da6d5f50c071a9
2014-06-30 14:48:03 +02:00
Tomaž Vajngerl
a6ecd8b2a9 LOAndroid3: ant/make for building, Bootstrap project
LOAndroid3 is based of LibreOffice4Android project which uses
ant/make for building. By using LibreOffice4Android as the base,
the project creates a APK archive which has all needed files
to start LibreOffice in Android environment.

Change-Id: I697d5f727bdaf93e774144ad597d7081d2609908
2014-06-30 14:48:03 +02:00
Tomaž Vajngerl
18d2afbf9a LODroid2: GLES2 fixes, code cleanup
Change-Id: I368f8caaf0433387a330a63182aab292defef0ca
2014-06-30 14:48:02 +02:00
Tomaž Vajngerl
7d8d1fe4aa LODroid2: Remove sdk v7 and v4 support libraries
Change-Id: I41a30d44c44cb439dc2e60e212eea18b00f316dd
2014-06-30 14:48:02 +02:00
Tomaž Vajngerl
1c7bcda552 LOAndroid2: use GLES2, latest GeckoSoftwareLayerClient
Additionally add GeckoGLLayerClient as an alternative LayerClient

Change-Id: I250b5d806f520231ad9a9b84ef8387e8830bb364
2014-06-30 14:48:02 +02:00
Tomaž Vajngerl
ae14df5b31 LOAndroid2: initial import of older Fennec version with LO changes
rebase on mozilla-central tag RELEASE_BASE_20120531
add LOEvent, LOThread, some LO icons

Change-Id: I0c3aba6d9715c60e32d8daa2002b4961eef476f0
2014-06-30 14:48:02 +02:00
Tomaž Vajngerl
8339f8abc5 Initial commit of Android Viewer project
Project was created with Android Studio. Currently includes the
base of Fennec's LayerView and dependencies.

Change-Id: I5c3ae253d153f659eb92bd0ca17ef95372b71b23
2014-06-30 14:48:01 +02:00
Jan Holesovsky
71e176c020 android: Reformat for readibility.
Change-Id: Ib33d3ee0c78302b858b7c814e486c417276b7e7d
2014-06-30 14:48:01 +02:00
Jan Holesovsky
cfd74ae2b9 android: Support for Android SDK Tools 23 + note about their brokeness.
Change-Id: I6b1636703044f03c5daa4c3ac1630f23c5c3c2e5
2014-06-30 14:48:01 +02:00
Jan Holesovsky
e3d91e9148 android: Allow verbose output from the ant build.
Change-Id: I1086a7ab6bc7913c9c9f2492d07915039007e613
2014-06-30 14:48:01 +02:00
Noel Grandin
4f9b21248f simplify ternary conditions "xxx ? yyy : false"
Look for code like:
   xxx ? yyy : false;
Which can be simplified to:
   xxx && yyy

Change-Id: Ia33c0e452aa28af3f0658a5382895aaad0246b4d
2014-05-05 12:47:48 +02:00
Andras Timar
c79a5f87b1 remove executable bit
Change-Id: I91f6e861f6d0dbea1b57ac73857e0c706b27f681
2014-04-17 15:11:14 +02:00
Tor Lillqvist
71e3756778 Need libGLESv2 now then
Change-Id: I87e91202a6005ad0bec3569b2619a5b191991502
2014-04-15 08:39:13 +03:00
Tor Lillqvist
c927ceb96c Switch to android-15 here, too
Change-Id: If7b66e60fcf8af97a69e20af9c77793a163c4c17
2014-03-28 12:44:57 +02:00
Matúš Kukan
18ea4fea4f Add components needed for editing a document in android/desktop app.
As new 'edit' group because they are not needed in view-only
TiledLibreOffice_app. Although, probably there are more components
in 'core' which should be in 'edit' too, who knows, sigh.

Change-Id: I1efebc9884662a5d25744a3414717aa410350ef4
2014-03-06 15:48:26 +01:00
Matúš Kukan
b0ac763d13 native-code: Remove foo_core groups, now only 'core' and 'writer' are used.
Also remove extended_core group. If something from there will be
needed, we will add it another way.
Currently only android/experimental/desktop/Makefile and
ios/CustomTarget_TiledLibreOffice_app.mk are known to do something.

Change-Id: I99936075e35ce98d684581838c0a19dccd83f942
2014-03-06 15:48:26 +01:00
Tor Lillqvist
c2756737e0 Require Android API level 15, which is from December 2011
Note that this doesn't really mean a lot for the NDK.

Change-Id: I4061cb856055ae126aadf56afc462182a875e65f
2014-03-05 16:13:45 +02:00
Matúš Kukan
67316dd9ec Add CustomTarget_android_desktop back.
Change-Id: I4bad098055c6c3b34dd5f02caf17df13cf4df797
2014-02-08 08:58:28 +01:00
Norbert Thiebaud
bab7eebba1 moved impress remote clients to a separate repository
Change-Id: I654e3af31a6915f08ff808b351d304da773ad267
see: git://gerrit.libreoffice.org/impress_remote
2014-01-30 18:54:36 -06:00
Christian Lohmaier
4d586852c2 sdremote: LibreOffice Remote for Impress version 2.0.0
Change-Id: Ia1d1fef129fdccb186fa07102d3c5fcb91470fe9
2014-01-30 12:41:53 +01:00
Christian Lohmaier
7867b15bea comit translations for sdremote
Change-Id: Ia7f566cb9b1025f431c64180d696fb13e5726929
2014-01-30 12:41:52 +01:00
Christian Lohmaier
9a9a8973f0 sdremote: add about/license info
The activity tired to include a file that was not checked in at all
(probably due .gitignore ignoring assets), so replace that with a simple
linear layout.

Change-Id: I505855346f440712b7e170080b7db11b775c4172
2014-01-30 12:41:52 +01:00
Matúš Kukan
7efbca6642 android: Remove native-code.cxx on make clean.
Change-Id: Ib287792c754c4b3ee6c8a45749ef9ad7197df84a
2014-01-22 20:24:54 +01:00
Matúš Kukan
13964ddb61 sc/qa/unit/data/xls/border.xls was removed
..in commit a96b6f4708d587ddddd93101e51e52dec4e87b7e

Change-Id: I94ea246df8fabee9b0bda579be7698c964958e16
2014-01-18 17:04:26 +01:00
Christian Lohmaier
4bddd280f2 tweak paddings in landcape mode (maximize space for preview & notes)
add minimal padding around slide preview (to not touch actionbar and
bottom of screen - horizontal whitespace will be larger becasue height
is limiting factor anyway)

avoid adding two left-paddings for the notes - the Text is "indented"
compared to the notes area already, so margin implied by the layout
weight distribution and the text indent is enough to separate it from
the preview.

avoid adding two right paddings for the note-text, as the text is not
justified and the word-break itself will account for a "padding" at the
edge, and the container already has a right-padding (that was reduced,
since the word-padding as well as centering in the unused space will
increase the effective margin)

Change-Id: I2a4605ba5a98eeed93a01db16d3d86c90df56470
Reviewed-on: https://gerrit.libreoffice.org/7230
Reviewed-by: Andrzej Hunt <andrzej.hunt@collabora.com>
Tested-by: Andrzej Hunt <andrzej.hunt@collabora.com>
2014-01-16 15:58:28 +00:00
Christian Lohmaier
7e08428ceb add support for double-tap to go back a transition
by replacing the onClickListener with an onTouchListener with the simple
variant of the GestureDetector.

Also drop the check that prevents going to the "end-of-presentation,
click to exit" slide and exiting the presentation that way.

Change-Id: I54b49bf11929ad9415b8c85581fe16998ab3a7a7
Reviewed-on: https://gerrit.libreoffice.org/7107
Reviewed-by: Andrzej Hunt <andrzej.hunt@collabora.com>
Tested-by: Andrzej Hunt <andrzej.hunt@collabora.com>
2014-01-16 15:47:32 +00:00
Christian Lohmaier
4d6244cc80 remove BluetoothOperator wrapper
it is just another obfuscating layer of one-command-function calles that
can as well be called directly.

If you really want to get the path to aquire the bluetooth adapter
differently, based on a runtime check, a single method to retrieve the
adapter is enough in any of the classes. No need to wrap the whole
adapter's api in your own class.

Change-Id: I2c631321dcf8ef143fe58a0a8246e010169409ac
2014-01-16 15:46:40 +00:00
Christian Lohmaier
f5d14e0234 only autostart discovery when there are no known devices
and don't loop autodiscovery, provide a manual trigger button instead.

Bluetooth discovery is a hefty process and thus should not be done
lightheartedly. Moreover discovery won't even list devices that
are already bonded, but not set to visible. As you will be more likely
using the remote with the same devices, it makes sense to list the
known devices and only do discovery on explicit request/when there are
no bonded devices yet.

Fix a lifecycle problem (as the service would be quit on
screen-rotation as the only bound client is destroyed/restarted - start
the service instead to let it keep running, and only stop/release it
when finishing)

icons from Android's ActionBar Icon Pack, shrinked using optipng

Change-Id: Ie8467f942df1aab2d64b337fc7a6f816b9d658a6
Reviewed-on: https://gerrit.libreoffice.org/7091
Reviewed-by: Andrzej Hunt <andrzej.hunt@collabora.com>
Tested-by: Andrzej Hunt <andrzej.hunt@collabora.com>
2014-01-16 15:46:05 +00:00
Christian Lohmaier
78b0b970fd Use only one layout, with a dynamically sized PagerAdapter
it is more straightforward to only have one viewpager that can be
flipped through. This makes it easier to restore the user's default way
of connecting (bluetooth via wifi) and also simplifies the setup and
the what-tab-am-I-on checks.

* Remeber what tab (wifi/bluetooth) the user last used and restore that
  on next launch
* respect Android's guidelines and ask the user whether Bluetooth should
  be enabled when the user switches to the BT tab and BT is disabled.
  → if the user declines, select wifi tab instead

Fix a lifecycle problem (bt connection would be cut if bt was not
enabled before launching the remote, only restore disbled state if
really finishing, not on configuration change like rotating the screen)

Change-Id: Ice3a5c877a2a4810a80a0f76edea713700fe9c8c
Reviewed-on: https://gerrit.libreoffice.org/7090
Reviewed-by: Andrzej Hunt <andrzej.hunt@collabora.com>
Tested-by: Andrzej Hunt <andrzej.hunt@collabora.com>
2014-01-16 15:45:08 +00:00
Christian Lohmaier
c0693031a7 get rid of some useless indirection/wrapper functions
there's no point in adding a layer of indirection if all that the called
function does is running one single command, and is only called in one
place. Getting rid of that indirection makes the code easier to read and
understand.

Change-Id: Ie2f3e03fe2870d1d4a84df738ebb3d0f34a2713c
Reviewed-on: https://gerrit.libreoffice.org/7089
Reviewed-by: Andrzej Hunt <andrzej.hunt@collabora.com>
Tested-by: Andrzej Hunt <andrzej.hunt@collabora.com>
2014-01-16 15:43:24 +00:00
Andrzej Hunt
17e7bc358f Revert "fdo#60486 Fix auto-enabling bluetooth and improve bluetooth handling."
This will be superceded by the following sdremote improvments, which
would otherwise have path conflicts due to this patch.

This reverts commit 3cc31f89787e435c893b38a0adc0a23f566ab60f.

Change-Id: I49f004d068fdf852f5690e365a17168b001b9136
2014-01-16 15:42:38 +00:00
Christian Lohmaier
233a15e3aa move from ActionBarSherlock to corresponding android support lib
UI wise would makes the app compatible with android api level 7,
but other utility functions require higher level (8 for Base64 and 9 for
TimeUnit)

explicitly set the allowBackup flag and raise tested/targeted version to
api level 17

also add tool-annotations to please android-lint

Change-Id: I528e34acdeeecea6d20e8bea21b1d5c203e17c95
2014-01-16 15:19:54 +00:00
Andrzej Hunt
a689b673b7 Add tablet specific landscape layout.
The resolution of the slide preview is too low for a maximised
preview to be of much use, hence it makes sense to make the notes
larger when in landscape mode on a tablet.

Also increase the notes size for tablets (either perspective) in
order to be legible from a greater distance.

Change-Id: Iae75dead6bb325970f2309f487a5c198d938fcb4
Reviewed-on: https://gerrit.libreoffice.org/7102
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
2014-01-16 00:24:10 +00:00