platform/core/multimedia/media-server.git
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

4 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>
4 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

4 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

4 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

4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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

4 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>
4 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>
4 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>
4 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>
4 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>
4 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>
5 years agocheck pvr modified time on TV product 14/198814/3
chengyj1985 [Wed, 30 Jan 2019 03:41:51 +0000 (11:41 +0800)]
check pvr modified time on TV product

Change-Id: I883333fa5857e5e91641103fd49db8ba90090784

5 years agoAdd missing handle 04/198804/1
Minje Ahn [Wed, 30 Jan 2019 01:38:56 +0000 (10:38 +0900)]
Add missing handle

Change-Id: I44ad612035319fb7366e31a7d9b1e05c8c8b1ed9
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove set_folder_item_validity 24/198724/1 submit/tizen/20190129.064431
Minje Ahn [Tue, 29 Jan 2019 05:28:45 +0000 (14:28 +0900)]
Move set_folder_item_validity

Move plugin to media-common

Change-Id: If42952a34de232b0bc95aa52040b05e90a4ca061
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove get_storage_list 22/198722/1
Minje Ahn [Tue, 29 Jan 2019 05:20:47 +0000 (14:20 +0900)]
Move get_storage_list

Move plugin to media-common

Change-Id: I5b331c0df56822d324a9177fd937fbdc9792d271
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove delete_invalid_folder 19/198719/2
Minje Ahn [Tue, 29 Jan 2019 05:09:45 +0000 (14:09 +0900)]
Move delete_invalid_folder

Move plugin to media-common

Change-Id: Ic5923eeef8d2b74f42aaaaeab1ac0b9d7e05c48d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove delete_all_invalid_items_in_storage 30/198030/2 accepted/tizen/unified/20190129.064317 submit/tizen/20190128.075328
Minje Ahn [Fri, 18 Jan 2019 01:42:21 +0000 (10:42 +0900)]
Move delete_all_invalid_items_in_storage

Move API from plugin to media-common

Change-Id: Ifd00f87f3aaab6713600ccc63e9b938305a179f3
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove get_folder_id 15/198015/1
Minje Ahn [Fri, 18 Jan 2019 00:39:58 +0000 (09:39 +0900)]
Move get_folder_id

Move API from plugin to media-common

Change-Id: Ifc31e0146dfd839ad3bcca460b0765bc1b1c4147
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove set_all_storage_items_validity 13/198013/2
Minje Ahn [Thu, 17 Jan 2019 23:24:07 +0000 (08:24 +0900)]
Move set_all_storage_items_validity

Move API from plugin to media-common

Change-Id: Ia8d9ddef013367dd23a2697260efc18f6aadc809
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove check_item_exist 26/197926/1
Minje Ahn [Thu, 17 Jan 2019 07:30:30 +0000 (16:30 +0900)]
Move check_item_exist

plugin to media-common library

Change-Id: I9c01ce4a29e78caf25958422c093e16fe5c8f096
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUse sqlite3 API directly instead of using db-util 50/197750/6 accepted/tizen/unified/20190128.061337 submit/tizen/20190121.015422
Minje Ahn [Wed, 16 Jan 2019 05:45:16 +0000 (14:45 +0900)]
Use sqlite3 API directly instead of using db-util

1. Remove db-util dependency. db-util is a simple wrapper of sqlite so it is recommended to use sqlite directly
2. add code of "localize collation" from the libslp-db-util to support localized collate fileter option in media-content

Change-Id: Idc7314ba7cd26f4390e0df60abfed9d1a1a50e4b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoAdd end flag for scanner-v2 76/197776/1 accepted/tizen/unified/20190116.160724 submit/tizen/20190116.054414
Minje Ahn [Wed, 16 Jan 2019 08:39:17 +0000 (17:39 +0900)]
Add end flag for scanner-v2

Change-Id: I1d900ce0e91d43d0d065f4ca475f8edcf1988a2c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMerge "Remove check_storage in mediadb-update." into tizen
hj kim [Wed, 16 Jan 2019 06:08:23 +0000 (06:08 +0000)]
Merge "Remove check_storage in mediadb-update." into tizen

5 years agoRemove unused parameter 46/197746/1
jiyong.min [Wed, 16 Jan 2019 05:35:17 +0000 (14:35 +0900)]
Remove unused parameter

Change-Id: I3941e955c8fd5ce70cd146c2e7f47df32cebb397

5 years agoFix 'undeclaration' build due to parameter mismatch 45/197745/2
jiyong.min [Wed, 16 Jan 2019 05:13:44 +0000 (14:13 +0900)]
Fix 'undeclaration' build due to parameter mismatch

Change-Id: I72212d95ac08ba4182fe36496514155bd1d7e236

5 years agoRemove check_storage in mediadb-update. 81/196381/4
Minje Ahn [Fri, 28 Dec 2018 02:25:11 +0000 (11:25 +0900)]
Remove check_storage in mediadb-update.

check_storage was added to fix the timing issue.
if media-service miss the "MMC mount" event, media-server didn't scan it.
so media-server did check_storage to check MMC by itself. (just update storage table)
but the problem seems to be no longer happening.

Change-Id: I26148e1a854b052339ad986e5d40159011e5003a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoadd lock to avoid to decode 8k video in two thread 24/197424/1
chengyj1985 [Fri, 11 Jan 2019 05:59:09 +0000 (13:59 +0800)]
add lock to avoid to decode 8k video in two thread

Change-Id: I82b1fa7740fe48d8230d9f12f2775d4449179dde

5 years agoRevert removing db-util depencenty because of the localized collate error 70/197370/2 accepted/tizen/unified/20190111.055152 submit/tizen/20190109.233706
hj kim [Fri, 11 Jan 2019 01:32:34 +0000 (10:32 +0900)]
Revert removing db-util depencenty because of the localized collate error

Change-Id: I9a992a443a221f5d58e980dda1ec56bf28312bb7

5 years agoAdd PC Requires 88/196788/1 submit/tizen/20190104.070559
hj kim [Fri, 4 Jan 2019 07:59:43 +0000 (16:59 +0900)]
Add PC Requires

Change-Id: I035b2bcccdfb8df50f3f0ff7c64e533e911cfbfc

5 years agoFix format error in logs 91/194691/1
jiyong.min [Fri, 7 Dec 2018 04:14:24 +0000 (13:14 +0900)]
Fix format error in logs

Change-Id: I78ca88ff4d60ea5c27ad2290906e80dd1b892dd7

5 years agoRemove db-util dependency 14/194314/1
Minje Ahn [Mon, 3 Dec 2018 04:01:47 +0000 (13:01 +0900)]
Remove db-util dependency

Change-Id: I446cbe96c6776bc74baba7f5e2561a557abd34e8
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUpdate header 87/194187/1
Minje Ahn [Fri, 30 Nov 2018 01:58:27 +0000 (10:58 +0900)]
Update header

Change-Id: I7ea2ac7d942c097645b49a36a528e5022533b0f7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove wrapping struct 85/194185/1
Minje Ahn [Fri, 30 Nov 2018 01:36:26 +0000 (10:36 +0900)]
Remove wrapping struct

Use sqlite3 Explicitly

Change-Id: I8a2b4486f51592b98701728708d645b4514a186f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange DB connection API 79/194179/1
Minje Ahn [Fri, 30 Nov 2018 01:17:02 +0000 (10:17 +0900)]
Change DB connection API

Use media-util instead media-svc

Change-Id: I124e7014402e080e4dea416cc56b9a484c46c98d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUnify simple APIs 48/194148/2
hj kim [Thu, 29 Nov 2018 09:20:23 +0000 (18:20 +0900)]
Unify simple APIs

Change-Id: I8ef091ec82aedb41b9365c4c9a780538fb8dcc2e

5 years agoRemove unused parameter 19/194119/1
Minje Ahn [Thu, 29 Nov 2018 07:21:16 +0000 (16:21 +0900)]
Remove unused parameter

Delete unused DB handle

Change-Id: I1c4c2db2239216439beaf2df1ea259a0823655a1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix typo 79/194079/2
Minje Ahn [Thu, 29 Nov 2018 01:19:47 +0000 (10:19 +0900)]
Fix typo

ms_validaty_change_all_items to ms_validity_change_all_items

Change-Id: Ie67c645c1a404269fdd9639a96a27e81ce08cbab
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoDelete err_msg 98/193998/5
Minje Ahn [Wed, 28 Nov 2018 06:28:47 +0000 (15:28 +0900)]
Delete err_msg

This is old code.
No more error msgs are required.
Use return value instead.

Change-Id: I61d6f0182fbf55a20d61ec0fbd37eaa8be9ee42a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMerge "Adding initial structure for unittest" into tizen
hj kim [Wed, 28 Nov 2018 09:04:51 +0000 (09:04 +0000)]
Merge "Adding initial structure for unittest" into tizen

5 years agoAdding initial structure for unittest 79/193479/4
jiyong.min [Wed, 21 Nov 2018 07:07:54 +0000 (16:07 +0900)]
Adding initial structure for unittest

- It has testcases for libmedia_utils of unittest
- It would be enabled by gtest build with '--define "gtests 1"'
- It would be executed by only user-mode

Change-Id: Iccb00c69fb39de5e25bae50089f56ae1f0184370