platform/core/multimedia/libmedia-service.git
4 years agoImprove parent path validation function 16/226716/3
Minje Ahn [Thu, 5 Mar 2020 04:48:46 +0000 (13:48 +0900)]
Improve parent path validation function

Added len +1 to get the external root path.
 - USB root : MEDIA_ROOT_PATH_EXTERNAL/{storage-uuid}/
 - MMC root : MEDIA_ROOT_PATH_EXTERNAL/SDCard{port_num}/

Change-Id: I983f9a69bf3a3434766a511e7724e24e9ddf11fd
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove VD commercial storage type 74/226674/1
Minje Ahn [Thu, 5 Mar 2020 00:42:45 +0000 (09:42 +0900)]
Remove VD commercial storage type

Change-Id: I49095359214d8c81353a7643aaf323bb40e68dba
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unnecessary triggers 21/226621/1 accepted/tizen/unified/20200305.123304 submit/tizen/20200305.003258
Minje Ahn [Wed, 4 Mar 2020 07:18:30 +0000 (16:18 +0900)]
Remove unnecessary triggers

Change-Id: Ib4499f19d4a85b119e825dfcfafadaa850b08b41
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unused columns 03/226603/1
Minje Ahn [Wed, 4 Mar 2020 06:02:59 +0000 (15:02 +0900)]
Remove unused columns

Change-Id: I093349bd9f5dc47e65af9d966509883a4c6ea3e1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove VD commercial media type 94/226594/2
Minje Ahn [Wed, 4 Mar 2020 05:22:45 +0000 (14:22 +0900)]
Remove VD commercial media type

Change-Id: I643c46f2484c3fd1a56ba130bce8404c6158201d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove sync_status 85/226585/2
Minje Ahn [Wed, 4 Mar 2020 04:45:34 +0000 (13:45 +0900)]
Remove sync_status

Remove 'sync_status' that is MCD commercial column
"sync_status" was used to indicate whether the content information between mobile and wearable has been synced.

Change-Id: Ied19046667a41ee388dc3a15ff11c4004f53b221
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unused parameter 18/225818/1 accepted/tizen/unified/20200225.224349 submit/tizen/20200224.234052
Minje Ahn [Mon, 24 Feb 2020 23:53:04 +0000 (08:53 +0900)]
Remove unused parameter

Change-Id: I779835497c2d528a0aefbe484422e469833424d2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix resource leak for 'file_name_pinyin' 17/225817/2
jiyong.min [Mon, 24 Feb 2020 23:12:38 +0000 (08:12 +0900)]
Fix resource leak for 'file_name_pinyin'

Change-Id: I0f2c0b3b10f3eff9aaff25a757fc770686b1d927

4 years agoUpdate package version to 0.4.9 12/225312/1 accepted/tizen/unified/20200219.130118 submit/tizen/20200219.055438
Minje Ahn [Wed, 19 Feb 2020 04:27:47 +0000 (13:27 +0900)]
Update package version to 0.4.9

Change-Id: Iabe149d5d73a3971e3d6051de460bb298864a58f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUse transaction for scanner requests 94/225294/1
Minje Ahn [Wed, 19 Feb 2020 01:26:21 +0000 (10:26 +0900)]
Use transaction for scanner requests

To improve scanning performance, use transaction for scanner requests

Change-Id: I5e129af02df886f972a1cca15d28e33603105537
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove indexes from the media table 92/225292/1
Minje Ahn [Wed, 19 Feb 2020 01:05:34 +0000 (10:05 +0900)]
Remove indexes from the media table

Remove because it takes a long time to update the index

Change-Id: I81627bbfac1895b750b6de7cb874bacb9826eaab
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix to limit the length of query list 85/224585/3 accepted/tizen/unified/20200213.121441 submit/tizen/20200213.061057
Minje Ahn [Wed, 12 Feb 2020 00:17:49 +0000 (09:17 +0900)]
Fix to limit the length of query list

To reduce memory occupancy, Change to run updates per BATCH_ITEM_COUNT_MAX.

Change-Id: I3aa59b592f0a47d5d6e70ed33d1319bc7fbf8e4a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoMerge query list 84/224584/1
Minje Ahn [Wed, 12 Feb 2020 00:11:17 +0000 (09:11 +0900)]
Merge query list

To reduce memory occupancy, merge insert_item_list, update_meta_list, set_validity_list into scanner_list(New list).

Change-Id: Ic51656b6be32f9f7141d0deafe3d076156ac1f2d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange noti_list to a list instead of an array 81/224481/3 accepted/tizen/unified/20200212.125825 submit/tizen/20200211.050031
Minje Ahn [Tue, 11 Feb 2020 01:32:05 +0000 (10:32 +0900)]
Change noti_list to a list instead of an array

Change-Id: I2233c8da4220989df4fa4514c8fbf26141f30a45
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix thumbnail generation bug 00/224400/1 accepted/tizen/unified/20200210.131715 submit/tizen/20200210.083804
Minje Ahn [Mon, 10 Feb 2020 08:23:34 +0000 (17:23 +0900)]
Fix thumbnail generation bug

Fix a bug that caused the db updates to fail when creating thumbnails of media in external storage

Change-Id: I2c0e01c0deb44fe607b1e416155bfc7bd14c3ef7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoPrevent albumart resize for performance 80/224180/3 accepted/tizen/unified/20200207.122432 submit/tizen/20200206.031941
Minje Ahn [Fri, 7 Feb 2020 02:46:58 +0000 (11:46 +0900)]
Prevent albumart resize for performance

Change-Id: I7cbe3637d7b457135226dd13d12fc0b5964f98a6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix exception handling 79/224179/1
Minje Ahn [Fri, 7 Feb 2020 02:42:19 +0000 (11:42 +0900)]
Fix exception handling

Change-Id: I224474f434477a551a2c909eddb52112b57e62db
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange to always extract mime type 59/224159/3
Minje Ahn [Thu, 6 Feb 2020 23:38:53 +0000 (08:38 +0900)]
Change to always extract mime type

Change-Id: Idebbe548ea12c0ff9bb0aa5b9fae8e7c2bf3ac93
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUse 'switch-case' instead 'if-else' 69/224069/1
Minje Ahn [Thu, 6 Feb 2020 05:41:34 +0000 (14:41 +0900)]
Use 'switch-case' instead 'if-else'

Change for better performance

Change-Id: I3abf229d2031e8fc13c78e549664f945f293d317
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove record date exception handling 49/223549/6
Minje Ahn [Fri, 31 Jan 2020 00:20:07 +0000 (09:20 +0900)]
Improve record date exception handling

Change-Id: I49aa5c63454e61fab4e3da7445c91671835e0fc7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoCode cleanup 46/223546/4
Minje Ahn [Thu, 30 Jan 2020 23:49:21 +0000 (08:49 +0900)]
Code cleanup

1. Improve image metadata extraction function
2. Reduce function call related to metadata of integer type
3. Separate GPS metadata extraction function (ExifTag enum set issue)

Change-Id: I664bb02c3b0180abe9145f2a74561e59c159763c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove gps getting function 92/223492/4
Minje Ahn [Thu, 30 Jan 2020 08:23:35 +0000 (17:23 +0900)]
Remove gps getting function

Call mm_file_get_attrs directly

Change-Id: I59bfbc1237eb28a6e628d113b96678e7bdaa0f34
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unnecessary return value 89/223489/3
Minje Ahn [Thu, 30 Jan 2020 08:16:25 +0000 (17:16 +0900)]
Remove unnecessary return value

Change-Id: I2d769f6a5d5c74c7bc17ab095ba23de0b098e226
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoClean up code for db upgrade 97/222997/3 accepted/tizen/unified/20200130.214725 submit/tizen/20200122.230050 submit/tizen/20200130.013933
Minje Ahn [Wed, 22 Jan 2020 04:56:48 +0000 (13:56 +0900)]
Clean up code for db upgrade

Change-Id: Ib3d524e969a6bc4673ea13c6160c9387ae44d571
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unused 'err_attr_name' for 'mm_file_get_attrs' 50/222850/4 submit/tizen/20200122.012604
jiyong.min [Tue, 21 Jan 2020 00:10:14 +0000 (09:10 +0900)]
Remove unused 'err_attr_name' for 'mm_file_get_attrs'

Change-Id: Ib58ff35975aed257c5fb6ddd27a8dd515d492af7

4 years agoCode cleanup 46/222846/3
Minje Ahn [Mon, 20 Jan 2020 23:23:52 +0000 (08:23 +0900)]
Code cleanup

1. Use g_strdup instead.
2. Change trigger naming. ({trigger_name}_{event_table} -> {trigger_name})
   - Fixes due to deleting external storage.
3. Remove unnecessary fields

Change-Id: I12ce305854d59b3a161dadee11fc24fc5c4fe0e2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange the traversal method 02/222802/3
Minje Ahn [Mon, 20 Jan 2020 06:33:07 +0000 (15:33 +0900)]
Change the traversal method

Use next instead of nth_data

Change-Id: Id25fe72122a5812b420f247ed42e2f34401ae519
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove memory deallocation 43/222743/3
Minje Ahn [Mon, 20 Jan 2020 00:28:41 +0000 (09:28 +0900)]
Improve memory deallocation

Improve deallocation functions for g_slist and g_hash_table

Change-Id: I96cab6064897e7a57b0d20352b32095da3c5f09e
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove table creation function 20/222520/2 accepted/tizen/unified/20200117.120757 submit/tizen/20200117.014021
Minje Ahn [Thu, 16 Jan 2020 00:16:59 +0000 (09:16 +0900)]
Improve table creation function

Use Gstring instead

Change-Id: I8e13f40b91e428fb58fa0daedc92e599da9ffbbf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove view creation function 14/222514/2
Minje Ahn [Wed, 15 Jan 2020 23:20:08 +0000 (08:20 +0900)]
Improve view creation function

Use Gstring instead

Change-Id: I6586bffaa8b9e23c97c396c2ac2bb4a394306920
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoVersion up 31/222631/1
hj kim [Fri, 17 Jan 2020 01:16:22 +0000 (10:16 +0900)]
Version up

Change-Id: Ia236308b27abb830d272c9b0f941eafb826ed909

4 years agoUnify duplicated code regarding view table 68/222568/3
hj kim [Thu, 16 Jan 2020 07:22:07 +0000 (16:22 +0900)]
Unify duplicated code regarding view table

Change-Id: I54e7e7a9e2af8155fb049167e787c006a71e7424

4 years agoUnify duplicated code regarding tmp table 40/222540/2
hj kim [Thu, 16 Jan 2020 02:17:34 +0000 (11:17 +0900)]
Unify duplicated code regarding tmp table

Change-Id: If227a516afdf63bf61ef8b73402db8c535772662

4 years agounify dulicated code regarding db view and remove media_view related code. (media_vie... 48/222448/2
hj kim [Wed, 15 Jan 2020 05:08:02 +0000 (14:08 +0900)]
unify dulicated code regarding db view and remove media_view related code. (media_view is not needed anymore)

Change-Id: Ie538b8bc65dce404ef3715def2d0a95f0f48441f

5 years agoMerge all storage tables 12/216912/1 accepted/tizen/unified/20191114.042548 submit/tizen/20191113.015717
Minje Ahn [Tue, 5 Nov 2019 01:09:13 +0000 (10:09 +0900)]
Merge all storage tables

Change-Id: I9cacdf6fe6ca5bcbe28a7122e0c949ec270fe7c5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange path information to secure log 99/215499/2 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.023825 accepted/tizen/5.5/unified/mobile/hotfix/20201027.083637 accepted/tizen/unified/20191011.015340 accepted/tizen/unified/20191014.062517 submit/tizen/20191008.062147 submit/tizen/20191010.061714 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 tizen_5.5.m2_release
jiyong.min [Thu, 10 Oct 2019 00:24:21 +0000 (09:24 +0900)]
Change path information to secure log

Change-Id: I9a0691cdbcd3591338b2bff4f11f40f5f0457364

5 years agoChange error type 02/215402/1
Minje Ahn [Tue, 8 Oct 2019 02:07:42 +0000 (11:07 +0900)]
Change error type

Use MS_MEDIA_ERR_DB_INTERNAL instead MS_MEDIA_ERR_DB_UPDATE_FAIL for reduce error type

Change-Id: I1c310405e3ed6e859ed3b5d1667a047cc7b1bace
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove SQLITE_PERM check 96/215296/1 accepted/tizen/unified/20191007.234915 submit/tizen/20191007.065948
Minje Ahn [Mon, 7 Oct 2019 00:20:45 +0000 (09:20 +0900)]
Remove SQLITE_PERM check

Change-Id: If1d721cc0bd4adb5e6a9282d6d8eec435ccbcb99
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoDelete meaningless error types 18/215118/1 accepted/tizen/unified/20191004.003604 submit/tizen/20191002.013808
Minje Ahn [Tue, 1 Oct 2019 23:28:00 +0000 (08:28 +0900)]
Delete meaningless error types

Change-Id: I6dcf712db60f687000df22004863cecda168dabc
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix bug (TFDF-4925) 33/213933/1 accepted/tizen/unified/20190917.041350 submit/tizen/20190917.004518
Minje Ahn [Tue, 17 Sep 2019 00:25:34 +0000 (09:25 +0900)]
Fix bug (TFDF-4925)

Call the upgrade function twice.

Change-Id: Idad1ea30340cd89174b628c9977b4e3a1b597aed
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUpdate code of checking parameter 79/213879/1 accepted/tizen/unified/20190916.111559 submit/tizen/20190916.065445
hj kim [Mon, 16 Sep 2019 06:53:38 +0000 (15:53 +0900)]
Update code of checking parameter

Change-Id: Iecb2fc0c8ba5a2f19aa0bab41f1982e208f825ad

5 years agoFix Coverity issues 71/213871/2
hj kim [Mon, 16 Sep 2019 06:03:05 +0000 (15:03 +0900)]
Fix Coverity issues

Change-Id: I29e746aaac9510defc329782c6c8e1751ed3ddb8

5 years agoModify g_array in media_svc_update_item_meta 30/213730/1
Minje Ahn [Wed, 11 Sep 2019 00:30:33 +0000 (09:30 +0900)]
Modify g_array in media_svc_update_item_meta

Change-Id: Ic729f88232bc244e80093797847eb14a7a802551
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUpdate __media_svc_db_upgrade to reduce Cyclomatic Complexity 10/213610/2 accepted/tizen/unified/20190910.043230 submit/tizen/20190910.020543
hj kim [Mon, 9 Sep 2019 06:57:20 +0000 (15:57 +0900)]
Update __media_svc_db_upgrade to reduce Cyclomatic Complexity

Change-Id: I80e294187da2b11acc4eb9efb0194392b17b908b

5 years agoUpdate _media_svc_extract_image_metadata to reduce Cyclomatic Complexity 01/213601/3
hj kim [Mon, 9 Sep 2019 06:14:43 +0000 (15:14 +0900)]
Update _media_svc_extract_image_metadata to reduce Cyclomatic Complexity

Change-Id: Ifb384a55bc657c17ccbd7044f17a4aba515786d9

5 years agoUpdate _media_svc_create_thumbnail to reduce Cyclomatic Complexity 95/213595/2
hj kim [Mon, 9 Sep 2019 05:44:41 +0000 (14:44 +0900)]
Update _media_svc_create_thumbnail to reduce Cyclomatic Complexity

Change-Id: Ie6bbbffa29083b45a32d6e5bb9b8fedabe7d92de

5 years agoChange GArray to GPtrArray 32/213332/4
Minje Ahn [Wed, 4 Sep 2019 08:33:16 +0000 (17:33 +0900)]
Change GArray to GPtrArray

Change-Id: Ibf280ac4790f0606a37b80a16ddc13a59c7cd53a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove batch db thread 09/213309/2 accepted/tizen/unified/20190909.010905 submit/tizen/20190905.232826
Minje Ahn [Wed, 4 Sep 2019 06:38:05 +0000 (15:38 +0900)]
Remove batch db thread

Use db update thread instead

Change-Id: Ibe93aca44d2f3954c838221c6a52df1778f0ab38
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoModify the media type classification method 71/213171/2 accepted/tizen/unified/20190904.224439 submit/tizen/20190903.022206
Minje Ahn [Mon, 2 Sep 2019 07:42:49 +0000 (16:42 +0900)]
Modify the media type classification method

if-else to switch-case

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

Change-Id: Iee34dfa43a7e77b60a2de0f93a0c01a5d4a26631
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove G_SAFE_FREE 14/213014/2
Minje Ahn [Thu, 29 Aug 2019 08:16:38 +0000 (17:16 +0900)]
Remove G_SAFE_FREE

Change-Id: Icf1728faa7ea6237e56a8c69b675faa59aff0627
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoAdd for upgrade tizen 4.0 to 5.5 22/211922/1 accepted/tizen/unified/20190816.112301 submit/tizen/20190816.014658
Minje Ahn [Mon, 12 Aug 2019 04:49:56 +0000 (13:49 +0900)]
Add for upgrade tizen 4.0 to 5.5

Change-Id: Id1b57ba2df4d045a11ac15b2627552c485348caa
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix svace issue (WGID:374206) 75/209675/2 accepted/tizen/unified/20190710.103443 submit/tizen/20190710.054234
Minje Ahn [Wed, 10 Jul 2019 04:01:21 +0000 (13:01 +0900)]
Fix svace issue (WGID:374206)

Change-Id: I7c78f1bae5842d8ab49572f4d8060022f283c01b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange folder scanning 12/206912/1 accepted/tizen/unified/20190603.095221 submit/tizen/20190531.055912
Minje Ahn [Wed, 29 May 2019 02:29:30 +0000 (11:29 +0900)]
Change folder scanning

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

Change-Id: I6e5b9ec780b4a96a0b6876c579fee928f3cb02bf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix bug 60/206660/3 accepted/tizen/unified/20190530.043044 submit/tizen/20190524.060410
Minje Ahn [Thu, 23 May 2019 02:16:12 +0000 (11:16 +0900)]
Fix bug

Change-Id: I98364a89f4f2adf5944fb51d71bf81d2949d65cf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix type 26/206626/1
Minje Ahn [Wed, 22 May 2019 07:39:01 +0000 (16:39 +0900)]
Fix type

Change-Id: Id607497e679ee6f44e5f2742de59e39931c79c26
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoDelete unused parameter 95/206595/4
Minje Ahn [Wed, 22 May 2019 03:47:20 +0000 (12:47 +0900)]
Delete unused parameter

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

No longer needed due to scanner logic changes

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

Deletes unnecessary parameter due to logic changes

Change-Id: Iba04217e47d3329ed6c2121a8568b9b7b26d6f67
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoModify scanner progress 76/206176/5
Minje Ahn [Wed, 15 May 2019 02:19:18 +0000 (11:19 +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: I7cae8da1e5091c7d547125c768cc714f75ee2f1c
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix query 69/206269/1
Minje Ahn [Thu, 16 May 2019 00:46:39 +0000 (09:46 +0900)]
Fix query

Change-Id: I2d724b9cec12a296a63921fc45c6e2803b047ab1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoReduce DB connection when noti 11/206011/5 submit/tizen/20190515.071609
Minje Ahn [Mon, 13 May 2019 07:59:29 +0000 (16:59 +0900)]
Reduce DB connection when noti

Change-Id: Iaa04ae49271fdb26df960ffd3233f60a778ec291
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUse DB thread for single query if the request is one 48/205748/2 submit/tizen/20190513.075227
Minje Ahn [Thu, 9 May 2019 04:09:15 +0000 (13:09 +0900)]
Use DB thread for single query if the request is one

If the reqeust is one, use single DB thread instead of batch DB thread.

Change-Id: Ib733502747f326ae07d0f9e3dd91990cc09cd3cf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoModify DB write operation 30/205630/2 accepted/tizen/unified/20190510.012005 submit/tizen/20190509.023459
Minje Ahn [Wed, 8 May 2019 05:49:03 +0000 (14:49 +0900)]
Modify DB write operation

Change-Id: I7f54ea45534af0ca1be039222e9c40ce4481673a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUpgrade media.db 7 to 8 14/205514/2 accepted/tizen/unified/20190508.234049 submit/tizen/20190508.054311
Minje Ahn [Tue, 7 May 2019 05:37:05 +0000 (14:37 +0900)]
Upgrade media.db 7 to 8

Change-Id: If06c149814c7f75e0b4416c13ee3dd8502330f72
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove unused parameter 97/204597/2 accepted/tizen/unified/20190502.051429 submit/tizen/20190430.073413
Minje Ahn [Thu, 25 Apr 2019 00:17:49 +0000 (09:17 +0900)]
Remove unused parameter

Remove path len

Change-Id: I777fc1613a84d7fa2e1ec79793016ce17342e6af
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoUpdate package version 72/204172/1 accepted/tizen/unified/20190424.040816 submit/tizen/20190422.051140 submit/tizen/20190424.000637
Minje Ahn [Mon, 22 Apr 2019 04:24:00 +0000 (13:24 +0900)]
Update package version

0.3.31 to 0.4.0

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

Change-Id: I35daf16607f430225847d390489b0a3e7fc06d3e
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch pinyin columns with filter keyword 32/203332/2 accepted/tizen/unified/20190415.132537 submit/tizen/20190412.061541
Minje Ahn [Thu, 11 Apr 2019 23:44:33 +0000 (08:44 +0900)]
Match pinyin columns with filter keyword

Change-Id: I8b954e34a66d72ff06524911253803afb7c515ec
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of folder with filter keyword 29/203329/2
Minje Ahn [Thu, 11 Apr 2019 22:49:14 +0000 (07:49 +0900)]
Match columns of folder with filter keyword

Change-Id: I015b6feb4e4d4cb51490c364a6291c72f8e36332
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of storage with filter keyword 34/203234/1 accepted/tizen/unified/20190412.124707 submit/tizen/20190411.090221
Minje Ahn [Thu, 11 Apr 2019 03:53:44 +0000 (12:53 +0900)]
Match columns of storage with filter keyword

Change-Id: I84cfbff3c6ab388d0028fb66281a1d5d151c6afd
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix folder query for filter keyword 51/202951/1 accepted/tizen/unified/20190410.002056 submit/tizen/20190408.061901
Minje Ahn [Mon, 8 Apr 2019 06:21:49 +0000 (15:21 +0900)]
Fix folder query for filter keyword

Change-Id: Id3df3bcb845d361f982c3a67e41e9ffc053bc326
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange bookmark query for filter keyword 41/202941/1
Minje Ahn [Mon, 8 Apr 2019 05:44:19 +0000 (14:44 +0900)]
Change bookmark query for filter keyword

Change-Id: Ic93e86feec1cd67a804e1b56c376fb99380e5fcf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix face query 28/202928/1
Minje Ahn [Mon, 8 Apr 2019 04:18:01 +0000 (13:18 +0900)]
Fix face query

Change orientation to face_orientation in face table
(It may different with media orientation)

Change-Id: Ib8b54ba3dda29ae7c336b3db08f10eb5488cde20
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange path to folder_path in folder table 57/202757/1 accepted/tizen/unified/20190405.015711 submit/tizen/20190404.081808 submit/tizen/20190405.070252
Minje Ahn [Thu, 4 Apr 2019 02:09:44 +0000 (11:09 +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: Id40d09f421d9a763c9e1ede30abb4a061bb4a3a8
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of playlist with filter keyword 02/202702/1 accepted/tizen/unified/20190404.022025 submit/tizen/20190403.091222
Minje Ahn [Wed, 3 Apr 2019 05:16:30 +0000 (14:16 +0900)]
Match columns of playlist with filter keyword

Change-Id: I09a4648b587795f93ce595099653dae2166d3164
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of tag with filter keyword 96/202696/1
Minje Ahn [Wed, 3 Apr 2019 02:26:39 +0000 (11:26 +0900)]
Match columns of tag with filter keyword

Change-Id: If5f2cc7a734f95789a992043b83e3aac4c9432e5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of bookmark with filter keyword 91/202691/1
Minje Ahn [Wed, 3 Apr 2019 00:50:11 +0000 (09:50 +0900)]
Match columns of bookmark with filter keyword

Change-Id: I0d73588a240fd453e9d71e936a7a1001c10f88f2
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMatch columns of face table with filter keyword 03/202403/1
Minje Ahn [Thu, 28 Mar 2019 05:42:59 +0000 (14:42 +0900)]
Match columns of face table with filter keyword

Change-Id: I7e123c60a762dbd8c21854287aa3356cc507dcad
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove unused column 05/202305/1 accepted/tizen/unified/20190328.234704 submit/tizen/20190328.045207
Minje Ahn [Wed, 27 Mar 2019 04:26:00 +0000 (13:26 +0900)]
Remove unused column

Remove pinyin playlist name
Remove pinyin tag name

Change-Id: I9b8093b79bdef6758c7e18da0d9805762d6c47d1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoReplace mm-utility function to mm_image_xxx() 61/201161/1 accepted/tizen/unified/20190311.220554 submit/tizen/20190311.013617
jiyong.min [Mon, 11 Mar 2019 04:47:42 +0000 (13:47 +0900)]
Replace mm-utility function to mm_image_xxx()

Change-Id: Ib2b619a1d1c5eb090d48db5589918bea2149a657

5 years ago[ACR-1348] Fix bug of media_info_insert_to_db API 96/198696/3 accepted/tizen/unified/20190131.161508 accepted/tizen/unified/20190208.061624 submit/tizen/20190130.041352 submit/tizen/20190207.065213
Minje Ahn [Tue, 29 Jan 2019 01:56:45 +0000 (10:56 +0900)]
[ACR-1348] Fix bug of media_info_insert_to_db API

When the media_info handle is returned, modify it to include the latest media information.
(In the past, if the media info you requested was in the database,
this API returned the media info without making sure it was up-to-date.)

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

Move plugin to media-common

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

Move plugin to media-common

Change-Id: I09600f3da32914441d75e52711bb328e9e08dc86
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove delete_invalid_folder 20/198720/1
Minje Ahn [Tue, 29 Jan 2019 05:10:56 +0000 (14:10 +0900)]
Move delete_invalid_folder

Move plugin to media-common

Change-Id: I4306e7ce7c56428246226e2cb9868dfe3dc4d769
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoChange the checking parameters due to 'sql' memory leackage 88/198588/2 accepted/tizen/unified/20190129.064314 submit/tizen/20190128.075328
jiyong.min [Mon, 28 Jan 2019 00:14:14 +0000 (09:14 +0900)]
Change the checking parameters due to 'sql' memory leackage
and fix the declaration of media_svc_insert_item_begin()

Change-Id: Ice666c65a8da387a5ef316cb6fabd2b1b8be69a4

5 years agoMove delete_all_invalid_items_in_storage 31/198031/1
Minje Ahn [Fri, 18 Jan 2019 01:43:01 +0000 (10:43 +0900)]
Move delete_all_invalid_items_in_storage

Move API from plugin to media-common

Change-Id: I01c52f4fa1b81bf842c8cf0f186ec0a93a0d7118
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove get_folder_id 16/198016/1
Minje Ahn [Fri, 18 Jan 2019 00:40:36 +0000 (09:40 +0900)]
Move get_folder_id

Move API from plugin to media-common

Change-Id: I0983cd93fc5bf8362fd285032280a1c3b59e717b
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoMove set_all_storage_items_validity 12/198012/2
Minje Ahn [Thu, 17 Jan 2019 23:21:34 +0000 (08:21 +0900)]
Move set_all_storage_items_validity

Move API from plugin to media-common

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

plugin to media-common library

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

Change-Id: I812692716dc26796274b2c2b059fc33a9b8d0fd6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRemove plugin API for scanner-v2 only 57/196257/2
Minje Ahn [Wed, 26 Dec 2018 23:47:24 +0000 (08:47 +0900)]
Remove plugin API for scanner-v2 only

Change-Id: I4747057f686b88018e5c31f9eda9dae0f4c86189
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoFix array subscript is above array bounds 85/194685/2 accepted/tizen/unified/20190111.055201 submit/tizen/20190104.070559 submit/tizen/20190109.233706
jiyong.min [Fri, 7 Dec 2018 04:00:49 +0000 (13:00 +0900)]
Fix array subscript is above array bounds

Change-Id: I783904d2d1e535623731c59c59eee3e2fa41d1a2

5 years agoFix wrong category of the media from mime 68/194568/5
jiyong.min [Wed, 5 Dec 2018 04:38:44 +0000 (13:38 +0900)]
Fix wrong category of the media from mime

Change-Id: Ia6f99d5a61a43a895fbc50183623144c9f72a3ed

5 years agoMerge "Fix format error for dlog" into tizen
hj kim [Thu, 6 Dec 2018 07:59:40 +0000 (07:59 +0000)]
Merge "Fix format error for dlog" into tizen

5 years agoFix format error for dlog 93/194493/1
jiyong.min [Wed, 5 Dec 2018 04:20:31 +0000 (13:20 +0900)]
Fix format error for dlog

Change-Id: I5dda2669d37118359ed46d30727142119a1b2125

5 years agoAdd Werror options 79/194479/1
hj kim [Wed, 5 Dec 2018 01:59:54 +0000 (10:59 +0900)]
Add Werror options

Change-Id: I752766a443e7affc014b502bdb41773fe0f4709c

5 years agoRemove db-util dependency 13/194313/1
Minje Ahn [Mon, 3 Dec 2018 04:00:50 +0000 (13:00 +0900)]
Remove db-util dependency

Change-Id: I79465b0e344204e6142f53226798e934f3a1108f
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
5 years agoRearrange the code which is used only internally in media-svc-type.h. 21/194221/1
hj kim [Fri, 30 Nov 2018 05:34:51 +0000 (14:34 +0900)]
Rearrange the code which is used only internally in media-svc-type.h.

Change-Id: I5d5e062ccf2dcd4fb6791e2370e3389ad757f654

5 years agoRemove unused API media_svc_request_update_db() 15/194215/1
hj kim [Fri, 30 Nov 2018 04:45:30 +0000 (13:45 +0900)]
Remove unused API media_svc_request_update_db()

Change-Id: Ic2e250e886bc080e67a21fc985a7afce5ebe7359