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>
wayland-egl: Don't run code inside asserts

Asserts can be compiled out so let's not do anything that could affect
behaviour in them.

Signed-off-by: Kalle Vahlman <kalle.vahlman@movial.com>
Add command line options to test_nfc.

By default with no command line options test_nfc will initialise and
deinitialise the NFC stack.

The -n option causes test_nfc to continuously scan for targets and
read NDEF messages from them.

The -r option causes the NFC stack to be deinitialised and
reinitialised in the event of a failure to connect to the remote
device.
Merge pull request #131 from amccarthy/master

Add command line options to test_nfc.
Merge pull request #130 from kvahlman/wayland-assert-fixes

wayland-egl: Don't run code inside asserts
Merge pull request #129 from saukko/master

Minor fixes for pkg-config usage
Only read NDEF messages from tags verified to have NDEF messages.

The phLibNfc_Ndef_CheckNdef() function reports the NDEF card state.
Attempting to read an NDEF message from a tag in the INVALID or
INITIALIZED state fails to call the read NDEF callback function. Don't
read NDEF messages unless the tag is in the READ_WRITE or READ_ONLY
states.
Merge pull request #132 from amccarthy/master

Only read NDEF messages from tags verified to have NDEF messages.
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
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