summaryrefslogtreecommitdiff
path: root/tests/ivi_layout-internal-test.c
Commit message (Collapse)AuthorAgeFilesLines
* ivi-shell: rework configure_surface notificationUcan, Emre (ADITG/SW1)2016-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | The add_notification_configure_surface API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to add_listener_configure_surface. This change has several advantages: 1. Code cleanup 2. No dynamic memory allocation. Listeners are allocated by controller plugins 3. Remove API is not needed. Controller plugins can easily remove the listener link. The remove API is removed too: - ivi_layout_remove_notification_configure_surface Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* ivi-shell: rework remove_surface notificationUcan, Emre (ADITG/SW1)2016-04-051-1/+1
| | | | | | | | | | | | | | | | | | | The add_notification_remove_surface API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to add_listener_remove_surface. This change has several advantages: 1. Code cleanup 2. No dynamic memory allocation. Listeners are allocated by controller plugins 3. Remove API is not needed. Controller plugins can easily remove the listener link. The remove API is removed too: - ivi_layout_remove_notification_remove_surface Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* ivi-shell: rework remove_layer notificationUcan, Emre (ADITG/SW1)2016-04-051-7/+12
| | | | | | | | | | | | | | | | | | | The add_notification_remove_layer API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to add_listener_remove_layer. This change has several advantages: 1. Code cleanup 2. No dynamic memory allocation. Listeners are allocated by controller plugins 3. Remove API is not needed. Controller plugins can easily remove the listener link. The remove API is removed too: - ivi_layout_remove_notification_remove_layer Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* ivi-shell: rework create_layer_notificationUcan, Emre (ADITG/SW1)2016-04-051-7/+11
| | | | | | | | | | | | | | | | | | | The add_notification_layer_surface API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to add_listener_layer_surface. This change has several advantages: 1. Code cleanup 2. No dynamic memory allocation. Listeners are allocated by controller plugins 3. Remove API is not needed. Controller plugins can easily remove the listener link. The remove API is removed too: - ivi_layout_remove_notification_create_layer Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* ivi-shell: rework create_surface notificationUcan, Emre (ADITG/SW1)2016-04-051-1/+1
| | | | | | | | | | | | | | | | | | | | The add_notification_create_surface API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to add_listener_create_surface. This change has several advantages: 1. Code cleanup 2. No dynamic memory allocation. Listeners are allocated by controller plugins 3. Remove API is not needed. Controller plugins can easily remove the listener link. The remove API is removed too: - ivi_layout_remove_notification_create_surface Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* ivi-shell: rework layer_add_notification APIUcan, Emre (ADITG/SW1)2016-04-051-14/+19
| | | | | | | | | | | | | | | | | | | | The layer_add_notification API accepts a simple wl_listener instead of a ivi-shell specific notification function. Therefore, the API is renamed to layer_add_listener. This change has several advantages: 1. Code cleanup 2. No dynamic memory allocation. Listeners are allocated by controller plugins 3. Remove API is not needed. Controller plugins can easily remove the listener link. This patch also remove two APIs which are not needed: - ivi_layout_layer_remove_notification - ivi_layout_layer_remove_notification_by_callback Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
* ivi-shell: use weston_output in public APIsUcan, Emre (ADITG/SW1)2016-03-241-13/+13
| | | | | | | | | IVI layout APIs now are called with weston_output pointers, instead of ivi_layout_screen pointers. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Wataru Natsume <wnatsume@jp.adit-jv.com>
* ivi-shell: remove ivi_layout_get_screens APIUcan, Emre (ADITG/SW1)2016-03-241-47/+6
| | | | | | | | | The compositor data struct already has a list of weston outputs. Therefore, this API is not required. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Wataru Natsume <wnatsume@jp.adit-jv.com>
* ivi-shell: remove ivi_layout_get_screen_resolution APIUcan, Emre (ADITG/SW1)2016-03-241-52/+0
| | | | | | | | | The controller plugins can get the screen resolution directly from weston output. Therefore, this API is not required. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Wataru Natsume <wnatsume@jp.adit-jv.com>
* ivi-shell: remove ivi_layout_get_id_of_screen APIUcan, Emre (ADITG/SW1)2016-03-241-3/+3
| | | | | | | | | ivi-screen does not have an id. IVI layout implementation is using id of weston output. Therefore, this API is unnecessary. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Acked-by: Wataru Natsume <wnatsume@jp.adit-jv.com>
* ivi-shell: remove ivi_layout_layer_set_dimension APIUcan, Emre \(ADITG/SW1\)2016-03-041-33/+2
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_surface_set_dimension APIUcan, Emre \(ADITG/SW1\)2016-03-041-11/+0
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_layer_set_position APIUcan, Emre \(ADITG/SW1\)2016-03-041-33/+2
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_surface_set_position APIUcan, Emre \(ADITG/SW1\)2016-03-041-11/+0
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_layer_get_orientation APIUcan, Emre \(ADITG/SW1\)2016-03-041-7/+3
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_surface_get_orientation APIUcan, Emre \(ADITG/SW1\)2016-03-041-2/+0
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_layer_get_dimension APIUcan, Emre \(ADITG/SW1\)2016-03-041-33/+5
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_surface_get_dimension APIUcan, Emre \(ADITG/SW1\)2016-03-041-7/+0
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_layer_get_position APIUcan, Emre \(ADITG/SW1\)2016-03-041-28/+5
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_surface_get_position APIUcan, Emre \(ADITG/SW1\)2016-03-041-7/+0
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_layer_get_opacity APIUcan, Emre \(ADITG/SW1\)2016-03-041-9/+7
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_layer_get_visibility APIUcan, Emre \(ADITG/SW1\)2016-03-041-7/+4
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: remove ivi_layout_surface_get_visibility APIUcan, Emre \(ADITG/SW1\)2016-03-041-4/+0
| | | | | | Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Acked-by: wataru_natsume <wataru_natsume@xddp.denso.co.jp> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* ivi-shell: rename ivi_controller_interfaceUcan, Emre \(ADITG/SW1\)2015-10-291-281/+281
| | | | | | | | | | | | | | | | | | | The name of ivi_controller_interface is changed to ivi_layout_interface with this patch. This name is better suited to the interface, because it is implemented in ivi-layout.c and its methods are linked to ivi_layout* functions. Furthermore, the controller modules (e.g. hmi-controller) are the users of this interface and they have their own interfaces, which are called *_controller_interface, e.g.: ivi_hmi_controller_interface. This causes confusion about the software architecture. Signed-off-by: Emre Ucan <eucan@de.adit-jv.com> Tested-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
* tests: test set for ivi-shell notification with bad condition in server sideNobuhiko Tanibata2015-06-251-0/+69
| | | | | | | | | | | | | | | | These tests are implemented on test suite framework, which provides internal method validation, Following features are tested, - add notification of ivi-layer with bad parameter - add notification of ivi-surface configure with bad parameter - add notification of creating ivi-layer with bad parameter - add notification of creating ivi-surface with bad parameter - add notification of removing ivi-layer with bad parameter - add notification of removing ivi-surface with bad parameter Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
* tests: test set for ivi-shell notification normal use case in server sideNobuhiko Tanibata2015-06-251-0/+152
| | | | | | | | | | | | | These tests are implemented on test suite framework, which provides internal method validation. Following features are tested, - notification of adding ivi-layer - notification of creating ivi-layer - notification of removing ivi-layer Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
* tests: test set for ivi-screen with bad condition in server sideNobuhiko Tanibata2015-06-251-0/+102
| | | | | | | | | | | | | These tests are implemented on test suite framework, which provides internal method validation, Following features are tested, - ivi-screen operation with bad parameter - render order with bad parameter - destroy ivi-layer in the ivi-screen and call commit_changes Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
* tests: test set for ivi-screen normal use case in server sideNobuhiko Tanibata2015-06-251-1/+104
| | | | | | | | | | | | | These tests are implemented on test suite framework, which provides internal method validation. Following features are tested, - ivi-screen id - ivi-screen resolution - render order of ivi-layers in ivi-screen Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
* tests: test set for ivi-layer with bad condition in server sideNobuhiko Tanibata2015-06-251-0/+307
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These tests are implemented on test suite framework, which provides internal method validation. Following features are tested for ivi-layer, - create with bad parameter - visibility with bad parameter - opacity with bad parameter - destination rectangle with bad parameter - orientation with bad parameter - dimension with bad parameter - position with bad parameter - source rectangle with bad parameter - properties with bad parameter - destroy ivi-layer and call set_visibility_commit_changes - destroy ivi-layer, call set_opacity, and commit_changes - destroy ivi-layer, call set_orientation, and commit_changes - destroy ivi-layer, call set_dimension, and commit_changes - call set_position, destroy ivi-layer, and commit_changes - call set_source_rectangle, destroy ivi-layer, and commit_changes - call set_destination_rectangle, destroy ivi-layer, and commit_changes - create duplicate - destroy ivi-layer and call get_layer Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
* tests: test set for ivi-layer normal use case in server sideNobuhiko Tanibata2015-06-251-0/+277
| | | | | | | | | | | | | | | | | | These tests are implemented on test suite framework, which provides internal method validation. Following features are tested for ivi-layer, - create - visibility - opacity - orientation - dimension - position - destination rectangle - source rectangle Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
* tests: test set for ivi-surface with bad condition in server sideNobuhiko Tanibata2015-06-251-0/+74
| | | | | | | | | | | | | | | | These tests are implemented on test suite framework, which provides internal method validation. Following features are tested for ivi-surface, - destination_rectangle with bad parameter - orientation with bad parameter - dimension with bad parameter - position with bad parameter - source_rectangle with bad parameter - properties with bad parameter Signed-off-by: Nobuhiko Tanibata <nobuhiko_tanibata@xddp.denso.co.jp> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
* Remove redundant #include path component.Jon Cruz2015-06-151-2/+2
| | | | | | | | | Using the parent '../' path component in #include statements makes the codebase more rigid and is redundant due to proper -I use. Signed-off-by: Jon A. Cruz <jonc@osg.samsung.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Bryce Harrington <bryce@osg.samsung.com>
* tests: Update boilerplate from MIT X11 license to MIT Expat licenseBryce Harrington2015-06-151-16/+19
|
* tests: add ivi_layout stand-alone test modulePekka Paalanen2015-04-091-0/+121
This is the ivi_layout stand-alone test controller module that does not require any clients to run. Therefore it is much simpler than ivi_layout-test-plugin.c and does not need a matching part in ivi_layout-test.c. Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk> Reviewed-by: Derek Foreman <derekf@osg.samsung.com>