platform/core/accessibility/universal-switch.git
6 years agoNavigation implementation without external dependencies 91/154591/26
Radoslaw Cybulski [Tue, 10 Oct 2017 08:36:08 +0000 (10:36 +0200)]
Navigation implementation without external dependencies

This patch implements navigation without adding any new dependencies to
third party at-spi libraries. Everything is calculated using native
at-spi calls.

Change-Id: Ie536f014a6baa781046e16026e87b6200d5609b4

6 years agoImplements screen-reader alike navigation for Universal Switch 12/148312/15
Radoslaw Cybulski [Mon, 28 Aug 2017 15:15:01 +0000 (17:15 +0200)]
Implements screen-reader alike navigation for Universal Switch

Change-Id: I6db525ec2c9aab25822d4a72b47a258294c455e1

6 years agoHandling back button in SelectActivity 03/156703/2
Pawel Kurowski [Thu, 19 Oct 2017 10:56:39 +0000 (12:56 +0200)]
Handling back button in SelectActivity

Change-Id: I31977a539f8a7451ce1fe7ef664a10408600c91d

6 years agoRemove unnecessary constant from SelectActivity 72/155972/2
Pawel Kurowski [Mon, 16 Oct 2017 18:21:45 +0000 (20:21 +0200)]
Remove unnecessary constant from SelectActivity

Previously gengrid size was  expanded by POPUP_GENGRID_SIZE_FACTOR,
to avoid scaling errors, now UI uses Evas hints properly.

Method divideAndRoundOut was removed, as not needed anymore.

I've decided to leave return value in addItemsToMenu method.

Change-Id: Ia334b7cf079330fbe337220137299e6e7875121c

6 years ago[Fix] This patch resolves removing incorrect Activity from stack. 93/153993/9
Pawel Kurowski [Wed, 4 Oct 2017 16:10:13 +0000 (18:10 +0200)]
[Fix] This patch resolves removing incorrect Activity from stack.

void process() method in Activity.
void markAsCompleted() method in Activity.

Change-Id: I1de7f9a266b32919add25607e3a0ee55b5909d5c

6 years agoBring to front main window on contextChanged event. 64/155964/2
Paweł Stawicki [Mon, 16 Oct 2017 14:53:38 +0000 (16:53 +0200)]
Bring to front main window on contextChanged event.

Display Main window above "power off" popup.

Change-Id: Ibe5282938ef9dafa7cf419fd2ef9ed54ad4b2d38

6 years agoDelete needless directory from tests 55/156155/2
Lukasz Wlazly [Tue, 17 Oct 2017 09:21:25 +0000 (11:21 +0200)]
Delete needless directory from tests

Change-Id: I40c565974689d0b2732389e5d7d0a22f2293c75e

6 years agoTimer in ScreenshotActivity 54/154154/7
Pawel Kurowski [Sun, 8 Oct 2017 13:51:30 +0000 (15:51 +0200)]
Timer in ScreenshotActivity

According to enlightenment documentation evas_object_del
"marks the given Evas object obj for deletion (when Evas will free its memory). Objects are not freed immediately"
Without additional delay for render cycles, screenshot could capture context menu.

ScreenshotActivity now uses Unique_ptr to handle memory.

Change-Id: Ib703d178fb2c71e4de7a6485fd87d184039a1b1c

6 years agoRemove callbacks set on hardware back button 90/154390/8
Lukasz Wlazly [Tue, 10 Oct 2017 06:57:36 +0000 (08:57 +0200)]
Remove callbacks set on hardware back button

Universal Switch does not receive notifications about pressing
hardware buttons directly from ecore

Change-Id: I803c394d67f55227f7d5391b2167dae17cc4d668

6 years agoPowerKeyMenuActivity 58/155258/3
Pawel Kurowski [Thu, 12 Oct 2017 13:01:03 +0000 (15:01 +0200)]
PowerKeyMenuActivity

Change-Id: I407978e21449b3d643e5e59665bacf446f877d53

6 years agoScreenshotActivity 53/154153/4
Pawel Kurowski [Sun, 8 Oct 2017 13:34:59 +0000 (15:34 +0200)]
ScreenshotActivity

Change-Id: I40cf461f00ed1d6572c625fdd0935e74293b7346

6 years agoStartSettingsActivity 56/154156/4
Pawel Kurowski [Sun, 8 Oct 2017 18:23:25 +0000 (20:23 +0200)]
StartSettingsActivity

Change-Id: I8ae66bc73adc5bd997c2b545021d518e17d54469

6 years agoAdd NextElementActivity, PrevElementActivity 99/154099/5
Paweł Stawicki [Fri, 6 Oct 2017 11:19:22 +0000 (13:19 +0200)]
Add NextElementActivity, PrevElementActivity

Change-Id: Id96518134339d95a7b7e1648928bfba9298611bc

6 years agoRefactor of tests suits 81/154081/1
Lukasz Wlazly [Fri, 6 Oct 2017 09:52:14 +0000 (11:52 +0200)]
Refactor of tests suits

1. Change all "asserts" into "expects".
2. Usage of ecore::Timer in ConfigurationTests

Change-Id: I0cce58be91ba38c88cf095978ecfc748bff449c3

6 years agoIntegration of AccessoriesSwitchProvider with e-mod-tizen-screen-reader 47/154047/6
Lukasz Wlazly [Thu, 5 Oct 2017 07:50:10 +0000 (09:50 +0200)]
Integration of AccessoriesSwitchProvider with e-mod-tizen-screen-reader

AccessoriesSwitchProvider receives notificaton about pressed keys
from enlightenment module via dbus instead of ecore events.

Change-Id: Iffba114b5dfd370d4d890b82118a1b35f32ae940

6 years agoBugfix: RowScanner resumes scanning from beginning 48/154048/3
Paweł Stawicki [Thu, 5 Oct 2017 13:00:48 +0000 (15:00 +0200)]
Bugfix: RowScanner resumes scanning from beginning

Change-Id: I775a9b6dad9c847759196839df216ee8f2a71f2f

6 years agoIncreaseVolumeActivity & DecreaseVolumeActivity 43/154043/2
Pawel Kurowski [Thu, 5 Oct 2017 12:12:11 +0000 (14:12 +0200)]
IncreaseVolumeActivity & DecreaseVolumeActivity

Change-Id: I9714ed1ddd55ff356503b37c30f6bee0fd27bd0d

6 years agoFix for invalid signal deregistration 30/154030/1
Radoslaw Cybulski [Thu, 5 Oct 2017 09:58:19 +0000 (11:58 +0200)]
Fix for invalid signal deregistration

Add signal hanlder unregister call, when pointer to callback function
is being destroyed.

Change-Id: I379f988a2589bd06fc95297a3ed6df32deefdc3b

6 years agoMenuMap renamed to MenuBuilder 95/153895/5
Pawel Kurowski [Mon, 2 Oct 2017 18:00:18 +0000 (20:00 +0200)]
MenuMap renamed to MenuBuilder

Change-Id: I83d0c4d2ebfea89f2588bb185f9fb568c942b77a

6 years agoMenuBuilder will return vector of MenuItems in same order as they will be displayed 54/153854/8
Pawel Kurowski [Sun, 1 Oct 2017 17:49:13 +0000 (19:49 +0200)]
MenuBuilder will return vector of MenuItems in same order as they will be displayed

Limited number of copy constructor calls.

Change-Id: I6fb0c906fe60c1f2000901f49c48e3d021b4b1eb

6 years agoHide Implementation of MenuItem and Menu Map 53/153853/5
Pawel Kurowski [Sun, 1 Oct 2017 16:58:02 +0000 (18:58 +0200)]
Hide Implementation of MenuItem and Menu Map

Change-Id: I326557cb810af741d7c3fdab922b50fe38d4311c

6 years agoRowScanner: doubled sound fix on "repeatable" menu item 75/153975/1
Paweł Stawicki [Wed, 4 Oct 2017 12:29:44 +0000 (14:29 +0200)]
RowScanner: doubled sound fix on "repeatable" menu item

Change-Id: I3ddcc3b3d3ff2e814e94faaf8387d288cdc7f9fe

6 years agoAllow scanning continuation in RowScanner after scannign completion 14/153414/4
Mariusz Wachowicz [Wed, 27 Sep 2017 10:30:35 +0000 (12:30 +0200)]
Allow scanning continuation in RowScanner after scannign completion

If after scanning completion context change do not take place
scanner will do not start however there is possibility to use
that feature with startAutoscanningWithContinuation().
That method will use previous scanner and will continue scanning.

Change-Id: I1864a2b09fd9fcd13a7dfd01102cd4b081811b3f

6 years agoRepeatable actions in context menu 45/152645/8
Pawel Kurowski [Fri, 29 Sep 2017 10:06:32 +0000 (12:06 +0200)]
Repeatable actions in context menu

Repeatable activity can be selected multiple times,
without closing context menu.

Change-Id: Icfaac8f7bde849987c502a4d885f29b394cc0b8f

6 years agoMenuItem - SelectActivity communication via Subject/Observer mechanism 37/152637/12
Pawel Kurowski [Tue, 26 Sep 2017 15:47:16 +0000 (17:47 +0200)]
MenuItem - SelectActivity communication via Subject/Observer mechanism

SelectActivity fixes:
+ AUTO_TAP_WAITING_PERIOD_KEY is a key of type "double", handle is kept in SelectActivity
+ small changes of UI can be done without refreshing whole Menu
+ problematic pointers to std::stack elements was removed

MenuItem:
+ subclass VconfIntTypeMenuItem and VconfBoolTypeMenuItem

Change-Id: Ie2e639e4d6a6811b0541f00e3eb25802b1294893

6 years agoTests: add terminate() method to tests eventloop 66/153866/3
Paweł Stawicki [Mon, 2 Oct 2017 11:27:05 +0000 (13:27 +0200)]
Tests: add terminate() method to tests eventloop

Fixes not deterministic VconfImplTests fail

Change-Id: I24c89a4233a54b222a924a8835fa32dceaee5dc0

6 years agoReduced number of arguments in Activities templates 69/153869/3
Pawel Kurowski [Mon, 2 Oct 2017 13:22:34 +0000 (15:22 +0200)]
Reduced number of arguments in Activities templates

Change-Id: I799603c6395c04974e12866a0121f1cb12e5c65c

6 years agoVolumeControlActivity 52/153852/4
Pawel Kurowski [Sun, 1 Oct 2017 14:12:59 +0000 (16:12 +0200)]
VolumeControlActivity

Template and six Activities to set volume value.

Change-Id: I87b5c5ab1eb151fced8066ee764c52012c2ebe5f

6 years agoSet main window of Universal-Switch unfocused 68/153868/4
Lukasz Wlazly [Mon, 2 Oct 2017 13:12:38 +0000 (15:12 +0200)]
Set main window of Universal-Switch unfocused

Universal-Switch will not intercept any events from hardware buttons

Change-Id: I2cc506f8447d2eafbc02f8ad455872ff20de4ad8

6 years agoIntroduction of VconfTypeMenuItem 13/152013/8
Pawel Kurowski [Sun, 24 Sep 2017 13:59:37 +0000 (15:59 +0200)]
Introduction of VconfTypeMenuItem

MenuBuilder refactor.
MenuBuilderTests moved to ui-scenarios.

Change-Id: I4a577bf831ee117c0ec64a5a527110f6ae58bc4d

6 years agoQuickpanel & QuickpanelActivities 01/152001/9
Pawel Kurowski [Fri, 22 Sep 2017 15:23:41 +0000 (17:23 +0200)]
Quickpanel & QuickpanelActivities

Menu Builder now uses Window, causing tests to fail.
This patch does not resolve quickpanel scanning/capturing switches problem.

Change-Id: Ia878609d17cf0ffc237a84aa59e2f0fbed63ff26

6 years agoAdd server side dbus wrappers and tests 98/150198/14
Radoslaw Cybulski [Fri, 8 Sep 2017 08:48:31 +0000 (10:48 +0200)]
Add server side dbus wrappers and tests

Add dbus wrappers for server-side functionality (publishing interfaces,
emiting signals and so on). Add tests for all functionality.

Change-Id: I3f5ddcdc72f372b708ae99f15d0c9b63c9264f55

6 years agoFix for mishandling disjoined Rectangles in Rectangle::intersect 42/152542/3
Radoslaw Cybulski [Tue, 26 Sep 2017 09:43:49 +0000 (11:43 +0200)]
Fix for mishandling disjoined Rectangles in Rectangle::intersect

Disjoined rectangles wont produce negate width and height values -
instead width and height are bound to minimum value 0.

Change-Id: I93402a1f9705fa1b98fce151f141496d56ae37cf

6 years agoAdd activities simulating keys pressing 94/151194/11
Lukasz Wlazly [Wed, 20 Sep 2017 07:31:57 +0000 (09:31 +0200)]
Add activities simulating keys pressing

Patch provides template class ready to simulate any key press
with multiplicity parameter

Change-Id: Idaa212b0f58b602ab8f0a5e171ad53c5fb88723d

6 years agoUsage of efl_util to generate key events 50/152950/7
Lukasz Wlazly [Tue, 26 Sep 2017 15:04:09 +0000 (17:04 +0200)]
Usage of efl_util to generate key events

Change-Id: I14f6e8b22dee2fc1b15679911dbf86caa0afccdd

6 years agoAdd generateDocs.sh script runnable without gbs 31/153031/3
Paweł Stawicki [Wed, 27 Sep 2017 17:03:58 +0000 (19:03 +0200)]
Add generateDocs.sh script runnable without gbs

Change-Id: Ibfd78440f7aa442fa27ee775d1444be1cf7a0a77

6 years agoAdd "zoom in" and "zoom out" activities 76/153276/1
Lukasz Wlazly [Thu, 28 Sep 2017 07:19:02 +0000 (09:19 +0200)]
Add "zoom in" and "zoom out" activities

Change-Id: I60d4b7c67c989eb9989fb7a0729b1d25e805ec4c

6 years agoGenerate rpm package with doxygen documentation 85/151085/3
Paweł Stawicki [Tue, 19 Sep 2017 15:50:29 +0000 (17:50 +0200)]
Generate rpm package with doxygen documentation

running gbs build with docs:
  gbs build <user config> --define "_with_docs 1"

Change-Id: Ica3d3834488539b78479c70b9a072f792256c1f4

6 years agoIntroduce dashed line state in PointScanner 66/151366/7
Mariusz Wachowicz [Tue, 19 Sep 2017 08:01:54 +0000 (10:01 +0200)]
Introduce dashed line state in PointScanner

Horizontal dashed line allow to revert to beginning of scanning
is case of missclick or inacurate selection

Change-Id: Iaa051cea74e7903f886a19e9b29ade0fb3d1fb27

6 years agoIncreaseValueActivity & DecreaseValueActivity 20/137920/16
Mariusz Wachowicz [Fri, 7 Jul 2017 07:54:23 +0000 (09:54 +0200)]
IncreaseValueActivity & DecreaseValueActivity

patch adds possibility to change value of
any widget with AtspiValueInterface

change value activity forwards task to
methods increase and decrease implemented in class UIElement
which in turn make asynchronous dbus calls to
methods from AtspiValueInterface

Change-Id: I4da3925e2dd37bf0c2033e54d24a91e9d55bd4bf

6 years agoAdd EscapeFrameEnabled parameter 93/150793/8
Mariusz Wachowicz [Mon, 18 Sep 2017 09:22:46 +0000 (11:22 +0200)]
Add EscapeFrameEnabled parameter

Allow rollback in row scanner state, after selecting dashed
frame in row stage, scanner state will be reset to starting state

Feauture is enabled only when EscapeFrameEnabled atribute
is added and it's value is set to true

Change-Id: I5149771137be44f083583a3184ecba1acec87ae6

6 years agoMove drawing methodes to evas namespace in Geometry 65/151365/12
Mariusz Wachowicz [Wed, 20 Sep 2017 13:08:48 +0000 (15:08 +0200)]
Move drawing methodes to evas namespace in Geometry

Change-Id: I814247f9e1ba006330f9b90b2130d4f0c7122242

6 years agoAdd enum class as result of timer callback method 97/151697/5
Lukasz Wlazly [Thu, 21 Sep 2017 13:54:34 +0000 (15:54 +0200)]
Add enum class as result of timer callback method

Change-Id: I4099240b0cf3a24e6eed4b504943a4c415d7a449

6 years agoFix for invalid Optional constructor 16/152316/2
Radoslaw Cybulski [Mon, 25 Sep 2017 15:27:09 +0000 (17:27 +0200)]
Fix for invalid Optional constructor

Fix for invalid Optional constructor, where Optional<int> a = {} would cause object a to be initialized with 0
value, rather than empty Optional.

Change-Id: I84c0f4fcd5da2bca77cde411c016068e3df6e605

6 years agoShow Optional implementation flaw 35/152235/2
Mariusz Wachowicz [Mon, 25 Sep 2017 09:59:33 +0000 (11:59 +0200)]
Show Optional implementation flaw

Optional do not call proper contructor when initializing
with default constructor

Change-Id: I225b0569a529039d26d3afda8732eea1c666f5be

6 years agoAppControlActivity template refactor 36/151936/4
Pawel Kurowski [Fri, 22 Sep 2017 10:21:37 +0000 (12:21 +0200)]
AppControlActivity template refactor

Registration of derived classes

Change-Id: I469cad7648a1a9d172d21865da319951c5067e86

6 years agoAdding all swipe-like activities 08/146608/7
Lukasz Wlazly [Mon, 18 Sep 2017 12:34:45 +0000 (14:34 +0200)]
Adding all swipe-like activities

To execute this activities following patch is required: https://review.tizen.org/gerrit/#/c/127916/

Change-Id: I759946d0e29354bce68deb9a73d22fd9080b9ada

6 years agoMouse events source moved from window to enlightenment module 71/147471/6
Lukasz Wlazly [Fri, 1 Sep 2017 12:17:13 +0000 (14:17 +0200)]
Mouse events source moved from window to enlightenment module

Class Window is used only for drawing, input region is always disabled.
Mouse events are sent as signals from enlightenment module for accessibility projects.

Change-Id: Id5d40e212f2f009a413e6ab086e32e0d700f3851

6 years agoAdd EventGenerator class to ecore namespace 80/151280/5
Lukasz Wlazly [Wed, 20 Sep 2017 09:51:39 +0000 (11:51 +0200)]
Add EventGenerator class to ecore namespace

Change-Id: I62e0f73655a17be89dc250eab388d43aac1b4002

6 years agoReimplement activate and getAtribute methodes 35/146435/10
Mariusz Wachowicz [Mon, 28 Aug 2017 14:12:04 +0000 (16:12 +0200)]
Reimplement activate and getAtribute methodes

methodes now use asynchronous mode

Change-Id: I89e9c2ed03c2d001269ef65880697f2d93acef14

6 years agoImplement feedback voice 85/150385/12
Mariusz Wachowicz [Wed, 13 Sep 2017 11:43:31 +0000 (13:43 +0200)]
Implement feedback voice

Add ToggleVoiceFeedbackEnabledActivity class
responsible for changing VConf keys

Add TextToSpeech class responsible for communication
with tts-engine

Change-Id: Icea8ecce2fe72396c0dc4084a866ea9f2499f443

6 years agoBugfix for Implement ecore::Timer in RowScanner 73/151673/3
Mariusz Wachowicz [Thu, 21 Sep 2017 11:59:44 +0000 (13:59 +0200)]
Bugfix for Implement ecore::Timer in RowScanner

callback was renewed with wrong time

Change-Id: I9af125af11334fdbaa0c138be667baf0e5735755

6 years agoAdd activities connected with calls 63/151063/3
Lukasz Wlazly [Tue, 19 Sep 2017 13:36:15 +0000 (15:36 +0200)]
Add activities connected with calls

This patch also adds special header file to keep parameters
requiered by dbus connection

Change-Id: I84de4abf8f918a99c4559a536d2daf73935c538a

6 years agoImplement ecore::Timer in RowScanner 78/150778/6
Mariusz Wachowicz [Tue, 12 Sep 2017 13:39:38 +0000 (15:39 +0200)]
Implement ecore::Timer in RowScanner

Change-Id: If05ded706375785d249a9d0ef135538f48cf3c5f

6 years agoExtension of Ecore Timer wrapper 52/150952/3
Lukasz Wlazly [Tue, 19 Sep 2017 07:10:56 +0000 (09:10 +0200)]
Extension of Ecore Timer wrapper

After this change:
    1. Timer can be reset during callback invokation
        Supported are changes of both time value and callback method
    2. Timer accept collection of time values,
        thus first cycle will last time of first value and so on.
        Last value will be kept when all values before would be used.

Change-Id: I46d34a73b180cf4f50ba161e43f467ac554a9fac

6 years agoAppControlActivity template 03/150803/3
Pawel Kurowski [Mon, 18 Sep 2017 13:21:35 +0000 (15:21 +0200)]
AppControlActivity template

Two new bindable activities - StartHomeScreenActivity, and StartTaskManagerActivity
One non-bindable activity - StartLockScreenActivity.

Change-Id: I3b978eaeec88fbc30310c571e9639ef07596963a

6 years agoFix for invalid marshalling of AtspiAccessible objects 44/151044/6
Radoslaw Cybulski [Tue, 19 Sep 2017 11:58:35 +0000 (13:58 +0200)]
Fix for invalid marshalling of AtspiAccessible objects

This change temporary requires following patches:
  https://review.tizen.org/gerrit/#/c/143845 (at-spi2-core)
  https://review.tizen.org/gerrit/#/c/143847 (elementary)
  https://review.tizen.org/gerrit/#/c/143623 (e-mod-tizen-screen-reader)
  https://review.tizen.org/gerrit/#/c/142317 (screen-reader)
Screen-reader has to be started before universal-switch.

Requirement for those patches is temporary and will be removed soon.

Change-Id: I3fe8e0fa4224ef5f03ecd2c1054e5ac2b383a040

6 years agoAdd asynchronous at-spi calls 73/146273/18
Radoslaw Cybulski [Fri, 25 Aug 2017 14:36:47 +0000 (16:36 +0200)]
Add asynchronous at-spi calls

Universal-switch displays it's own user interface. When querrying at-spi
properties of an object it's possible for universal-switch to inquire
about it's own user interface objects. When using synchronous calls it
leads to no-reply error, as thread, which should produce an answer is
stuck on waiting for it. This patch adds supports for sending
asynchronous dbus calls, which will be used to implement at-spi
asynchronous calls.

Change-Id: Icc88cea9416a004536d221a99d1c2769d763150b

6 years agoSet vconf keys on package installation 04/150204/5
Paweł Stawicki [Thu, 14 Sep 2017 17:47:24 +0000 (19:47 +0200)]
Set vconf keys on package installation

commit ensures that univeral-switch is disabled
on installation

Change-Id: If8e2e963b6a312e53ce211e77d240a9fb0ac34e2

6 years agoMinor refactor 31/149931/2
Pawel Kurowski [Wed, 13 Sep 2017 14:27:11 +0000 (16:27 +0200)]
Minor refactor

Removing wrappers for Observer template.
Fix missing debugs, and Null checks in SelectActivity.

Change-Id: If7b4d843e63b4bebed9696be2660228178430365

6 years agoAdd wrapper for Ecore_Event_Handler 09/149509/5
Lukasz Wlazly [Tue, 12 Sep 2017 08:24:55 +0000 (10:24 +0200)]
Add wrapper for Ecore_Event_Handler

Change-Id: Idf84070293dbdbcac3918e41fc5ce91d916cf1b3

6 years agoAdd ChangeSpeedAutoScanActivity 86/149486/7
Mariusz Wachowicz [Tue, 12 Sep 2017 09:12:06 +0000 (11:12 +0200)]
Add ChangeSpeedAutoScanActivity

Implements SpeedUpAutoScanActivity and SlowDownAutoScanActivity classes
responsibe for changing speed of scanning in row scanning method

Change-Id: I8c13d391c466efe7742c233ebdd6e2d117e8a9f4

6 years agoFix separation between VConfKey in production and tests 79/149879/2
Mariusz Wachowicz [Wed, 13 Sep 2017 10:56:29 +0000 (12:56 +0200)]
Fix separation between VConfKey in production and tests

Change-Id: I9ad4cd364795cfd9c54a4e4f2a262cc8b4d7c1ef

6 years agoAdding scanning coordinates to UIElement 06/147706/10
Lukasz Wlazly [Tue, 5 Sep 2017 09:17:10 +0000 (11:17 +0200)]
Adding scanning coordinates to UIElement

This commit:
    1. Adds to UIElement coordinates where scanning happend
        because some activities require such data

    2. Allows UIElement to not contain any AtspiAccessible object

Change-Id: Ibaa3f9faff4750938c24eb4297c1daab96765917

6 years agofix coding rule violation 54/149854/2
Mariusz Wachowicz [Wed, 13 Sep 2017 08:25:24 +0000 (10:25 +0200)]
fix coding rule violation

Change-Id: I8b665af379c53ef3919783eafa561bfad2efe84f

6 years agoRefactor scanner classes with use of geometry classes 64/148264/8
Mariusz Wachowicz [Wed, 6 Sep 2017 14:41:57 +0000 (16:41 +0200)]
Refactor scanner classes with use of geometry classes

addidtionally implements geometric intersection
between two rectangles

Change-Id: I377faccc1ec91d44eb2dc08e4a8212bcb0f9bf7f

6 years agoAdd wrapper for Ecore_Timer 42/148742/7
Lukasz Wlazly [Fri, 8 Sep 2017 10:42:07 +0000 (12:42 +0200)]
Add wrapper for Ecore_Timer

Wrapper simplifies usage of ecore timers.

Change-Id: Ibcb38e26abf1d38e555f0ec652f7f2bbecc0de61

6 years agoAdd Enable and Disable SoundFeedbackActivity 70/148370/5
Mariusz Wachowicz [Thu, 7 Sep 2017 12:33:46 +0000 (14:33 +0200)]
Add Enable and Disable SoundFeedbackActivity

activities change vconf key responsible for controling
universal-switch sound feedback

Change-Id: I0d93eb3fcaa85c7122da6a43e971c56840d9bdf9

6 years agoRefactor MenuBuilderTests 69/148369/7
Mariusz Wachowicz [Thu, 7 Sep 2017 14:05:34 +0000 (16:05 +0200)]
Refactor MenuBuilderTests

patch fixes expected order of menu items in Settings sub-menu
the valid order: Voice before Sound

patch removes overhead in test

tests are now executed with mocked set of keys

Change-Id: Ia4b4b1903e01e42105e7476e74df8db8f53bc3ba

6 years agoNullcheck on disable in ScreenSwitchProvider 88/149088/1
Lukasz Wlazly [Mon, 11 Sep 2017 11:38:13 +0000 (13:38 +0200)]
Nullcheck on disable in ScreenSwitchProvider

Change-Id: I22780155667503d218f1e1bf379b1004afa2ad38

6 years agoRemoving switches registration on app initialization 81/148081/2
Pawel Kurowski [Wed, 6 Sep 2017 14:06:12 +0000 (16:06 +0200)]
Removing switches registration on app initialization

Change-Id: I3c419e548ad0ab656b98f1bb677b3919a85d9b50

6 years agoChangeScanningMethodActivity 20/147020/4
Mariusz Wachowicz [Thu, 31 Aug 2017 12:31:08 +0000 (14:31 +0200)]
ChangeScanningMethodActivity

Add activity responsible for changing scanning method to next
available method. In order to prevent race condition between vconf key
update and scanner start form context change, delay in startAutoScanner
has been implemented

0a. SelectActivity is completed => ChangeScanningMethodActivity is invoked
0b. menu pop up disappear
0c. outer logic notice context change
1a. ChangeScanningMethod change vconf key responsible for
scanning method
1b. startAutoscanning from ScreenScannerManager is invoked
2. scanning properties cached value is
updated due to callback from vconf key change
3. context is reloaded and scanner is started with
updated scanning method

Change-Id: I8bfdf530cebd4eb5775a3c15f06502bb81873186

6 years agoRefactor in switch providers and interaction manager 08/148308/4
Lukasz Wlazly [Thu, 7 Sep 2017 08:25:08 +0000 (10:25 +0200)]
Refactor in switch providers and interaction manager

This commit:
    1. Moves functionality regarding catching ecore events from constructors
        to 'enable' and 'disable' methods in ScreenSwitchProvider and AccessoriesSwitchProvider
    2. Simplify events managing in AccessoriesSwitchProvider
    3. Changes usage of SwitchInteractionManager from singleton pattern to instance
        of template class Singleton

Change-Id: I909c30178c108346a96969ea0fc3367eb25ee5b7

6 years agoSelect activity will check UiElement atspi parameters only once 94/148094/4
Pawel Kurowski [Wed, 6 Sep 2017 18:13:58 +0000 (20:13 +0200)]
Select activity will check UiElement atspi parameters only once

Since realUiElement can't change during Select activity lifetime,
there is no need to call atspi functions each time.

Change-Id: Ia0442494592fbf7e94d6c9da1a4040612bdfd960

6 years agoBugfix: AccessoriesSwitchProvider losing key presses 92/147792/3
Paweł Stawicki [Tue, 5 Sep 2017 16:50:11 +0000 (18:50 +0200)]
Bugfix: AccessoriesSwitchProvider losing key presses

When AccessoriesSwitchProvider received keyDown, keyUp events
ocassionaly SwitchInteractionManager::minimalSwitchInteractionTimeCb timer
was not called even when minimalSwitchInteractionTime was set to 0.0f,
(interactionManager.stopInteraction(..) was called before the timer triggered)

Change-Id: I6c889ea542ccfc783a61497acbecdebeecfe1312

6 years agoAdd ChangeSoundProfileActivity class 63/147463/10
Mariusz Wachowicz [Thu, 31 Aug 2017 14:03:28 +0000 (16:03 +0200)]
Add ChangeSoundProfileActivity class

Sound profile (Sound, Vibrate, Mute) is changed by changing vconf keys
located in settings

business logic mimic logic implemented in:
https://review.tizen.org/gerrit/#/admin/projects/profile/mobile/apps/native/quickpanel
sound-profile.c @ 76 -> _set_sound_status

Change-Id: Id7eef8dbcf67d1aa44d92b0691dc41b1897c8478

6 years agoAdd name for window and popup 02/145502/5
Mariusz Wachowicz [Tue, 22 Aug 2017 13:13:19 +0000 (15:13 +0200)]
Add name for window and popup

window name added in order to satisfy navigation heuristics
IMPORTATNT: changes from this patch have to be removed after
reaching full functionality by navigation interface

Change-Id: If302cda75489f3a37e4be0ffc4d3e6ff8d62ebba

6 years agoAdd classes representing basic geometric concepts 73/147773/8
Lukasz Wlazly [Tue, 5 Sep 2017 12:56:33 +0000 (14:56 +0200)]
Add classes representing basic geometric concepts

This change provides three basic concepts:
    Point
    Size
    Rectangle

Change requires small refactor work in existing code

Change-Id: I78e16244b3607ad4281affa0045b46f8d6656465

6 years agoFix translation for select activity 87/147787/3
Mariusz Wachowicz [Tue, 5 Sep 2017 14:33:47 +0000 (16:33 +0200)]
Fix translation for select activity

Change-Id: Id169de3bcd6cec5491989759e645f1d67ba72a85

6 years agoAdd auto scan enabling and disabling activity 86/147786/5
Mariusz Wachowicz [Tue, 5 Sep 2017 09:12:02 +0000 (11:12 +0200)]
Add auto scan enabling and disabling activity

class changes bool key responsible for auto scan

Change-Id: Ib2bcc5c12c1bddd32f53621e9444fe134ac53f5c

6 years agoAdd bindable activity types 10/147510/5
Paweł Stawicki [Mon, 4 Sep 2017 17:02:57 +0000 (19:02 +0200)]
Add bindable activity types

Bindable activities is a sub-set of activities that can be mapped and triggered directly by switch.
It is used in Settings app in "add/update switch configuration" use case.
Not all activities are bindable, some of them can be triggered only via activity popup menu.

Change-Id: I45f4f625ca5cf0508fd5ca2122692ce9c1714066

6 years agoFix redefinition of VCONF_KEY_FEEDBACK_VOICE_ENABLED 36/147736/1
Pawel Kurowski [Tue, 5 Sep 2017 10:34:28 +0000 (12:34 +0200)]
Fix redefinition of VCONF_KEY_FEEDBACK_VOICE_ENABLED

Change-Id: I8241ebaefd0fdab3d10a5d0d076eac0993a1eba9

6 years agoSynchronize vconf keys with settings 02/147502/3
Pawel Kurowski [Mon, 4 Sep 2017 13:47:40 +0000 (15:47 +0200)]
Synchronize vconf keys with settings

requires:
https://review.tizen.org/gerrit/#/c/147503/

Change-Id: I2d842fc4255b72d952ed4e2b919617893fd7c88b

6 years agoRegistrate callbacks for _ENABLED vconf keys 11/147211/3
Pawel Kurowski [Fri, 1 Sep 2017 11:08:42 +0000 (13:08 +0200)]
Registrate callbacks for _ENABLED vconf keys

According to settings, data stored in vconf as _VALUE should not be used,
when user set them as disabled.

Change-Id: I002306003266ee9b3e22ef78e001a2149f383df6

6 years agoAdd runTests.sh to utils 85/147485/2
Paweł Stawicki [Mon, 4 Sep 2017 12:01:53 +0000 (14:01 +0200)]
Add runTests.sh to utils

Change-Id: I766286b21d27c7bdeab4a141ace63a74942747df

6 years agoFix bug in Optional copy / move constructor 48/147248/2
Radoslaw Cybulski [Fri, 1 Sep 2017 14:13:57 +0000 (16:13 +0200)]
Fix bug in Optional copy / move constructor

Both copy and move constructor of Optional would unconditionally
copy content of it's value, when in uninitialized state. Thus
copy / move constructor of type A would be called with garbage
data and probably crash.

Change-Id: Iacbd82c68b64698e51dccf7307cb615be4103852

6 years agoResizing of scanning area on signal 'ContextChanged' 41/146441/12
Mariusz Wachowicz [Mon, 21 Aug 2017 14:08:26 +0000 (16:08 +0200)]
Resizing of scanning area on signal 'ContextChanged'

feature will be used in keyboard point scanning
and voice capture UI

Change-Id: Ie733eb0d75634c7973a277d52a1e7a7c16f2dc05

6 years agoenable/disable atspi on active/passive mode 29/146829/4
Paweł Stawicki [Wed, 30 Aug 2017 17:30:22 +0000 (19:30 +0200)]
enable/disable atspi on active/passive mode

In passive mode (when universal-switch only runs a configruation api)
atspi will be turned off.

Change-Id: I27fa0c26dea9fccad8803896fefc745c35f3bf27

6 years agoadds sound volume control via vconf keys 57/146057/6
Mariusz Wachowicz [Thu, 24 Aug 2017 11:36:57 +0000 (13:36 +0200)]
adds sound volume control via vconf keys

Change-Id: Ia0f4fc09d135e1c95178c6b8c175ed5d61fa044d

6 years agoAdd passive/active mode to universal-switch 72/146272/6
Paweł Stawicki [Fri, 25 Aug 2017 13:20:16 +0000 (15:20 +0200)]
Add passive/active mode to universal-switch

Change-Id: Ib724da281dff0269fc7c63965a5bf930a5b26a3d

6 years agoAdd captureSwitch to DBusInterface 66/144966/6
Paweł Stawicki [Fri, 18 Aug 2017 17:16:15 +0000 (19:16 +0200)]
Add captureSwitch to DBusInterface

Change-Id: I34ac8777c45703642154908a9448c9f5831a814d

6 years agoVConf keys moved to one file 23/145523/9
Mariusz Wachowicz [Tue, 22 Aug 2017 14:20:26 +0000 (16:20 +0200)]
VConf keys moved to one file

Change-Id: Ic9d35221d7cc8ca745860ada250c3fb0c6b1e953

6 years agobug fix on context change 58/146058/1
Mariusz Wachowicz [Thu, 24 Aug 2017 16:27:38 +0000 (18:27 +0200)]
bug fix on context change

solves bug:
in case of not receiving context changed signal
allows use of default vconf scanning method
before: allowed was only PointScanner

Change-Id: I0f0e1d01cf733c93519994c8b66389aeced88001

6 years agoUpgrade of language standard to c++14 77/145977/3
Lukasz Wlazly [Thu, 24 Aug 2017 09:36:02 +0000 (11:36 +0200)]
Upgrade of language standard to c++14

C++14 features enabled

Change-Id: Ia8269ce6fa985194c0bc445c82cfb3f9d347ee30

6 years agoclass Window use singleton template 82/145682/2
Mariusz Wachowicz [Wed, 23 Aug 2017 08:56:53 +0000 (10:56 +0200)]
class Window use singleton template

Change-Id: Iadc820dfdda4df7756f0b9d622a2ef0d6c82f909

6 years agoadd sounds during scanning via RowScanner 61/144361/7
Mariusz Wachowicz [Thu, 10 Aug 2017 12:19:30 +0000 (14:19 +0200)]
add sounds during scanning via RowScanner

sound is played after context change and
after iteration to next element during traverse

Change-Id: Ie92ac393e3b2bafb8ef7350866bfa40d540a40a2

6 years agoclass Singleton refactored 62/144962/9
Mariusz Wachowicz [Fri, 18 Aug 2017 12:18:25 +0000 (14:18 +0200)]
class Singleton refactored

solves static initialization order fiasco

Change-Id: I909cd25305f8660ac3548126ebf65eec2d0421e5

6 years agoShowing popup when accessory was disconnected 25/144725/8
Lukasz Wlazly [Thu, 17 Aug 2017 08:38:23 +0000 (10:38 +0200)]
Showing popup when accessory was disconnected

If exists mapping between accessory and switch popup message
with proper statement is being shown.

Change-Id: I8ae3dc3f80703793898c301e9829900ab7b0f069

6 years agoAdd localized name/description to CameraSwitchProviders switches 52/143852/5
Paweł Stawicki [Fri, 11 Aug 2017 13:24:42 +0000 (15:24 +0200)]
Add localized name/description to CameraSwitchProviders switches

Change-Id: Id22442a8c459345c877a390e4d3b8be4afb4358a

6 years agosupport changing of scanning area size in PointScanner 69/142569/4
Mariusz Wachowicz [Fri, 4 Aug 2017 08:47:50 +0000 (10:47 +0200)]
support changing of scanning area size in PointScanner

patch adds methods allowing controll
of scanning area dimensions in PointScanner

TODO: add callback for changed area dimensions
caused for example by keyboard appearance

TODO: support change of screen orientation

Change-Id: I5abd21c201cbdd6ab2c0e40a70dec4616739658c