platform/core/accessibility/universal-switch.git
7 years agoRunning universal-switch-tests as regular tizen application 98/143098/6
Lukasz Wlazly [Tue, 8 Aug 2017 09:36:44 +0000 (11:36 +0200)]
Running universal-switch-tests as regular tizen application

1. All tests has been moved to separated rpm package
2. Tests has been divided into two groups:
    - tests without UI elements: they are being run as particular binary files
    - tests with UI elements: they are being run from org.tizen.universal-switch-tests application
3. FooTest will be replaced as soon as suitable test appears

Change-Id: Ie25fa1ad209e9ea905316925950bb1a7360bcb18

7 years agoMenu Builder now skips disabled items 33/143133/3
Pawel Kurowski [Tue, 8 Aug 2017 18:44:32 +0000 (20:44 +0200)]
Menu Builder now skips disabled items

Item can be disabled by vconf value.
Also, depending on vconf, special main menu can be reduced to normal.

Change-Id: Ifcbbd7bf74961485dfa15fc8cbf485d233ba526f

7 years agoSelectActivity 63/135663/26
Pawel Kurowski [Thu, 20 Jul 2017 14:47:01 +0000 (16:47 +0200)]
SelectActivity

Change-Id: I81449851b7a9012ba4efbc894f9fb3f11de58b9f

7 years agoFix in SwitchInteractionManager 18/141818/1
Lukasz Wlazly [Tue, 1 Aug 2017 11:59:39 +0000 (13:59 +0200)]
Fix in SwitchInteractionManager

This patch restores proper behavior in ScreenSwitchProvider when used manually.
The way tests are executed has been changed: key released is added to event loop
by timer with small delay

Change-Id: I9aeebcb2b6c05816389fd00e82bd2927c3520a21

7 years agoFix for ConfigurationTests and ActivityProcessingTests suits 14/141414/3
Lukasz Wlazly [Fri, 28 Jul 2017 10:19:11 +0000 (12:19 +0200)]
Fix for ConfigurationTests and ActivityProcessingTests suits

Architecture changes required modifications of way the integration tests are executed.

This patch:
    1. changes default values of properties in SwitchInteractionManager
    2. overrides 'detach' method of Subject in CompositeSwitchProvider
    3. adds some nullptr verifications
    4. introduces invokation of ecore main loop to tests what enables using ecore timers during them

Change-Id: Id2fbbba163117bf9c415639d96223c5f758182a5

7 years agoSingleton class refactor 65/140965/2
Lukasz Wlazly [Thu, 27 Jul 2017 08:49:32 +0000 (10:49 +0200)]
Singleton class refactor

Aim of this commits is to clarify ambiguities regarding usage of template classes:
SingletonBase, Singleton and MockableSingleton. Needless class has been removed.

Change-Id: I49baeb84b13a9ca7af0eea48c29b355fce6fe40c

7 years agoSwitchProvider refactor 50/140750/4
Lukasz Wlazly [Wed, 26 Jul 2017 07:35:55 +0000 (09:35 +0200)]
SwitchProvider refactor

This patch contains two refactor works:
1. SwitchCollection has been moved to base class, thus implementation of findAllSwitches
    and findSwitchById can be provided in base class now
2. Callback functions in ScreenSwitchProvider are now minimalistic
3. Change in SwitchInteractionManager: any new interaction from any provider during currently proceeded stops the old one

Change-Id: I2966cafe81ecb735a55237efad62b155adce2a71

7 years agoBug fixing and refactor 87/140287/9
Lukasz Wlazly [Mon, 24 Jul 2017 10:04:03 +0000 (12:04 +0200)]
Bug fixing and refactor

1. AccessoriesSwitchProvider is not processing hardware back button
2. Memory faults on empty switches removed
3. Keys unmapped to switches can stop previous switch interaction
4. SwitchConfigurationItem enable additional constructor for lambda functions

Change-Id: I2085c7e0926188b5f4315af19b2765205e698833

7 years agoRemove SelectActivityBuilder 05/140605/1
Paweł Stawicki [Tue, 25 Jul 2017 13:40:33 +0000 (15:40 +0200)]
Remove SelectActivityBuilder

Change-Id: I763e4c51ee788d8bdf5ad9c8c123ddc55c8d4721

7 years agoAdd DBusInterface 23/139823/8
Paweł Stawicki [Wed, 19 Jul 2017 10:51:48 +0000 (12:51 +0200)]
Add DBusInterface

Tests on target:
su - owner
busctl --user
busctl --user tree org.tizen.UniversalSwitch
busctl --user introspect org.tizen.UniversalSwitch /org/tizen/UniversalSwitch

busctl --user call org.tizen.UniversalSwitch /org/tizen/UniversalSwitch org.tizen.UniversalSwitch getAllActivityTypes
busctl --user call org.tizen.UniversalSwitch /org/tizen/UniversalSwitch org.tizen.UniversalSwitch getAllSwitchProviders
busctl --user call org.tizen.UniversalSwitch /org/tizen/UniversalSwitch org.tizen.UniversalSwitch getAllSwitchConfigurationItems
busctl --user call org.tizen.UniversalSwitch /org/tizen/UniversalSwitch org.tizen.UniversalSwitch getAllSwitchesByProviderId s "AccessoriesSwitchProvider"

busctl --user call org.tizen.UniversalSwitch /org/tizen/UniversalSwitch org.tizen.UniversalSwitch addSwitchConfigurationItem sss "switchId1" "my name" "SELECT"
busctl --user call org.tizen.UniversalSwitch /org/tizen/UniversalSwitch org.tizen.UniversalSwitch updateSwitchConfigurationItem sss "switchId1" "my name2" "SELECT"
busctl --user call org.tizen.UniversalSwitch /org/tizen/UniversalSwitch org.tizen.UniversalSwitch removeSwitchConfigurationItem s "switchId1"

Change-Id: Ic0349ac2cb5787df3fd90bdb4737e031d49b652f

7 years agoImplementation of ScreenSwitchProvider 09/138909/12
Lukasz Wlazly [Thu, 13 Jul 2017 14:03:02 +0000 (16:03 +0200)]
Implementation of ScreenSwitchProvider

This patch also moves responsibility of notifying Switch observers to base class SwitchProvider
and adds mechanism of timers depending on vconf configuration.

Values saved in vconf are:
    1. minimal time of interaction required to process switch
    2. interval between switch interactions
    3. auto repetition time

After acceptance of general idea suitable tests will be provided.

Change-Id: If7f92c442a3cc41e1019cd6e06555d8d0b3fc918

7 years agoRename Atspi namespace to atspi to distinguish classes from namespaces 30/139830/3
Paweł Stawicki [Thu, 20 Jul 2017 14:34:40 +0000 (16:34 +0200)]
Rename Atspi namespace to atspi to distinguish classes from namespaces

Change-Id: I871fbeffc4835e88a53166c7e3e41be179ba81b9

7 years agoUniversalSwitch application context 69/139169/5
Mariusz Wachowicz [Mon, 17 Jul 2017 15:39:25 +0000 (17:39 +0200)]
UniversalSwitch application context

adds UniversalSwitch singleton class for handles management
AcceptScanningActivity has to be removed after integration with SelectActivity

Change-Id: I2669a6b184fde85bd7df1661eb4bf8b5335015cf

7 years agoAtspi & Optional 98/137998/8
Mariusz Wachowicz [Mon, 10 Jul 2017 11:08:39 +0000 (13:08 +0200)]
Atspi & Optional

adds Optional similar to Optional in C++17

Change-Id: I5ff35f2838de4bbc01738b2fe02f4e755ce54aca

7 years agoMenuBuilder implementation 90/137790/12
Pawel Kurowski [Fri, 7 Jul 2017 18:26:51 +0000 (20:26 +0200)]
MenuBuilder implementation

MenuMap singleton provides find() function, that returns vector of items in each menu.
Universal switch now uses gettext () to display the correct language.

Change-Id: Ic33ca858a3845512c3350b77a2507f700d0a9746

7 years agoAdd "_without_tests" option to gbs build system 03/138003/3
Paweł Stawicki [Mon, 10 Jul 2017 17:59:11 +0000 (19:59 +0200)]
Add "_without_tests" option to gbs build system

running gbs build without tests:
gbs  build -A armv7l -P public_4.0_mobile-tm1 --include-all --define "jobs 2" --define "_without_tests 1"

Change-Id: I5027275dad269f3383440765bd1d58b4a9be512f

7 years agoVconfImpl: Allow register and unregister callbacks during callback call 81/137781/3
Paweł Stawicki [Mon, 10 Jul 2017 10:20:30 +0000 (12:20 +0200)]
VconfImpl: Allow register and unregister callbacks during callback call

Change-Id: I999ef9e371901045ce0ee77f39a5a4067fe92451

7 years agosmall refactor 39/137939/2
Mariusz Wachowicz [Mon, 10 Jul 2017 10:09:04 +0000 (12:09 +0200)]
small refactor

replicated function in UIActivity removed
vector in SwitchManaged changed to stack for better understanding

Change-Id: If5a12e511279de5a81101031ec3b93b97070d458

7 years agoArchitecture change 68/135968/8
Lukasz Wlazly [Tue, 27 Jun 2017 13:55:13 +0000 (15:55 +0200)]
Architecture change

Dispatchers have been replaced with self-processing activities.
Activity change request and activity stacking has been added.

Change-Id: Id637d8e44c5102e783a2295897aab4d5badd7837

7 years agoTwoStepPrepareActivity added to remove impact of Activity implementation on Configura... 10/137410/2
Paweł Stawicki [Wed, 5 Jul 2017 15:48:39 +0000 (17:48 +0200)]
TwoStepPrepareActivity added to remove impact of Activity implementation on Configuration and ActivityDispatching tests

Change-Id: Ic054df9cae43a1244ea60b2d75d995817b60bac3

7 years agoBugfix tests: rpath added to make universal-switch a shared library 08/137408/2
Paweł Stawicki [Wed, 5 Jul 2017 14:41:04 +0000 (16:41 +0200)]
Bugfix tests: rpath added to make universal-switch a shared library

Change-Id: Ibe93abe150dbeaa87a4e8c0273653b17b160a9a3

7 years agoAdd VConfSingleton. Integration tests moved into a separate rpm. 70/136670/8
Paweł Stawicki [Fri, 30 Jun 2017 18:20:54 +0000 (20:20 +0200)]
Add VConfSingleton. Integration tests moved into a separate rpm.

Change-Id: Ibe015dbd44bfd4c96aceaf155aae70e7cbe56af5

7 years agoSingleton and MockableSingleton 08/135808/4
Mariusz Wachowicz [Mon, 26 Jun 2017 14:27:13 +0000 (16:27 +0200)]
Singleton and MockableSingleton

provide 2 new classes
MocableSingleton allow global access to DefaultImplementation with specific Interface
however it is possible to override DefaultImplementation

Change-Id: I72903e314baf83939f18b1a8d440e14d5936ff9a

7 years agoset app-control.operation for implicit launch request 08/132808/4
Paweł Stawicki [Fri, 16 Jun 2017 10:43:41 +0000 (12:43 +0200)]
set app-control.operation for implicit launch request

Change-Id: I3d34099ef4d68d8d1bf4a90f56129d09d8e252f2

7 years agoPointScanner & ScreenScannerManager 88/131988/14
Mariusz Wachowicz [Tue, 23 May 2017 12:40:23 +0000 (14:40 +0200)]
PointScanner & ScreenScannerManager

provide information about selected position on screen
TODO: tests do not pass due to problems with vconf configuration in test environment

Change-Id: Ic5709b18806602d84028d4a56d8d9f832af6d182

7 years agoWrapper class for elm_window object 83/135283/11
Lukasz Wlazly [Tue, 20 Jun 2017 08:43:48 +0000 (10:43 +0200)]
Wrapper class for elm_window object

Provided class is singleton with lazy initialization.
It can catch all gestures or pass them to the application below

Change-Id: Ic8bd7ca899b8f557a0d03db2ab0e7f1d7e1d5d09

7 years agoTest case documentation added. 34/134934/2
Lukasz [Tue, 20 Jun 2017 09:36:29 +0000 (11:36 +0200)]
Test case documentation added.

Change-Id: Ifb9902359085652310b078c502c6b8704cadf65c

7 years agoDefault scanning method 60/134960/2
Lukasz Wlazly [Tue, 20 Jun 2017 10:39:35 +0000 (12:39 +0200)]
Default scanning method

This commit prevent from undefined state of scanningMethod

Change-Id: Ib008b89c263d988d2913bd4654a8fcfcf15ac38c

7 years agoUnnecessary class removed 19/134419/2
Lukasz Wlazly [Fri, 16 Jun 2017 09:12:50 +0000 (11:12 +0200)]
Unnecessary class removed

After design change ActivityObserver class occured useless

Change-Id: I0bb9457deeb48115cd8cc93beeb8e5b68d2269b8

7 years agobugfix: double memory free 37/134037/1
Paweł Stawicki [Wed, 14 Jun 2017 09:19:04 +0000 (11:19 +0200)]
bugfix: double memory free

bugfix for commit: 42d67aefe5376273d4461d7ccf4071156c72baec
"Move ecore_init,ecore_shutdown to main function"

Change-Id: Ia272e0274b3a838b1eacadef0b17bd2dd7619a4a

7 years agoUnregister ecore event handler in ~AccessoriesSwitchProvider 35/133835/2
Paweł Stawicki [Tue, 13 Jun 2017 12:52:44 +0000 (14:52 +0200)]
Unregister ecore event handler in ~AccessoriesSwitchProvider

Change-Id: I5dcd1e8a1c0c97b59555dfa998cc00bb54ebf01e

7 years agoMove ecore_init,ecore_shutdown to main function 30/133830/2
Paweł Stawicki [Tue, 13 Jun 2017 12:20:52 +0000 (14:20 +0200)]
Move ecore_init,ecore_shutdown to main function

Workaround for errors generated by multiple ecore_init calls,
issue doesn't exist from efl 1.18.

Change-Id: I6f6925b5c31bd149c5103c47d030bdb2ddd9b75c

7 years agostatic class contructor registration in ActivityFactory 57/131357/2
Paweł Stawicki [Fri, 26 May 2017 13:00:31 +0000 (15:00 +0200)]
static class contructor registration in ActivityFactory

Change-Id: I961b570d8965a748ce0453ac8f77e0475550bbaf

7 years agoChanging the way that activities are being built 18/130718/6
Lukasz Wlazly [Mon, 22 May 2017 13:03:55 +0000 (15:03 +0200)]
Changing the way that activities are being built

Provided tests currently fails. Patch https://review.tizen.org/gerrit/#/c/131357/ fix this problem.

Change-Id: I265113e244fc2db397ead0e1d4e8d6db6c0b2fa2

7 years agoIntegration tests for Configuration and SwitchManager 95/129695/8
Lukasz Wlazly [Tue, 16 May 2017 13:28:19 +0000 (15:28 +0200)]
Integration tests for Configuration and SwitchManager

Change-Id: Ic52cb42766bec9b2cbc12cc83aab74c12b0e7782

7 years agoConfigurationItem refactor 38/129438/3
Lukasz Wlazly [Fri, 12 May 2017 14:17:28 +0000 (16:17 +0200)]
ConfigurationItem refactor

Renaming ConfigurationItem class with associated refactor of SQLiteConfiguration and QueryBuilder

Change-Id: Idfcc407784db957b9b76bda29750436c95f571ad

7 years agoMoving all source and headers into single directory 54/129054/2
Lukasz Wlazly [Fri, 12 May 2017 13:31:45 +0000 (15:31 +0200)]
Moving all source and headers into single directory

Change-Id: If41e36ff2bdc7bf50a89a5db86a81611cf1ae133

7 years agoThe implementation of SwitchManager constructor 39/127939/5
Lukasz Wlazly [Fri, 28 Apr 2017 09:21:55 +0000 (11:21 +0200)]
The implementation of SwitchManager constructor

Change-Id: I32b50147732a11cae46a663d2f80097be89d75f5

7 years agoGoogle Test framework added 00/128100/2
Lukasz Wlazly [Fri, 5 May 2017 10:10:26 +0000 (12:10 +0200)]
Google Test framework added

Repository contains one example test to show that framework work correctly.
This test will be removed when legit tests appear in repository.

Change-Id: I2c02bb6ec1a6ef0563eeffb1fb5b6adc0e2543e3

7 years agoAdding macros for convenient dlog usage. 05/128105/2
Lukasz Wlazly [Fri, 5 May 2017 11:48:08 +0000 (13:48 +0200)]
Adding macros for convenient dlog usage.

Added code was based on screen-reader file "logger.h". Unnecessary lines have been removed

Change-Id: I26e4ca6d88b006050e8c270794607369ea8f70c6

7 years agoApplication structure and basic implementation of particular modules 30/127130/8
Lukasz Wlazly [Tue, 18 Apr 2017 08:20:26 +0000 (10:20 +0200)]
Application structure and basic implementation of particular modules

This patch contains two previous commits: https://review.tizen.org/gerrit/#/c/125900/ and https://review.tizen.org/gerrit/#/c/125659/
Those two patches will be abandoned after acceptance of this one.

Change-Id: I77870faed8704f635b7b2065a6c885ff529f6211

7 years agoInitial empty repository master
Tizen Infrastructure [Thu, 30 Mar 2017 08:49:23 +0000 (01:49 -0700)]
Initial empty repository