platform/core/accessibility/universal-switch.git
5 years agoFixes to TTS 44/205544/6
Adrian Wojciechowski [Tue, 7 May 2019 08:59:31 +0000 (10:59 +0200)]
Fixes to TTS

Change-Id: If0ee5e6d2eb140a54ddba45fd4ca253f58928ac4

5 years agoAdd flick left / right / up / down and taps to batch mode 30/205130/7
Radoslaw Cybulski [Mon, 29 Apr 2019 09:51:40 +0000 (11:51 +0200)]
Add flick left / right / up / down and taps to batch mode

Change-Id: Ifff9053df5ca63156d02cebb53aa755b606c9b13

5 years agoFixes for batch mode 60/204660/3
Radoslaw Cybulski [Thu, 25 Apr 2019 08:37:13 +0000 (10:37 +0200)]
Fixes for batch mode

Minor refactor and some fixes for batch mode.

Change-Id: I109c0b9d0e5476f74ead6633dd4bd8fcc6b7c29e

5 years agoDebug printing refactor in batch mode 86/203286/3
Radoslaw Cybulski [Thu, 11 Apr 2019 08:36:59 +0000 (10:36 +0200)]
Debug printing refactor in batch mode

Change-Id: Ia957ccf5f7554b79cf5a88819cf981d001544cb0

5 years agoChange of method signature due to external API change 07/206307/3
Lukasz Wlazly [Thu, 16 May 2019 07:00:27 +0000 (09:00 +0200)]
Change of method signature due to external API change

This patch follows change happend in e-mod-tizen-screen-reader
regarding new functionality for DispatchDragEvent

Change-Id: I2962284448d9a68961a8bec0eaeb92dfef4e9979

5 years agoAdd MIT disclaimer regarding keys names 61/194161/6
Lukasz Wlazly [Thu, 29 Nov 2018 11:59:17 +0000 (12:59 +0100)]
Add MIT disclaimer regarding keys names

Change-Id: I3a9a0864fad5a68919caa9df2cac1063835c4ef8

5 years agoFix issues detected by svace 07/193807/4
Oskar Chodowicz [Mon, 26 Nov 2018 11:42:41 +0000 (12:42 +0100)]
Fix issues detected by svace

Change-Id: Icdfa44aca13924c4e73e5cf7345fea6ed8857433

5 years agoReplace QueryBuilder with hiberlite ORM library 08/187908/8
Tomasz Jeschke [Wed, 29 Aug 2018 10:45:15 +0000 (12:45 +0200)]
Replace QueryBuilder with hiberlite ORM library

The goal is to replace building queries manually
with a dedicated ORM library.

hiberlite library included in the repository
https://github.com/paulftw/hiberlite
Latest commit ffd558a4917b33668d1001b4bba8e11b508be06a

QueryBuilder source files have been deleted.
SQLiteConfiguration files have been replaced
with HiberliteConfiguration.

Change-Id: If3f2e5caca633f1d4b167a79f2b9c1ceef39f74b

5 years agoDBusTests: fix not working tests 82/187382/1
Tomasz Jeschke [Wed, 22 Aug 2018 11:13:47 +0000 (13:13 +0200)]
DBusTests: fix not working tests

Access to DBus was changed.
Now to connect to specific interface on DBus
a config with the names of interfaces is needed.

Change-Id: I8c0eac297da074cb198ad86792fc49c0b149921d

5 years agokeyboard: refresh navigation interface after show/hide 69/186269/7
Tomasz Jeschke [Wed, 8 Aug 2018 11:18:46 +0000 (13:18 +0200)]
keyboard: refresh navigation interface after show/hide

Change-Id: Iefc060b4bcb9300765b0530f36394234a9f0d26e

5 years agoRegister window as screensaver 79/157679/7
Paweł Stawicki [Wed, 25 Oct 2017 16:52:24 +0000 (18:52 +0200)]
Register window as screensaver

registering as screensaver moves window to a layer above quickpanel

Change-Id: I2b74f828d5cf56e2f9b1dbe1b1fc9811bc7d348d

5 years agoignoredAtspiRoles: add ATSPI_ROLE_IMAGE_MAP to the list 00/185800/2
Tomasz Jeschke [Thu, 2 Aug 2018 10:27:01 +0000 (12:27 +0200)]
ignoredAtspiRoles: add ATSPI_ROLE_IMAGE_MAP to the list

image map is a container so it should not be navigated on

Change-Id: I07db9421436a671cbe4b61e2fc6fd8e649a8e14d

5 years agoCrop scanning field to window dimensions 97/184997/1
Lukasz Wlazly [Wed, 25 Jul 2018 06:20:53 +0000 (08:20 +0200)]
Crop scanning field to window dimensions

Change-Id: I72536b33167f719570e407dc2bc76f7bdda0a952

5 years agoKey context changes with id 93/184993/1
Radoslaw Cybulski [Wed, 25 Jul 2018 06:09:26 +0000 (08:09 +0200)]
Key context changes with id

Context changes are now keyed with id (with newer context change
getting next id), only the newest context change result will be used in
navigation. This fixes race, when two context change processes running
in parallel could result in wrong one being picked.

Change-Id: I3aad796e1f840d4b9918f8c7f02cda676174c5d6

5 years agoChange condition for creating new row during navigation 18/184818/2
Lukasz Wlazly [Mon, 23 Jul 2018 09:46:15 +0000 (11:46 +0200)]
Change condition for creating new row during navigation

In some cases UI widgets overlap each others with small number of
pixels. Those widgets should be seen as different rows during
navigation. New condition makes that, even if next elements starts in
3/4 of current row height, it would create new row.

Change-Id: I2b84b7b35de762365dcd95117c1fcc919f38e447

5 years agoFix for vconf keys and SwitchInteractionManager 19/170119/4
Lukasz Wlazly [Tue, 13 Feb 2018 10:36:05 +0000 (11:36 +0100)]
Fix for vconf keys and SwitchInteractionManager

This patch will:
1. Set default values of some vconf keys according to guideline
2. Copy std::string object when passed to callback inside SwitchInteractionManager

Change-Id: Ie510e84ed47df5ec82541418d9d3b513960fbe1f

5 years agoReducing number of dbusclients in SelectActivity 44/184644/2
Lukasz Oleksak [Thu, 19 Jul 2018 14:22:43 +0000 (16:22 +0200)]
Reducing number of dbusclients in SelectActivity

Change-Id: I98bc88b1a7db9a33e1f054b2e507ea19f123f5f4

5 years agoUsage of GObjectUnref 42/184542/2
Lukasz Wlazly [Wed, 18 Jul 2018 13:16:02 +0000 (15:16 +0200)]
Usage of GObjectUnref

Change-Id: I6349888133e348f4f99049494396332ff4048761

5 years agoUpdate according to EFL 1.20 59/181959/7
Lukasz Wlazly [Wed, 18 Apr 2018 10:51:25 +0000 (12:51 +0200)]
Update according to EFL 1.20

Change-Id: I3d51bc660d9fbf1a1bfdac4942ad8fe5d8d93adf

5 years agoRedefine universal-switch vconf keys. 81/167281/2
Pawel Kurowski [Tue, 16 Jan 2018 15:14:03 +0000 (16:14 +0100)]
Redefine universal-switch vconf keys.

Change-Id: I482ad3e3b422c1586dc80138a4bab424ea6b6814

6 years agoMove "keyboard disconnected" popup window to a separate executable 44/171544/8
Paweł Stawicki [Mon, 12 Mar 2018 12:32:36 +0000 (13:32 +0100)]
Move "keyboard disconnected" popup window to a separate executable

Change-Id: I6f712fb03d10df7c2519ef475822279e83bbbcb4

6 years agoRemove keyboardRootName2 hack. 12/171112/6
Pawel Kurowski [Mon, 26 Feb 2018 16:08:41 +0000 (17:08 +0100)]
Remove keyboardRootName2 hack.

Application with empty name may be incorrectly recognized as keyboard,
what will lead to looping the search for the scanning context.

Change-Id: Icba02f8e5f3aee0d320120d4f6eac251414de9fc

6 years agoFixes problem with blocked scanning after Auto Tap 58/171558/1
Lukasz [Mon, 5 Mar 2018 17:06:54 +0000 (18:06 +0100)]
Fixes problem with blocked scanning after Auto Tap

Change-Id: If10f26e7214b69871d523e17444be37e8dbc2359

6 years agoChange reading rules in voice support mode 16/170716/5
Pawel Kurowski [Wed, 21 Feb 2018 17:28:08 +0000 (18:28 +0100)]
Change reading rules in voice support mode

PointScanner reads found element with its accessible name.

RowScanner reads current element in row with its accessible name,
reads "multi-element" row with "row X", where X is the row number starting at 1,
reads "one-element" row same as element in this row,
reads "escape" frame.

Change-Id: I57488cf9a16a08316e85e24937c85ce02c936240

6 years agoPointScanner will not use information about scanning field. 52/170552/7
Pawel Kurowski [Tue, 20 Feb 2018 14:18:21 +0000 (15:18 +0100)]
PointScanner will not use information about scanning field.
It will always scan the full area of the screen and draw full-sized vertical/horizontal lines.

Change-Id: Ie65120d152a080f0f41cd875221f504bbce04e4d

6 years agoFix problem with inactiveLoopCounter in RowScanner 58/170558/4
Pawel Kurowski [Tue, 20 Feb 2018 20:07:36 +0000 (21:07 +0100)]
Fix problem with inactiveLoopCounter in RowScanner

Slight refactor
getFirstElementIndex takes into account 'invertDirection' argument

Change-Id: Ic0b7b21de9e8086f9e61c20927d31f222f931ea1

6 years agoKey event generator with e-mod method 30/169830/5
Lukasz Wlazly [Fri, 9 Feb 2018 12:58:45 +0000 (13:58 +0100)]
Key event generator with e-mod method

This solution enables synchronous dispatching
of key events

Change-Id: If09762f767f28772e0210d496691cd2649a1ff86

6 years agoAdd return statement to batch runner 02/170002/3
Paweł Stawicki [Mon, 12 Feb 2018 18:08:01 +0000 (19:08 +0100)]
Add return statement to batch runner

Change-Id: If2b055e67ffee1e286c4a18554a25222a7dd904f

6 years agoAdd functions to batch runner 33/169733/6
Paweł Stawicki [Thu, 8 Feb 2018 18:44:50 +0000 (19:44 +0100)]
Add functions to batch runner

Change-Id: I25c6c0d1ad65a611e5275e7824276fb73b312183

6 years agoFix for invalid doneCallback calling in GestureActivity 41/169841/1
Lukasz Wlazly [Fri, 9 Feb 2018 15:27:21 +0000 (16:27 +0100)]
Fix for invalid doneCallback calling in GestureActivity

Change-Id: Ie6f30ac0b37a552d652e9b9ae16633ad3f98a6a5

6 years agoRemove cynara warning. 31/169731/2
Pawel Kurowski [Thu, 8 Feb 2018 18:01:49 +0000 (19:01 +0100)]
Remove cynara warning.

Change-Id: I94f3846ec20fc4aabc861e3029d2a1c16fae2e74

6 years agoFix incorrect deduction of back frame size. 87/169587/7
Pawel Kurowski [Wed, 7 Feb 2018 19:42:47 +0000 (20:42 +0100)]
Fix incorrect deduction of back frame size.

Previously, to find frame size, tree was searched for fixed signature of roles.
New function calculates smallest rectangle containing all accepted elements.

Change-Id: I0fe08c87ff3e659fb047953fbc91830ef32275c0

6 years agoSupport for menus smaller then 4 elements. 66/164166/6
Pawel Kurowski [Fri, 15 Dec 2017 17:03:50 +0000 (18:03 +0100)]
Support for menus smaller then 4 elements.

Change-Id: I752e688e62294c7786489f7bc9d17b75e7356a71

6 years agoFixes invalid error message, when timeouting on gui() call 76/169576/3
Radoslaw Cybulski [Wed, 7 Feb 2018 14:36:35 +0000 (15:36 +0100)]
Fixes invalid error message, when timeouting on gui() call

Change-Id: I20016ca4c0405ab9f371ff35971c646e8e01578e

6 years agoFixes invalid parsing of function call with keyword args only 17/169717/3
Radoslaw Cybulski [Thu, 8 Feb 2018 13:16:38 +0000 (14:16 +0100)]
Fixes invalid parsing of function call with keyword args only

Call like foo(a = 1, b = 2) would fail, due to invalid parsing of second argument (b).

Change-Id: I4ca2558cf6d0e42d8b79c5c0a03490948415812b

6 years agoAdd parameter names to predefined functions 30/169430/3
Paweł Stawicki [Thu, 8 Feb 2018 10:59:24 +0000 (11:59 +0100)]
Add parameter names to predefined functions

Change-Id: I27a0c223e308756ea8f8e34cc25a7213c602c58c

6 years agoAdd import(filename) method to BatchRunner 61/168761/15
Paweł Stawicki [Thu, 1 Feb 2018 12:51:22 +0000 (13:51 +0100)]
Add import(filename) method to BatchRunner

Change-Id: Ied3a106417691d3f695c671873599defa6db2217

6 years agoFixes invalid wait operations for gui 72/169572/2
Radoslaw Cybulski [Wed, 7 Feb 2018 14:03:10 +0000 (15:03 +0100)]
Fixes invalid wait operations for gui

Change-Id: Id5c0105e484925bc56c5b1f0f561a69314bf8087

6 years agoAdds missing constructor overload to EvaluationValue 58/169558/1
Radoslaw Cybulski [Wed, 7 Feb 2018 11:31:13 +0000 (12:31 +0100)]
Adds missing constructor overload to EvaluationValue

Change-Id: I8f1b99268522e5c1de6b616a04bbb2793ae933af

6 years agoRemoves unnecessary debug messages 57/169557/1
Radoslaw Cybulski [Wed, 7 Feb 2018 11:23:21 +0000 (12:23 +0100)]
Removes unnecessary debug messages

Change-Id: Iaa83742b1928a947a23e99b5a1b73df0d96d059f

6 years agoAdd licence notices and remove needless comments 16/169416/2
Lukasz Wlazly [Tue, 6 Feb 2018 10:44:23 +0000 (11:44 +0100)]
Add licence notices and remove needless comments

Change-Id: I19854ab57d780b73ccac347e2ba59a3848f05cf9

6 years agoRename TestExecutor to BatchExecutor, move definition to header 77/168977/4
Paweł Stawicki [Thu, 1 Feb 2018 12:42:11 +0000 (13:42 +0100)]
Rename TestExecutor to BatchExecutor, move definition to header

Change-Id: I77e3af59358f7ed17ec1b9475fd0da5a50e5d864

6 years agoAdd class for postponed function calling 60/169160/9
Lukasz Wlazly [Fri, 2 Feb 2018 14:04:48 +0000 (15:04 +0100)]
Add class for postponed function calling

Change-Id: Ia1165f55ed1d48908bfa70f192a7e9fb35883db5

6 years agoFixes crash, when pending connection is in progress, when quiting 65/169165/9
Radoslaw Cybulski [Fri, 2 Feb 2018 15:48:00 +0000 (16:48 +0100)]
Fixes crash, when pending connection is in progress, when quiting

Keeps track of all pending DBus requests to cancel them, when
given connection is being closed.

Change-Id: I1d8bb665fcd604013d8020ccb8ef8f5c2ab7c1e8

6 years agoFix for invalid type in debug message 94/169294/1
Lukasz Wlazly [Mon, 5 Feb 2018 14:24:24 +0000 (15:24 +0100)]
Fix for invalid type in debug message

Change-Id: I1919a9e268824432376b69a86039c089f1f94e26

6 years agoAdd return value validation in GestureActivity 51/169151/2
Lukasz Wlazly [Fri, 2 Feb 2018 12:34:51 +0000 (13:34 +0100)]
Add return value validation in GestureActivity

Because e-mod call may fail, return value is checked
and proper error message is added to log

Change-Id: I0f42d2b3f9bfdf5ec4972f91a0f30a9e3e2db8eb

6 years agoFixes incorrect failure condition in activity processing in batch mode 82/169282/1
Radoslaw Cybulski [Mon, 5 Feb 2018 11:20:36 +0000 (12:20 +0100)]
Fixes incorrect failure condition in activity processing in batch mode

Fixes situation, where activity would be prematurely judged as failed.

Change-Id: I2acbd86856643b9f5bc7cede7ab75ae76fd02f73

6 years ago[Fix] User can access US menu via touch display. 85/166085/8
Pawel Kurowski [Fri, 5 Jan 2018 19:38:56 +0000 (20:38 +0100)]
[Fix] User can access US menu via touch display.

Small inconvenience connected to this solution:
gestures must be added by timer (the choice of delay is irrelevant)

With timer, function will be queued in main loop,
and executed later than change of input region,
allowing gesture to be passed to application below Universal Switch.

Change-Id: Ib774e65fc85bbc949b6b1c1c74a8a0adca4cd77d

6 years agoWaitTTS and WaitGui structures extracted from methods 70/168570/5
Lukasz Wlazly [Mon, 29 Jan 2018 09:24:37 +0000 (10:24 +0100)]
WaitTTS and WaitGui structures extracted from methods

Change-Id: I628330a9bbec53a7890047521dfe14f6261bad43

6 years ago[FIX] Add doneCallback calling in process method 60/168760/2
Lukasz Wlazly [Tue, 30 Jan 2018 14:23:24 +0000 (15:23 +0100)]
[FIX] Add doneCallback calling in process method

Change-Id: I3cb06020dba3390a382641c421a931bbf23058cd

6 years agoFix for ecore::Timer 35/168835/2
Lukasz Wlazly [Wed, 31 Jan 2018 08:45:25 +0000 (09:45 +0100)]
Fix for ecore::Timer

1. Invalid move constructor
2. Reset with no arguments haven't always removed callback

Change-Id: Ia02dd6dd4dc02849290c07560dfa667b033fea71

6 years agoGesture activities with new e-mod API 97/168597/10
Lukasz Wlazly [Mon, 29 Jan 2018 11:50:02 +0000 (12:50 +0100)]
Gesture activities with new e-mod API

Change-Id: I182f92a7bcce7bda386974dd3467bd015d62b93c

6 years agoChange in name of class EvaluationValue 53/168553/4
Lukasz Wlazly [Mon, 29 Jan 2018 08:18:06 +0000 (09:18 +0100)]
Change in name of class EvaluationValue

Change-Id: I573c53a5f2ca6ee34b08f4e50a20f4146ad0fdda

6 years agoFixes crash on Universal-Switch's shutdown 45/168445/2
Radoslaw Cybulski [Fri, 26 Jan 2018 15:38:59 +0000 (16:38 +0100)]
Fixes crash on Universal-Switch's shutdown

Change-Id: Ia1bb4f2fdb7292e2be4177d10fa91ced3e12db43

6 years ago[FIX] increment & decrement value of UIElement 58/165758/2
Pawel Kurowski [Wed, 3 Jan 2018 17:50:44 +0000 (18:50 +0100)]
[FIX] increment & decrement value of UIElement

Due to change of lambda signature from std::shared_ptr<AtspiAccessible>
to DBus::ValueOrError<std::shared_ptr<AtspiAccessible>>
addintional Null check  is requiered.

Change-Id: I5864f61740ef9ce2e255d114953aa7f20bf2f4d3

6 years agoSupport for cursor colors 99/165499/7
Pawel Kurowski [Fri, 29 Dec 2017 12:25:46 +0000 (13:25 +0100)]
Support for cursor colors

Frame will be drawn with two colors:
first is set by user in settings and second one is its inversion

Change-Id: I477731cc457f4223f03ea5aae21cb9801a4b345e

6 years agoAdds support for keyword arguments 02/168302/10
Radoslaw Cybulski [Thu, 25 Jan 2018 11:45:10 +0000 (12:45 +0100)]
Adds support for keyword arguments

Change-Id: I3f8a683fa89de7d414488f24fbb64348b78b0f4a

6 years agoCode fixes for seamless change to clang-format as formatting tool 69/168169/12
Radoslaw Cybulski [Wed, 24 Jan 2018 18:17:08 +0000 (19:17 +0100)]
Code fixes for seamless change to clang-format as formatting tool

Change-Id: Ibfef33940d69c4ad1f1ee87a1efe6ba8e4f76ee6

6 years agoSuppress warnings from Dlog.cpp 60/168160/17
Pawel Kurowski [Wed, 24 Jan 2018 14:41:40 +0000 (15:41 +0100)]
Suppress warnings from Dlog.cpp

Change-Id: I6c744605e5bdb00dc9b929fa639a9df0fae96e1d

6 years agoSplits TestExecutor constructor into functions 72/167872/31
Radoslaw Cybulski [Mon, 22 Jan 2018 12:37:25 +0000 (13:37 +0100)]
Splits TestExecutor constructor into functions

Change-Id: I81bc484b0a002434a7f1022b8ae5b8177b985f37

6 years agoAdds support for -> operator, which allows to wait for various events 45/167445/43
Radoslaw Cybulski [Wed, 17 Jan 2018 16:11:06 +0000 (17:11 +0100)]
Adds support for -> operator, which allows to wait for various events

Consider following situation (in batch mode): first you TAP on icon on
home screen and launch an application, then you want to TAP on some
icon inside the application. Now you've to wait for the application to
initialize and appear foreground. Operator -> is to solve this issue:

TAP('Phone') -> gui()

means execute left side (TAP), then wait for conditions on right side
(gui - context must change, new app appear and so on). Currently only
two conditions are supported - gui (new context, new window and so on)
and tts (screen reader did read something).

Change-Id: I72d00335c360acf97979825b73ed0c98040a0dc4

6 years agoAdds Args struct for getting all arguments unprocessed in batch mode 89/167589/38
Radoslaw Cybulski [Thu, 18 Jan 2018 07:03:44 +0000 (08:03 +0100)]
Adds Args struct for getting all arguments unprocessed in batch mode

Adds EvaluationValueFunction::Args struct. Object of this type will
hold all arguments passed to a function in unprocessed form. Functor
must only take single parameter of this type, for example

EvaluationValue func = [](EvaluationValueFunction::Args args) { ... }

Change-Id: I31c66104e70525bd86bfdc5ca86977e7263e1858

6 years agoSplits EvaluationValue class impl into various base classes 25/167425/44
Radoslaw Cybulski [Mon, 15 Jan 2018 09:14:20 +0000 (10:14 +0100)]
Splits EvaluationValue class impl into various base classes

Note, this patch requires next one (Adds Args struct for getting all
arguments unprocessed in batch mode) to work properly.

Change-Id: I4ac0f78e716e314a3079baf788858f6dbeacd0c9

6 years agoAdds debug interface for printing debug info as evaluation goes 24/167424/37
Radoslaw Cybulski [Tue, 16 Jan 2018 10:17:01 +0000 (11:17 +0100)]
Adds debug interface for printing debug info as evaluation goes

Adds debug functionality, which will allow user to print debug
information about ongoing evaluation. Mostly for crash and test failure
diagnostics.

Change-Id: I6441cf808b14aeedcfed484f9fa1ae88e21cddc0

6 years agoRefactors how current EvaluationContext is passed over 67/167267/34
Radoslaw Cybulski [Tue, 16 Jan 2018 12:23:54 +0000 (13:23 +0100)]
Refactors how current EvaluationContext is passed over

Current EvaluationContext object is no longer passed around as function
argument. Now there's global thread_local pointer to current
EvaluationContext value. Creating new EvaluationContext updates this
pointer, but only for the current thread.

Change-Id: I9ce52ddb2860a53e405da85fe0cd53a833f73d8c

6 years agoAdds basic script to launch universal-switch batch mode 52/166752/39
Radoslaw Cybulski [Thu, 11 Jan 2018 16:07:54 +0000 (17:07 +0100)]
Adds basic script to launch universal-switch batch mode

Implement your test in file batch_file put in src/batch directory.
Run run-batch.sh file, which will send files to the target device,
launch universal-switch in batch mode (must be turned off before
launching) and output to the terminal any output from the batch.

Change-Id: I5104fd75b551875f25e76c52b6b01f1640c73dab

6 years agoAdds support for comment (# character) in batch scripts 91/167591/20
Radoslaw Cybulski [Thu, 18 Jan 2018 09:55:58 +0000 (10:55 +0100)]
Adds support for comment (# character) in batch scripts

Character # begins comment, which lasts until end of line.

Change-Id: Ia6ecfcea2116eb071a6ff77174b1369204e3e850

6 years agoAdds rudimentary support for parsing dlog 51/166751/31
Radoslaw Cybulski [Thu, 11 Jan 2018 16:04:26 +0000 (17:04 +0100)]
Adds rudimentary support for parsing dlog

Adds basic functionality allowing reading and parsing dlog.
Adds wait_for_tts command, which waits for given text to be
read by screen-reader.

Change-Id: Ie9ec90898c060926d2c4a8087e81c21c570bbdda

6 years agoFixes context change with invalid atspi root object 06/166506/30
Radoslaw Cybulski [Tue, 9 Jan 2018 16:06:03 +0000 (17:06 +0100)]
Fixes context change with invalid atspi root object

Fixes calculation of visible root object (at-spi object, that is root
of all visible at-spi objects).

Change-Id: Ie8e04f395a51b798b0712f036b95314a5a458acd

6 years agoSeveral race related fixes for batch mode 34/166334/35
Radoslaw Cybulski [Tue, 9 Jan 2018 11:33:47 +0000 (12:33 +0100)]
Several race related fixes for batch mode

Fixes race in batch mode, where main thread could cleanup before
batch mode thread, which resulted in crash.
Fixes race, where timer could fire after exception happened in batch
mode and cleanup was done, crashing an application.

Change-Id: I6b2dad49f3f154841bf5e436f23f0d5e796c9b3d

6 years agoEnables Back activity and Start home screen activity in batch mode 31/166331/32
Radoslaw Cybulski [Tue, 9 Jan 2018 10:11:28 +0000 (11:11 +0100)]
Enables Back activity and Start home screen activity in batch mode

Change-Id: I7b80e5a381c84cf4e5faf51340f1a69ff8056bb5

6 years agoAdds assert function in batch mode 30/166330/31
Radoslaw Cybulski [Mon, 8 Jan 2018 12:11:08 +0000 (13:11 +0100)]
Adds assert function in batch mode

Adds assert function, which expects boolean argument.
If the argument is false, then an exception is raised and
batch mode will end with failure.

Change-Id: Id7f6114623cdff0f1962099b3b79e96066be5bf6

6 years agoAdds point construction test in batch mode 95/165895/32
Radoslaw Cybulski [Thu, 4 Jan 2018 16:56:55 +0000 (17:56 +0100)]
Adds point construction test in batch mode

Change-Id: Ia915d749c669364e84029e2fe31a343b48ff6327

6 years agoMinor refactor of getters / setters in batch mode 94/165894/33
Radoslaw Cybulski [Thu, 4 Jan 2018 16:47:28 +0000 (17:47 +0100)]
Minor refactor of getters / setters in batch mode

Change-Id: I655a6207458597db07f85474a44501799dc2e887

6 years agoFixes for invalid operator () in UserFunctionType 93/165893/31
Radoslaw Cybulski [Thu, 4 Jan 2018 15:57:31 +0000 (16:57 +0100)]
Fixes for invalid operator () in UserFunctionType

Change-Id: I62192758216b11d0ba5ac364187b3732022e9a2e

6 years agoMinor refactor in batch test 92/165892/31
Radoslaw Cybulski [Thu, 4 Jan 2018 15:55:28 +0000 (16:55 +0100)]
Minor refactor in batch test

Adds code, that catches and prints exception, when executing
test of batch mode.

Change-Id: Ief383770d574ee9aa0337fd05d6806dff47d646c

6 years agoAdds print function to batch mode 91/165891/31
Radoslaw Cybulski [Thu, 4 Jan 2018 15:50:34 +0000 (16:50 +0100)]
Adds print function to batch mode

Adds print function, which will output string to output file, if any was
given.

Change-Id: Idaad9f5db57ab108bcf4ca2da9fde7263a0b95b0

6 years agoAdds wait_for_application function to batch mode 73/165873/31
Radoslaw Cybulski [Thu, 4 Jan 2018 11:38:36 +0000 (12:38 +0100)]
Adds wait_for_application function to batch mode

Adds wait_for_application function, which waits until current context's
root's name will be equal to one given as argument. After predefined
time (3 seconds) function will raise timeout exception and fail
execution.

Change-Id: I0b1b2b51a328cf4aa6310f93867a458194207fd8

6 years agoTerminate in nicer way, when batch mode failed to start at all 72/165872/30
Radoslaw Cybulski [Thu, 4 Jan 2018 11:37:14 +0000 (12:37 +0100)]
Terminate in nicer way, when batch mode failed to start at all

Updates initialization of batch mode to terminate Universal Switch in
more friendlier way (thus avoiding crash popup), when batch mode
startup failed. For example, when failed to create output file.

Change-Id: I440754dd08a655a5cd3844947817a9a359647a66

6 years agoRefactor of EvaluationValue class 47/165047/47
Radoslaw Cybulski [Fri, 22 Dec 2017 16:09:02 +0000 (17:09 +0100)]
Refactor of EvaluationValue class

Minor refactor of EvaluationValue class in preparation to switch to
std::variant.

Change-Id: I6aac2f1f1bc61c885da405e776464385eb4a5350

6 years agoAdds Monitor class for easier thread synchronization 97/164897/53
Radoslaw Cybulski [Thu, 21 Dec 2017 12:09:51 +0000 (13:09 +0100)]
Adds Monitor class for easier thread synchronization

Adds Monitor and ValueOrExceptionMonitor classes for easier
synchronization and value passing between threads.

Change-Id: Id8374cfc60857b234c1db15dd51a8f279b0fcf97

6 years agoWraps DBus / efl interactions in try / catch blocks 06/167606/2
Radoslaw Cybulski [Thu, 18 Jan 2018 13:58:46 +0000 (14:58 +0100)]
Wraps DBus / efl interactions in try / catch blocks

Adds try / catch statements around calls, which might leak exceptions
to efl, which doesn't support it (efl is written in C).
Exceptions will be changed to error states with message.

Change-Id: I8ff483b14d9df39b179874896aba9f93ec2df103

6 years agoAdds middle_point attribute in batch mode 62/164562/43
Radoslaw Cybulski [Tue, 19 Dec 2017 16:02:39 +0000 (17:02 +0100)]
Adds middle_point attribute in batch mode

Adds middle_point attribute to atspi object, which returns middle point
of object's current screen position. Information is not cached.

Change-Id: I0d41ce4ef882be1554dadbf77ddbb2f139020caa

6 years agoAdds name attribute to UIElement in batch mode 61/164561/43
Radoslaw Cybulski [Tue, 19 Dec 2017 16:00:33 +0000 (17:00 +0100)]
Adds name attribute to UIElement in batch mode

Adds name attribute, which returns atspi object's current name.

Change-Id: Ia69f5577b3393790e767bd479f5452887985ad83

6 years agoRegisters activities as callables in batch mode 60/164560/43
Radoslaw Cybulski [Tue, 19 Dec 2017 15:58:18 +0000 (16:58 +0100)]
Registers activities as callables in batch mode

Registers all activities, which override
getRequiredNumberOfArgumentsIfAllowedInTesting function to return
required number of arguments.

Change-Id: I59d63f14d7746ff3217a324088301917645edc52

6 years agoAdds support for adding getters / setters for attributes in batch mode 59/164559/42
Radoslaw Cybulski [Tue, 19 Dec 2017 15:56:16 +0000 (16:56 +0100)]
Adds support for adding getters / setters for attributes in batch mode

Change-Id: Ifa8eb9578b7b6d7df8eeb26c81d3ae3744ee81e8

6 years agoAdds find_by_name function in batch mode 58/164558/42
Radoslaw Cybulski [Tue, 19 Dec 2017 15:54:09 +0000 (16:54 +0100)]
Adds find_by_name function in batch mode

Change-Id: I339f47651f652f8d3a674ce383dba3b279914550

6 years agoAllows finding object by name in batch mode 57/164557/39
Radoslaw Cybulski [Tue, 19 Dec 2017 15:46:04 +0000 (16:46 +0100)]
Allows finding object by name in batch mode

Adds convertion from string to UIElement, which works by searching for
a atspi object with reqested name. Must be found only one or batch mode
will fail.

Change-Id: Ie09fc2370c59e24953cdfefbe6734f19d4864f04

6 years agoTestExecutor will now throw, when unknown variable has been requested 93/167593/1
Radoslaw Cybulski [Thu, 18 Jan 2018 10:20:13 +0000 (11:20 +0100)]
TestExecutor will now throw, when unknown variable has been requested

getVariableByName will throw unknown variable exception, when asked to
retrieve a variable it doesn't know.

Change-Id: Ia1f8859e929dd2034f1e5bca13189e009fac6cb2

6 years agoAdds support for finding object based by it's position in batch mode 56/164556/36
Radoslaw Cybulski [Tue, 19 Dec 2017 15:40:13 +0000 (16:40 +0100)]
Adds support for finding object based by it's position in batch mode

Adds ability to convert from position to at-spi object.
Adds get_at_point function.

Change-Id: I755a32c6bc6a703ed699dc1363b58701296588b7

6 years agoMakes atspi roles / states available for batch processing 55/164555/36
Radoslaw Cybulski [Tue, 19 Dec 2017 15:36:36 +0000 (16:36 +0100)]
Makes atspi roles / states available for batch processing

Change-Id: Idf5671cac6faf0ebf91d8624ac6fac316aba6af5

6 years agoAdds support for executing batch file given in command line 52/164552/34
Radoslaw Cybulski [Tue, 19 Dec 2017 15:02:53 +0000 (16:02 +0100)]
Adds support for executing batch file given in command line

Change-Id: If7322e67dc39687b6d3a6eea65d60f1557dc328f

6 years agoMinor refactor of NavigationInterface 51/164551/31
Radoslaw Cybulski [Tue, 19 Dec 2017 14:58:37 +0000 (15:58 +0100)]
Minor refactor of NavigationInterface

Adds methods to receive current context element and current visible
root atspi object.
Removes dependency on Window object to retrieve screen size -
constructing Window object in batch mode was causing constant
navigation context changes.

Change-Id: I37851c7aaa8a6267060f63937b59222131b67394

6 years agoAdds missing functions to Atspi 50/164550/28
Radoslaw Cybulski [Tue, 19 Dec 2017 14:53:31 +0000 (15:53 +0100)]
Adds missing functions to Atspi

States and roles setter in Atspi::Match will now accept template based
iterators begin and end.
Adds Atspi::getScreenPosition synchronous version.

Change-Id: I35a941dc7ab5caf10bf96a594892f6102c7df352

6 years agoDBus calls will now optionally call notification callback 49/164549/26
Radoslaw Cybulski [Tue, 19 Dec 2017 14:50:34 +0000 (15:50 +0100)]
DBus calls will now optionally call notification callback

Adds support for notification callbacks to DBus wrapper. Once set
it will be called, when DBus wrapper calls any dbus function or
received a call.

Change-Id: Idcb0b777167cfef606b0d7df379406b3896234cd

6 years agoActivites usable from batch must be now marked 48/164548/22
Radoslaw Cybulski [Tue, 19 Dec 2017 14:45:48 +0000 (15:45 +0100)]
Activites usable from batch must be now marked

Activities, that are suuposed to be callable from batch test, must
override getRequiredNumberOfArgumentsIfAllowedInTesting method
and return number of expected arguments.

Change-Id: Iffeb1b4ee7576a11bf260a47e98748f422f94786

6 years agoAdds support for in operator 46/164546/20
Radoslaw Cybulski [Tue, 19 Dec 2017 14:34:12 +0000 (15:34 +0100)]
Adds support for in operator

Adds support for in operator, which returns true, if value is in given
collection. Works with vectors, sets and dicts.

Change-Id: Ied91f37e7ad1857c977cdba19074230902fc114b

6 years agoAdds support for - single value operator (negation) 45/164545/20
Radoslaw Cybulski [Tue, 19 Dec 2017 14:30:46 +0000 (15:30 +0100)]
Adds support for - single value operator (negation)

Adds support for - operator, which allows creating negative values.
Works only integer and double.

Change-Id: I0fa06ce5982b59947e8b8cff969f2db01c809666

6 years agoAdds support for vector's / string's array set / get operators 44/164544/20
Radoslaw Cybulski [Tue, 19 Dec 2017 14:23:24 +0000 (15:23 +0100)]
Adds support for vector's / string's array set / get operators

Adds support for accessing elements by index in string / vector values.
Both single indexes and dual (range - first inclusive, second
exclusive) versions are supported. You can do v[1] to get first element
of v, v[-1] to get last element of v (negative indexes are counted from
the end) and v[1:3] to get array including first and second element,
but not third.

Change-Id: I622d1c22a30f708007f0e8d27b4d9f3d5eb51b63

6 years agoAdds support for executing parsed batch test 43/164543/19
Radoslaw Cybulski [Tue, 19 Dec 2017 13:38:51 +0000 (14:38 +0100)]
Adds support for executing parsed batch test

Change-Id: I59aa25a4142b1ed331db78a7136603ca8ea48973