Revert Android-specific code

Task-number: QTBUG-29535

Change-Id: Iad2577640767a1d22e6690284df178a02b31c392
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Android: qsharedmemory code style fixes

Task-number: QTBUG-29524

Change-Id: I5679826aed3132d4ac00666641fd3e6bcd7002d1
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
eglfs: Make sure geometry is correct before sending event

If we send the event first, it might be delivered before the
platform window's size is updated, and things might get out
of sync.

Change-Id: Ibfea3d50de2374c2d967f6e3d81a549350b6202d
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Fix rotation of OpenGL-based windows on Android

The surface drawn to by Qt is not updated until swapBuffers is
called, so just sending geometry change at a random point will
not work. The new mechanics is to:

1. When Android updates its native window, send an expose event,
which at some point causes swapBuffers to be called
2. In swapBuffers, the surface is sync'ed with the native window
size (resized), so we send a geometry change event here, which,
if necessary, causes a repaint.

Change-Id: I8f0ffc6471f3bec4e5af8f1011c2dc4f39ebaf17
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
Make XPLATFORM_ANDROID test more specific

Since there might be other Android mkspecs required for other
use cases than the app development use case, we need to make
the check more explicit before doing the Android-specific
configure steps.

Change-Id: I8c0b2ca349b1bd6432e9e5aa5f45ce8ed926fa0c
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Android: rename MINISTRO_ environment variable

...but keep compatibility with the current Ministro for now.

Task-number: QTBUG-29567
Change-Id: Ia380109ba50a08bf20fe4caf08dc9bf394ba588b
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Use relative paths in Android plugin .pro files

Cleaner and more adaptable than using
$$QT_SOURCE_TREE and the full path.

Change-Id: I37ae26d254d0ab8ebe478bcdd3d260272730a4de
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Android: code style fixes

As pointed out by Thomas McGuire

Change-Id: I8f7111266c0c4fdd1643fce880a8562ed6066890
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com>
Re-enable evdev config test

This compiles for Android, but devicediscovery, which is an
explicit requirement for the evdev code was only enabled for
linux-* platforms. So we re-enable the evdev test (which is
necessary for Android builds that use the evdev implementation)
and we add devicediscovery.pri to the Android build to make
it compile. We also disable it in the Android plugin.

Task-number: QTBUG-29688
Change-Id: Id7a2bdffd91524ddeea99b55f009b384a4fc2a57
Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>