platform/core/multimedia/media-server.git
6 months agoRemove unused database file 84/310184/1
Minje Ahn [Wed, 24 Apr 2024 00:06:19 +0000 (09:06 +0900)]
Remove unused database file

Change-Id: I69e14698a6b20949aa2120c773062e06fb622358
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
6 months agoRemove uncalled port type 82/310182/1
Minje Ahn [Tue, 23 Apr 2024 22:47:24 +0000 (07:47 +0900)]
Remove uncalled port type

'MS_DB_UPDATE_PORT' is never called.
So, removed ms_msg_port_type_e parameter from ms_ipc_send_msg_to_server_tcp().

Change-Id: I14bf2d56a848ef14700076d83a48489c1612d877
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
7 months agoRemove unnecessary comparison 51/309051/3 accepted/tizen/unified/20240409.135548 accepted/tizen/unified/20240409.155854 accepted/tizen/unified/x/20240411.011818
Minje Ahn [Thu, 4 Apr 2024 07:36:06 +0000 (16:36 +0900)]
Remove unnecessary comparison

PVR timeline is same with modified_time.
Also, for the same path, the folder_id in the folder table and media table cannot be different.

Change-Id: I72b1d2110b0dfce15c6d3535269163fce1706496
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
7 months agoMerge same query 83/308183/1 accepted/tizen/unified/20240320.110711 accepted/tizen/unified/20240320.151926 accepted/tizen/unified/x/20240326.073509
Minje Ahn [Tue, 19 Mar 2024 06:46:33 +0000 (15:46 +0900)]
Merge same query

Change-Id: Idd0b6fafe2f42c7a248b719d6bcb9f10cc578a19
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
7 months agoModify folder_id type 49/308149/1
Minje Ahn [Tue, 19 Mar 2024 00:42:03 +0000 (09:42 +0900)]
Modify folder_id type

Now the folder_id on TV is the same type as public.

Change-Id: I4b27942e2cfb493eb9f688de7ca6681c3580d8d6
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
8 months agoAdd uid parameter for ms_update_one_extract_item() 42/307542/2 accepted/tizen/unified/20240313.133537 accepted/tizen/unified/20240313.135018 accepted/tizen/unified/x/20240314.073329
Jiyong [Tue, 12 Mar 2024 03:29:26 +0000 (12:29 +0900)]
Add uid parameter for ms_update_one_extract_item()

Change-Id: I728286e1375eded690fb6703f3f16778f8506ca1

8 months agoFix build error for product TV 83/307483/3 accepted/tizen/unified/20240312.132028 accepted/tizen/unified/x/20240313.092102
Jiyong [Mon, 11 Mar 2024 03:40:20 +0000 (12:40 +0900)]
Fix build error for product TV

Change-Id: I6b27e5055d5fc00a4ad7fc325151a546ed044ce8

8 months agoAdd on-demand storage insertion and removal for product TV 15/306815/15
Jiyong [Wed, 28 Feb 2024 01:58:46 +0000 (10:58 +0900)]
Add on-demand storage insertion and removal for product TV

Change-Id: I71d5144dd023254e22771e8811bf955e9eea332c

8 months agoAdd on-demand with socket activation 08/306808/16
Jiyong [Wed, 28 Feb 2024 00:39:56 +0000 (09:39 +0900)]
Add on-demand with socket activation

- The media-server runs in 3 cases
  booting
  socket activation by application
  udev rules by external storage mount/unmount

- The media-server must save external storage list for checking unmount

- Auto-scan with path activation is disabled except booting

Change-Id: I8f3d3d95f23a1cb4429c7bf0707a58e9683539ce

8 months agoFix batch insert error 31/307431/1 accepted/tizen/unified/20240308.174226 accepted/tizen/unified/x/20240311.100122
minje.ahn [Fri, 8 Mar 2024 07:32:02 +0000 (16:32 +0900)]
Fix batch insert error

storage_id is NULL when batch insert case.

Change-Id: Icddbef60ad00c79c7c2b6112cd7ff4ff30f43251
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agomedia-util.h cleanup 40/307240/5
minje.ahn [Wed, 6 Mar 2024 08:31:27 +0000 (17:31 +0900)]
media-util.h cleanup

Change-Id: Id626fcc5d5d0b0a9b0b6a656763a184ee6661e60
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoFix msg check range 27/307227/1
minje.ahn [Wed, 6 Mar 2024 07:02:40 +0000 (16:02 +0900)]
Fix msg check range

Change-Id: I95c9a1046aab506d221586166b7511f346e3c2bc
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoAdd ms_user_get_root_length 22/307222/3
minje.ahn [Wed, 6 Mar 2024 06:18:20 +0000 (15:18 +0900)]
Add ms_user_get_root_length

Change-Id: Ia5a8fb9278d8d5d346e5f7999579e1c77dd0b7db
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoMove IPC path into media-util-user 17/307217/3
minje.ahn [Wed, 6 Mar 2024 05:51:28 +0000 (14:51 +0900)]
Move IPC path into media-util-user

Change-Id: Icedec36291e601fa8a0631c88b2304f87f23c667
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoRemove string valid functions 11/307211/2
minje.ahn [Wed, 6 Mar 2024 05:20:29 +0000 (14:20 +0900)]
Remove string valid functions

Change-Id: I7c64d4b9239bb168ca8a03698716e4e03aac0e4c
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoModify ms_sys_get_uid 08/307208/1
minje.ahn [Wed, 6 Mar 2024 04:57:17 +0000 (13:57 +0900)]
Modify ms_sys_get_uid

Change-Id: Iaf45d6e7556e45a323a40080ee7b25cc5d40d2ec
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoModify scan request functions 03/307203/1
minje.ahn [Wed, 6 Mar 2024 04:41:59 +0000 (13:41 +0900)]
Modify scan request functions

Change-Id: I7e17819f9537db818aa2c00c5018715332ce05fc
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoUse g_strlcpy, g_strlcat directly 99/307199/1
minje.ahn [Wed, 6 Mar 2024 04:18:53 +0000 (13:18 +0900)]
Use g_strlcpy, g_strlcat directly

Change-Id: I9e4ee7d1460f3139a0667669cda5963a23f9dbcc
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoUse tzplatform API directly 95/307195/1
minje.ahn [Wed, 6 Mar 2024 04:05:42 +0000 (13:05 +0900)]
Use tzplatform API directly

Change-Id: Idd3ac5edc57bbb92baa578f5d0662eaaadce1b70
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoModify MS_STRING_VALID 35/306835/2
minje.ahn [Wed, 28 Feb 2024 06:20:49 +0000 (15:20 +0900)]
Modify MS_STRING_VALID

Change-Id: I63eade422ce7ce3da71747d2d4496865aeea45d3
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
8 months agoAdd scanner_dispatcher_thread and code cleanup 09/306609/10 accepted/tizen/unified/20240306.094052 accepted/tizen/unified/toolchain/20240311.065443 accepted/tizen/unified/x/20240307.010822
Jiyong [Fri, 23 Feb 2024 06:03:13 +0000 (15:03 +0900)]
Add scanner_dispatcher_thread and code cleanup

Change-Id: I30fbf5fe7ed18e4c894c642610f6bfe2e0c89b94

8 months agoFix TV build error 75/306375/3 accepted/tizen/unified/20240226.134011 accepted/tizen/unified/x/20240226.135040
Jiyong [Wed, 21 Feb 2024 01:58:57 +0000 (10:58 +0900)]
Fix TV build error

Change-Id: Ibce0beed62a04215ace6444da6d67b6cd8030a15

8 months agoFix the problem of not getting the dev_list 25/306325/3
Jiyong [Tue, 20 Feb 2024 06:43:42 +0000 (15:43 +0900)]
Fix the problem of not getting the dev_list

- The format of 'reply_var' is tuple, "(a(issssssisibii))".
  The 'iter' is initialized for tuple by g_variant_iter_init(&iter, reply_var).
  Thus, the 'iter' could not iterate the array.
  So g_variant_get_child_value() is added to get devices(array) from tuple.

Change-Id: Iae074445f4105342ec1b9347e2d4b240cd6b39ab

8 months agoRemove unnecessary uuid variable 57/305957/2 accepted/tizen/unified/20240216.161321 accepted/tizen/unified/x/20240220.150014
minje.ahn [Wed, 14 Feb 2024 07:00:58 +0000 (16:00 +0900)]
Remove unnecessary uuid variable

Change-Id: I0132000834b5a7e97788257b82883eb2b930d1d4
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoRemove unused function 11/305811/1 accepted/tizen/unified/20240214.164000 accepted/tizen/unified/x/20240219.013857
minje.ahn [Thu, 8 Feb 2024 05:42:53 +0000 (14:42 +0900)]
Remove unused function

Change-Id: I2045893c6dd4437efa9ddbcb0aaf99dea3002aaa
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoImprove media-server execution speed 54/305054/5 accepted/tizen/unified/20240207.171610 accepted/tizen/unified/x/20240208.022956
Jiyong [Fri, 26 Jan 2024 02:10:13 +0000 (11:10 +0900)]
Improve media-server execution speed

- reduce db_thread waiting time 1 sec to 10 msec

Change-Id: I7bad40511d54f745ff94daa06f972cbb20523cc2

9 months agoreset handle after closing db handle 29/305529/1
samsung2013 [Sun, 4 Feb 2024 06:19:55 +0000 (14:19 +0800)]
reset handle after closing db handle

Change-Id: I356674e83dfc3abf3d2e976f9a944ba29e315044

9 months agoUse media instead of define 08/304908/1
minje.ahn [Thu, 25 Jan 2024 08:05:19 +0000 (17:05 +0900)]
Use media instead of define

media table is unchanged.

Change-Id: I7a36873ce44cc4871bf991942cebf2c1f5afa0fb
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoRemove storage type 90/304790/5
minje.ahn [Tue, 23 Jan 2024 23:53:55 +0000 (08:53 +0900)]
Remove storage type

Change-Id: Ic9bc9ba6ecc6ae16f4bec325e24f685e8bf64b29
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoChange error defines to enum 58/304658/1 accepted/tizen/unified/20240123.165910 accepted/tizen/unified/x/20240205.063937
minje.ahn [Tue, 23 Jan 2024 01:57:35 +0000 (10:57 +0900)]
Change error defines to enum

Change-Id: I0881d82c0dec1e4cf923d0d08b94fac486615414
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoUpdate help message 43/304643/1
minje.ahn [Tue, 23 Jan 2024 00:34:36 +0000 (09:34 +0900)]
Update help message

Change-Id: I2addc8986c17ee3f9619a24341b296d2df54a363
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoRemove media-util-internal.h 42/304642/1
minje.ahn [Tue, 23 Jan 2024 00:18:32 +0000 (09:18 +0900)]
Remove media-util-internal.h

1. Move defines to media-util.h
2. Remove duplicated defines from media-common-types.h

Change-Id: Ia5448c5f1857f37e47bdf6e0592d724cd5c880ac
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoMove media-server-ipc.h to media-util-ipc.h 40/304640/1
minje.ahn [Mon, 22 Jan 2024 23:40:45 +0000 (08:40 +0900)]
Move media-server-ipc.h to media-util-ipc.h

Both are IPC common codes.
So we merge with media-util-ipc.h.

Change-Id: Icbb17c5e2211d45703513c7f4860550622243f77
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoRemove unnecessary dependency 39/304639/1
minje.ahn [Mon, 22 Jan 2024 23:14:12 +0000 (08:14 +0900)]
Remove unnecessary dependency

Change-Id: I90576217e3630f39c8e9f69e90a5cc30aaf24486
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoCode cleanup 45/304545/2
minje.ahn [Fri, 19 Jan 2024 04:35:20 +0000 (13:35 +0900)]
Code cleanup

1. Reduce defines
2. Exclude TV code.
3. Cleanup headers
4. Remove iniparser related code (The operating environments of scanner-v1 and scanner-v2 are different, so environment variables are unnecessary.)

Change-Id: Ie221610df21bb087dfb34e23ce6e12c3c7a857fe
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoremove all dcm related code 90/303990/7 accepted/tizen/unified/20240119.154749
hjkim [Tue, 9 Jan 2024 02:24:46 +0000 (11:24 +0900)]
remove all dcm related code

face detection(dcm) related APIs are deprecated in Tizen 8.0.
However, to reduce memory usage on the media server, all dcm related code is removed from the media server in advance.

Change-Id: I96f56e97cda78a98512cb7807f3a363a0f38bf9c

9 months agoSeparate TV product code 71/304471/4 accepted/tizen/unified/20240119.021436
hjkim [Thu, 18 Jan 2024 01:56:07 +0000 (10:56 +0900)]
Separate TV product code

Change-Id: I6cd47a9553440a59ffd4691788dade75bd768310

9 months agomedia-common-utils.c: extract product implementations to media-common-utils-tv.c 42/304442/5
Seungbae Shin [Wed, 17 Jan 2024 09:32:26 +0000 (18:32 +0900)]
media-common-utils.c: extract product implementations to media-common-utils-tv.c

Change-Id: I5026f8ef0d905fdebb4f6536a8422d48f9b88894

9 months agoMerge "Remove contact in boilerplate" into tizen
Minje ahn [Thu, 18 Jan 2024 04:55:28 +0000 (04:55 +0000)]
Merge "Remove contact in boilerplate" into tizen

9 months agoRemove contact in boilerplate 77/304477/1
minje.ahn [Thu, 18 Jan 2024 04:05:06 +0000 (13:05 +0900)]
Remove contact in boilerplate

Change-Id: I3c8aceb7abd596d5c38e88cc4f563b9142b83f15
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoRemove block_type 65/304465/4
minje.ahn [Wed, 17 Jan 2024 23:55:59 +0000 (08:55 +0900)]
Remove block_type

block_type was used in the past to distinguish MMC and USB.
This distinction is no longer necessary.

Change-Id: Ic3b12478969b6fdcfe7e45f4a02a3bb2a279eeb6
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoRemove server status writing method 64/304464/4
minje.ahn [Wed, 17 Jan 2024 23:53:38 +0000 (08:53 +0900)]
Remove server status writing method

Change-Id: I3a56d5e4b050e611fd0a2c2c45257e9580fa1182
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoUse _USE_TVPD_MODE instead of _USE_MULTI_USER 36/304436/4
minje.ahn [Wed, 17 Jan 2024 08:28:07 +0000 (17:28 +0900)]
Use _USE_TVPD_MODE instead of _USE_MULTI_USER

Change-Id: I1a126ca8824cfacbc65c888888b914ff3eff238f
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoRemove unused define 35/304435/2
minje.ahn [Wed, 17 Jan 2024 08:18:52 +0000 (17:18 +0900)]
Remove unused define

Change-Id: I4e620e598a91aee75f335ec3d73806907e7a3551
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoRemove unnecessary executable file permission 44/304444/1
Seungbae Shin [Wed, 17 Jan 2024 09:39:30 +0000 (18:39 +0900)]
Remove unnecessary executable file permission

Change-Id: I44d3829ab99246bf57d7e2b70bd6e5eb46c8b303

9 months agoRemove backup db 12/303512/3
minje.ahn [Fri, 29 Dec 2023 05:15:55 +0000 (14:15 +0900)]
Remove backup db

The backup db has existed to initialize when the media.db file size exceeds db space.
However it is no longer needed.
Currently media.db only manages active external storage.

Change-Id: If0c10d6fc3de13ffec93ee25318fe159f9717a50
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
9 months agoMove vconf related code to TVPD feature 60/303460/2
minje.ahn [Thu, 28 Dec 2023 04:43:22 +0000 (13:43 +0900)]
Move vconf related code to TVPD feature

'VCONFKEY_FILEMANAGER_DB_STATUS' is no longer used in scanner-v1.
So, move related code to scanner-v2.

Change-Id: I47136d68c4e1accb1d494d0c635fa3508c401047
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
10 months agoRemove VCONFKEY_FILEMANAGER_MMC_STATUS related code 58/303358/2 accepted/tizen_unified_riscv accepted/tizen/unified/20231228.165741 accepted/tizen/unified/riscv/20240103.054621
minje.ahn [Tue, 26 Dec 2023 07:59:09 +0000 (16:59 +0900)]
Remove VCONFKEY_FILEMANAGER_MMC_STATUS related code

Change-Id: I0322c4b5d52206d4d25e3259acebd5c046884198
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
10 months agoBind the plugin for scanner-v2 47/303347/1
minje.ahn [Tue, 26 Dec 2023 05:19:23 +0000 (14:19 +0900)]
Bind the plugin for scanner-v2

Change-Id: Ic16db80f14a4e16c3b1b80d3e795d5f0816bbe37
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
10 months agoRemove ms_config_get_str() 43/303343/1 accepted/tizen/unified/20231227.170459
minje.ahn [Tue, 26 Dec 2023 04:48:12 +0000 (13:48 +0900)]
Remove ms_config_get_str()

It is no longer used.

Change-Id: I858520bc5cad1e23fde1cea318ee18621d23ac87
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
10 months agoRemove unused define 42/303342/1
minje.ahn [Tue, 26 Dec 2023 04:46:40 +0000 (13:46 +0900)]
Remove unused define

Change-Id: Id232194d766835ac08eabcfdd929ec7354078e8b
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
10 months agoRemove the logic to update metadata when changing language 40/303340/1
minje.ahn [Tue, 26 Dec 2023 04:40:43 +0000 (13:40 +0900)]
Remove the logic to update metadata when changing language

This logic is for MX feature.

Change-Id: Ib492e96e3d6f854c01dce0c46151b338870c400f
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
10 months agoUse _USE_TVPD_MODE instead of _USE_DEVICED_DBUS 91/303191/2
minje.ahn [Thu, 21 Dec 2023 05:13:19 +0000 (14:13 +0900)]
Use _USE_TVPD_MODE instead of _USE_DEVICED_DBUS

Both flags are TV features.

Change-Id: I3f2fd32199bf1f049fd55407d37de27ffecabbf7
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
11 months agodo not check dir path when scanning cancel 10/302510/2 accepted/tizen/unified/20231211.095409 accepted/tizen/unified/20231219.160328 accepted/tizen/unified/riscv/20231219.070941
samsung2013 [Fri, 8 Dec 2023 02:30:19 +0000 (10:30 +0800)]
do not check dir path when scanning cancel

Change-Id: If802ca0f67776ae381bcd8e791287f6dd7f527f3

11 months agoapply boost for server start and directory scan 72/302472/1
samsung2013 [Thu, 7 Dec 2023 09:28:23 +0000 (17:28 +0800)]
apply boost for server start and directory scan

Change-Id: I6e4edf7dcb66939c3b7407b63d7c0f0e1ec3cef0

11 months agoRemove tizen profile code 12/302312/1 accepted/tizen/unified/20231206.151820
minje.ahn [Tue, 5 Dec 2023 08:15:00 +0000 (17:15 +0900)]
Remove tizen profile code

Change-Id: I5a9eac7f2cb9f854645c9bdf766a5b970a3f7c23
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
20 months agoRename check_db_upgrade to check_db 61/288461/1 accepted/tizen/8.0/unified/20231005.093505 accepted/tizen/unified/20230316.045744 tizen_8.0_m2_release
minje.ahn [Fri, 17 Feb 2023 01:42:23 +0000 (10:42 +0900)]
Rename check_db_upgrade to check_db

media.db no longer provides version information.

Change-Id: Ifc649f2885b23eb467c731e35aa35bb7ca5895df
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
2 years agoChange folder_id to row id instead of uuid 41/282841/3 accepted/tizen/unified/20221102.020553
minje.ahn [Wed, 12 Oct 2022 07:16:57 +0000 (16:16 +0900)]
Change folder_id to row id instead of uuid

Change to row id instead of uuid for manageability.

Change-Id: I5f12e4984381788fd9245bec0028a349a9a4a4ba
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
2 years agoSvace issue:Convert result of sizeof() to an int-type variable. 51/283051/2
chengyj1985 [Mon, 17 Oct 2022 08:38:49 +0000 (16:38 +0800)]
Svace issue:Convert result of sizeof() to an int-type variable.

Change-Id: I6485409e0cf6e3c7786f5dc149f173439ec78e66

2 years agoLoss some precision while cast from 8 byte long to double 57/281357/3 accepted/tizen_7.0_unified_hotfix tizen_7.0_hotfix accepted/tizen/7.0/unified/20221110.060913 accepted/tizen/7.0/unified/hotfix/20221116.105439 accepted/tizen/unified/20220927.132308 tizen_7.0_m2_release
chengyj1985 [Fri, 16 Sep 2022 02:35:32 +0000 (10:35 +0800)]
Loss some precision while cast from 8 byte long to double

Change-Id: I61bf0745de53bfc3b9e4ac677b85e0179603b180

2 years agoRemove MS_MEDIA_ERR_THUMB_TOO_BIG 48/281248/1 accepted/tizen/unified/20220919.090135
minje.ahn [Thu, 15 Sep 2022 01:56:40 +0000 (10:56 +0900)]
Remove MS_MEDIA_ERR_THUMB_TOO_BIG

Change-Id: I42665fef061d71987abbc36f21b272363412cc66
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
2 years agoRemove media-server-thumb 21/280421/1 accepted/tizen/unified/20220831.023440 submit/tizen/20220830.232907
minje.ahn [Tue, 30 Aug 2022 02:06:46 +0000 (11:06 +0900)]
Remove media-server-thumb

The functions below have been deprecated since 5.0:
 - media_info_create_thumbnail()
 - media_info_cancel_thumbnail()

According to the internal code modification of the above APIs, unused code is removed.

Change-Id: I65fa58c6b1a1d723d44902a1f64fa5f25638129c
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
2 years agoRemove async code related to thumbnail-util 20/280220/4
minje.ahn [Thu, 25 Aug 2022 08:46:44 +0000 (17:46 +0900)]
Remove async code related to thumbnail-util

Some APIs in the thumbnail-util package have been deprecated since 5.0.
So we remove the relevant code.

Related thumbnail-util API:
 - thumbnail_util_extract()
 - thumbnail_util_cancel()

Change-Id: I2ab63b56db5e11ee2796466f37fbd96534c1c433
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
2 years agoadd apk and doc file type 07/279507/1 accepted/tizen/unified/20220816.130717 submit/tizen/20220816.022943
samsung2013 [Wed, 10 Aug 2022 10:30:19 +0000 (18:30 +0800)]
add apk and doc file type

Change-Id: I991e38bf0ab016195418a42b32808645fedc36e6

2 years agoMerge "fix svace issue and change code to following code rules" into tizen accepted/tizen/unified/20220726.132125 submit/tizen/20220725.021056
Minje ahn [Mon, 25 Jul 2022 02:10:03 +0000 (02:10 +0000)]
Merge "fix svace issue and change code to following code rules" into tizen

2 years agofix svace issue and change code to following code rules 40/277940/2
samsung2013 [Fri, 15 Jul 2022 06:08:20 +0000 (14:08 +0800)]
fix svace issue and change code to following code rules

Change-Id: I2eb569414a44c5f56774b6b12683b68061e0da50

2 years agoSend notification of storage when media server launch. 76/277876/1 accepted/tizen/unified/20220722.031055 submit/tizen/20220721.065457
chengyj1985 [Thu, 14 Jul 2022 07:49:17 +0000 (15:49 +0800)]
Send notification of storage when media server launch.

Change-Id: I1aa10ce06e220d384ff3db48fb81cdec2a2f9cee

2 years agoFix build error 56/275956/1 accepted/tizen/unified/20220616.141905 submit/tizen/20220613.001514 submit/tizen/20220613.040004 submit/tizen/20220614.232808 submit/tizen/20220615.081536
minje.ahn [Tue, 7 Jun 2022 09:19:12 +0000 (18:19 +0900)]
Fix build error

Change-Id: Iaaee756e9df16b4fdccd4d6c09dff92eec7134c0
Signed-off-by: minje.ahn <minje.ahn@samsung.com>
2 years agoUpdate directory scan 32/274532/4 accepted/tizen/unified/20220603.141247 submit/tizen/20220530.055621 submit/tizen/20220602.230613
Minje Ahn [Mon, 2 May 2022 02:28:59 +0000 (11:28 +0900)]
Update directory scan

Used dirent instead GDir to reduce the frequency of stat() calls.

Change-Id: I835382ceaaa5440d0924da1dc2241cf949231bb7
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 years agoimprove performance of scanner 29/274329/4 accepted/tizen/unified/20220501.223626 submit/tizen/20220428.022151
chengyj1985 [Tue, 26 Apr 2022 09:13:44 +0000 (17:13 +0800)]
improve performance of scanner

1.remove g_file_test, it use too much time. Use readdir64 to get name and type.
2.reduce frequency of sleep.

Change-Id: I2bdd3529e1f465a7b9c099403f32b42ac2fc1977

2 years agoCode cleanup 57/272757/4 accepted/tizen/unified/20220328.131526 submit/tizen/20220327.230612
Minje Ahn [Thu, 24 Mar 2022 00:44:55 +0000 (09:44 +0900)]
Code cleanup

Change-Id: Ie013a7e07866b2b1b345d9f50756c0b6bd505119
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 years agoAdd configuration flag for ebook search type 93/272493/2 accepted/tizen/unified/20220323.133741 submit/tizen/20220323.084141
Minje Ahn [Fri, 18 Mar 2022 01:03:49 +0000 (10:03 +0900)]
Add configuration flag for ebook search type

Change-Id: I5df8fd1d6f9d405e181e378c067f6ad3235ed366
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 years agoAdd book search DB path to user path list 46/272446/2
Minje Ahn [Thu, 17 Mar 2022 02:16:54 +0000 (11:16 +0900)]
Add book search DB path to user path list

Change-Id: I624cf94f9d3b94300386368f87a2f5acc7218dce
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 years agoChange smack of ebook DB space 96/272496/1 accepted/tizen/unified/20220321.141129 submit/tizen/20220318.053518
Minje Ahn [Fri, 18 Mar 2022 01:25:42 +0000 (10:25 +0900)]
Change smack of ebook DB space

Change-Id: I816a30c38c765d31ec49a822bb46ea200a5f963d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 years agoAdd DB space for ebook search 88/272188/3 accepted/tizen/unified/20220315.132316 submit/tizen/20220314.234504
Minje Ahn [Fri, 11 Mar 2022 00:13:30 +0000 (09:13 +0900)]
Add DB space for ebook search

Added DB space(directory) for ebook search under the directory managed by media-server.

Change-Id: I849ca0ad0fad819fe92e206145d9a402d5b954b4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
2 years agoAdd storage update event when usb mount/unmount 43/268443/2 accepted/tizen/unified/20211228.140419 submit/tizen/20211227.040650
chengyj1985 [Thu, 23 Dec 2021 02:15:48 +0000 (10:15 +0800)]
Add storage update event when usb mount/unmount

Change-Id: Ib6a88e41804840b4e5cf3d13f6e897c9465c5ec4

2 years agoreplace g_memdup() to g_memdup2() 87/267887/4 accepted/tizen/unified/20211222.230609 submit/tizen/20211212.233427
Jiyong Min [Mon, 13 Dec 2021 03:51:24 +0000 (12:51 +0900)]
replace g_memdup() to g_memdup2()

  - g_memdup() was removed in glib2

Change-Id: I56ff254641388b35341bc70e16d677091af4829e

3 years agoRemove path replacement function 23/259023/2 accepted/tizen/6.5/unified/20211028.120452 accepted/tizen/unified/20210603.130708 accepted/tizen/unified/20210607.124403 submit/tizen/20210603.001642 submit/tizen/20210606.231136 submit/tizen_6.5/20211028.162401 tizen_6.5.m2_release
Minje Ahn [Mon, 31 May 2021 05:05:09 +0000 (14:05 +0900)]
Remove path replacement function

Removed the function that replaces path '/opt/usr/media' with path '/opt/usr/home/owner/media'.
Only some old mobile apps used this hard-coded value.

Change-Id: Iac41e61c53ca421c7f7846d8923bea7a58c9bee5
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoChange media type for TV 10/254610/2 accepted/tizen/unified/20210308.233806 submit/tizen/20210308.041655
Minje Ahn [Fri, 5 Mar 2021 07:43:57 +0000 (16:43 +0900)]
Change media type for TV

Change-Id: I8b1934b771cae5fa69225397510b8a7613b52961
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
3 years agoChange systemd-devel package name 21/252921/1 accepted/tizen/unified/20210209.124437 submit/tizen/20210208.015104
INSUN PYO [Wed, 3 Feb 2021 06:04:13 +0000 (15:04 +0900)]
Change systemd-devel package name

Change-Id: I595c21a8c34311ffc35a8c79fe64d4569d3c5dc1

4 years agoFix missing unlock 34/244134/2 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.114531 accepted/tizen/6.0/unified/hotfix/20201103.002837 accepted/tizen/unified/20200917.055804 submit/tizen/20200916.012329 submit/tizen/20200917.004955 submit/tizen_6.0/20201029.205104 submit/tizen_6.0_hotfix/20201102.192504 submit/tizen_6.0_hotfix/20201103.114804 tizen_6.0.m2_release
Minje Ahn [Tue, 15 Sep 2020 07:53:25 +0000 (16:53 +0900)]
Fix missing unlock

Change-Id: I5d7ee8ddee77bf239f472caa72d53fa6a18466c4
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix crash when directory does not exist 90/243990/1 accepted/tizen/unified/20200914.131309 submit/tizen/20200914.021650
Minje Ahn [Sun, 13 Sep 2020 23:00:14 +0000 (08:00 +0900)]
Fix crash when directory does not exist

Change-Id: I17ad858eed46cff393b31b4dc06e120ff81796a1
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoVersion Up (0.4.16 -> 0.4.17) 03/243803/1 accepted/tizen/unified/20200911.043212 submit/tizen/20200910.074805
Minje Ahn [Thu, 10 Sep 2020 07:17:45 +0000 (16:17 +0900)]
Version Up (0.4.16 -> 0.4.17)

Change-Id: I865fb5ca4f95e123256c686ec52f112d7d2ab672
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix external storage related code 73/243773/1
Minje Ahn [Thu, 10 Sep 2020 04:31:47 +0000 (13:31 +0900)]
Fix external storage related code

Fixed an issue where media was visible even when external storage was unmounted.

Change-Id: I5f8fae3f956cb87986a8b921021d635ee0e78c77
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoVersion Up (0.4.15 -> 0.4.16) 87/243687/1 accepted/tizen/unified/20200910.123945 submit/tizen/20200909.063454
hj kim [Wed, 9 Sep 2020 06:33:49 +0000 (15:33 +0900)]
Version Up (0.4.15 -> 0.4.16)

Change-Id: Iafb37226d3c738383fb8d16d4c4878635265e8c1

4 years agoMerge "Rollback media-scan-extractor-v2" into tizen
hj kim [Wed, 9 Sep 2020 06:36:34 +0000 (06:36 +0000)]
Merge "Rollback media-scan-extractor-v2" into tizen

4 years agoRollback media-scan-extractor-v2 61/243661/1
Minje Ahn [Wed, 9 Sep 2020 03:21:56 +0000 (12:21 +0900)]
Rollback media-scan-extractor-v2

Rollback __msc_check_extract_stop_status() for performance issue.

Change-Id: I01ce0d35a9ad38424ba5cf7a4d4235ca2a9b71cf
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUse g_ptr_array_new_with_free_func() instead 41/243641/1
Minje Ahn [Wed, 9 Sep 2020 01:49:33 +0000 (10:49 +0900)]
Use g_ptr_array_new_with_free_func() instead

Change-Id: I990e08600759902b888bba9957ba3036c551fb30
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoUse g_canonicalize_filename() instead 34/243634/1
Minje Ahn [Tue, 8 Sep 2020 23:51:21 +0000 (08:51 +0900)]
Use g_canonicalize_filename() instead

Change-Id: Iff55acb574d1304170d0c77c1938572c617c1f37
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoFix bug when batch insert 18/243518/6
Minje Ahn [Tue, 8 Sep 2020 01:42:56 +0000 (10:42 +0900)]
Fix bug when batch insert

Modified to check all parent paths.

Change-Id: If388424aa06b379a6d049843baea504e0f59e405
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoVersion Up (0.4.14 -> 0.4.15) 76/243076/2 accepted/tizen/unified/20200909.014327 submit/tizen/20200908.010830
hj kim [Thu, 3 Sep 2020 03:49:50 +0000 (12:49 +0900)]
Version Up (0.4.14 -> 0.4.15)

Change-Id: I56335b897aa2d6a411ca287c0b7925dcc59677a4

4 years agoImprove __poweroff_signal_cb() 54/243354/2
Minje Ahn [Mon, 7 Sep 2020 03:11:57 +0000 (12:11 +0900)]
Improve __poweroff_signal_cb()

Change-Id: I795edcd408f2371ffa80e35b5db75804bbbd4368
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoRemove unused parameter 52/243352/1
Minje Ahn [Mon, 7 Sep 2020 03:02:23 +0000 (12:02 +0900)]
Remove unused parameter

Change-Id: Id923988a83490b7e8aa9e88f5e925838e74c0087
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange variable name 28/243228/3
Minje Ahn [Fri, 4 Sep 2020 06:02:42 +0000 (15:02 +0900)]
Change variable name

Change-Id: I1a16c2e2f10f7bcc9980f77c51433d883f786e4d
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoCheck the number of children of GVariant 05/243205/3
Minje Ahn [Fri, 4 Sep 2020 02:18:20 +0000 (11:18 +0900)]
Check the number of children of GVariant

If there is no external storage mounted, 'GetDeviceList' will return an empty array.
So, added exception handling for this case.

Change-Id: Ia34e8d5ce97629ab35cceb31fd064ff8b955b313
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoImprove batch insert thread 25/243125/4
Minje Ahn [Thu, 3 Sep 2020 08:06:49 +0000 (17:06 +0900)]
Improve batch insert thread

Change-Id: Ib191aa902afc19a2e1cc22d0cd3801894bfd6c45
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoChange return type int to void 66/243066/3
hj kim [Thu, 3 Sep 2020 02:05:37 +0000 (11:05 +0900)]
Change return type int to void

Change-Id: I714b38fb8ec8ba741b9ecfdbe6bd7326582a87ab

4 years agoImprove GAsyncQueue related functions 62/243062/9
Minje Ahn [Thu, 3 Sep 2020 01:21:23 +0000 (10:21 +0900)]
Improve GAsyncQueue related functions

Change-Id: Ic702b52f6860c318021d132735e30fb780b1ff8a
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
4 years agoVersion Up (0.4.13 -> 0.4.14) 40/242840/4 accepted/tizen/unified/20200903.151744 submit/tizen/20200903.010252
hj kim [Tue, 1 Sep 2020 07:02:12 +0000 (16:02 +0900)]
Version Up (0.4.13 -> 0.4.14)

Change-Id: I9553906e2aee1efdaed5cc5a97d7611a882325a8

4 years agoBug fix regarding MS_MSG_DIRECTORY_SCANNING_CANCEL 82/242982/3
hj kim [Wed, 2 Sep 2020 07:30:03 +0000 (16:30 +0900)]
Bug fix regarding MS_MSG_DIRECTORY_SCANNING_CANCEL

Regarding the MS_MSG_DIRECTORY_SCANNING_CANCEL request from the client, the scanner doesn't need to send a response for this task,
because client gets the result for this request by checking from its own request list.

Change-Id: If46eb7f0825ce9f19e8ba09c7588ec39f5eb94f7