test_gps: use ulp network only with agps

Only play with the ulp when we go through the agps path, it is not
related to stand-alone mode.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
test-gps: Add support for injection a location

We can now inject a reference location. It needs to be added
on the command line -l <latitude>,<longitude>

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
egl,QueryWaylandBufferWL: return EGL_TEXTURE_* as EGL_TEXTURE_FORMAT

problem:
    the native buffer format was returned (HAL_PIXEL_FORMAT_*)
fix:
    map HAL_PIXEL_FORMAT_* to EGL_TEXTURE_*

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
Merge pull request #133 from groleo/eglQueryWaylandBufferWL

egl,QueryWaylandBufferWL: return EGL_TEXTURE_* as EGL_TEXTURE_FORMAT
Fix issue in egl.pc.in versioning introduced by aca27dedbfca5be0170a81338b7b38598106c629

Signed-off-by: Marko Saukko <marko.saukko@jollamobile.com>
test_gps : Conditionally disable ULP

ULP is not supported in all versions of Android. So we have it
conditionally enabled.

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
test_gps: Build with versions before and after Android 4.2.0

The data_conn_open and data_conn_closed arguments don't have the same arguments in
versions of android 4.2.0. We use the HAS_ANDROID_4_2_0 to make the difference and
have test_gps compile for the versions before and after 4.2.0

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
tests Makefile.am : Build test_gps always

Always build test_gps as it takes care internally of the differences before
and after Android 4.2.0

Signed-off-by: Philippe De Swert <philippe.deswert@jollamobile.com>
egl: wayland: Fix WaylandNativeWindowBuffer destroying

We can't just kill a buffer whenever, it might have external references.
Thus we need to just drop references and do memory freeing in destructor.

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>
egl: wayland: Move gralloc allocation to WaylandNativeWindowBuffer

Since we need to release the gralloc allocation in WaylandNativeWindowBuffer
destructor, move the allocation there too for symmetry and readability.

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>
egl: common: Fix BaseNativeWindow destructor type

If the BaseNativeWindow destructor isn't declared as virtual, derived
class descructors like WaylandNativeWindow::~WaylandNativeWindow() are
not called.

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>
egl: wayland: Fix WaylandNativeWindow lifetime

To properly keep track and end the life cycle of WaylandNativeWindow,
we need to take and release a reference in waylandws.

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>
Merge pull request #134 from saukko/master

Fix issue in egl.pc.in versioning introduced by aca27dedbfca5be0170a8133...
Merge pull request #135 from kvahlman/wl-lifetime-fixes

Wl lifetime fixes
Merge pull request #124 from philippedeswert/master

test_gps: use ulp network only with agps
egl: add EGL_TEXTURE_EXTERNAL_WL

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>
eglQueryWaylandBufferWL: return EGL_TEXTURE_EXTERNAL_WL by default

Signed-off-by: Adrian Negreanu <adrian.m.negreanu@intel.com>