Ji-hoon Lee [Mon, 19 Feb 2024 12:21:04 +0000 (21:21 +0900)]
Merge branch 'tizen_8.0' into tizen
Change-Id: I9c3fdce18b604c780e3561c4b6815627e360773d
Ji-hoon Lee [Mon, 19 Feb 2024 12:17:44 +0000 (21:17 +0900)]
Append custom wakeup words instead of replacing
Change-Id: I2a6d3686dd15efda880312570b7328bed67b85dd
Ji-hoon Lee [Mon, 19 Feb 2024 07:55:57 +0000 (16:55 +0900)]
Fix defects detected by static analysis tool
Change-Id: I1782a8acc3e7e4dbdebaa2fd314aec56233592bf
Ji-hoon Lee [Wed, 14 Feb 2024 10:12:58 +0000 (19:12 +0900)]
Rename variables to better reflect their purpose
Change-Id: I27dab2104193650c975e21e5213f2625195bd85a
Ji-hoon Lee [Wed, 14 Feb 2024 08:42:33 +0000 (17:42 +0900)]
Merge branch 'tizen_8.0' into tizen
Change-Id: I2addb07d38936d0c2eb89ba87030f6a8af35f25a
Ji-hoon Lee [Wed, 14 Feb 2024 08:41:20 +0000 (17:41 +0900)]
Bump version to 0.3.40
Change-Id: I0ed70d3b0ee2ee141361e2e522f952eedeb57a7d
Ji-hoon Lee [Tue, 30 Jan 2024 07:17:07 +0000 (16:17 +0900)]
Fix build and runtime failures of utc
Change-Id: I2aae00bcf0ec2bb6535fc4353bc220a75a1b00fd
Ji-hoon Lee [Wed, 5 Apr 2023 04:49:32 +0000 (13:49 +0900)]
Set explicit names for streaming threads
Change-Id: I1fd74038cc50155093292d5221c9cafac7b8c5bc
Ji-hoon Lee [Wed, 24 Jan 2024 07:29:33 +0000 (16:29 +0900)]
Use std::vector and std::string instead of arrays
Change-Id: I5b1a194c39f3f807a039a837efb1e6fafd93f9c4
Ji-hoon Lee [Tue, 19 Dec 2023 07:50:43 +0000 (16:50 +0900)]
Directly link wakeup-manager code with executable file
Change-Id: Icb5ca3f5251e57307fb6c6e3741d76f24caaff46
Ji-hoon Lee [Tue, 19 Dec 2023 05:31:47 +0000 (14:31 +0900)]
Merge branch 'tizen' into tizen_8.0
Change-Id: I3eff4111818e62eef31f5d842515407ff5ed5a8b
Ji-hoon Lee [Thu, 23 Nov 2023 02:56:37 +0000 (11:56 +0900)]
Print logs when getting/setting assistant config values
Change-Id: I4c7339180624144f8b9c2943e91754435f17edf5
Ji-hoon Lee [Mon, 6 Nov 2023 05:15:34 +0000 (14:15 +0900)]
Add vconf changed callback for streaming duration
Change-Id: I8e2aeb57f5cd168fa22e6fb8c492adb102c45145
Ji-hoon Lee [Mon, 30 Oct 2023 10:27:06 +0000 (19:27 +0900)]
Bump version to 0.3.39
Change-Id: I5e90320d871ce448c55787075da0edcee1518aac
Ji-hoon Lee [Thu, 30 Mar 2023 11:25:22 +0000 (20:25 +0900)]
Make sure the process would not be restarted too frequently
If an auto-restart process gets restarted more than 5 times
in 10 seconds, it is considered to be an abnormal behavior
and will not be restarted automatically anymore.
For this reason, modified the app_restart() function to sleep
if the application tries to restart in less than 3 seconds
from the time it was launched.
Change-Id: I44bbb4d24bde28cf35f9927be3dc7bb8c7145f81
Suyeon Hwang [Thu, 3 Aug 2023 07:13:06 +0000 (16:13 +0900)]
Fix pointer array initialization
- Issue:
Buffer overflow can occur when the array is initialized.
- Solution:
This patch uses the zero-initialization for initializing the arrays.
Since C++11, using empty brace sets all value in a array as 0. The
standard names this as zero-initialization. Thus, this patch changes
the initialization using this initialization method.
Change-Id: Ib4362e3db69f2c70cdc16d00ab44303ffbee234b
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
Suyeon Hwang [Mon, 17 Jul 2023 02:16:12 +0000 (11:16 +0900)]
Assign return values to individual variables
- Issue:
One variable is used as return value for many functions and they have
different purpose.
- Solution:
vconf_str is used for return values of many vconf_get_str(). It is very
common usesage, but it also cause misuse because developer can not
directly know the meaning of value from the name of variable. So this
patch makes variables for return value of each vconf_get_str() calling
and names them more meaningful name.
Change-Id: I69eb1314795e569d0dc10444aa299380e6412237
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
Suyeon Hwang [Mon, 17 Jul 2023 01:20:40 +0000 (10:20 +0900)]
Use reference type to reduce copy operation
- Issue:
When the code iterates the list, some code repeats the unnecessary copy
operation.
- Solution:
Normally, reference type is used when the list is iterated. However,
some code did not use reference type, so those code would repeat
unnecessary copy operation. So, this patch fixes those types to
reference. Through this patch, unnecessary copy operation will be
removed.
Change-Id: Ib64f990c0f33ba5eea2977a80db4765f539c5b04
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
Ji-hoon Lee [Tue, 14 Feb 2023 04:01:11 +0000 (13:01 +0900)]
Merge branch 'tizen_7.0' into tizen
Change-Id: If595ae3f0c4d19541ccc75926d69773042ddf5e1
Ji-hoon Lee [Thu, 9 Feb 2023 08:20:29 +0000 (17:20 +0900)]
Send restart notification when a scheduled restart takes place
When a scheduled restart takes place on the agent side,
the client application receives a service reset error,
canceling all the ongoing operations that are not
directly related to the multi-assistant framework.
To avoid this problem, added a restart notification signal
for letting the clients to know the subsequent dbus name owner
change event is caused by a scheduled restart event or not.
Change-Id: Id7c3ff404f43e09dfb2488a7402b9afcbc2051f3
Ji-hoon Lee [Fri, 10 Feb 2023 09:44:34 +0000 (18:44 +0900)]
Merge branch 'tizen_7.0' into tizen
Change-Id: Ic1b4a88671e616aac03330e747175a111d373209
Ji-hoon Lee [Thu, 9 Feb 2023 09:25:23 +0000 (18:25 +0900)]
Disable vconf related code that are not being currently used
Change-Id: Idbf6118351b74ea30e971cf627ac69236f05c685
Ji-hoon Lee [Tue, 10 Jan 2023 09:01:05 +0000 (18:01 +0900)]
Merge branch 'tizen_7.0' into tizen
Change-Id: I660f2fc3bc11d35efa5b3a4934efc80d76e277a1
Ji-hoon Lee [Tue, 10 Jan 2023 08:59:11 +0000 (17:59 +0900)]
Bump version to 0.3.38
Change-Id: Ibfc511e8953a4d9df1bc86803806f6f7a0f5a283
Ji-hoon Lee [Tue, 10 Jan 2023 08:58:51 +0000 (17:58 +0900)]
Prevent duplicated requests from canceling active streaming session
Change-Id: Ie0444f1b7bfa86bec4a415bc393e29ccee5839d0
Ji-hoon Lee [Thu, 15 Dec 2022 03:59:39 +0000 (12:59 +0900)]
Postpone restart operation when streaming audio data
Change-Id: I0189262b57d89885c4463a8443939cbc5f67660b
Ji-hoon Lee [Tue, 13 Dec 2022 11:12:23 +0000 (20:12 +0900)]
Merge branch 'tizen' into tizen_7.0
Change-Id: I905bc6257b4a774ad8d783bb871ca61cd68d3f5c
Ji-hoon Lee [Tue, 13 Dec 2022 09:40:48 +0000 (18:40 +0900)]
Allow audio processor applications to send start streaming request
Change-Id: I36707c55cfc4e64331d2228c30ed051950c15bdf
Ji-hoon Lee [Fri, 9 Dec 2022 03:02:07 +0000 (12:02 +0900)]
Postpone voice key release event emission until streaming completes
Change-Id: I5931b2502c06fc645188a20c71a6ea1776ce7e63
Ji-hoon Lee [Mon, 5 Dec 2022 10:39:51 +0000 (19:39 +0900)]
Remove unnecessary pid<->appid conversion logic
Change-Id: If0439c8fae6c8ba65d8249eef9dbe4a9ac7d13d7
Ji-hoon Lee [Wed, 30 Nov 2022 09:05:43 +0000 (18:05 +0900)]
Reduce blocking time when streaming audio data
When the CPU is busy handling many tasks, there are times
that the streaming thread gets blocked while calling some
undelying platform API functions. To avoid this problem,
applied several methods for reducing the blocking time
and added log messages for displaying time information.
List of methods used for reducing the blocking time:
1. Cache appid / pid information that is acquired by
calling AUL API functions, since they sometimes
do not return immediately and take a while to complete.
2. Instead of passing a pointer to the shared audio data
into the message transmission module while holding the
lock to protect the shared audio data, make a copy of
audio data and release the lock immediately so that
the copy of audio data can be used without the risk of
race condition. This is because sometimes the message
transmission also takes a bit of time to complete, and
the other threads waiting for the lock cannot proceed
in such cases.
Change-Id: I6c6959fadddbc557dbb77849fa25ce4949155f4b
Ji-hoon Lee [Wed, 30 Nov 2022 06:46:51 +0000 (15:46 +0900)]
Prevent restarting service when conversation session exists
Change-Id: I79771d40e67e2bda2efdd6a50474ef500fd5230c
Ji-hoon Lee [Mon, 24 Oct 2022 02:31:38 +0000 (11:31 +0900)]
Skip application running check when acquiring PID or AppID
Since the application running check is already performed
when wakeup event gets processed, there is no need to
check the running status every time PID or AppID is acquired.
Change-Id: If93f64f67cfde458123fca6c16f18713fd5118e8
Ji-hoon Lee [Thu, 29 Sep 2022 11:33:06 +0000 (20:33 +0900)]
Register package manager event handler before loading wakeup engines
If the wakeup engine app gets installed while
multi-assistant-service is being launched and also
is trying to load wakeup engines, the newly installed
wakeup engine will not be loaded since at the time of
launching the installation was not completed,
and the installation completion event would not be
received also, since the package manager event handler
might not be registered yet.
So if we register package manager event handler first
and then load wakeup engines, even if the wakeup engine
currently being installed fails to be loaded, the
installation completion event is guaranteed to be received
by the package manager event handler, making sure that
the multi-assistant-service would restart for re-loading.
Change-Id: I1e8f57d6a08c9290a0ae11422d1404188c97c3df
InHong Han [Thu, 29 Sep 2022 03:12:24 +0000 (12:12 +0900)]
Bump version to 0.3.37
Change-Id: I5660de15f66039d338edee05bafbd9d05fe3ec01
InHong Han [Thu, 29 Sep 2022 00:59:16 +0000 (09:59 +0900)]
Modified not to restart the daemon repeatedly
Change-Id: I4fd0822ac19d5cd010a39afe79410e13f4162805
InHong Han [Thu, 22 Sep 2022 07:40:19 +0000 (16:40 +0900)]
Change log level for debugging
Change-Id: I3050e5e4e9febd52d2adf131566cb3e90a9438af
InHong Han [Mon, 8 Aug 2022 04:54:32 +0000 (13:54 +0900)]
Fix issue detected by static analysis tool
Change-Id: I3d296586e161a2a024b301c1ef21e2f406799109
InHong Han [Mon, 25 Jul 2022 06:27:30 +0000 (15:27 +0900)]
Bump version to 0.3.36
Change-Id: Id0a6a7523197ff665329ab7e5e988c91d6bb1dd7
InHong Han [Mon, 25 Jul 2022 05:29:28 +0000 (14:29 +0900)]
Fix issue detected by static analysis tool
Change-Id: I573bfa8478cad77c9f38f4eaa00304ea2d854bfa
InHong Han [Mon, 25 Jul 2022 04:57:54 +0000 (04:57 +0000)]
Merge changes I0271d097,If55e1690 into tizen
* changes:
Bump version to 0.3.35
Modified not to load wakeup engine with wake_word_detection turned off
InHong Han [Thu, 21 Jul 2022 02:32:35 +0000 (11:32 +0900)]
Bump version to 0.3.35
Change-Id: I0271d097f9b17f03899bc7189a41207a065b9fba
InHong Han [Wed, 20 Jul 2022 09:58:46 +0000 (18:58 +0900)]
Modified not to load wakeup engine with wake_word_detection turned off
Change-Id: If55e1690071f43540e008bead090a6ecb3dc206b
Jihoon Kim [Sun, 24 Jul 2022 08:01:18 +0000 (17:01 +0900)]
Fix issue detected by static analysis tool
Change-Id: Iba3c2542af7a18ccf2b765a2cc2847c2b5d50219
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
InHong Han [Wed, 13 Jul 2022 08:04:03 +0000 (17:04 +0900)]
Send voice key support mode after changing default assistant
Change-Id: I718cab051170ae75d4ffc49de8675cbb3be969c5
InHong Han [Mon, 11 Jul 2022 10:06:37 +0000 (19:06 +0900)]
Bump version to 0.3.34
Change-Id: I41e15c0c78de3b8942a946b0868673a51c35fa5f
InHong Han [Mon, 4 Jul 2022 07:36:43 +0000 (16:36 +0900)]
Modified to load only required wakeup engines
Change-Id: I5088222fbe6217cf8381de5280f552efe3889599
Ji-hoon Lee [Thu, 23 Jun 2022 06:20:45 +0000 (15:20 +0900)]
Support checking recording_by_voice_key state for TTT
Change-Id: Ie91e1ece1e9eeb459b1ec18d3d22703bddbc1240
InHong Han [Tue, 21 Jun 2022 05:31:52 +0000 (14:31 +0900)]
Bump version to 0.3.33
Change-Id: I4c1061b997357760dea6fc78e3cc77a5a748832a
InHong Han [Tue, 21 Jun 2022 05:30:20 +0000 (14:30 +0900)]
Add missing wakeup_info assignment
Change-Id: Ib192e1c2ade1e922c19f5e5c6ee85431738be3e9
Ji-hoon Lee [Fri, 17 Jun 2022 04:22:46 +0000 (13:22 +0900)]
Bump version to 0.3.32
Change-Id: Ia95d45786550312020aefe738eb5e5df04b4bdf3
Ji-hoon Lee [Tue, 14 Jun 2022 12:26:38 +0000 (21:26 +0900)]
Make default wakeup policy to choose the first wakeup event
Change-Id: I9c7ca76a001983198d6ffbb458911e28aceffac3
InHong Han [Fri, 13 May 2022 09:21:08 +0000 (18:21 +0900)]
Add the new API for sending wakeup_word
Change-Id: Idfac593bbc829a25036fa9093bb219e157cf1d2d
Ji-hoon Lee [Thu, 9 Jun 2022 09:05:22 +0000 (18:05 +0900)]
Preserve wakeup manager state on proactive default assistant change
Change-Id: I772c2000e4201a7798226faeb70279fd36aca92e
Jihoon Kim [Fri, 20 May 2022 11:05:24 +0000 (20:05 +0900)]
Remove media-audio-io and appcore-agent dependency
Change-Id: If9ce14cfe817d90778e2e8c97bfe6dea9b1ca53a
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Jihoon Kim [Fri, 20 May 2022 10:47:45 +0000 (19:47 +0900)]
Remove app manager and network connection dependency
Change-Id: I056f3a8ba87fb63cf1344c27a26319deaf6ec5ab
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Jihoon Kim [Fri, 20 May 2022 09:51:33 +0000 (18:51 +0900)]
Remove unused dependency
Change-Id: I493439e0bd4617fc0f98c1e5f03970d3bcb9e56d
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
Ji-hoon Lee [Thu, 26 May 2022 09:07:52 +0000 (18:07 +0900)]
Merge branch 'tizen_6.5' into tizen
Change-Id: I7d5d642fe7609f656a7e0214ad3136f18a3535bc
Ji-hoon Lee [Thu, 26 May 2022 08:37:06 +0000 (17:37 +0900)]
Bump version to 0.3.31
Change-Id: Ibcf463383e6c15c3cc9ee4ee2a4d9abdb90b8b33
Ji-hoon Lee [Thu, 26 May 2022 08:36:47 +0000 (17:36 +0900)]
Add logs for checking if audio fetching is being retried properly
Change-Id: I1cae28820288888d3bba0a75b6e5706244ea7d09
Ji-hoon Lee [Thu, 19 May 2022 07:14:03 +0000 (16:14 +0900)]
Separate config setter and value change handler
Change-Id: Ia659b1cc4a56eca2a4293493c6ce5c3e21b0e565
Ji-hoon Lee [Tue, 10 May 2022 05:59:05 +0000 (14:59 +0900)]
Update default assistant appid on wakeup event
Change-Id: I04e3059320e4a9f8e6d4c8902219297d47239a97
Ji-hoon Lee [Tue, 10 May 2022 01:48:56 +0000 (10:48 +0900)]
Bump version to 0.3.30
Change-Id: I47826ad2f0aa95d062c40d89cc7f0ce3bbd4b526
Ji-hoon Lee [Tue, 10 May 2022 01:48:49 +0000 (10:48 +0900)]
Fix defects detected by static analysis tool
Change-Id: I34bf30e5c04dc391d185b8f3a8042ebf0530531a
Ji-hoon Lee [Mon, 9 May 2022 11:45:12 +0000 (20:45 +0900)]
Validate sender information for every request from client
Change-Id: I3d3b51e8b70dec4f8a25eb2827c5f647f6cca273
Ji-hoon Lee [Fri, 8 Apr 2022 03:04:32 +0000 (12:04 +0900)]
Bump version to 0.3.29
Change-Id: I697921c3ed2f1169c640d9bd0ae2a7e0ea869fb9
Ji-hoon Lee [Fri, 8 Apr 2022 03:03:58 +0000 (12:03 +0900)]
Add metadata profile for providing metadata information
Change-Id: I51a2c31f29c032d68ea7830d7e348b29bd0e6457
Ji-hoon Lee [Wed, 16 Mar 2022 04:41:20 +0000 (13:41 +0900)]
Call stop_recording on stop streaming request in UTTERANCE mode
Change-Id: Iea8789ee57a7cb6d64b1e8a47a5735f104e19155
Ji-hoon Lee [Wed, 13 Apr 2022 06:00:53 +0000 (06:00 +0000)]
Merge "Ignore voice key press event during follow-up speech session" into tizen_6.5
Ji-hoon Lee [Wed, 13 Apr 2022 05:56:10 +0000 (14:56 +0900)]
Merge branch 'tizen_6.5' into tizen
Change-Id: Icf05bbf20fbf9826582438208ea0c35ffe2957cc
Ji-hoon Lee [Wed, 13 Apr 2022 05:53:02 +0000 (14:53 +0900)]
Ignore voice key press event during follow-up speech session
Change-Id: Ia48da94500eb9e084fe17431e0b54fe43b9f89f7
Ji-hoon Lee [Tue, 8 Mar 2022 09:21:58 +0000 (18:21 +0900)]
Add engine load failure log messages to the ERROR group
Change-Id: I341411c17a6c8511501d240039438df2a41faf31
Ji-hoon Lee [Fri, 18 Feb 2022 02:34:31 +0000 (11:34 +0900)]
Merge branch 'tizen_6.5' into tizen
Change-Id: Ifa3a76349c061f47bd67cd733400db6d36a52015
Ji-hoon Lee [Fri, 18 Feb 2022 02:34:15 +0000 (11:34 +0900)]
Bump version to 0.3.28
Change-Id: I0769d4d1a80e5527c5c342dc7551ad0d5537e55b
Ji-hoon Lee [Fri, 18 Feb 2022 02:29:58 +0000 (11:29 +0900)]
Change default streaming timeout value to 15 seconds
Change-Id: Id5de962d01300918ef7032b1e365053eb5f27c0c
Ji-hoon Lee [Fri, 26 Nov 2021 03:27:16 +0000 (12:27 +0900)]
Print memory usage
Change-Id: I95f908f82e9d8a33b24a8710be109d99bfa6c976
Ji-hoon Lee [Fri, 10 Dec 2021 07:42:09 +0000 (16:42 +0900)]
Merge branch 'tizen_6.5' into tizen
Change-Id: Idd9643d757bdd1ac297bd1492ecd63cdc5fcb599
Ji-hoon Lee [Fri, 10 Dec 2021 07:10:27 +0000 (16:10 +0900)]
Bump version to 0.3.27
Change-Id: I2dad772ca17773518574818eafb4a96d3b7dd54e
Ji-hoon Lee [Fri, 10 Dec 2021 06:49:57 +0000 (15:49 +0900)]
Handle default assistant change event in UTTERANCE state
Previously, if default assistant gets changed in
UTTERANCE state, the state doesn't get reset.
Modified to generate recognition result ERROR
event in this case.
Change-Id: Ie9a58cdf8220d5f4d92ac19e79394b7e5145470c
Ji-hoon Lee [Wed, 17 Nov 2021 05:49:51 +0000 (14:49 +0900)]
Merge branch 'tizen_6.5' into tizen
Change-Id: Id5816241a659f19ba8862c94f7a672975fd7f1ca
Ji-hoon Lee [Wed, 17 Nov 2021 05:48:44 +0000 (14:48 +0900)]
Fix build error in 64bit profile
Change-Id: Iaf71b5f63c361b1942fc9b418720b9fa47aa354d
Ji-hoon Lee [Wed, 17 Nov 2021 04:17:12 +0000 (13:17 +0900)]
Merge branch 'tizen' into tizen_6.5
Change-Id: I3aace61b867207bd99cd70cd4cb21670babd2080
Ji-hoon Lee [Wed, 10 Nov 2021 14:59:06 +0000 (23:59 +0900)]
Add audio data transmission mileage in thread safe way
Change-Id: I6de9199e4c70ec3f04682a52add02a2164e2eb5c
Ji-hoon Lee [Wed, 10 Nov 2021 12:45:45 +0000 (21:45 +0900)]
Execute background volume control command in a separate thread
Change-Id: I1f07ef289514850cc179eb7cd2ff8c16b2918b31
Ji-hoon Lee [Wed, 10 Nov 2021 12:44:52 +0000 (21:44 +0900)]
Add audio data mileage and long-running dbus events in logs
Change-Id: Iba38154d8bf3d3bdcf59658679c8b6108a1bc789
Ji-hoon Lee [Wed, 10 Nov 2021 05:40:47 +0000 (14:40 +0900)]
Bump version to 0.3.26
Change-Id: I26f1ec4f35754a8ed757609f556c26fdf94a6710
wn.jang [Tue, 9 Nov 2021 02:02:05 +0000 (11:02 +0900)]
Change localtime to localtime_r for thread safety
Change-Id: I809c8460625f2a10641252b6f0f43ec3853e12e6
Ji-hoon Lee [Fri, 5 Nov 2021 06:57:16 +0000 (15:57 +0900)]
Bump version to 0.3.25
Change-Id: I33c503dd82c26130c77ea8613b1f713c29ab5138
Ji-hoon Lee [Fri, 5 Nov 2021 06:51:38 +0000 (15:51 +0900)]
Add lock to avoid race condition and add more log messages
Change-Id: I52f7022d9e9ec2df82b09f45e32a7fd8b63aa041
Ji-hoon Lee [Fri, 29 Oct 2021 05:35:37 +0000 (14:35 +0900)]
Add more log messages to the ERROR level group
Change-Id: Ic0cffc1ce5f0a422a8947cd50944bbfc40e90526
Ji-hoon Lee [Thu, 28 Oct 2021 11:19:11 +0000 (20:19 +0900)]
Send voice key status after recording control
Change-Id: I0df6b18411a218ec5eb271fc6dba6858276db74b
Ji-hoon Lee [Thu, 28 Oct 2021 08:07:48 +0000 (17:07 +0900)]
Bump version to 0.3.24
Change-Id: I2bfd26b2f4636651ad802374d13d96ff0879b898
Ji-hoon Lee [Thu, 28 Oct 2021 07:53:22 +0000 (16:53 +0900)]
Restore background volume if last requester gets deactivated
Change-Id: I8e70185d093741ff87a7084a915d65453c385f0d
Ji-hoon Lee [Thu, 21 Oct 2021 12:11:06 +0000 (21:11 +0900)]
Bump version to 0.3.23
Change-Id: I8517a5b7bb727d671fbdb9c0879977e53ea25f4d
Ji-hoon Lee [Thu, 21 Oct 2021 11:08:55 +0000 (20:08 +0900)]
Add retry logic in case open_connection fails
Change-Id: I24abf21cafcadb752f40fc4945114b3bbb2dbbe1
Ji-hoon Lee [Wed, 29 Sep 2021 09:17:29 +0000 (18:17 +0900)]
Fix memory leak issue found while running tests
Change-Id: Id4509ed014382aab7938d06ce7920fb9478f8ccf
Ji-hoon Lee [Mon, 27 Sep 2021 09:41:08 +0000 (18:41 +0900)]
Bump version to 0.3.22
Change-Id: Ibc1d76df5a8adb85f1bf0f5fbcee1806f5d7ca96
Ji-hoon Lee [Mon, 27 Sep 2021 09:15:11 +0000 (18:15 +0900)]
Retry at most 3 times if aul_app_get_appid_bypid() fails
If AMD and Launchpad is busy processing other tasks,
it might not respond to aul_app_get_appid_bypid() request
in its timeout limit, which is 5 seconds.
For this reason, after discussing with AppFW team,
we decided to add a retry logic at most 3 times if
the given function unexpectedly fails.
[==========] Running 4 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 4 tests from DefaultFixture
[ RUN ] DefaultFixture.HardcodedAppIDReturnedForHardcodedPID
[ OK ] DefaultFixture.HardcodedAppIDReturnedForHardcodedPID (0 ms)
[ RUN ] DefaultFixture.AppIDNotFoundForNonExistingPID
[ OK ] DefaultFixture.AppIDNotFoundForNonExistingPID (0 ms)
[ RUN ] DefaultFixture.RetriesForAtLeastThreeTimes
[ OK ] DefaultFixture.RetriesForAtLeastThreeTimes (0 ms)
[ RUN ] DefaultFixture.RetriesNoMoreThanThreeTimes
[ OK ] DefaultFixture.RetriesNoMoreThanThreeTimes (0 ms)
[----------] 4 tests from DefaultFixture (0 ms total)
[----------] Global test environment tear-down
[==========] 4 tests from 1 test suite ran. (0 ms total)
[ PASSED ] 4 tests.
Change-Id: I49d42e6d664cf1bead1a00fb088ac0c8c2933514
Ji-hoon Lee [Fri, 24 Sep 2021 10:36:13 +0000 (19:36 +0900)]
Add more tests for verifying the behavior of CAudioManager class
Previously, only a single test was available for CAudioManager class,
which definitely is not an adequate number to verify its behavior.
For this reason, added more tests to verify the current implementation
of CAudioManager class and also to guarantee the future modification
will not cause any unexpected results.
[==========] Running 11 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 11 tests from DefaultFixture
[ RUN ] DefaultFixture.StreamsAllDataFed
[ OK ] DefaultFixture.StreamsAllDataFed (1 ms)
[ RUN ] DefaultFixture.StreamsAllDataFedAfterClear
[ OK ] DefaultFixture.StreamsAllDataFedAfterClear (0 ms)
[ RUN ] DefaultFixture.OnRecordingAudioDataCallbackProperlyCalled
[ OK ] DefaultFixture.OnRecordingAudioDataCallbackProperlyCalled (1 ms)
[ RUN ] DefaultFixture.OnRecordingAudioDataCallbackProperlyCalledAfterFinalizing
[ OK ] DefaultFixture.OnRecordingAudioDataCallbackProperlyCalledAfterFinalizing (0 ms)
[ RUN ] DefaultFixture.RecordingStartsWhenRequestedWithSoundFocus
[ OK ] DefaultFixture.RecordingStartsWhenRequestedWithSoundFocus (0 ms)
[ RUN ] DefaultFixture.RecordingDoesNotStartWhenRequestedWithSoundFocus
[ OK ] DefaultFixture.RecordingDoesNotStartWhenRequestedWithSoundFocus (0 ms)
[ RUN ] DefaultFixture.RecordingStopsWhenRequested
[ OK ] DefaultFixture.RecordingStopsWhenRequested (0 ms)
[ RUN ] DefaultFixture.RecordingStopsWhenSoundFocusLost
[ OK ] DefaultFixture.RecordingStopsWhenSoundFocusLost (0 ms)
[ RUN ] DefaultFixture.RecordingStartsWhenSoundFocusAcquiredAgain
[ OK ] DefaultFixture.RecordingStartsWhenSoundFocusAcquiredAgain (0 ms)
[ RUN ] DefaultFixture.RecordingStartsWhenSoundFocusAcquiredLater
[ OK ] DefaultFixture.RecordingStartsWhenSoundFocusAcquiredLater (0 ms)
[ RUN ] DefaultFixture.RecordingDoesNotStartWhenSoundFocusAcquiredAgainIfStopped
[ OK ] DefaultFixture.RecordingDoesNotStartWhenSoundFocusAcquiredAgainIfStopped (0 ms)
[----------] 11 tests from DefaultFixture (2 ms total)
[----------] Global test environment tear-down
[==========] 11 tests from 1 test suite ran. (2 ms total)
[ PASSED ] 11 tests.
Change-Id: I50939d259e0b4f1072c6f7e1e2948ea1856eae38
Ji-hoon Lee [Fri, 24 Sep 2021 07:59:40 +0000 (16:59 +0900)]
Add tests for verifying the behavior of CWakeupManager
To make sure the modification made to CWakeupManager
would not cause any unexpected side-effect especially
on the observer modules, added tests for checking the
behavioral correctness of each operations.
[==========] Running 10 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 10 tests from DefaultFixture
[ RUN ] DefaultFixture.SettingValueObserverCalledWhenLanguageChanges
[ OK ] DefaultFixture.SettingValueObserverCalledWhenLanguageChanges (2 ms)
[ RUN ] DefaultFixture.SettingValueObserverCalledWhenAssistantAdded
[ OK ] DefaultFixture.SettingValueObserverCalledWhenAssistantAdded (2 ms)
[ RUN ] DefaultFixture.SettingValueObserverCalledWhenAssistantDeleted
[ OK ] DefaultFixture.SettingValueObserverCalledWhenAssistantDeleted (2 ms)
[ RUN ] DefaultFixture.WakeupEventNotTriggeredWhenInactiveMode
[ OK ] DefaultFixture.WakeupEventNotTriggeredWhenInactiveMode (1 ms)
[ RUN ] DefaultFixture.WakeupEventTriggeredWhenVoiceKeyGetsPressed
[ OK ] DefaultFixture.WakeupEventTriggeredWhenVoiceKeyGetsPressed (1 ms)
[ RUN ] DefaultFixture.AudioDataReceivedWhenVoiceKeyGetsPressed
[ OK ] DefaultFixture.AudioDataReceivedWhenVoiceKeyGetsPressed (12 ms)
[ RUN ] DefaultFixture.FinishAudioDataReceivedWhenStoppedBeforeReleasingWithInterval
[ OK ] DefaultFixture.FinishAudioDataReceivedWhenStoppedBeforeReleasingWithInterval (604 ms)
[ RUN ] DefaultFixture.FinishAudioDataReceivedWhenStoppedBeforeReleasingWithoutInterval
[ OK ] DefaultFixture.FinishAudioDataReceivedWhenStoppedBeforeReleasingWithoutInterval (303 ms)
[ RUN ] DefaultFixture.FinishAudioDataReceivedOnResultBeforeReleasingWithInterval
[ OK ] DefaultFixture.FinishAudioDataReceivedOnResultBeforeReleasingWithInterval (607 ms)
[ RUN ] DefaultFixture.FinishAudioDataReceivedOnResultBeforeReleasingWithoutInterval
[ OK ] DefaultFixture.FinishAudioDataReceivedOnResultBeforeReleasingWithoutInterval (303 ms)
[----------] 10 tests from DefaultFixture (1837 ms total)
[----------] Global test environment tear-down
[==========] 10 tests from 1 test suite ran. (1837 ms total)
[ PASSED ] 10 tests.
Change-Id: I95054494410f2583874e94cd48277cc205dc1353