platform/core/multimedia/media-server.git
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>
5 years agoFix typo 20/206620/1
Minje Ahn [Wed, 22 May 2019 07:02:58 +0000 (16:02 +0900)]
Fix typo

bacth to batch

Change-Id: Ic1977c61e5bcc0ec026fe7b50c6fb0ed91cfc7de
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUse boolean instead of enumeration 16/206616/2
Minje Ahn [Wed, 22 May 2019 06:26:43 +0000 (15:26 +0900)]
Use boolean instead of enumeration

Change-Id: I9e1ef388791cad1089e5e35ac17aac604272243f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove the queue for the folder insertion 46/206546/1
Minje Ahn [Tue, 21 May 2019 06:27:03 +0000 (15:27 +0900)]
Remove the queue for the folder insertion

No longer needed due to scanner logic changes

Change-Id: If0c1cf1e9b0c1bfc2c47661b9a971f9e763f3bda
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove unnecessary parameter 10/206510/1
Minje Ahn [Tue, 21 May 2019 00:27:27 +0000 (09:27 +0900)]
Remove unnecessary parameter

Deletes unnecessary parameter due to logic changes

Change-Id: Ideea19adf033415dd361f9093ea0b1435fa611e7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoModify scanner progress 75/206175/2
Minje Ahn [Wed, 15 May 2019 02:05:36 +0000 (11:05 +0900)]
Modify scanner progress

If the modified time of the database and the file system are different,
use UPDATE instead of DELETE/INSERT.

Change-Id: Ibaa7a66a203fbacaaeb115d5744b98d70e3bcd9a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoReduce DB connection when noti 10/206010/2 submit/tizen/20190515.071609
Minje Ahn [Mon, 13 May 2019 07:51:49 +0000 (16:51 +0900)]
Reduce DB connection when noti

Change-Id: I69d7aa3db5656cce399d37eaa0be80c0abe70b89
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMerge "tizen: Add additional unit for "unified" user session" into tizen accepted/tizen/unified/20190502.051510 submit/tizen/20190502.004746
Jiyong Min [Wed, 1 May 2019 23:11:11 +0000 (23:11 +0000)]
Merge "tizen: Add additional unit for "unified" user session" into tizen

5 years agotizen: Add additional unit for "unified" user session 38/204138/2
Mateusz Moscicki [Fri, 19 Apr 2019 11:57:06 +0000 (13:57 +0200)]
tizen: Add additional unit for "unified" user session

The unified user session is about moving user session units, managed by
systemd --user, to main systemd, where it's managed as part of newly
created user@.target.

user@.target will contain same units as previously available in user/,
with same UID and environment setup.  systemd instance is used for unit
to be able to specify UID (inherited from user@.target).

The rationale behind this work is following:

* VD requirement to remove user session support
* boot time optimization requirements, due to:

   + 'systemd --user' taking 1s its own startup that could be used for
     unit startup
   + ability to better rearrange units if these managed by one systemd
     instance

Unit installed by this commit will not be used till user login mechanism
will be changed in systemd package (via changing pam_systemd to start
user@.target, rather than user@.service).

Change-Id: I009b5188e3c928e6f4faf87f0aac311bd959dc5e

5 years agoUpdate package version 74/204174/1 accepted/tizen/unified/20190424.040823 submit/tizen/20190422.051140 submit/tizen/20190424.000637
Minje Ahn [Mon, 22 Apr 2019 04:25:17 +0000 (13:25 +0900)]
Update package version

0.3.70 to 0.4.0

Change-Id: Iaee73c360c9e05dd2110542ff9cf9786e4725469
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of media with filter keyword 14/203714/1
Minje Ahn [Wed, 17 Apr 2019 06:38:02 +0000 (15:38 +0900)]
Match columns of media with filter keyword

Change-Id: Id024fe77ec6626c733f951410ee3f95e2e0cc4f9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of folder with filter keyword 28/203328/2 accepted/tizen/unified/20190415.132533 submit/tizen/20190412.061541
Minje Ahn [Thu, 11 Apr 2019 22:48:47 +0000 (07:48 +0900)]
Match columns of folder with filter keyword

Change-Id: I7d6495be65f470089fe9b936b88a124efc620843
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMerge "Modify access label of 'mediadb-update' to System::Tools" into tizen submit/tizen/20190412.004751
Jiyong Min [Thu, 11 Apr 2019 23:13:49 +0000 (23:13 +0000)]
Merge "Modify access label of 'mediadb-update' to System::Tools" into tizen

5 years agoModify access label of 'mediadb-update' to System::Tools 61/203261/4
jiyong.min [Thu, 11 Apr 2019 06:47:32 +0000 (15:47 +0900)]
Modify access label of 'mediadb-update' to System::Tools

Change-Id: Ic1f5ea6224e8c64389b9ad086e405ac931b12885

5 years agoRemove unused parameter 54/203254/2 accepted/tizen/unified/20190412.124710 submit/tizen/20190411.090221
Minje Ahn [Thu, 11 Apr 2019 06:05:01 +0000 (15:05 +0900)]
Remove unused parameter

Remove storage_type

Change-Id: Ib887f2194c967b2a64b4542821292921b228904d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of storage with filter keyword 33/203233/1
Minje Ahn [Thu, 11 Apr 2019 03:52:48 +0000 (12:52 +0900)]
Match columns of storage with filter keyword

Change-Id: Ia7c9fd3eaeb8a683bb91fc50324c6b3a8560d30f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange path to folder_path in folder table 56/202756/1 accepted/tizen/unified/20190405.015714 submit/tizen/20190404.081808
Minje Ahn [Thu, 4 Apr 2019 02:06:48 +0000 (11:06 +0900)]
Change path to folder_path in folder table

1. Modify column name
2. Change media, folder join query
3. Remove alias from media and folder table

Change-Id: I2700f2bc7ebbced6af5a9320ba2d25f310e9de52
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agocheck usb path before use 40/199340/1
chengyj1985 [Sun, 10 Feb 2019 04:36:46 +0000 (12:36 +0800)]
check usb path before use

Change-Id: I3e89734c0ced73a028c6c743a99eb4705360c811

5 years agoRemove unused parameter 01/199201/2 accepted/tizen/unified/20190208.061626 submit/tizen/20190207.065213
hj kim [Thu, 7 Feb 2019 06:32:51 +0000 (15:32 +0900)]
Remove unused parameter

Change-Id: I01d98e671a5e0828ef03d89823fe5693e278c0e5

5 years agoReturn error if path is invalid 97/199197/1
hj kim [Thu, 7 Feb 2019 06:25:21 +0000 (15:25 +0900)]
Return error if path is invalid

Change-Id: Ib7a540948ba9d7d189af1b14eb0558ef1fc9e7ae

5 years agoMerge "Remove g_variant_unref" into tizen
Jiyong Min [Thu, 31 Jan 2019 01:06:01 +0000 (01:06 +0000)]
Merge "Remove g_variant_unref" into tizen

5 years agoRemove g_variant_unref 24/198824/1 accepted/tizen/unified/20190131.161511 submit/tizen/20190130.041352
Minje Ahn [Wed, 30 Jan 2019 05:33:08 +0000 (14:33 +0900)]
Remove g_variant_unref

g_dbus_message_get_body does not increase ref count.
It just returns body pointer.

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