1522 Commits

Author SHA1 Message Date
Tomaž Vajngerl
27598840f8 android: add comments to InvalidationHandler
Change-Id: Ie40b711377d46a37ae7cdae1496919049b5b7736
2015-03-02 08:50:51 +01:00
Tomaž Vajngerl
8734422b0b android: remove DrawTimingQueue and PanningPerfAPI
Change-Id: I094c345524059030a157a940702ad47fad358176
2015-03-02 08:50:51 +01:00
Tomaž Vajngerl
e3cd64d378 android: extrac invalidations into InvalidationHandler
Change-Id: Iccdb5e64acac603fbc623d1c325d6e922568de81
2015-03-02 08:50:51 +01:00
Tomaž Vajngerl
d33f3215b2 android: compilation error in LOKitShell - SIZE_CHANGED event
Change-Id: I564d4db40d5cf5916de3f7a417f42f817d172019
2015-03-02 08:50:50 +01:00
Tomaž Vajngerl
541ec41f49 android: LOEvents - remove unndeded, comments
Change-Id: I67976c2b72bf0f7ca044e479fa71b8adbaafdefc
2015-03-02 08:50:50 +01:00
Jan Holesovsky
a246ad3b46 android: Avoid big amount of space below the icons.
[between the icon and the text]

Change-Id: I7e4d7cfc7df5d186cc721f01ff2c8f157fcbc806
2015-02-23 12:00:45 +01:00
Tomaž Vajngerl
532e77cd38 android: support selection invalidation, show selection handles
Change-Id: I82909e6426d4e9fd5dc7b9c9e6e1b21259cf9a57
2015-02-23 10:10:29 +01:00
Tomaž Vajngerl
4d6eb40f9b android: fix LOGTAG in DisplayPortCalculator
Change-Id: I7895cc8fe70ecf69183ed9261bad4b74af023c8d
2015-02-23 10:10:28 +01:00
Tomaž Vajngerl
d103037d0f android: no need for TileInvalidationCallback
We can just handle the tile invalidation messaged directly in
LOKitTileProvider where we just send a tile invalidation event to
LOKitThread. This is needed as we aren't in the correct thread.

Change-Id: I62995f2f9abfa7496e0793549b8e02ff47b1ed65
2015-02-23 10:10:28 +01:00
Tomaž Vajngerl
98115a182d android: key press/release is in KeyEvent, no need to distinct them
Change-Id: Ic68145a0f67ce9558570ab95b8057271c22481a3
2015-02-23 10:10:27 +01:00
Tomaž Vajngerl
c16de577de android: support ACTION_MULTIPLE KeyEvent
With ACTION_MULTIPLE more characters have been entered at the same
time. In this case we send more key press events to LO for now.
This is generally useful for IME input but Android also sends this
if non-ASCII key has been hit - even when the key is only one
character.

Change-Id: Iaf48ed4e40b8e4413ed5735add34870ec263b61d
2015-02-23 10:10:27 +01:00
Tomaž Vajngerl
89e9e70462 android: also send key event in onKeyMultiple and onKeyPreIme
Change-Id: Ib231edd7b659ca3d0360bb3ac3021ead652f5458
2015-02-23 10:10:27 +01:00
Tomaž Vajngerl
eb8ed9fcc5 android: can't compare strings with == in Java
Change-Id: I5cf4d5db42f32b7c073e5899a6c90a3354dcb3c5
2015-02-23 10:10:26 +01:00
Tomaž Vajngerl
0ffb877c36 anndroid: bind "LongPress" to mouse double click
Change-Id: Iba56deccf3c342ac82ca6cf78e09caf323f4a14d
2015-02-23 10:10:26 +01:00
Tomaž Vajngerl
67c9a6dc3a andorid: format the code on LOKitTileProvider
Change-Id: I289cca3835350a00dbefa4cd8b35ae065477a683
2015-02-23 10:10:26 +01:00
Tomaž Vajngerl
9d0950d5dd android: make invalidations more readable - extract to own methods
Change-Id: I676475c028d446ff5f31a11990a09da54245f9ef
2015-02-23 10:10:26 +01:00
Tomaž Vajngerl
fe4f1194a9 android: don't hardcode touch type
Change-Id: Ie64df7832daa002daa912c26b3c6f9f2497e0348
2015-02-23 10:10:26 +01:00
Tomaž Vajngerl
6f04b04dfd android: organise imports
Change-Id: Ie8178e34698ba686e899ddd8e4f8775081fc9d83
2015-02-23 10:10:25 +01:00
Tomaž Vajngerl
36e3a12aae android: restructure reevaluateTiles
Change-Id: I1c0657e512e6d3bf7a4742a356f201c993aef658
2015-02-23 10:10:25 +01:00
Tomaž Vajngerl
9a51a1f4cc android: do tile reevaluation in LOKitThread
Currently the tile reevaluation was done in UI thread which could
cause UI stutters as reevaluation is not a simple task. The
result was also a lot of tile rendering requests to LOKitThread.
This changes turns this around and the tile reevaluation is done
in LOKitThread instead. Now the UI thread just sends a LOEvent
when the reevaluation should be done. This should also reduce
the amount of messages that are queued in LOKitThread, however
an execution time should increase.

Change-Id: I01ce911226a71607c06da6100de323ca555db474
2015-02-23 10:10:25 +01:00
Tomaž Vajngerl
f699de99bd android: no need endDrawing to be synchronized
Change-Id: I50bee82140e444d918ca759816edf6992a47644b
2015-02-23 10:10:24 +01:00
Tomaž Vajngerl
b8a2e465ff android: cleanup ComposedTileLayer
Change-Id: I976384ac5515295a56bc1339791ab63a62dc4bea
2015-02-23 10:10:24 +01:00
Tomaž Vajngerl
538135e644 android: force a screen render on redraw in LOKitThread
Change-Id: I0e0a072cbe31c85f5f2f9459ad724edcd8d5986a
2015-02-23 10:10:24 +01:00
Tomaž Vajngerl
402d2fb286 android: use Iterator for removing of tiles
Change-Id: Ie4de7682d4f5b7e677e23fa8aae3548040bffdc7
2015-02-23 10:10:24 +01:00
Tomaž Vajngerl
a17c13e279 android: create SubTile right away to reduce tile change events
Change-Id: Idbc18a721c482fccd80d9c7da00f5f5dca1a864c
2015-02-23 10:10:24 +01:00
Tomaž Vajngerl
dc14b540e9 android: change back to LinkedBlockingQueue
PriorityBlockingQueue doesn't preserve order within equal elements.
This means elements with same priority will be returned in
arbitrary order, which we don't want to have - for example we want
tiles to render in the same order they were added to the queue.
Also there is no measurable or felt benefit that priority bring so
lets just drop PriorityBlockingQueue for LinkedBlockingQueue.

Change-Id: I6ffe0bf896f0e18e8b5ffc75a4001d8f40515a56
2015-02-23 10:10:23 +01:00
Miklos Vajna
1f20a47d0e android: forgot to update javadoc of JNI wrapper
Change-Id: I2964c030f420638672da5390e11179aee28043e5
2015-02-23 10:10:22 +01:00
Miklos Vajna
bfe3a47e1e lok::Office::postKeyEvent: allow different char and key code
editeng is not happy with non-zero char code for css::awt::Key::ESCAPE.

Change-Id: If26923df7defb8a47766e9109835a8569067e578
2015-02-23 10:10:22 +01:00
Tomaž Vajngerl
0622d2658a android: organise imports
Change-Id: I4ba05594215564ee06c0bf9b8dff47f46e6bf451
2015-02-23 10:10:22 +01:00
Tomaž Vajngerl
bdf8d4ceb2 android: restructure reevaluateTiles
Change-Id: I97bcc19571858fd3a43f7d5a9290a5dace7d97dc
2015-02-23 10:10:22 +01:00
Tomaž Vajngerl
9236370bed android: use locking to make tile redraw more predictable
CopyOnWriteList is a good thread safe container to store tiles,
however any change to the list makes a internal copy of the
underlaying array which contains the changes. The effect of this
is that this changes aren't immediately shown or only partially
in the other (UI) thread. So they are sometimes partially drawn or
drawn with a delay. This replaces the CopyOnWriteList with a
simple thread unsafe ArrayList and introduces Read/Write locking
to all ArrayList operations. Read operations don't lock, only
a write operation locks access.

Change-Id: I5783c6cde96360a6fd47faa801eec35e4debb792
2015-02-23 10:10:22 +01:00
Tomaž Vajngerl
6ab77b350b android: directly call renderFrame, force render on initialization
Change-Id: I8395bae805a89558dd6c7517ea6c6a20b943ebff
2015-02-23 10:10:21 +01:00
Tomaž Vajngerl
df38ccecea android: Clean-up LayerClient - add @Override, rearrange, comments
Change-Id: I75f32f2a99430ff65345e203ac49189fec011e2e
2015-02-23 10:10:21 +01:00
Tomaž Vajngerl
72d5f0e6a8 android: hide soft keyboard
Change-Id: Id23c330953efeb65960878413dd9dd0ad00eef40
2015-02-23 10:10:21 +01:00
Tomaž Vajngerl
ee862723c0 android: check if mTileProvider is available
Change-Id: Ibf2d491ad8867facab6181bec3d26d99a3ffbcf8
2015-02-23 10:10:20 +01:00
Tomaž Vajngerl
b21fd935d9 android: cleanup more in LayerClient
Change-Id: I2ea316c9f63343290da59df7f07433e38db974c3
2015-02-23 10:10:20 +01:00
Tomaž Vajngerl
c207e6cd58 android: fix "invalidate()..." exception
Fix "invalidate() is only valid inside a transaction" exception.

Change-Id: I550811a0324bece298ac1a583e4198ae280586f6
2015-02-23 10:10:20 +01:00
Tomaž Vajngerl
fd22d4b9b5 android: use mListener in LayerView for RenderControllerThread
Change-Id: I15b65f6eda04fce83831d8bee03b3840a1c15095
2015-02-23 10:10:20 +01:00
Tomaž Vajngerl
23c4f26e2b android: cleanup LayerRenderer
Change-Id: I26f1819c801bb1930975b0be3f036748f843e4a4
2015-02-23 10:10:20 +01:00
Tomaž Vajngerl
415fb7914c android: remove unneeded code from LayerRenderer and LayerView
Change-Id: I3a5a24eea62efdda435c5854c164216c91c4ab44
2015-02-23 10:10:19 +01:00
Tomaž Vajngerl
172eec516d android: remove LOEventFactory
Change-Id: I46809f24337e56b47a379eb4c482251b97337fd9
2015-02-23 10:10:19 +01:00
Michael Meeks
6cdd02a7fd android: protect against a crash with an empty sdcard.
If you mis-configure your emulator - that's what you get.
Unfortunate that this affects 2x places.

Change-Id: I0b281d96b22ec3ac793c687ee7f3ba1a78784ace
2015-02-20 11:42:25 +00:00
Tomaž Vajngerl
0ccf2c77e5 android: discard image buffer as soon as we upload to a texture
Before TileLayer (which SubTile was a subclass of) held the
image buffer for the whole life cycle of the tile, which wastes
memory in case of SubTile as the image doesn't change (or changes
only when invalidated) for the whole tile lifecycle. This change
changes the SubTile inheritance to a general Layer and adds modified
logic from SingleTileLayer and TileLayer. In addition it now
discards the buffer as soon as it has been uploaded to a texture
so that it doesn't takes up double the memory anymore.

Change-Id: Ia104687d2df529182af412102459952b53e87950
2015-02-16 09:20:51 +01:00
Tomaž Vajngerl
0e98675b69 android: remove tileRerender method as it is obsolete
Change-Id: I0087edfd2c93a80417b0002eac96e7626c35baf2
2015-02-16 09:20:51 +01:00
Tomaž Vajngerl
71c5684066 android: remove ImmutableViewportMetrics as input to endDrawing
Change-Id: Iec55bc182845bfa09cf6d03ab787fc1f2e0ee7fc
2015-02-16 09:20:50 +01:00
Tomaž Vajngerl
05b49687ac android: organise imports
Change-Id: I0f71bade1172b143f0f261ab6ed741f5dd3a9d93
2015-02-16 09:20:50 +01:00
Tomaž Vajngerl
c2b8fa6d9e android: invalidate all intersecting tiles in one LOEvent
Change-Id: Ic21984016d10a8e3da87b9fb032179cd4f6f7b9f
2015-02-16 09:20:50 +01:00
Tomaž Vajngerl
1eb2de90be android: add support for text selection to JNI
Change-Id: Ifa307eb6a8cb031bdd88b9fadae42c8a0811772b
2015-02-16 09:20:50 +01:00
Jan Holesovsky
2e70fa6968 android: optipng the resources.
Change-Id: I2b27c6edd94d63ddcfb885592b0fb954cf505e8b
2015-02-16 09:20:47 +01:00
Jan Holesovsky
baa5459359 android: Remove duplicated icons.
No need to provide eg. drawable-hdpi/blah.png when it is the same as
drawable/blah.png anyway.

Change-Id: I4f840a7674e86a7c16d43fc5e1d4fd1e0956d0c8
2015-02-16 09:20:46 +01:00