platform/core/uifw/tts.git
3 years agoFix Native TTS API references 34/248934/1
sungrae jo [Thu, 3 Dec 2020 09:47:24 +0000 (18:47 +0900)]
Fix Native TTS API references

Change-Id: I33ece7bc5d0c31c99f16937bcb721cd0fadebfb1
Signed-off-by: sungrae jo <seongrae.jo@samsung.com>
3 years agoVersion up to 1.65.0 82/248482/1
Suyeon Hwang [Fri, 27 Nov 2020 05:21:03 +0000 (14:21 +0900)]
Version up to 1.65.0

Change-Id: I5ca36efb0d95a600b3f11e0e488b6a4af5d3e0ca
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoMerge changes Ic6ad2c94,I7d0f0397,I5b298cb5,Ib64b8628,I28428a7c into tizen
Suyeon Hwang [Fri, 27 Nov 2020 05:14:45 +0000 (05:14 +0000)]
Merge changes Ic6ad2c94,I7d0f0397,I5b298cb5,Ib64b8628,I28428a7c into tizen

* changes:
  Move service engine status check logic into tts_core
  Remove extern definition from tts_dbus
  Remove shared variable for callback timer
  Refactor prepare/unprepare logic with tts_core
  Introduce tts_core.h/c as genral logic layer

3 years agoAdd mutex to wait play thread safely 94/248094/1 submit/tizen/20201120.141139 submit/tizen/20201123.062812
Suyeon Hwang [Fri, 20 Nov 2020 07:28:59 +0000 (16:28 +0900)]
Add mutex to wait play thread safely

Change-Id: I4120e70c86042c9fcb87c31c969dba9df6640296
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoMove service engine status check logic into tts_core 91/246891/2
Suyeon Hwang [Wed, 4 Nov 2020 06:37:29 +0000 (15:37 +0900)]
Move service engine status check logic into tts_core

tts_core handles all prepare sequence and service engine status is only needed on prepare sequence.

This patch moves all the codes related with service engine status into tts_core.c/h.

Change-Id: Ic6ad2c947b0c6bd40add5842b6c90e0c2577dc56
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoFix build error in 64bit 93/247293/1 accepted/tizen/unified/20201110.125029 submit/tizen/20201109.122558
sooyeon.kim [Mon, 9 Nov 2020 12:20:56 +0000 (21:20 +0900)]
Fix build error in 64bit

Change-Id: I38040f491ddc4cf62e68ffc9e1231b1eb181b310
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoRemove infinite loop log 12/247212/1 submit/tizen/20201109.074204
Sungwook Park [Mon, 9 Nov 2020 03:07:20 +0000 (12:07 +0900)]
Remove infinite loop log

Change-Id: I43a0b58706935bccb3eb9c00b258ad384263074d
Signed-off-by: Sungwook Park <sungwook79.park@samsung.com>
3 years agoReturn operation failed error when inserting data is failed 97/246997/2
sooyeon.kim [Fri, 6 Nov 2020 02:02:00 +0000 (11:02 +0900)]
Return operation failed error when inserting data is failed

Change-Id: Ie8a3d1803bad6978af7b72dfbf9bb1a962c8a68c
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoFix crash in pringint logs 93/246993/1
sooyeon.kim [Fri, 6 Nov 2020 01:33:08 +0000 (10:33 +0900)]
Fix crash in pringint logs

Change-Id: I6284248b2c32b2edbeb0bb3a607084111cd21e99
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoFix build error and Update version (1.60.12) 58/246958/2
sooyeon.kim [Thu, 5 Nov 2020 09:58:07 +0000 (18:58 +0900)]
Fix build error and Update version (1.60.12)

Change-Id: I632d19dfe19f984cf92c62c4a7a3cc28773866e0
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoAdd logs for checking clients in ttsd_data 23/246923/3
sooyeon.kim [Thu, 5 Nov 2020 07:49:46 +0000 (16:49 +0900)]
Add logs for checking clients in ttsd_data

Change-Id: Ifbfe0178ffb0b3880b1de9f53f23ea38fa3fe6a2
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoRemove extern definition from tts_dbus 90/246890/1
Suyeon Hwang [Mon, 2 Nov 2020 05:20:36 +0000 (14:20 +0900)]
Remove extern definition from tts_dbus

Extern keyword makes easy to use functions in other .c files, but also it makes difficult to trace
call stack and breaks boundary between private and public functions.

This patch removes extern definition from tts_dbus.c and implements these functions on tts_core.

Change-Id: I7d0f039757aedd961f94590489182de688e3d3f2
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoRemove shared variable for callback timer 89/246889/1
Suyeon Hwang [Fri, 30 Oct 2020 07:32:15 +0000 (16:32 +0900)]
Remove shared variable for callback timer

To call client callback asynchronously, current code uses Ecore_timer with shared variable.
But this implementation can cause unexpected problem when multi clients exist.

This patch removes shared Ecore_timer variables and makes Ecore_timer vairable for each clients
on tts_client_s.

Change-Id: I5b298cb55bed27f52e6cab697eca67c6c5441192
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoRefactor prepare/unprepare logic with tts_core 88/246888/1
Suyeon Hwang [Fri, 30 Oct 2020 03:03:17 +0000 (12:03 +0900)]
Refactor prepare/unprepare logic with tts_core

This patch moves core logic of prepare/unprepare into tts_core.c/h.

Change-Id: Ib64b862845aa6fc8b0f6a69847066a1ae7e691e2
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoIntroduce tts_core.h/c as genral logic layer 87/246887/1
Suyeon Hwang [Wed, 21 Oct 2020 10:53:12 +0000 (19:53 +0900)]
Introduce tts_core.h/c as genral logic layer

tts_core.c/h includes most of general logic to implement TTS FW.

This patch introduces tts_core.c/h as a first step of refactoring client module.
And also, this patch refactors logic to call client callback.

Change-Id: I28428a7c6eca4522c960974f4a0183d327d97f17
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoAdd a checker whether pkgmgr_thread is done or not 23/246823/1
sooyeon.kim [Wed, 4 Nov 2020 08:40:26 +0000 (17:40 +0900)]
Add a checker whether pkgmgr_thread is done or not

Change-Id: I78b3c3cbcf6af9b50e2514a1b62837695376bc17
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoChange not to send dbus message when ttsc is destroyed and Add a checker for validity... 57/246557/3
sooyeon.kim [Mon, 2 Nov 2020 03:18:05 +0000 (12:18 +0900)]
Change not to send dbus message when ttsc is destroyed and Add a checker for validity of ttsd_data_get_pid()

Change-Id: I1360497522e2f2088c5c1357bf14a448d80cd2cc
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoVersion up to 1.60.11 62/246062/1
Suyeon Hwang [Fri, 23 Oct 2020 02:14:57 +0000 (11:14 +0900)]
Version up to 1.60.11

Change-Id: Ia49a85a45d0d23b5851d77d95518d203be0ad0b1
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoEnhance validation check for current player 19/246019/1 accepted/tizen/unified/20201029.124841 submit/tizen/20201028.060707
Suyeon Hwang [Thu, 22 Oct 2020 06:31:44 +0000 (15:31 +0900)]
Enhance validation check for current player

Change-Id: Ibc7258394faec26456f639f14a39dd330ca196e6
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoFix typo (utt_completeted -> utt_completed) 67/245967/1
Suyeon Hwang [Wed, 21 Oct 2020 01:28:16 +0000 (10:28 +0900)]
Fix typo (utt_completeted -> utt_completed)

Change-Id: I5f9e3444f40c37aee61aee4e95ec049f361fe61e
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoAdd a checker of thread cancellation 30/245830/1 submit/tizen/20201019.010445
sooyeon.kim [Fri, 16 Oct 2020 09:14:33 +0000 (18:14 +0900)]
Add a checker of thread cancellation

Change-Id: I27461ca02fdf82b55aa2785b1f32da02e6424621
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoUpdate version (1.60.10) 07/245407/1 accepted/tizen_6.0_unified_hotfix tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.104817 accepted/tizen/6.0/unified/hotfix/20201103.000149 accepted/tizen/unified/20201009.090852 submit/tizen/20201008.081908 submit/tizen_6.0/20201029.205501 submit/tizen_6.0_hotfix/20201102.192901 submit/tizen_6.0_hotfix/20201103.115101 tizen_6.0.m2_release
sooyeon.kim [Thu, 8 Oct 2020 08:09:02 +0000 (17:09 +0900)]
Update version (1.60.10)

Change-Id: I0807cbdc5f7da7d30784487e39b750fe33501ed8
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoMerge "Fix variable type for credential_needed in ttsd_dbus_server" into tizen
Sooyeon Kim [Thu, 8 Oct 2020 08:03:29 +0000 (08:03 +0000)]
Merge "Fix variable type for credential_needed in ttsd_dbus_server" into tizen

3 years agoMerge "Revert "Add a checker of screen reader in tts_prepare()"" into tizen
Sooyeon Kim [Thu, 8 Oct 2020 08:02:35 +0000 (08:02 +0000)]
Merge "Revert "Add a checker of screen reader in tts_prepare()"" into tizen

3 years agoFix variable type for credential_needed in ttsd_dbus_server 04/245404/1
sooyeon.kim [Thu, 8 Oct 2020 07:44:36 +0000 (16:44 +0900)]
Fix variable type for credential_needed in ttsd_dbus_server

Change-Id: Ib1bddef712b54495f6e023cb4417ae4bfae117bc
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoRevert "Add a checker of screen reader in tts_prepare()" 99/245399/1
Sooyeon Kim [Thu, 8 Oct 2020 07:17:47 +0000 (07:17 +0000)]
Revert "Add a checker of screen reader in tts_prepare()"

This reverts commit f99e7d39fd5a4f411af74f2b04a58f1d7635657f.

Change-Id: I67127188dfc8e454b771fada76692cafc46abd64

3 years agoMerge "Add to call audio_out_unprepare() when g_playing_info is null" into tizen submit/tizen/20201005.111827
Sooyeon Kim [Mon, 5 Oct 2020 11:12:39 +0000 (11:12 +0000)]
Merge "Add to call audio_out_unprepare() when g_playing_info is null" into tizen

3 years agoAdd to call audio_out_unprepare() when g_playing_info is null 11/245211/1
sooyeon.kim [Mon, 5 Oct 2020 10:21:22 +0000 (19:21 +0900)]
Add to call audio_out_unprepare() when g_playing_info is null

Change-Id: I52cbdc58a89283b6b2c91006df7e9ca0026c1213
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoAdd a checker of screen reader in tts_prepare() 09/245209/1
sooyeon.kim [Fri, 11 Sep 2020 08:08:31 +0000 (17:08 +0900)]
Add a checker of screen reader in tts_prepare()

Change-Id: I81cec68c66ea2e2daf0b81cce69c583a5d305970
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 727a0aea05ec1a044278cfcc81aa3aac0f2e1e5d)

3 years agoRemove tts_tag() function 23/244523/2
biryang1 [Mon, 21 Sep 2020 08:22:57 +0000 (17:22 +0900)]
Remove tts_tag() function

Change-Id: I29d2a373589e5374e1a99b0a79a2755cc5b3b067
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoAdd more unittests 57/243657/4
Jihoon Kim [Mon, 27 Jul 2020 01:18:21 +0000 (10:18 +0900)]
Add more unittests

Sep 11 19:49:25 localhost tts-unittests[12848]: [----------] 120 tests from TTSTest (27223 ms total)
Sep 11 19:49:25 localhost tts-unittests[12848]: [----------] Global test environment tear-down
Sep 11 19:49:25 localhost tts-unittests[12848]: [==========] 120 tests from 1 test case ran. (27223 ms total)
Sep 11 19:49:25 localhost tts-unittests[12848]: [  PASSED  ] 120 tests.

Change-Id: I5ac5bd4a3da4533a39152128feaaeed5863cf8fe
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
3 years agoAdd to avoid a crash in player thread 88/243788/1 accepted/tizen/unified/20200911.143431 submit/tizen/20200910.083341
sooyeon.kim [Thu, 10 Sep 2020 06:06:10 +0000 (15:06 +0900)]
Add to avoid a crash in player thread

Change-Id: I8aac7c19383a309e5c85cca501dcc842272c68db
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoAdd a timer for prepare once 39/243739/1
sooyeon.kim [Fri, 4 Sep 2020 10:03:54 +0000 (19:03 +0900)]
Add a timer for prepare once

Change-Id: I747f8e4e14ef5142c71d12242963e9defa29862c
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit b703adec8bf5e1d104c312eb33d1c07f49f7ed73)

3 years agoAdd to set audio handles as NULL 45/241445/2 accepted/tizen/unified/20200824.134459 submit/tizen/20200821.113338
sooyeon.kim [Thu, 20 Aug 2020 07:52:36 +0000 (16:52 +0900)]
Add to set audio handles as NULL

- Fix crash in __pkgmgr_status_cb
- Add a timer handle to notify error

Change-Id: Ie74e81db928273e88d81dd1a901eef6ee1e99852
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoAdd ecore_thread_cancel to avoid crash 94/239394/1 accepted/tizen/unified/20200727.132050 submit/tizen/20200724.103723
sooyeon.kim [Fri, 24 Jul 2020 09:42:39 +0000 (18:42 +0900)]
Add ecore_thread_cancel to avoid crash

Change-Id: I635c27473b4ce8225b9a51f7f2f2fa472497f069
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoUpdate version (1.60.9) 93/239393/1
sooyeon.kim [Fri, 24 Jul 2020 09:37:18 +0000 (18:37 +0900)]
Update version (1.60.9)

Change-Id: I065fae9613ad0b3d4b659fb7d4628f45082eb416
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoFix to change background volume when it is changed by tts_setting 91/239391/2
sooyeon.kim [Fri, 24 Jul 2020 09:33:45 +0000 (18:33 +0900)]
Fix to change background volume when it is changed by tts_setting

Change-Id: If61fd67ad6b8e8cc998682523cc57a4b47e7e5b5
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoChange a logic to call reprepare 90/239390/1
sooyeon.kim [Fri, 24 Jul 2020 09:30:34 +0000 (18:30 +0900)]
Change a logic to call reprepare

Change-Id: Id2a5adb777953e7965867c76c24be66fa3cd7b1c
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoUpdate version (1.60.8) 89/239389/1
sooyeon.kim [Fri, 24 Jul 2020 09:24:35 +0000 (18:24 +0900)]
Update version (1.60.8)

Change-Id: I68e59f0c05c5e84a43a7697908d510b68f4a0b55
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoAdd INSTALL status into pkgmgr_client_cb 88/239388/1
sooyeon.kim [Fri, 24 Jul 2020 09:20:12 +0000 (18:20 +0900)]
Add INSTALL status into pkgmgr_client_cb

Change-Id: If09373ff73d1e6b6cf17227c6908a1239ebdd27c
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoFix an issue not to exit from __play_thread 87/239387/1
sooyeon.kim [Fri, 24 Jul 2020 09:11:51 +0000 (18:11 +0900)]
Fix an issue not to exit from __play_thread

Change-Id: I710a5be24c48c3518e7a6e7540297439b08d3d07
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoFix to call __set_policy_for_playing 82/239382/1
sooyeon.kim [Fri, 24 Jul 2020 09:02:39 +0000 (18:02 +0900)]
Fix to call __set_policy_for_playing

Change-Id: If8f94c6d58ff8cdb97691d24d738ea889a413248
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoUpdate version (1.60.7) 80/239380/1
sooyeon.kim [Fri, 24 Jul 2020 08:57:31 +0000 (17:57 +0900)]
Update version (1.60.7)

Change-Id: I07d4e6cc5f85e5297cb9d0512c9dab24fe39cd9c
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoRemove only proper dbus match 77/239377/1
sooyeon.kim [Fri, 24 Jul 2020 08:40:49 +0000 (17:40 +0900)]
Remove only proper dbus match

Change-Id: I41bcb8fa422885483b7aec32e31491562d791600
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoIgnore to reprepare when tts engine is already launched 76/239376/1
sooyeon.kim [Fri, 24 Jul 2020 08:32:52 +0000 (17:32 +0900)]
Ignore to reprepare when tts engine is already launched

Change-Id: Ib8c2ca008728a5ef27b6031ac7633e21280a451f
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoChange to thread instance of client 73/239373/1
sooyeon.kim [Fri, 24 Jul 2020 08:26:24 +0000 (17:26 +0900)]
Change to thread instance of client

Change-Id: I502ce4bd931400694f5afbf20c41b77f8983ac4f
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoUpdate version (1.60.6) 71/239371/1
sooyeon.kim [Fri, 24 Jul 2020 08:16:32 +0000 (17:16 +0900)]
Update version (1.60.6)

Change-Id: I72c2025196826a6f009af6f6c14aaa9448d921a8
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoAdd a checker whether engine is launched or not 70/239370/1
sooyeon.kim [Fri, 24 Jul 2020 08:14:15 +0000 (17:14 +0900)]
Add a checker whether engine is launched or not

Change-Id: I8d49118dc17c4112cfce15b4a74856922f798669
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoRemove chown setting 67/239367/1
sooyeon.kim [Fri, 24 Jul 2020 07:48:53 +0000 (16:48 +0900)]
Remove chown setting

Change-Id: I9b8b5ab09b6bbbdd2580ed71bb1fa157e52eb060
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoUpdate version (1.60.5) 65/239365/1
sooyeon.kim [Fri, 24 Jul 2020 07:43:44 +0000 (16:43 +0900)]
Update version (1.60.5)

Change-Id: Ie641206b64b66c6bad2e4d02e40a37d6d6454511
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoAdd a logic to check activated thread before destroying tts client 64/239364/1
sooyeon.kim [Fri, 24 Jul 2020 07:40:49 +0000 (16:40 +0900)]
Add a logic to check activated thread before destroying tts client

Change-Id: I326f171deee0dee502a6ff062fd459d86cde2697
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoFix to avoid paused_data crash 60/239360/1
sooyeon.kim [Fri, 24 Jul 2020 07:13:56 +0000 (16:13 +0900)]
Fix to avoid paused_data crash

Change-Id: Ia0db6b669f802ae01adfbe6e4379430ebf985104
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoChange the limit of timeout 59/239359/1
sooyeon.kim [Fri, 24 Jul 2020 07:10:04 +0000 (16:10 +0900)]
Change the limit of timeout

Change-Id: I05144fe9aef767dc443c76aff787c86cdc0662db
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoAdd a logic to check tts engine is installed and launched 58/239358/1
sooyeon.kim [Fri, 24 Jul 2020 07:03:26 +0000 (16:03 +0900)]
Add a logic to check tts engine is installed and launched

Change-Id: Ic7e6adb8e3fc170b793317627d3403fb6a315f47
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoversion up to 1.60.4 17/238217/3
Suyeon Hwang [Thu, 9 Jul 2020 10:31:07 +0000 (19:31 +0900)]
version up to 1.60.4

Change-Id: Iced20dca6e4c58c3682b44407a76f2c2b2e72217
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoAdd null check about client list from tts_client 16/238216/3
Suyeon Hwang [Thu, 9 Jul 2020 10:22:16 +0000 (19:22 +0900)]
Add null check about client list from tts_client

Change-Id: I6ae21d38aa2f3878e90532ca73e63626ce8bfd67
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoAdd mutex lock for global variables in tts_client.c 07/238207/1
Suyeon Hwang [Thu, 9 Jul 2020 09:24:55 +0000 (18:24 +0900)]
Add mutex lock for global variables in tts_client.c

Global variables, g_client_list and g_allocated_handle, can occur thread safety issue, because
any threads can access these variables.

This patch makes mutex lock for these variables to avoid thread safety issue.

Change-Id: Ie7a2be075ec07d3366b8ee76389a78c91e1a17bb
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoMerge "Revert "Add mutex lock for global variables in tts_client"" into tizen
Suyeon Hwang [Thu, 9 Jul 2020 09:19:23 +0000 (09:19 +0000)]
Merge "Revert "Add mutex lock for global variables in tts_client"" into tizen

3 years agoRevert "Add mutex lock for global variables in tts_client" 01/238201/1
Suyeon Hwang [Thu, 9 Jul 2020 09:11:55 +0000 (09:11 +0000)]
Revert "Add mutex lock for global variables in tts_client"

This reverts commit 1ec7dcbf00714896f738c92cbf89693a880032cf.

Reason for revert: not intended merge

Change-Id: I6ac66782c09d3797f5f4a00da98f9c5bab8ce7e8

3 years agoRevert "Return copy of g_client_list" 00/238200/1
Suyeon Hwang [Thu, 9 Jul 2020 09:11:36 +0000 (09:11 +0000)]
Revert "Return copy of g_client_list"

This reverts commit b8d4d9fd6809f68d9df8255b47dea97f52fe1f25.

Reason for revert: not intended merge

Change-Id: I56fe5121e5c9590af729386945d74e80657ff315

3 years agoReturn copy of g_client_list 48/231548/3
Suyeon Hwang [Wed, 22 Apr 2020 09:08:40 +0000 (18:08 +0900)]
Return copy of g_client_list

This patch changes the return value of tts_client_get_client_list() to copy of g_client_list.
This change supports safe use of g_client_list and avoids thread safety issues.

Originally, this function returns g_client_list directly.
This kind of access is dangerous, because it allows unmanaged modification of list.
This may occur thread safety issue or dangerous memory access.
However, if function returns copy of g_client_list, g_client_list avoids dangerous access.
And also, callee still accesses all of clients through this copied list.

Change-Id: Ib88ffcf6877130fb92f47cae4167a7340aaa34f6
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoAdd mutex lock for global variables in tts_client 09/231109/2
Suyeon Hwang [Fri, 17 Apr 2020 08:23:50 +0000 (17:23 +0900)]
Add mutex lock for global variables in tts_client

Global varaibles, g_client_list and g_allocated_handle, can occur thread safety issue, because
any threads can access these variables.

This patch makes mutex lock for these variables to avoid thread safety issue.

Change-Id: I7ce1adf0c625715b619573d130408f0924da9785
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
3 years agoChange TV service files for rpm package 62/237962/1 accepted/tizen/unified/20200708.125343 submit/tizen/20200707.060858
sooyeon.kim [Tue, 7 Jul 2020 04:31:33 +0000 (13:31 +0900)]
Change TV service files for rpm package

Change-Id: I95e57e07ce0c225b57728a4ff5838e036f826138
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
3 years agoRemove duplicated package lists 72/237272/1
Jihoon Kim [Fri, 26 Jun 2020 11:42:36 +0000 (20:42 +0900)]
Remove duplicated package lists

Change-Id: Iec51e942c1776a306f1ab85e69717ce1e75877a2
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
3 years agoAdd unittest skeleton 57/235757/4
Jihoon Kim [Tue, 9 Jun 2020 10:15:37 +0000 (19:15 +0900)]
Add unittest skeleton

Change-Id: Id4fde0fc3694b094e65795c2ba68c9173e32bfa7
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
4 years agoUpdate version 1.60.3 91/230991/1 accepted/tizen/unified/20200417.152726 submit/tizen/20200416.105356
wn.jang [Thu, 16 Apr 2020 10:51:33 +0000 (19:51 +0900)]
Update version 1.60.3

Change-Id: I45e6f7ed17481b31d57e8ae02741449b7adf239e

4 years agoFix build error on aarch64 86/230986/2
wn.jang [Thu, 16 Apr 2020 10:31:15 +0000 (19:31 +0900)]
Fix build error on aarch64

Change-Id: I2454cab3a614ceacf23f17841a4165f35d42e408

4 years agoUpdate version to 1.60.2 17/228517/1 submit/tizen/20200323.110648 submit/tizen/20200416.012027
wn.jang [Mon, 23 Mar 2020 10:59:05 +0000 (19:59 +0900)]
Update version to 1.60.2

Change-Id: Ie0b6fd8ade29744a177fa67444dfe0cbad0b9bb4

4 years agoFix ttse TC fail while tct-mgr execute 13/228513/2
wn.jang [Mon, 23 Mar 2020 10:45:47 +0000 (19:45 +0900)]
Fix ttse TC fail while tct-mgr execute

ttse_ prefix TCs are all failed, because dbus_open_connection was already established.
So, if only TC case which means that default appid is differ from current appid is,
it will ignore to established dbus connection.

Change-Id: Id19e6378674d605382e56d8e61663acc72331001

4 years agoUpdate pakcage version (1.60.1) 16/227816/1
sooyeon.kim [Mon, 16 Mar 2020 11:14:33 +0000 (20:14 +0900)]
Update pakcage version (1.60.1)

- Add a logic to check screen reader vconfkey in tts_add_text() (from 18a0e973c5879576ac68811b7816972ab8a71b0f)
- Change the step of checking utf8 validation and text size (from dfc3cde49f4afb40f26a559573e04b3272057883)
- Fix to avoid crash in paused_data (from fd282701c874b4209c74cfb6f3556c9c41575622)

Change-Id: I4531503f933d24c43a307a37825ac1e0b0286ee2
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
4 years agoFix to avoid crash in paused_data 15/227815/1
sooyeon.kim [Mon, 16 Mar 2020 05:20:41 +0000 (14:20 +0900)]
Fix to avoid crash in paused_data

Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
Conflicts:
server/ttsd_player.c

Change-Id: I30f22a1784ca2f93225b4ff0efb59a2f2229c076

4 years agoMerge "Change the step of checking utf8 validation and text size" into tizen
Sooyeon Kim [Mon, 16 Mar 2020 10:44:44 +0000 (10:44 +0000)]
Merge "Change the step of checking utf8 validation and text size" into tizen

4 years agoChange the step of checking utf8 validation and text size 06/227806/1
sooyeon.kim [Mon, 2 Mar 2020 04:30:44 +0000 (13:30 +0900)]
Change the step of checking utf8 validation and text size

Change-Id: Idc42686df3e46dc6cea88e0bfbf6c0c2bc29f616
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit dfc3cde49f4afb40f26a559573e04b3272057883)

4 years agoAdd a logic to check screen reader vconfkey in tts_add_text() 05/227805/1
sooyeon.kim [Thu, 27 Feb 2020 06:12:33 +0000 (15:12 +0900)]
Add a logic to check screen reader vconfkey in tts_add_text()

Change-Id: I1722e6a009e023fa799b6fe31d61ce84b953456e
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 18a0e973c5879576ac68811b7816972ab8a71b0f)

4 years agoUpdate package version to 1.60.0 50/227750/2
wn.jang [Mon, 16 Mar 2020 07:28:54 +0000 (16:28 +0900)]
Update package version to 1.60.0

Change-Id: I19107b83852605296ac99234a1b9b9a1a5128cdf

4 years agoRemove unnecessary value 16/227616/1
wn.jang [Fri, 13 Mar 2020 06:23:27 +0000 (15:23 +0900)]
Remove unnecessary value

This is related to thread safety error.
The problem happened at following codes in ttsd_player_play() function.

    if (NULL != g_playing_info) {
        if (uid == g_playing_info->uid) {

g_playing_info can be NULL on __play_thread() function which is including this removed codes.
So, this codes has been removed.

Change-Id: I1183904f34712c0747f99e126edb3f444ffdc5b3

4 years agoMerge "Add log to leave string length" into tizen
Wonnam Jang [Mon, 2 Mar 2020 04:27:27 +0000 (04:27 +0000)]
Merge "Add log to leave string length" into tizen

4 years agoAdd log to leave string length 41/226341/1
wn.jang [Mon, 2 Mar 2020 02:04:19 +0000 (11:04 +0900)]
Add log to leave string length

Change-Id: I1bce7041e23c2e0f5854207cd79574d203eca918

4 years agoAdd to set timer as NULL when returning EINA_FALSE 89/225789/1 accepted/tizen/unified/20200302.041942 submit/tizen/20200228.062816
sooyeon.kim [Mon, 24 Feb 2020 10:22:39 +0000 (19:22 +0900)]
Add to set timer as NULL when returning EINA_FALSE

Change-Id: I21373ae8cecb0f40d4c92faa5229a76e1ab4c22f
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
4 years agoFix to mix screen-reader and interrupt mode by adding internal app state 33/224433/1 submit/tizen/20200220.060827 submit/tizen/20200221.052406
sooyeon.kim [Wed, 20 Nov 2019 12:19:15 +0000 (21:19 +0900)]
Fix to mix screen-reader and interrupt mode by adding internal app state

Change-Id: I575c801f78584ad1b20ed1eadaff10c11a8347b0
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 72a6660fe20050c183ff9c0c2c7c61e17206045c)

4 years agoAdd logs when audio data is exhausted 32/224432/1
wn.jang [Wed, 22 Jan 2020 12:14:36 +0000 (21:14 +0900)]
Add logs when audio data is exhausted

Change-Id: Id1f9d61609e46a1c3b815a99abf651c1b135003b
(cherry picked from commit 8dcb15ae658b60aefc9f967302d92c55ff979f13)

4 years agoFix pkgmgr status and move hello_timer into client handle 31/224431/1
wn.jang [Wed, 22 Jan 2020 06:08:13 +0000 (15:08 +0900)]
Fix pkgmgr status and move hello_timer into client handle

Change-Id: Ifb917210c844503725584a9024577658e78b2af3
(cherry picked from commit 2c205ab6adc5c18807c3206bab995c752e5f4a1f)

4 years agoAdd engine update checker into __send_hello 30/224430/1
sooyeon.kim [Thu, 16 Jan 2020 12:32:23 +0000 (21:32 +0900)]
Add engine update checker into __send_hello

Change-Id: I46df92d861250e2e377ec724fdae3cd80d764d12
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 121744dc09429cc48df86723ac4139cf8494f81e)

4 years agoAdd timer to stop sending hello message 29/224429/2
sooyeon.kim [Mon, 10 Feb 2020 12:01:45 +0000 (21:01 +0900)]
Add timer to stop sending hello message

Change-Id: Ic86480822ab2bd4c34a9db4fee88bbfcf6a03b5b
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
4 years agoUpdate service files for TV 28/224428/1
wn.jang [Thu, 19 Dec 2019 10:00:19 +0000 (19:00 +0900)]
Update service files for TV

Change-Id: Iaf25d171912752786d59358e61e82740148f7d3b
(cherry picked from commit 93b5cec896eda8fd2103f30ed96cb9a10a32399c)

4 years agoAvoid crash when pid is nagative value 07/223607/1
wn.jang [Thu, 30 Jan 2020 12:23:38 +0000 (21:23 +0900)]
Avoid crash when pid is nagative value

Change-Id: I31a41af85b934a76f4c9bd09c9cdc8321c2659ac

4 years agoCorrect type of sound stream 11/223311/1
wn.jang [Tue, 28 Jan 2020 10:15:03 +0000 (19:15 +0900)]
Correct type of sound stream

Change-Id: I0f15183b8555b519de6ae821da4d717bc0ae2a25
(cherry picked from commit aad189eb85547f8640f7cccbb68b530bad8a753a)

4 years agoAdd a checker into __send_interrupt_client 29/222729/1
sooyeon.kim [Thu, 16 Jan 2020 05:10:55 +0000 (14:10 +0900)]
Add a checker into __send_interrupt_client

Change-Id: I94ee9dcf11557f40571a27744a7efc4c19d481a7
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit 95b4f04dd8e62cc18cda2408d15c73e8d9abc427)

4 years agoUpdate hello protocol 31/222431/1 submit/tizen/20200115.024146
wn.jang [Mon, 6 Jan 2020 14:09:02 +0000 (23:09 +0900)]
Update hello protocol

Change-Id: I5f5b9c258304b6f33656286db1a964a22e90617b
(cherry picked from commit 2bab420365e627aa20f828007a62dc27acda5559)

4 years agoFix pkgmgr_client_free() in thread race condition 27/222427/2
sooyeon.kim [Mon, 13 Jan 2020 12:12:27 +0000 (21:12 +0900)]
Fix pkgmgr_client_free() in thread race condition

Change-Id: I1cb6b08e965555618332dafd555be2bf937a6b56
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
4 years agoChange to call ecore_thread_run to ecore_main_loop_thread_safe_call 25/222425/1
sooyeon.kim [Mon, 13 Jan 2020 10:22:21 +0000 (19:22 +0900)]
Change to call ecore_thread_run to ecore_main_loop_thread_safe_call

Change-Id: I9bec195715ce874d01aafa60e2b51cbdca4bc2b2
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit cf054d67be84ab632995412ff074b03ae663a0cf)

4 years agoAdd engine update checker logic 05/221805/2
sooyeon.kim [Tue, 7 Jan 2020 12:54:52 +0000 (21:54 +0900)]
Add engine update checker logic

Change-Id: Ibfc00c2c49b4edc9145396f3a58ce6f5deee23b9
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
4 years agoMerge "Update background volume ratio to 0.4" into tizen
Wonnam Jang [Wed, 15 Jan 2020 01:54:15 +0000 (01:54 +0000)]
Merge "Update background volume ratio to 0.4" into tizen

4 years agoMerge "Delete ecore timer when quit ecore main loop" into tizen
Wonnam Jang [Mon, 13 Jan 2020 23:50:13 +0000 (23:50 +0000)]
Merge "Delete ecore timer when quit ecore main loop" into tizen

4 years agoUpdate codes for gcc 9.2 compiler 79/222179/1 accepted/tizen/unified/20200113.130603 submit/tizen/20200110.075809
wn.jang [Mon, 30 Dec 2019 08:53:17 +0000 (17:53 +0900)]
Update codes for gcc 9.2 compiler

Change-Id: I4dfc53c538b73227ce4e72c500c13343a9fe439a
(cherry picked from commit 90167c9926e1b78ecba54ab57b1a0b0f97fa5104)

4 years agoDelete ecore timer when quit ecore main loop 80/222080/1
wn.jang [Thu, 9 Jan 2020 10:19:47 +0000 (19:19 +0900)]
Delete ecore timer when quit ecore main loop

Change-Id: I6c98681015d6867d1adef64609b9e0cde34b5b9b

4 years agochange codes to function such as ttsd_player_clear 32/221032/1
wn.jang [Thu, 26 Dec 2019 10:31:57 +0000 (19:31 +0900)]
change codes to function such as ttsd_player_clear

Change-Id: I7de5c91a82970b0113c3e543f61b81ed787e2f5c

4 years agoCrash issue fix by stopping timer invocation during cleanup 31/221031/1
sooyeon.kim [Mon, 1 Apr 2019 06:50:39 +0000 (15:50 +0900)]
Crash issue fix by stopping timer invocation during cleanup

Change-Id: I6ddf1ae619a935390473c71f07e480d82b48f54b
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit b50e1cddabcf7aeade7eb4bcd92e72594034eeff)

4 years agoUpdate background volume ratio to 0.4 53/220753/1
wn.jang [Mon, 23 Dec 2019 01:42:14 +0000 (10:42 +0900)]
Update background volume ratio to 0.4

Change-Id: Ide46c0caa18e615c4042d8349f215ed8643184ce
(cherry picked from commit c9d1b3ac42a7899d2167791b341f500ad0fdcbb3)

4 years agoMerge "Add codes to avoid memory leak" into tizen
Wonnam Jang [Thu, 19 Dec 2019 01:28:41 +0000 (01:28 +0000)]
Merge "Add codes to avoid memory leak" into tizen