profile/ivi/wayland-ivi-extension.git
10 years agoilmNotifyTests: reset callback IDs on SetUp()
Marcus Fritzsch [Thu, 3 Jul 2014 11:53:24 +0000 (13:53 +0200)]
ilmNotifyTests: reset callback IDs on SetUp()

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
10 years agoilmNotifyTests: wait at most 500ms
Marcus Fritzsch [Thu, 3 Jul 2014 11:52:46 +0000 (13:52 +0200)]
ilmNotifyTests: wait at most 500ms

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
10 years agoilmControl: getLayerIDsOnScreen() use correct list
Marcus Fritzsch [Mon, 30 Jun 2014 13:32:42 +0000 (15:32 +0200)]
ilmControl: getLayerIDsOnScreen() use correct list

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
10 years agoilmControl: removed usleep from get_instance.
Marcus Fritzsch [Mon, 30 Jun 2014 13:32:31 +0000 (15:32 +0200)]
ilmControl: removed usleep from get_instance.

Signed-off-by: Marcus Fritzsch <marcus.fritzsch@xse.de>
10 years agoprotocol: apply the latest protocol of ivi shell. 1.2.0-rc6
Nobuhiko Tanibata [Mon, 30 Jun 2014 03:08:56 +0000 (12:08 +0900)]
protocol: apply the latest protocol of ivi shell.

This protocol includes review comment in Wayland mailing list. Only
desciptions are modified.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoAddressed missing function prototype warnings.
Ossama Othman [Thu, 26 Jun 2014 20:52:33 +0000 (13:52 -0700)]
Addressed missing function prototype warnings.

In C, a function that accepts no arguments should have a (void)
parameter list in its prototype, not an empty () one.  While they are
equivalent in C++, they are not the same in C.  This patch set address
missing prototype related warnings in C code that uses the functions
in question.

Change-Id: Ic5bb65eefd857da03c39d135fd68e43880e7b975
Bug-Tizen: TC-1208
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
10 years agoFixed unresolved symbol error in ilmControl library.
Ossama Othman [Thu, 26 Jun 2014 20:49:14 +0000 (13:49 -0700)]
Fixed unresolved symbol error in ilmControl library.

The ilmControl library uses symbols found in the
ivi-extension-protocol CMake project.  Link it.

Change-Id: Ib5862ac6875c2297ec661d6d6fd1d621d2ec1e45
Bug-Tizen: TC-1208
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
10 years agoweston-ivi-shell: change order of transmitting notification; surface->layer->Screen...
Nobuhiko Tanibata [Fri, 20 Jun 2014 09:26:16 +0000 (18:26 +0900)]
weston-ivi-shell: change order of transmitting notification; surface->layer->Screen to Screen->Layer->surface.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Move code of child context creation to callback of listener.
Nobuhiko Tanibata [Fri, 20 Jun 2014 09:25:55 +0000 (18:25 +0900)]
ilmControl: Move code of child context creation to callback of listener.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Reverse layer ids.
Nobuhiko Tanibata [Thu, 19 Jun 2014 06:11:22 +0000 (15:11 +0900)]
ilmControl: Reverse layer ids.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoweston-ivi-shell: Separate code of updating layer properties from sending layer events.
Nobuhiko Tanibata [Thu, 19 Jun 2014 06:10:10 +0000 (15:10 +0900)]
weston-ivi-shell: Separate code of updating layer properties from sending layer events.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoweston-ivi-shell: Separate code of updating surface properties from sending surface...
Nobuhiko Tanibata [Thu, 19 Jun 2014 06:09:09 +0000 (15:09 +0900)]
weston-ivi-shell: Separate code of updating surface properties from sending surface events.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl and weston-ivi-shell : Send correct events of surface.
Nobuhiko Tanibata [Thu, 19 Jun 2014 06:08:23 +0000 (15:08 +0900)]
ilmControl and weston-ivi-shell : Send correct events of surface.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Add implementation of listener to receive event when layer of MainContext...
Nobuhiko Tanibata [Thu, 19 Jun 2014 06:06:35 +0000 (15:06 +0900)]
ilmControl: Add implementation of listener to receive event when layer of MainContext is created.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl and weston-ivi-shell: Reverse order when client is added to resources.
Nobuhiko Tanibata [Mon, 16 Jun 2014 09:39:45 +0000 (18:39 +0900)]
ilmControl and weston-ivi-shell: Reverse order when client is added to resources.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoweston-ivi-shell: Remove child context of a layer when the main context of the layer...
Nobuhiko Tanibata [Mon, 16 Jun 2014 09:38:40 +0000 (18:38 +0900)]
weston-ivi-shell: Remove child context of a layer when the main context of the layer is removed

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Avoid duplicative insertion about render order of layers.
Nobuhiko Tanibata [Mon, 16 Jun 2014 09:38:04 +0000 (18:38 +0900)]
ilmControl: Avoid duplicative insertion about render order of layers.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoweston-ivi-shell: bug fix. Send correct events for layer.
Nobuhiko Tanibata [Mon, 16 Jun 2014 09:36:57 +0000 (18:36 +0900)]
weston-ivi-shell: bug fix. Send correct events for layer.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Add listener of wl_output for child context.
Nobuhiko Tanibata [Mon, 16 Jun 2014 09:36:17 +0000 (18:36 +0900)]
ilmControl: Add listener of wl_output for child context.

This is because an event; ivi-controller.ivi-controller_layer.screen needs wl_output so wl_output shall be binded.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agotest: add margin to compare values of ILM with return values from wayland.
Nobuhiko Tanibata [Wed, 11 Jun 2014 08:30:39 +0000 (01:30 -0700)]
test: add margin to compare values of ILM with return values from wayland.

This is because type of these valuables are different.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoweston-ivi-shell: Fix using wrong resource of layer
Nobuhiko Tanibata [Fri, 6 Jun 2014 12:27:17 +0000 (05:27 -0700)]
weston-ivi-shell: Fix using wrong resource of layer

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoweston-ivi-shell: Add destroy condition for ivi-layout-layer
Nobuhiko Tanibata [Sun, 8 Jun 2014 03:25:21 +0000 (20:25 -0700)]
weston-ivi-shell: Add destroy condition for ivi-layout-layer

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Avoid miss-cache in ilmControl because of asynchronous events
Nobuhiko Tanibata [Tue, 3 Jun 2014 21:40:47 +0000 (14:40 -0700)]
ilmControl: Avoid miss-cache in ilmControl because of asynchronous events

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agotest: Avoid surface creation failure.
Nobuhiko Tanibata [Tue, 3 Jun 2014 13:08:12 +0000 (06:08 -0700)]
test: Avoid surface creation failure.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmClient and ilmControl: Move AddNotification from ilmClient to ilmControl.
Nobuhiko Tanibata [Tue, 3 Jun 2014 11:53:26 +0000 (04:53 -0700)]
ilmClient and ilmControl: Move AddNotification from ilmClient to ilmControl.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Set generated ID of layerid when it's invalid.
Nobuhiko Tanibata [Tue, 3 Jun 2014 11:39:56 +0000 (04:39 -0700)]
ilmControl: Set generated ID of layerid when it's invalid.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoivi-controller: Create a link layer.
Nobuhiko Tanibata [Tue, 3 Jun 2014 11:24:39 +0000 (04:24 -0700)]
ivi-controller: Create a link layer.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoivi-cotroller: Avoid double free of surface.
Nobuhiko Tanibata [Tue, 3 Jun 2014 11:19:29 +0000 (04:19 -0700)]
ivi-cotroller: Avoid double free of surface.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agotest: Fix out of range error.
Nobuhiko Tanibata [Tue, 3 Jun 2014 21:45:45 +0000 (14:45 -0700)]
test: Fix out of range error.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agotest: Fix an initial value of t_ilm_notification_mask and operations
Nobuhiko Tanibata [Tue, 3 Jun 2014 10:45:32 +0000 (03:45 -0700)]
test: Fix an initial value of t_ilm_notification_mask and operations

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agotest: Fix a test code for multi-wl_surfaces.
Nobuhiko Tanibata [Tue, 3 Jun 2014 10:58:24 +0000 (03:58 -0700)]
test: Fix a test code for multi-wl_surfaces.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoivi-controller: Send layer-add event to client when ivi-shell receives layer-remove...
Nobuhiko Tanibata [Tue, 3 Jun 2014 09:41:20 +0000 (02:41 -0700)]
ivi-controller: Send layer-add event to client when ivi-shell receives layer-remove notification.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Set initial value ILM_INPUT_DEVICE_ALL to inputDevicesAcceptance
Nobuhiko Tanibata [Tue, 3 Jun 2014 09:27:57 +0000 (02:27 -0700)]
ilmControl: Set initial value ILM_INPUT_DEVICE_ALL to inputDevicesAcceptance

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Avoid multiple registration to render order of surface.
Nobuhiko Tanibata [Tue, 3 Jun 2014 09:20:37 +0000 (02:20 -0700)]
ilmControl: Avoid multiple registration to render order of surface.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmClient and ilmControl: Avoid duplicative auto generation numbers about surface...
Nobuhiko Tanibata [Tue, 3 Jun 2014 09:11:34 +0000 (02:11 -0700)]
ilmClient and ilmControl: Avoid duplicative auto generation numbers about surface and layer

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoilmControl: Return correct value of wayland_layerRemove
Nobuhiko Tanibata [Tue, 3 Jun 2014 08:12:50 +0000 (01:12 -0700)]
ilmControl: Return correct value of wayland_layerRemove

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agotest: Revert through exception during full of message queues
Nobuhiko Tanibata [Tue, 3 Jun 2014 12:32:50 +0000 (05:32 -0700)]
test: Revert through exception during full of message queues

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agotest: Throw exception if wl_display_roundtrip returns error.
Nobuhiko Tanibata [Tue, 27 May 2014 09:19:37 +0000 (18:19 +0900)]
test: Throw exception if wl_display_roundtrip returns error.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agotest: Fix a lock issue when the API tests is running.
Nobuhiko Tanibata [Tue, 27 May 2014 05:14:38 +0000 (22:14 -0700)]
test: Fix a lock issue when the API tests is running.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoweston-ivi-shell: Fix memory access violations.
Nobuhiko Tanibata [Tue, 27 May 2014 10:05:17 +0000 (19:05 +0900)]
weston-ivi-shell: Fix memory access violations.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoweston-ivi-shell: support weston 1.4.91 later.
Nobuhiko Tanibata [Tue, 29 Apr 2014 13:34:44 +0000 (22:34 +0900)]
weston-ivi-shell: support weston 1.4.91 later.

Due to the change of folder structure, previous source can not be built with 1.4.91 later.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoremoved compiler warnings in unit tests
Timo Lotterbach [Wed, 30 Apr 2014 06:58:38 +0000 (08:58 +0200)]
removed compiler warnings in unit tests

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agofixed unit test crash, if compositor service is not running
Timo Lotterbach [Fri, 30 May 2014 06:40:33 +0000 (08:40 +0200)]
fixed unit test crash, if compositor service is not running

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agofixed layer order returned in ilm_getLayerIDsOnScreen
Timo Lotterbach [Thu, 17 Apr 2014 08:15:27 +0000 (10:15 +0200)]
fixed layer order returned in ilm_getLayerIDsOnScreen

layer ids are reported in opposite order than expected by ILM API.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agotests: expected behaviour of "*_Invalid*" tests
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:34 +0000 (18:15 +0200)]
tests: expected behaviour of "*_Invalid*" tests

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: memory leak in IlmCommandTest::TearDown()
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:33 +0000 (18:15 +0200)]
tests: memory leak in IlmCommandTest::TearDown()

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: number of hardware layers
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:32 +0000 (18:15 +0200)]
tests: number of hardware layers

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: surface pixelformat
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:31 +0000 (18:15 +0200)]
tests: surface pixelformat

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: take screenshot
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:30 +0000 (18:15 +0200)]
tests: take screenshot

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: surface properites
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:29 +0000 (18:15 +0200)]
tests: surface properites

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: surface IDs on layer
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:28 +0000 (18:15 +0200)]
tests: surface IDs on layer

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: layer capabilities
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:27 +0000 (18:15 +0200)]
tests: layer capabilities

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: layer type
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:26 +0000 (18:15 +0200)]
tests: layer type

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: layer remove
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:25 +0000 (18:15 +0200)]
tests: layer remove

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: surface source rectangle
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:24 +0000 (18:15 +0200)]
tests: surface source rectangle

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: layer/surface visibility
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:23 +0000 (18:15 +0200)]
tests: layer/surface visibility

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: layer/surface opacity
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:22 +0000 (18:15 +0200)]
tests: layer/surface opacity

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: layer/surface position
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:21 +0000 (18:15 +0200)]
tests: layer/surface position

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: layer/surface dimensions
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:20 +0000 (18:15 +0200)]
tests: layer/surface dimensions

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: screen resolution
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:19 +0000 (18:15 +0200)]
tests: screen resolution

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agotests: code and resources handling cleanup
Lukasz Juszkiewicz [Wed, 30 Apr 2014 16:15:18 +0000 (18:15 +0200)]
tests: code and resources handling cleanup

Signed-off-by: Lukasz Juszkiewicz <lukasz.juszkiewicz@bmw-carit.de>
10 years agoenabled all ilm_control unit tests, results in compositor crash 1.2.0_rc5
Timo Lotterbach [Thu, 17 Apr 2014 07:26:02 +0000 (09:26 +0200)]
enabled all ilm_control unit tests, results in compositor crash

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agofixed ilm_control_notification unit tests setup
Timo Lotterbach [Thu, 17 Apr 2014 07:32:23 +0000 (09:32 +0200)]
fixed ilm_control_notification unit tests setup

providing NULL as native surface is prohibited by design for IVI Extension,
unit test now use a wl_surface created in TestBase base class.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoupdated .gitignore
Timo Lotterbach [Thu, 17 Apr 2014 07:24:32 +0000 (09:24 +0200)]
updated .gitignore

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoilmClient : Add null check of nativehandle to ilm_surfaceCreate
Nobuhiko Tanibata [Mon, 14 Apr 2014 09:30:38 +0000 (18:30 +0900)]
ilmClient : Add null check of nativehandle to ilm_surfaceCreate

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 years agoBug fix TIVI 3029. Add destroy surface for main_ctx
Nobuhiko Tanibata [Fri, 11 Apr 2014 11:45:12 +0000 (20:45 +0900)]
Bug fix TIVI 3029. Add destroy surface for main_ctx

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 years agoBug fix: weston crash due to missing destruction of surface.
Nobuhiko Tanibata [Fri, 11 Apr 2014 01:40:44 +0000 (10:40 +0900)]
Bug fix: weston crash due to missing destruction of surface.

This is also reported in Tizen IVI JIRA, TIVI-3029

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 years agoremove ivi_controller_surface on content_removed event 1.2.0_rc4
Timo Lotterbach [Mon, 7 Apr 2014 14:11:43 +0000 (16:11 +0200)]
remove ivi_controller_surface on content_removed event

in ILM API, surfaceDestroy(x) will remove all references to this surface
from scene. To achieve same behavior, ivi controllers must release their
corresponding ivi_controller_surfaces on content_removed event.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoremove ivi_surface from internal state on ilm_surfaceRemove()
Timo Lotterbach [Mon, 7 Apr 2014 14:08:52 +0000 (16:08 +0200)]
remove ivi_surface from internal state on ilm_surfaceRemove()

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agofixed small error logging issue
Timo Lotterbach [Mon, 7 Apr 2014 13:00:22 +0000 (15:00 +0200)]
fixed small error logging issue

several functions logged error 'Invalid ... in
controller_surface_listener_destroyed' and not their real name.
This patch uses __FUNCTION__ to generate function names for logging.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agofixed wrong order of layers in ilm_getLayerIDs
Timo Lotterbach [Mon, 7 Apr 2014 10:19:07 +0000 (12:19 +0200)]
fixed wrong order of layers in ilm_getLayerIDs

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agocontroller destroys mutex on shutdown
Timo Lotterbach [Mon, 7 Apr 2014 10:18:33 +0000 (12:18 +0200)]
controller destroys mutex on shutdown

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agostop control thread during shutdown to prevent crashes 1.2.0_rc3
Timo Lotterbach [Mon, 7 Apr 2014 08:59:45 +0000 (10:59 +0200)]
stop control thread during shutdown to prevent crashes

unit tests do fast init/destroy cycles, which resulted in control
thread still using resources (e.g. display) that were already destroyed.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agofixed return value in ilm_surfaceCreate
Timo Lotterbach [Mon, 7 Apr 2014 08:23:55 +0000 (10:23 +0200)]
fixed return value in ilm_surfaceCreate

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agorefactored unit tests, check all return values
Timo Lotterbach [Fri, 4 Apr 2014 07:49:53 +0000 (09:49 +0200)]
refactored unit tests, check all return values

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoremoved obsolete code
Timo Lotterbach [Mon, 7 Apr 2014 07:57:58 +0000 (09:57 +0200)]
removed obsolete code

most of this code was specific to IVI LayerManagement (ILM) implementation
and is not used in other implementations of ILM API.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoCorrected XML file modes: 0755->0644. 1.2.0_rc2
Nobuhiko Tanibata [Tue, 1 Apr 2014 02:26:05 +0000 (11:26 +0900)]
Corrected XML file modes: 0755->0644.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 years agoRemove wl_list_init of layer_list which will be used by ivi_shell
Nobuhiko Tanibata [Tue, 1 Apr 2014 02:21:07 +0000 (11:21 +0900)]
Remove wl_list_init of layer_list which will be used by ivi_shell

To avoid clearing not related ivi_controller.so layer. E.g.
cursor and software keyboard.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 years agoModify thread's control in ilm_control.
Nobuhiko Tanibata [Tue, 1 Apr 2014 02:07:25 +0000 (11:07 +0900)]
Modify thread's control in ilm_control.

- create sub thread to receive surface notification event only.
- wl_display of sub thread is accessed by sub thread only.
- sub thread uses wl_display_dispatch() instead of
  wl_display_roundtrip() in order to avoid occupying cpu.
- remove lock and unlock macros.

This is reported in TIZEN IVI.
TIVI-2880 and TIVI-2883

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 years agoModify initialize process to use application's native display in each ilm library...
Nobuhiko Tanibata [Tue, 1 Apr 2014 02:04:59 +0000 (11:04 +0900)]
Modify initialize process to use application's native display in each ilm library to avoid deak lock to use the same display connection inter application in ilm library.

This is reported in TIZEN IVI as bugs.
TIVI-2880 and TIVI-2883

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 years agoBugfix: dead lock issue in ilm library. This happens when several client uses ilm...
Nobuhiko Tanibata [Mon, 31 Mar 2014 08:28:30 +0000 (17:28 +0900)]
Bugfix: dead lock issue in ilm library. This happens when several client uses ilm library in parallel because the same display connect is used wihin them.

This is also reported in TIZEN IVI.
TIVI-2880 and TIVI-2883

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
10 years agoUpdated IVI-Application protocol 1.2.0_rc1 protocol-v1
Timo Lotterbach [Fri, 21 Mar 2014 17:57:44 +0000 (18:57 +0100)]
Updated IVI-Application protocol

This update updates the ivi application protocol to include
the changes request by wayland community during upstream
integration of IVI-Shell.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoAdded Unit Test Suite for IVI LayerManagement API
Timo Lotterbach [Tue, 11 Mar 2014 14:12:08 +0000 (15:12 +0100)]
Added Unit Test Suite for IVI LayerManagement API

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoRemove dependency on IpcModuleLoader.h
Nobuhiko Tanibata [Tue, 4 Mar 2014 05:58:20 +0000 (14:58 +0900)]
Remove dependency on IpcModuleLoader.h

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoSuppoting only ivi-application to get ivi_surface, not supporting wl_shell.
Nobuhiko Tanibata [Tue, 4 Mar 2014 05:27:37 +0000 (14:27 +0900)]
Suppoting only ivi-application to get ivi_surface, not supporting wl_shell.

-The ivi-application protocol is sufficient for ivi style shell.
-Removing layer creation. This means creating a Layer and add surface of
MockNavigation to the layer by e.g. LayerManagerControl to visible it.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoFix the bug which EGLWLMockNavigation freezes on drm
Nobuhiko Tanibata [Thu, 27 Feb 2014 07:34:22 +0000 (16:34 +0900)]
Fix the bug which EGLWLMockNavigation freezes on drm

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoprotocol: added PDF specification generation
Timo Lotterbach [Mon, 20 Jan 2014 12:44:00 +0000 (13:44 +0100)]
protocol: added PDF specification generation

Use "make doc" to generate specification documents.
A separate document is generated for
- IVI Application API
- IVI Controller API
- ILM Client API
- ILM Controller API

This requires: doxygen, latex, bash

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoAdd link_directories to find wayland-client library.
Nobuhiko Tanibata [Thu, 6 Feb 2014 00:45:01 +0000 (09:45 +0900)]
Add link_directories to find wayland-client library.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agoUpdate link_directories and add_dependencies to link libweston-layout.so to control...
Nobuhiko Tanibata [Thu, 6 Feb 2014 05:27:47 +0000 (14:27 +0900)]
Update link_directories and add_dependencies to link libweston-layout.so to control surfaces by ivi-controller.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@denso.co.jp>
10 years agofixed pkg_config integration in cmake build system
Timo Lotterbach [Wed, 5 Feb 2014 15:06:03 +0000 (16:06 +0100)]
fixed pkg_config integration in cmake build system

- library directories were missing
- include paths were not always correct

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoadded ivi-extension-protocol library
Timo Lotterbach [Fri, 31 Jan 2014 14:59:02 +0000 (15:59 +0100)]
added ivi-extension-protocol library

this library takes care to generate header and source files
from XML files.
All generated files are now stored in the build directory.

ilmCommon and weston-ivi-shell now just use the new library and
don't care about code generation any more.
In addition, a lot of duplicated code compilation is removed, resulting
in faster builds.

This patch also fixes an issue, that file generation was done every
time a build was started. This resulted in full rebuilds all the time.

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agorefactored generation of Wayland & IVI extension API
Timo Lotterbach [Fri, 31 Jan 2014 13:33:31 +0000 (14:33 +0100)]
refactored generation of Wayland & IVI extension API

- header/source files are only generated once, not every build
- removed pre-generated header/source files from repository

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agocreated .gitignore
Timo Lotterbach [Fri, 31 Jan 2014 12:28:19 +0000 (13:28 +0100)]
created .gitignore

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agofixed project name in build system
Timo Lotterbach [Fri, 31 Jan 2014 12:27:01 +0000 (13:27 +0100)]
fixed project name in build system

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agochanged file mode of file LICENSE
Timo Lotterbach [Fri, 31 Jan 2014 12:42:29 +0000 (13:42 +0100)]
changed file mode of file LICENSE

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoremoved obsolete code and build scripts
Timo Lotterbach [Fri, 31 Jan 2014 12:42:10 +0000 (13:42 +0100)]
removed obsolete code and build scripts

- removed LayerSceneDescriptionExample
- removed LayerManagerUtils
- removed config project
- updated build system

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agodetecting location of wayland-scanner binary
Timo Lotterbach [Fri, 31 Jan 2014 11:33:57 +0000 (12:33 +0100)]
detecting location of wayland-scanner binary

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoreplaced wayland/weston findmodules with pkgconfig dependency handling
Timo Lotterbach [Fri, 31 Jan 2014 11:31:00 +0000 (12:31 +0100)]
replaced wayland/weston findmodules with pkgconfig dependency handling

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoadded library version to ILM APIs
Timo Lotterbach [Fri, 31 Jan 2014 11:24:54 +0000 (12:24 +0100)]
added library version to ILM APIs

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>
10 years agoadded LICENSE file wtih Apache 2.0 license text
Timo Lotterbach [Thu, 30 Jan 2014 10:49:47 +0000 (11:49 +0100)]
added LICENSE file wtih Apache 2.0 license text

Signed-off-by: Timo Lotterbach <timo.lotterbach@bmw-carit.de>