platform/core/multimedia/media-server.git
4 years agoremove duplicated codes 10/239610/2
hj kim [Tue, 28 Jul 2020 06:32:27 +0000 (15:32 +0900)]
remove duplicated codes

init/deinit of scan_req_mutex2 is called in msc_init_scan_thread() and msc_deinit_scan_thread()

Change-Id: I1f9d4356be8a4427ba25413d871212087356480d

4 years agoRemove unnecessary parameter 79/239579/6
hj kim [Tue, 28 Jul 2020 01:49:15 +0000 (10:49 +0900)]
Remove unnecessary parameter

Change-Id: I6ea189c15f66bb6535728bf3cc13af2f02f6736d

4 years agoUse msc_push_scan_request() API instead of accessing queue directly 66/239466/7
hj kim [Mon, 27 Jul 2020 03:21:15 +0000 (12:21 +0900)]
Use msc_push_scan_request() API instead of accessing queue directly

And add parameter checking code.

Change-Id: Idf9bcf412271123b00d8518483d4a4dd5db28312

4 years agoSync register_thread code between scanner and scanner-v2 29/239329/12
hj kim [Fri, 24 Jul 2020 03:35:22 +0000 (12:35 +0900)]
Sync register_thread code between scanner and scanner-v2

both scanners do same thing in register_thread.
scanner-v2 codes were old one. so updated it.

Change-Id: Ia8dec97011cfbf59d9ce6506e7eae5fd44516f75

4 years agoImprove msc_register_thread() 35/239335/8
hj kim [Fri, 24 Jul 2020 04:50:25 +0000 (13:50 +0900)]
Improve msc_register_thread()

Change-Id: If9605d58e4a687728d4613f013da01b474a131bb

4 years agoSync batch insert code between scanner and scanner-v2 23/239323/8
hj kim [Fri, 24 Jul 2020 02:41:34 +0000 (11:41 +0900)]
Sync batch insert code between scanner and scanner-v2

- add some debug log
- Use GPtrArray instead of GArray
- bug fix when batch_insert is stopped due to power_off

Change-Id: I7b7837d50b701aac61c17c93e9c1c1b6ce2faca7

4 years agoRemove unnecessary code for TV Product mode 21/239321/5
hj kim [Fri, 24 Jul 2020 02:06:31 +0000 (11:06 +0900)]
Remove unnecessary code for TV Product mode

_USE_TVPD_MODE is always enabled for scanner-v2

Change-Id: I83ead7c703e2e83f59447f46f166bec6c8626d8e

4 years agoRename function and apply it to scanner-v2 60/239260/9
hj kim [Thu, 23 Jul 2020 07:36:17 +0000 (16:36 +0900)]
Rename function and apply it to scanner-v2

Change __msc_is_stop_needed() to __msc_is_power_off() because this function check only power status.
And msc_get_power_status() has been removed. _msc_is_power_off() can cover it.

Change-Id: Ib51109da141a4596ac67485d3bcdbaf5998dd619

4 years agoUse functions instead of setting value directly. And apply tizen coding rule 14/239314/5
hj kim [Fri, 24 Jul 2020 00:08:13 +0000 (09:08 +0900)]
Use functions instead of setting value directly. And apply tizen coding rule

Change-Id: If60290b803bbb74961127b4510833f386cd0def2

4 years agoRemove unused functions 15/239315/2
hj kim [Fri, 24 Jul 2020 00:17:49 +0000 (09:17 +0900)]
Remove unused functions

Change-Id: Icda82739039ad674abfda2b54e104ccef033c64a

4 years agoRemove query_do_update_list() 65/238965/1 accepted/tizen/unified/20200724.124247 submit/tizen/20200722.015458
Minje Ahn [Tue, 21 Jul 2020 01:00:45 +0000 (10:00 +0900)]
Remove query_do_update_list()

Modified update_one_extract_item() function to update DB directly.
So there is no need to call query_do_update_list() for update.
This patch only affects media-scanner-v2.

Change-Id: Ic8a834eb1303636fb86f461d40226a2ce7ef2c56
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unused functions in scanner-v2 32/238632/1 accepted/tizen/unified/20200717.124756 submit/tizen/20200715.035035
Minje Ahn [Thu, 16 Jul 2020 01:44:42 +0000 (10:44 +0900)]
Remove unused functions in scanner-v2

Change-Id: I0788f2105b9d23238d13857143bb5b3a06f85664
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove DB handle checker 59/238559/2
Minje Ahn [Wed, 15 Jul 2020 05:18:08 +0000 (14:18 +0900)]
Remove DB handle checker

ms_disconnect_db() checks for DB handle.

Change-Id: I545b5c8f5e5cca25c4254272276700b49ef43a8a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unnecessary parameters 57/238557/1
Minje Ahn [Wed, 15 Jul 2020 05:15:39 +0000 (14:15 +0900)]
Remove unnecessary parameters

1. Remove unnecessary parameters
2. Remove unused code
3. Apply coding rule

Change-Id: I0e3688bc359d93c33044afede39b1f2e90d34d9f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unnecessary plugin API 75/238475/1
Minje Ahn [Tue, 14 Jul 2020 08:02:55 +0000 (17:02 +0900)]
Remove unnecessary plugin API

1. Remove plugin APIs that are no longer used.
2. Remove unnecessary parameters.

Change-Id: I26b403d74c2194479af6369c3b7b13346840b728
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix typo 43/238143/1 accepted/tizen/unified/20200709.212821 submit/tizen/20200709.031615
hj kim [Thu, 9 Jul 2020 02:25:04 +0000 (11:25 +0900)]
Fix typo

Change-Id: Ic8f9c2f9cd22f86d0cb612392805a7572626b1d2

4 years agoImprove ms_read_db_tcp_socket() and remove unused funtion 44/237744/1
hj kim [Fri, 3 Jul 2020 07:29:17 +0000 (16:29 +0900)]
Improve ms_read_db_tcp_socket() and remove unused funtion

Change-Id: I144d78d13575283c3ff259b43da760b5ddbe43cd

4 years agoFlags cleanup 62/237662/3 accepted/tizen/unified/20200706.133934 submit/tizen/20200702.014328 submit/tizen/20200705.232724
Minje Ahn [Thu, 2 Jul 2020 08:25:38 +0000 (17:25 +0900)]
Flags cleanup

Remove USE_SUSPEND_MODE (unused)
Merge USE_RECORDED_CONTENT, SET_VIP_PROCESS into USE_TVPD_MODE

Change-Id: Idb4141a49248d55408b58055fe3cb96d230df601
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove senior mode 27/237527/4
Minje Ahn [Wed, 1 Jul 2020 05:55:29 +0000 (14:55 +0900)]
Remove senior mode

Change-Id: I8859f7655bc9e0135e09cfa41275f44ec8c6123c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoMerge "Use FMS(Feature Management System) key instead of system key" into tizen accepted/tizen/unified/20200702.141803 submit/tizen/20200701.023736
hj kim [Wed, 1 Jul 2020 02:40:41 +0000 (02:40 +0000)]
Merge "Use FMS(Feature Management System) key instead of system key" into tizen

4 years agoUse FMS(Feature Management System) key instead of system key 01/237301/3
chengyj1985 [Mon, 29 Jun 2020 03:56:30 +0000 (11:56 +0800)]
Use FMS(Feature Management System) key instead of system key

Change-Id: If50ea2d693f18d799efd6c5c6400d91e8a6f441c

4 years agoRemove plugin API for folder batch insertion 95/237295/6 accepted/tizen/unified/20200630.131149 submit/tizen/20200630.065716
Minje Ahn [Mon, 29 Jun 2020 01:21:47 +0000 (10:21 +0900)]
Remove plugin API for folder batch insertion

This patch changes media-scanner-v2 to write directly to media.db.
It makes better performance than bulk insert through IPC.

Change-Id: Ia91b44d8707b32d4c347c1b152b5225da6dbad17
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unnecessary libsmack dependency 27/236827/2 accepted/tizen/unified/20200624.130225 submit/tizen/20200623.070108
hj kim [Mon, 22 Jun 2020 08:59:42 +0000 (17:59 +0900)]
Remove unnecessary libsmack dependency

Change-Id: Ia3f7473f924af39e2f97af545fc468c161d8ba59

4 years agofree current_path when stop scan 28/234828/1 accepted/tizen/unified/20200601.051806 accepted/tizen/unified/20200604.164551 submit/tizen/20200601.002459 submit/tizen/20200603.011259
chengyj1985 [Fri, 29 May 2020 05:44:17 +0000 (13:44 +0800)]
free current_path when stop scan

Change-Id: I8ebda21373640e75fae379256f460d29bf54c2b8

4 years agofix coredump issue when free ptr 91/233391/4 accepted/tizen/unified/20200529.124056 submit/tizen/20200515.014457 submit/tizen/20200529.021237
chengyj1985 [Thu, 14 May 2020 08:54:28 +0000 (16:54 +0800)]
fix coredump issue when free ptr

Change-Id: Iacbdfea010bdabc8eeee5c4ab5f784add92c272c

4 years agoRemove GThreadFunc type cast 28/231528/2 accepted/tizen/unified/20200423.161054 submit/tizen/20200423.080104
Minje Ahn [Wed, 22 Apr 2020 07:53:56 +0000 (16:53 +0900)]
Remove GThreadFunc type cast

Change-Id: Ie36088ef923dac63639934eec008e684e7ddc06c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix bug that media-scanner does not shut down 98/231398/3 accepted/tizen/unified/20200422.215428 submit/tizen/20200422.001719
Minje Ahn [Tue, 21 Apr 2020 23:46:09 +0000 (08:46 +0900)]
Fix bug that media-scanner does not shut down

There is no response to the cancelled request.
So do not increase req count.

Change-Id: I6a265f6715d6c6a195339f4584a95e6a9a351d20
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoServer side scanner clean up 20/231320/4
Minje Ahn [Tue, 21 Apr 2020 07:20:44 +0000 (16:20 +0900)]
Server side scanner clean up

Change-Id: Ieb365d409de8c2fab3b9e8300e9b229a7fc537b6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix TV build error 90/231290/5
Minje Ahn [Tue, 21 Apr 2020 04:36:02 +0000 (13:36 +0900)]
Fix TV build error

Change-Id: I6d7364ab2dbfd769d846b842cf16313e41efef08
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoScanner-v2 cleanup 61/231261/2
Minje Ahn [Mon, 20 Apr 2020 22:56:09 +0000 (07:56 +0900)]
Scanner-v2 cleanup

Change-Id: I48802cc60beb69bd1d8033e70905421857fa10a1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoClean up thread-related code in media-server 08/231208/6
Minje Ahn [Mon, 20 Apr 2020 06:17:41 +0000 (15:17 +0900)]
Clean up thread-related code in media-server

Change-Id: I06a092205022f86b78dfd40de99c9d4b2dba5ace
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoScanner mainloop cleanup 81/231181/5
Minje Ahn [Mon, 20 Apr 2020 00:49:18 +0000 (09:49 +0900)]
Scanner mainloop cleanup

Change-Id: I51d2a504a0685bb8247168835dda5999e6a81048
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove out of memory related code by using glib APIs 47/230647/12
hj kim [Mon, 13 Apr 2020 07:00:56 +0000 (16:00 +0900)]
Remove out of memory related code by using glib APIs

glib's memory managed as below.
If any call to allocate memory fails, the application is terminated. This also means that there is no need to check if the call succeeded.

Change-Id: I0a47c563dda34a37d3936f94ef7f90fbfa679303

4 years agoFix memory leak 46/231046/1
hj kim [Fri, 17 Apr 2020 03:38:20 +0000 (12:38 +0900)]
Fix memory leak

Change-Id: Id14976cdc15b05708743112fb48331657b303ec8

4 years agoCode cleanup 23/230623/12
Minje Ahn [Mon, 13 Apr 2020 04:56:42 +0000 (13:56 +0900)]
Code cleanup

Change-Id: Id0857696f352ba13fab920d9027994083054f5d5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoExternal storage related code cleanup 18/230418/11 accepted/tizen/unified/20200411.115618 submit/tizen/20200410.073041
Minje Ahn [Fri, 10 Apr 2020 01:43:17 +0000 (10:43 +0900)]
External storage related code cleanup

Change-Id: Ia94d294c7257f118c831352fad4b40c30c78cc67
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoMerge "Remove -Wno-deprecated -Wno-deprecated-declarations options" into tizen accepted/tizen/unified/20200409.083636 submit/tizen/20200408.034646
hj kim [Wed, 8 Apr 2020 06:57:14 +0000 (06:57 +0000)]
Merge "Remove -Wno-deprecated -Wno-deprecated-declarations options" into tizen

4 years agoRemove -Wno-deprecated -Wno-deprecated-declarations options 24/230124/1
hj kim [Wed, 8 Apr 2020 05:57:54 +0000 (14:57 +0900)]
Remove -Wno-deprecated -Wno-deprecated-declarations options

Change-Id: I0d3777a7bd7bab0bd2a1084572de3bffe992f2ab

4 years agoExclude scanner-v2 from public build 09/230109/2
Minje Ahn [Wed, 8 Apr 2020 04:12:14 +0000 (13:12 +0900)]
Exclude scanner-v2 from public build

Changed to build the scanner-v2 only for TV profile (Exclude scanner-v1 when TV profile build)

Change-Id: I0d5fa8c32ec53c3d704ce5ca23157b59fabc11aa
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange function name 15/229415/3 accepted/tizen/unified/20200402.155617 accepted/tizen/unified/20200403.153134 submit/tizen/20200401.074846 submit/tizen/20200403.035052
Minje Ahn [Wed, 1 Apr 2020 03:18:11 +0000 (12:18 +0900)]
Change function name

Change-Id: Ia0b013ba11ae6c5ba179fd9ed6d580b20130d8ce
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove notification-related functions 65/229265/2
Minje Ahn [Tue, 31 Mar 2020 00:54:03 +0000 (09:54 +0900)]
Improve notification-related functions

Change-Id: I8b4d856bc63fbacd091f0f9882d5d069d4278aba
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix memory leak 42/228542/1 accepted/tizen/unified/20200324.101527 submit/tizen/20200324.023124
INSUN PYO [Mon, 23 Mar 2020 23:28:01 +0000 (08:28 +0900)]
Fix memory leak

Change-Id: I9038098ad2e77f47491578e3fda8aed914423dc5

4 years agoModify code to use g_strdup() 23/227623/3 accepted/tizen/unified/20200315.214851 submit/tizen/20200313.040349
hj kim [Fri, 13 Mar 2020 07:17:02 +0000 (16:17 +0900)]
Modify code to use g_strdup()

Change-Id: I0d2569df7e7059a9af2994e562b3ecfba04c64d8

4 years agoRemove unused variable and add define to fix build warning 88/227588/1
jiyong.min [Fri, 13 Mar 2020 03:58:12 +0000 (12:58 +0900)]
Remove unused variable and add define to fix build warning

Change-Id: I9ea49a41497db938d0fc38adb1bfce2db9959bf5

4 years agoFix build warning and Modify Makefile to make warning error 57/227457/6 submit/tizen/20200313.001656
hj kim [Thu, 12 Mar 2020 05:34:46 +0000 (14:34 +0900)]
Fix build warning and Modify Makefile to make warning error

Change-Id: I47089d3e772155ed3cde0a9871635424ed9d6de1

4 years agoReplace 'g_main_is_running' to 'g_main_loop_is_running' for glib update 15/224515/1 accepted/tizen/unified/20200224.081417 submit/tizen/20200203.160801 submit/tizen/20200217.011016
hj kim [Tue, 11 Feb 2020 07:11:04 +0000 (16:11 +0900)]
Replace 'g_main_is_running' to 'g_main_loop_is_running' for glib update

Change-Id: I69916c61cf4f2393d556afcf14ab3592d9eca03e

4 years agoRemove unreachable code 34/223434/4 accepted/tizen/unified/20200130.214719 submit/tizen/20200130.013933
jiyong.min [Thu, 30 Jan 2020 00:16:21 +0000 (09:16 +0900)]
Remove unreachable code

 - Fix svace WGID 425080, 425081

 Variable 'recv_msg' can't be null because of 'req->recv_msg == NULL' checker.

Change-Id: I649a65805cf8c17c338f47d88d65ac21d1f46f39

4 years agoFix collation error 81/223381/1 accepted/tizen/unified/20200130.214657 submit/tizen/20200130.003651
Minje Ahn [Wed, 29 Jan 2020 07:11:19 +0000 (16:11 +0900)]
Fix collation error

Cannot find symbol in linked library.
So, use icu API directly instead dlcall.

Change-Id: I3248794bec7cfd07097c40325e344842b9e9d3a2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUnify dulicated code regarding checking msg validity 84/222584/3 accepted/tizen/unified/20200117.120752 submit/tizen/20200117.053521
hj kim [Thu, 16 Jan 2020 08:49:35 +0000 (17:49 +0900)]
Unify dulicated code regarding checking msg validity

Change-Id: I10f8eb1e001ce6f2cf118502ae0f4c50c845302c

4 years agoRemove unused function 76/222576/1
hj kim [Thu, 16 Jan 2020 08:11:31 +0000 (17:11 +0900)]
Remove unused function

Change-Id: Ia908fa598bddb987538cdf7368586069ff188a09

4 years agoChange global variables to static 72/222272/2 accepted/tizen/unified/20200115.123351 submit/tizen/20200113.224424
hj kim [Mon, 13 Jan 2020 06:59:32 +0000 (15:59 +0900)]
Change global variables to static

Change-Id: I6a995e9e9476de4896d96fe3d2d9a5d809b74261

4 years agoRemove duplicated codes 48/222248/1
hj kim [Mon, 13 Jan 2020 03:03:45 +0000 (12:03 +0900)]
Remove duplicated codes

Change-Id: I38e7ffe94280e8f11d7e604b959130bc0502dcd6

4 years agoFix build error for toolchin upgrade (GCC6->GCC9) 76/221676/2 accepted/tizen/unified/20200107.152907 submit/tizen/20200107.033721
jiyong.min [Tue, 7 Jan 2020 02:18:40 +0000 (11:18 +0900)]
Fix build error for toolchin upgrade (GCC6->GCC9)

  error: 'SIZE_MAX' undeclared

'SIZE_MAX' is defined in 'stdint.h'.

Change-Id: I08864566a765cc0ef6635dc6a00ea9294fb78656

4 years agoChange some API's return type to void 19/221119/4 accepted/tizen/unified/20191230.120851 submit/tizen/20191230.082506
hj kim [Fri, 27 Dec 2019 07:10:54 +0000 (16:10 +0900)]
Change some API's return type to void

Change-Id: I25b58d3f5e16e153528bf56154fb79eacc4161de

4 years agoload and unload libmediaservice function once 26/221026/4 accepted/tizen/unified/20191227.142710 submit/tizen/20191227.004023
chengyj1985 [Thu, 26 Dec 2019 10:07:28 +0000 (18:07 +0800)]
load and unload libmediaservice function once

Change-Id: I8e44c5d500f948268606a2a52accd9d50112ad41

4 years agosend msg to app side when recursive scan start 70/219670/1 accepted/tizen/unified/20191211.121126 submit/tizen/20191209.064142
chengyj1985 [Mon, 9 Dec 2019 06:13:52 +0000 (14:13 +0800)]
send msg to app side when recursive scan start

Change-Id: I1c8d0832ba6dbce5721f44c0f9e2f545b75e9910

5 years agoMerge all storage tables 14/216914/2 accepted/tizen/unified/20191114.042552 submit/tizen/20191113.015717
Minje Ahn [Tue, 5 Nov 2019 01:10:07 +0000 (10:10 +0900)]
Merge all storage tables

Change-Id: I49044af9e80b357e92dbf72b5bfb422f581b3aa2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agofix path issue when get folder id 82/217582/1
chengyj1985 [Tue, 12 Nov 2019 13:44:46 +0000 (21:44 +0800)]
fix path issue when get folder id

Change-Id: Icf52db1d8dfaab168ca33e3bbc2b79730ca0e10b

5 years agocheck folder id between media and folder table,if not same, rescan the file 18/216318/3 accepted/tizen/unified/20191105.020139 submit/tizen/20191104.082340
chengyj1985 [Wed, 23 Oct 2019 09:10:39 +0000 (17:10 +0800)]
check folder id between media and folder table,if not same, rescan the file

Change-Id: I975b480a27108710c0f99d7375745f7a2681fff8

5 years agoModify the response condition for TV profile 63/215863/3 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.021642 accepted/tizen/5.5/unified/mobile/hotfix/20201027.083829 accepted/tizen/unified/20191018.042643 submit/tizen/20191017.070644 submit/tizen_5.5/20191031.000004 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
chengyj1985 [Thu, 17 Oct 2019 03:48:17 +0000 (11:48 +0800)]
Modify the response condition for TV profile

1. Send partial message to all requester
2. Don't remove owner if MS_MSG_SCANNER_COMPLETE

Change-Id: I15761c449fc1275e8e167aec32f9d58cde01a119

5 years agoAdd feature checker for external storage 09/215809/5 accepted/tizen/unified/20191017.011802 submit/tizen/20191016.081154
Minje Ahn [Wed, 16 Oct 2019 06:33:28 +0000 (15:33 +0900)]
Add feature checker for external storage

Feature of storage.external is false on wearable profile

Change-Id: If47d348164e49ede353da1547ef6b352220ae097
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix buffer size in garray 97/215497/2 accepted/tizen/unified/20191011.015345 accepted/tizen/unified/20191014.062520 submit/tizen/20191008.062147 submit/tizen/20191010.061714
Minje Ahn [Wed, 9 Oct 2019 23:56:36 +0000 (08:56 +0900)]
Fix buffer size in garray

Change-Id: Idc188b84755981a56f7573689cf7502f701a2b86
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange path information to secure log 98/215498/3
jiyong.min [Thu, 10 Oct 2019 00:21:02 +0000 (09:21 +0900)]
Change path information to secure log

Change-Id: I31733db9538dcb9b218b4f61ffe121388e723886

5 years agoChange error type 03/215403/1
Minje Ahn [Tue, 8 Oct 2019 02:09:43 +0000 (11:09 +0900)]
Change error type

Use MS_MEDIA_ERR_DB_INTERNAL instead some db error types for reduce error type

Change-Id: I5d2206b3dac3a3ce603a72db124056010f8a3327
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix memory leak 33/215333/1 accepted/tizen/unified/20191007.234919 submit/tizen/20191007.065948
Minje Ahn [Mon, 7 Oct 2019 06:09:47 +0000 (15:09 +0900)]
Fix memory leak

Change-Id: I72272d582bedcaac93a65eee651274e848fb2378
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix bug 38/215138/1 accepted/tizen/unified/20191004.003601 submit/tizen/20191002.013808
Minje Ahn [Wed, 2 Oct 2019 03:59:17 +0000 (12:59 +0900)]
Fix bug

Change-Id: I07c51106b589e8aa3fd6fdb3fea4756989d89450
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoDelete meaningless error types 19/215119/1
Minje Ahn [Tue, 1 Oct 2019 23:35:10 +0000 (08:35 +0900)]
Delete meaningless error types

Change-Id: Ia0d8020b2c074ae3d7d60f23679fe0830315bbe7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange MS_MEDIA_ERR_INVALID_PATH to MS_MEDIA_ERR_INVALID_PARAMETER 70/215070/1
Minje Ahn [Tue, 1 Oct 2019 08:22:31 +0000 (17:22 +0900)]
Change MS_MEDIA_ERR_INVALID_PATH to MS_MEDIA_ERR_INVALID_PARAMETER

Change-Id: I3e61cf1d4a3411776927a04f6fa7264b0fb1cabe
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoIntegrate IPC related errors 52/215052/1
Minje Ahn [Tue, 1 Oct 2019 07:34:31 +0000 (16:34 +0900)]
Integrate IPC related errors

Change-Id: I578f3e1e6a838b283bf2013c83a231a3affd6a0f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMerge "Remove unused error type" into tizen accepted/tizen/unified/20191002.013303 submit/tizen/20191001.024920
hj kim [Tue, 1 Oct 2019 02:52:10 +0000 (02:52 +0000)]
Merge "Remove unused error type" into tizen

5 years agoImprove thumb thread 60/214760/4
Minje Ahn [Thu, 26 Sep 2019 06:18:33 +0000 (15:18 +0900)]
Improve thumb thread

Change-Id: I36fc4924cd2d59b93d81ce52fa64a9cd5a7a0463
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove unused error type 20/214220/2
Minje Ahn [Thu, 19 Sep 2019 05:59:25 +0000 (14:59 +0900)]
Remove unused error type

Change-Id: Iaae238488cbcdebdbc708e05bc65876a4691e38a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoImprove dcm thread 82/214482/9
Minje Ahn [Mon, 23 Sep 2019 08:15:46 +0000 (17:15 +0900)]
Improve dcm thread

Change-Id: I1f3c63432701aed745e1970051e5a5af869a6499
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix coverity issue 29/214529/1 accepted/tizen/unified/20190925.033556 submit/tizen/20190924.014546
Minje Ahn [Tue, 24 Sep 2019 01:09:38 +0000 (10:09 +0900)]
Fix coverity issue

Change-Id: I961b547e0c4b73c444a3a406a88bed3351f054b4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoModify for readability 92/213892/2 accepted/tizen/unified/20190917.041353 submit/tizen/20190917.004518
Minje Ahn [Mon, 16 Sep 2019 08:08:52 +0000 (17:08 +0900)]
Modify for readability

Change-Id: Ib3a4e363eaa8e1e2ba57e95e58c9eaf2335a029b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix bug 28/213928/3
Minje Ahn [Mon, 16 Sep 2019 23:45:16 +0000 (08:45 +0900)]
Fix bug

Add exception handling of requests for deleted directories

Change-Id: I1efe84058a340bf5d614b76a3948f8cbb9d1030f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoImprove __ms_check_storage_status 29/213729/4 accepted/tizen/unified/20190916.111552 submit/tizen/20190916.065445
Minje Ahn [Wed, 11 Sep 2019 00:20:30 +0000 (09:20 +0900)]
Improve __ms_check_storage_status

Change-Id: Id16ddf944bf79ffc7dd71c6d23ced3c5597b3c6e

5 years agoImprove owner_list 86/213686/4
Minje Ahn [Tue, 10 Sep 2019 06:56:08 +0000 (15:56 +0900)]
Improve owner_list

Change-Id: I076539b5ad7ad1a7960b0641aa8741ce8c9e09ad
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange user service path 52/213652/1 accepted/tizen/unified/20190910.043224 submit/tizen/20190910.020543
Minje Ahn [Tue, 10 Sep 2019 00:03:10 +0000 (09:03 +0900)]
Change user service path

Change-Id: I2b7a1135c6e3c33be03ee7686731460111efe066
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove __msc_clear_file_list 88/213488/5
Minje Ahn [Thu, 5 Sep 2019 23:29:40 +0000 (08:29 +0900)]
Remove __msc_clear_file_list

Change-Id: I96067196dddbcea596c67d0cced80fe4eb72f76c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoAdded code for recording measurements 11/213411/4 accepted/tizen/unified/20190909.010908 submit/tizen/20190905.232826
Minje Ahn [Thu, 5 Sep 2019 05:16:54 +0000 (14:16 +0900)]
Added code for recording measurements

Change-Id: I130492b153683c2700adaf1a79611f6740b99400
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange GArray to GPtrArray 31/213331/4
Minje Ahn [Wed, 4 Sep 2019 08:32:38 +0000 (17:32 +0900)]
Change GArray to GPtrArray

Change-Id: If7bef21b0aebdabb60dfb14634fced0ee647cecd
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove batch db thread 10/213310/1
Minje Ahn [Wed, 4 Sep 2019 06:39:07 +0000 (15:39 +0900)]
Remove batch db thread

Use db update thread instead

Change-Id: I6f559d98302f68f7750371b7f7a537e5f03a24b8
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix crash issue 99/213299/3 accepted/tizen/unified/20190904.224442 submit/tizen/20190903.022206
Minje Ahn [Wed, 4 Sep 2019 05:05:01 +0000 (14:05 +0900)]
Fix crash issue

Change GArray to GPtrArray

Change-Id: I9bebfc08d370dcac9109fda2c39d639da7d3b817
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoImprove msc_register_thread 07/212907/11
Minje Ahn [Wed, 28 Aug 2019 05:51:54 +0000 (14:51 +0900)]
Improve msc_register_thread

Change-Id: I7f5938e6650b46d6afb7bac90ea84a5b651622f6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove unnecessary definition 72/213172/4
Minje Ahn [Mon, 2 Sep 2019 07:45:57 +0000 (16:45 +0900)]
Remove unnecessary definition

Change-Id: I4d3b6f45d73a9999a70d94f99e88e8a1998261eb
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoImprove msc_metadata_update 68/212968/6
Minje Ahn [Thu, 29 Aug 2019 03:09:42 +0000 (12:09 +0900)]
Improve msc_metadata_update

Change-Id: I6ae478e656c6da1447caf9ac6b1da69064548039
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoImprove msc_directory_scan_thread 83/212883/6
Minje Ahn [Wed, 28 Aug 2019 01:08:43 +0000 (10:08 +0900)]
Improve msc_directory_scan_thread

Change-Id: I0d24081a1011dc8193b495c21149379680e1e27f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoImprove msc_storage_scan_thread() 32/212832/6
Minje Ahn [Tue, 27 Aug 2019 06:42:36 +0000 (15:42 +0900)]
Improve msc_storage_scan_thread()

Change-Id: I3a50e558b598b9e6a7230b8a5b3896a29e7c1ca0
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoImprove __msc_dir_scan function 91/212691/3
Minje Ahn [Mon, 26 Aug 2019 05:44:06 +0000 (14:44 +0900)]
Improve __msc_dir_scan function

Change-Id: I0427f03e26f592743dac7b29bd5e3f23e08085f3
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove unnecessary definitions 87/212987/4
Minje Ahn [Thu, 29 Aug 2019 05:51:22 +0000 (14:51 +0900)]
Remove unnecessary definitions

Change-Id: I47c9d7c3c45b84a03b490c333cf91dc604ef785e
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRevert "tizen: Add additional unit for "unified" user session" 72/212472/2 accepted/tizen/unified/20190823.092402 submit/tizen/20190822.223908
Yunmi Ha [Thu, 22 Aug 2019 02:01:34 +0000 (02:01 +0000)]
Revert "tizen: Add additional unit for "unified" user session"

This reverts commit be366a16c0d5ed2252461286299fc039b2cf9b66.

We've optimized systemd-user without unified system/session.
So, we revert the patch for unified system/session.

Change-Id: I137fc81c3aa2a1e6d07553ed7e82ddb8766ed48b

5 years agoChange return type of media_db_disconnect() 35/211435/1 accepted/tizen/unified/20190806.072205 submit/tizen/20190805.053702
Minje Ahn [Mon, 5 Aug 2019 02:47:52 +0000 (11:47 +0900)]
Change return type of media_db_disconnect()

sqlite3_close_v2() always returns SQLITE_OK.
Therefore, it does not need to check the return value.

Change-Id: Ida11b4577d9553d377df02b83a5c07088ee3da40
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange return type of ms_disconnect_db() 85/211285/2
Minje Ahn [Thu, 1 Aug 2019 06:30:13 +0000 (15:30 +0900)]
Change return type of ms_disconnect_db()

sqlite3_close_v2() always returns SQLITE_OK.
Therefore, it does not need to check the return value.

Change-Id: I7c5c6fb90665431a8063527fd221d4f94a75de6b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix media-server-user.service 45/210345/1 accepted/tizen/unified/20190723.053518 submit/tizen/20190722.023013
Minje Ahn [Thu, 18 Jul 2019 07:06:58 +0000 (16:06 +0900)]
Fix media-server-user.service

Change-Id: Iea1475d33c633b9f4d8d1202cd2f54e2c0804a1c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange the config value of the "CPUAccounting=" ("true" -> "yes") 39/208539/1 accepted/tizen/unified/20190627.115245 submit/tizen/20190627.052105
INSUN PYO [Wed, 26 Jun 2019 00:41:03 +0000 (09:41 +0900)]
Change the config value of the "CPUAccounting=" ("true" -> "yes")

Change-Id: I856884b54178badd10516de67ecb8c0261bf5b6e

5 years agoSimplify plugin 91/206991/2 accepted/tizen/unified/20190611.050152 submit/tizen/20190610.230038
Minje Ahn [Wed, 29 May 2019 23:47:07 +0000 (08:47 +0900)]
Simplify plugin

1. Modified to call the shared object directly
2. Update error msg

Change-Id: I23a487735e6051bed19d1d64ea7d1311c475cfcc
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange folder scanning 13/206913/2 accepted/tizen/unified/20190603.095224 submit/tizen/20190531.055912
Minje Ahn [Wed, 29 May 2019 02:29:42 +0000 (11:29 +0900)]
Change folder scanning

Fixed an issue where media could not be seen during folder scan

Change-Id: I6c356f58771aed7a45b13f6b96d9de88dde1fd89
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoModified to write directly instead of request 81/206681/1 accepted/tizen/unified/20190530.043050 submit/tizen/20190524.060410
Minje Ahn [Thu, 23 May 2019 06:06:16 +0000 (15:06 +0900)]
Modified to write directly instead of request

Change-Id: Ibd16f2a38aa573fedf6339e3d5175586cf28c3bd
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix boolean notation 55/206655/3
Minje Ahn [Wed, 22 May 2019 23:07:03 +0000 (08:07 +0900)]
Fix boolean notation

Change-Id: Ia9ea48b4b68d5a5a891eb9cb42973bff5c5910b6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>