platform/core/system/libstorage.git
7 years agoApply line coverage comments 36/109936/1 tizen_3.0_tv accepted/tizen/3.0/common/20170126.092421 accepted/tizen/3.0/ivi/20170126.060426 accepted/tizen/3.0/mobile/20170126.060342 accepted/tizen/3.0/tv/20170126.060358 accepted/tizen/3.0/wearable/20170126.060409 submit/tizen_3.0/20170125.062656
pr.jung [Thu, 12 Jan 2017 08:25:16 +0000 (17:25 +0900)]
Apply line coverage comments

Change-Id: Iaf69e7622e24e0663aa74415a97fc0a574f71fc9
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoModify return value for invalid storage id 50/102550/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141744 accepted/tizen/3.0.m2/tv/20170104.142128 accepted/tizen/3.0.m2/wearable/20170104.142422 accepted/tizen/3.0/common/20161209.094921 accepted/tizen/3.0/ivi/20161209.002546 accepted/tizen/3.0/mobile/20161209.002510 accepted/tizen/3.0/tv/20161209.002527 accepted/tizen/3.0/wearable/20161209.002536 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161208.091728
pr.jung [Tue, 6 Dec 2016 05:44:49 +0000 (14:44 +0900)]
Modify return value for invalid storage id

Change-Id: I84256fb1ad79fbe2b915e10fc52d5a35ccade445
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoAdd storage-experimental.h on CMakeLists.txt 40/101740/1 accepted/tizen/3.0/common/20161205.091725 accepted/tizen/3.0/ivi/20161204.234153 accepted/tizen/3.0/mobile/20161204.234101 accepted/tizen/3.0/tv/20161204.234119 accepted/tizen/3.0/wearable/20161204.234134 submit/tizen_3.0/20161202.055958
pr.jung [Fri, 2 Dec 2016 05:39:32 +0000 (14:39 +0900)]
Add storage-experimental.h on CMakeLists.txt

Change-Id: I8ded171bdfd1fd22d57edf7dd35afc2e26e9aa62
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMove storage_get_type_dev to storage-experimental.h 10/101710/3 accepted/tizen/3.0/common/20161205.091631 accepted/tizen/3.0/ivi/20161204.233806 accepted/tizen/3.0/mobile/20161204.233755 accepted/tizen/3.0/tv/20161204.233801 accepted/tizen/3.0/wearable/20161204.233804
pr.jung [Fri, 2 Dec 2016 04:58:12 +0000 (13:58 +0900)]
Move storage_get_type_dev to storage-experimental.h

Change-Id: I74de7cc20ab4098a5f89f4cf1cd7b85ac5e9de01
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agocommon: change fscanf to fgets 05/101005/1 accepted/tizen/3.0/common/20161201.135116 accepted/tizen/3.0/ivi/20161201.031518 accepted/tizen/3.0/mobile/20161201.031338 accepted/tizen/3.0/tv/20161201.031431 accepted/tizen/3.0/wearable/20161201.031455 submit/tizen_3.0/20161130.101437
taeyoung [Wed, 30 Nov 2016 05:29:22 +0000 (14:29 +0900)]
common: change fscanf to fgets

fscanf can occur buffer overflow issue.
Thus the function is changed to fgets.

Change-Id: Icd8713effc71245bf2ee61ce5e2129c285b0a2c3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoRemove system-settings dependency 27/100727/1 accepted/tizen/3.0/common/20161130.065010 accepted/tizen/3.0/ivi/20161130.011903 accepted/tizen/3.0/mobile/20161130.011836 accepted/tizen/3.0/tv/20161130.011847 accepted/tizen/3.0/wearable/20161130.011855 submit/tizen_3.0/20161129.053222
pr.jung [Tue, 29 Nov 2016 05:17:43 +0000 (14:17 +0900)]
Remove system-settings dependency

- Get Ringtone path using vconfkey

Change-Id: Iea9d680f85f8c6fc3c8ed8d42b1bd47aa99ce148
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoReturn for internal storage type in storage_get_type_dev 84/98884/2 accepted/tizen/3.0/common/20161123.140525 accepted/tizen/3.0/ivi/20161123.082814 accepted/tizen/3.0/mobile/20161123.082719 accepted/tizen/3.0/tv/20161123.082739 accepted/tizen/3.0/wearable/20161123.082752 submit/tizen_3.0/20161121.105249
pr.jung [Mon, 21 Nov 2016 04:57:57 +0000 (13:57 +0900)]
Return for internal storage type in storage_get_type_dev

Change-Id: I54f562eac2f1639f2e377994af1f4a9c8a26b47e
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoChange the way to get root directory for external storage 83/97883/4
pr.jung [Tue, 15 Nov 2016 07:52:12 +0000 (16:52 +0900)]
Change the way to get root directory for external storage

- When block device is mounted, deviced create a file as /run/external-storage/storage_id
- The file has mount point
- libstorage read file to get root directory for external storage instead to use dbus method call

Change-Id: I685b9c6c8c469814be809b1bd4a8dd39204bf768
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoFix enum for sdcard and usb on storage_get_type_dev 23/97423/1 accepted/tizen/3.0/common/20161121.140942 accepted/tizen/3.0/ivi/20161121.073707 accepted/tizen/3.0/mobile/20161121.073614 accepted/tizen/3.0/tv/20161121.073632 accepted/tizen/3.0/wearable/20161121.073652 submit/tizen_3.0/20161118.040200
pr.jung [Mon, 14 Nov 2016 06:59:48 +0000 (15:59 +0900)]
Fix enum for sdcard and usb on storage_get_type_dev

Change-Id: Ie53cf3079cc3decc5aff560a380b81ce671f6870
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoAdd inhouse api to get storage type and the kind of external device 96/96196/1 accepted/tizen/3.0/common/20161114.143351 accepted/tizen/3.0/ivi/20161111.002811 accepted/tizen/3.0/mobile/20161111.002721 accepted/tizen/3.0/tv/20161111.002737 accepted/tizen/3.0/wearable/20161111.002753 submit/tizen_3.0/20161109.062156 submit/tizen_3.0_common/20161114.081136
pr.jung [Tue, 8 Nov 2016 06:08:26 +0000 (15:08 +0900)]
Add inhouse api to get storage type and the kind of external device

Change-Id: Iac21489f726cda37c148522d34163e97f04066a3
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoApply Tizen coding rule 21/96021/1
pr.jung [Mon, 7 Nov 2016 10:32:44 +0000 (19:32 +0900)]
Apply Tizen coding rule

Change-Id: I4d96e35aa3728d8274219fdd6beab0b38f91571b
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoMerge branch 'tizen' into tizen_3.0 37/94937/1 accepted/tizen/3.0/common/20161114.082847 accepted/tizen/3.0/ivi/20161103.001950 accepted/tizen/3.0/mobile/20161103.001905 accepted/tizen/3.0/tv/20161103.001917 accepted/tizen/3.0/wearable/20161103.001931 submit/tizen_3.0/20161102.073456 submit/tizen_3.0_common/20161110.084657
pr.jung [Wed, 2 Nov 2016 04:39:03 +0000 (13:39 +0900)]
Merge branch 'tizen' into tizen_3.0

Change-Id: I1c86ad26cd427df70fdb73e74f6742661cfa39e0
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoMerge "Change signal subscribe bus name" into tizen accepted/tizen/common/20161026.134549 accepted/tizen/ivi/20161028.151448 accepted/tizen/mobile/20161028.151208 accepted/tizen/tv/20161028.151442 accepted/tizen/wearable/20161028.151446 submit/tizen/20161026.062159 submit/tizen_3.0_common/20161104.104000
pr.jung [Wed, 26 Oct 2016 04:56:44 +0000 (21:56 -0700)]
Merge "Change signal subscribe bus name" into tizen

8 years agoChange signal subscribe bus name 03/93803/2
pr.jung [Wed, 26 Oct 2016 04:51:29 +0000 (13:51 +0900)]
Change signal subscribe bus name

Change-Id: I9f90cde86786c11a828cec09a5107c6694b93d12
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoremove unnecessary '/' from the path 50/90250/1 accepted/tizen/3.0/ivi/20161011.050600 accepted/tizen/3.0/mobile/20161015.033727 accepted/tizen/3.0/tv/20161016.004926 accepted/tizen/3.0/wearable/20161015.083248 accepted/tizen/common/20160929.163455 accepted/tizen/ivi/20160929.233826 accepted/tizen/mobile/20160929.233822 accepted/tizen/tv/20160929.233813 accepted/tizen/wearable/20160929.233818 submit/tizen/20160929.072529 submit/tizen_3.0_ivi/20161010.000004 submit/tizen_3.0_mobile/20161015.000004 submit/tizen_3.0_tv/20161015.000003 submit/tizen_3.0_wearable/20161015.000003
taeyoung [Thu, 29 Sep 2016 07:19:25 +0000 (16:19 +0900)]
remove unnecessary '/' from the path

Change-Id: I79d42621397c468238f7c4955725fba82a897b3f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoApply Tizen coding rule 98/90198/2 submit/tizen/20160929.030608
pr.jung [Thu, 29 Sep 2016 02:52:25 +0000 (11:52 +0900)]
Apply Tizen coding rule

Change-Id: Ib8a1a4d008989f12eeff5956a9afda767cfa364a
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoProvide internal APIs for converting compat path 87/90187/4
Kunhoon Baik [Thu, 29 Sep 2016 00:38:48 +0000 (09:38 +0900)]
Provide internal APIs for converting compat path

Change-Id: I81aad2364f5c99a4ea252374cce4d6497093f08d

8 years agoRevert "Revert "Supporting Internal Media Path Compatibility"" 08/88608/2 accepted/tizen/common/20160920.132142 accepted/tizen/ivi/20160921.081012 accepted/tizen/mobile/20160921.080950 accepted/tizen/tv/20160921.081006 accepted/tizen/wearable/20160921.080959 submit/tizen/20160920.065041
Jung [Tue, 20 Sep 2016 03:55:46 +0000 (20:55 -0700)]
Revert "Revert "Supporting Internal Media Path Compatibility""

This reverts commit ea3ccd13aa047b695a4a5a56d9f9c43c31e75042.

Change-Id: I63a2a0152be707b36deba35ffc94b1c32f97538f

8 years agoRevert "Supporting Internal Media Path Compatibility" 02/87202/2 accepted/tizen/common/20160907.154419 accepted/tizen/ivi/20160908.122756 accepted/tizen/mobile/20160908.122708 accepted/tizen/tv/20160908.122722 accepted/tizen/wearable/20160908.122737 submit/tizen/20160907.043316
Kunhoon Baik [Wed, 7 Sep 2016 04:09:48 +0000 (21:09 -0700)]
Revert "Supporting Internal Media Path Compatibility"

This reverts commit 23de75841e9bb1a712b06352b71d9107302c06e9.

Change-Id: Id20c18851b7dfd2aa3f4d8dd14b446f7e7f7cc30

8 years agoAdd DeviceBlocked signal for storage callback 27/80827/5 accepted/tizen/common/20160905.171511 accepted/tizen/ivi/20160906.000048 accepted/tizen/mobile/20160905.235957 accepted/tizen/tv/20160906.000013 accepted/tizen/wearable/20160906.000030 submit/tizen/20160905.043624
pr.jung [Wed, 20 Jul 2016 09:40:23 +0000 (18:40 +0900)]
Add DeviceBlocked signal for storage callback

Change-Id: I629060f98ce5ca907f0b8e3ce869b5657ecf3a10
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoSupporting Internal Media Path Compatibility 61/84961/1 accepted/tizen/ivi/20160905.065616 accepted/tizen/mobile/20160905.065522 accepted/tizen/tv/20160905.065540 accepted/tizen/wearable/20160905.065559 submit/tizen/20160902.065241 submit/tizen/20160904.234158
Kunhoon Baik [Tue, 23 Aug 2016 04:38:54 +0000 (13:38 +0900)]
Supporting Internal Media Path Compatibility

Internal compatibility media path is available, libstorage returns the path.
Related to : https://review.tizen.org/gerrit/#/c/84834/

Change-Id: Id5e0eaa1d6f7913ef6a7106448bcefaf527cf6c5

8 years agoModify block signal interface and object path 18/82818/1 accepted/tizen/common/20160811.145528 accepted/tizen/ivi/20160811.002538 accepted/tizen/mobile/20160811.002452 accepted/tizen/tv/20160811.002526 accepted/tizen/wearable/20160811.002935 submit/tizen/20160810.070210
pr.jung [Mon, 8 Aug 2016 01:46:57 +0000 (10:46 +0900)]
Modify block signal interface and object path

Change-Id: I636e63e2494f0675d4d4a6ecab067fb3766602e5
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agommc: add the internal api to return primary mmc information 88/80088/2 accepted/tizen/common/20160715.175725 accepted/tizen/ivi/20160717.035138 accepted/tizen/mobile/20160717.035123 accepted/tizen/tv/20160717.035000 accepted/tizen/wearable/20160717.035006 submit/tizen/20160715.121938
taeyoung [Thu, 14 Jul 2016 11:59:55 +0000 (20:59 +0900)]
mmc: add the internal api to return primary mmc information

- Primary mmc information is used to install apps on the mmc.
  Thus primary mmc information api is necessary to avoid
  iterations with previous apis

Change-Id: Id27f575d0442225d0cb909220716e5d527ad506d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agocommon: Apply Tizen coding rule 85/79885/2 accepted/tizen/common/20160713.145128 accepted/tizen/ivi/20160713.125558 accepted/tizen/mobile/20160713.125506 accepted/tizen/tv/20160713.125524 accepted/tizen/wearable/20160713.125542 submit/tizen/20160713.101116
pr.jung [Wed, 13 Jul 2016 09:35:13 +0000 (18:35 +0900)]
common: Apply Tizen coding rule

Change-Id: I1e3eca3ace0f3ae5d686df42dd434c7800eaa759
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agocommon: apply Tizen coding rule 38/77138/1 accepted/tizen/common/20160629.222836 accepted/tizen/ivi/20160629.070510 accepted/tizen/mobile/20160629.070505 accepted/tizen/tv/20160629.070459 accepted/tizen/wearable/20160629.070451 submit/tizen/20160629.012232
taeyoung [Tue, 28 Jun 2016 23:33:09 +0000 (08:33 +0900)]
common: apply Tizen coding rule

Signed-off-by: taeyoung <ty317.kim@samsung.com>
Change-Id: I7b6a4e580dc1e2e615cd3c39ec4762150156b09e

8 years agoProviding backward compatibility for APPs in the store which use libstorage APIs... 01/75201/1 accepted/tizen/common/20160620.163442 accepted/tizen/ivi/20160618.032603 accepted/tizen/mobile/20160618.032512 accepted/tizen/tv/20160618.032525 accepted/tizen/wearable/20160618.032547 submit/tizen/20160617.131013
Kunhoon Baik [Fri, 17 Jun 2016 05:08:50 +0000 (14:08 +0900)]
Providing backward compatibility for APPs in the store which use libstorage APIs incorrectly.

Change-Id: I31e265900f9087123fe1e6a0d31d3c67c7d8cd6b

8 years agoapi: add new api to register insert/remove callback 88/74188/6 accepted/tizen/common/20160615.193630 accepted/tizen/ivi/20160616.002455 accepted/tizen/mobile/20160616.002410 accepted/tizen/tv/20160616.002402 accepted/tizen/wearable/20160616.002351 submit/tizen/20160615.062014
Taeyoung Kim [Mon, 13 Jun 2016 05:58:08 +0000 (14:58 +0900)]
api: add new api to register insert/remove callback

- Previously, storage event register apis get the storage ID
  by the input parameter. Storage IDs are created when
  storages are connected, and storage IDs are changed
  even if same storage is re-connected. Thus Previous apis
  cannot support "insert" event.

- Now, new apis are added. They get storage type to register
  events. Thus they can support "insert" event too.

   = int storage_set_changed_cb(storage_type_e type, storage_changed_cb callback, void *user_data);
   = int storage_unset_changed_cb(storage_type_e type, storage_changed_cb callback);

Change-Id: Icbc6513f2777f8df760365c5c65512714b295590
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agostorage.c: Apply Tizen coding rule 33/71333/1 accepted/tizen/common/20160526.150023 accepted/tizen/ivi/20160525.235532 accepted/tizen/mobile/20160525.235608 accepted/tizen/tv/20160525.235504 accepted/tizen/wearable/20160525.235523 submit/tizen/20160525.083856
sunm.lee [Wed, 25 May 2016 05:37:36 +0000 (14:37 +0900)]
storage.c: Apply Tizen coding rule

Apply Tizen coding rule.

Change-Id: I1fe0ed420d8ee936451a87fc189437ed6666008f
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
8 years agoAdd comments for line/function coverage analysis 28/71128/1
pr.jung [Tue, 24 May 2016 07:34:34 +0000 (16:34 +0900)]
Add comments for line/function coverage analysis

- Remove system error, not called callback and logs.
- Drops the exclusion reason for Logs

Change-Id: Iaf43a37cfd62be23bd9799feac7c64fc6161edbe
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoDevide dbus connection of block from other deviced modules 29/70729/1 accepted/tizen/common/20160525.155726 submit/tizen/20160524.061815
pr.jung [Fri, 20 May 2016 08:21:46 +0000 (17:21 +0900)]
Devide dbus connection of block from other deviced modules

Change-Id: Ibcb3c2c1a1899ce74663a6633be50c67870c5906
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agostorage: fix allocation mismatch 32/69232/1 accepted/tizen/common/20160520.171304 accepted/tizen/ivi/20160520.081642 accepted/tizen/mobile/20160520.081656 accepted/tizen/tv/20160520.081625 accepted/tizen/wearable/20160520.081623 submit/tizen/20160520.041507
sunm.lee [Thu, 12 May 2016 08:11:44 +0000 (17:11 +0900)]
storage: fix allocation mismatch

The pointer variable 'dev' should be assinged to pointer of
storage_ext_device, not pointer of (storage_ext_device *).

Change-Id: Ic9a82c0849b411bca44b95db564f0fd731ea6eba
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
8 years agoexternal: return storage size 0 if external storage does not exist 33/68933/1 accepted/tizen/common/20160511.142008 accepted/tizen/ivi/20160511.080634 accepted/tizen/mobile/20160511.080534 accepted/tizen/tv/20160511.080552 accepted/tizen/wearable/20160511.080621 submit/tizen/20160510.124102
Taeyoung Kim [Tue, 10 May 2016 11:46:15 +0000 (20:46 +0900)]
external: return storage size 0 if external storage does not exist

- Previously, error was returned if external storage does not
  exist when getting storage size. But it is fixed to return
  size 0 for the backward compatibility.

Change-Id: I84eca101a740729cc038f7e02b6db97536913ca9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agostorage id: return NOT_SUPPORTED if storage id is invalid 19/68919/1
Taeyoung Kim [Tue, 10 May 2016 10:36:12 +0000 (19:36 +0900)]
storage id: return NOT_SUPPORTED if storage id is invalid

- When storage id is invalid, the apis should return
  NOT_SUPPORTED. This is for backward compatibility.

Change-Id: I5c54f0675072979dfc42242e5ce9b8efc438190d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal: add functions to get storage size 00/67800/4 accepted/tizen/ivi/20160511.080403 accepted/tizen/mobile/20160511.080306 accepted/tizen/tv/20160511.080322 accepted/tizen/wearable/20160511.080346 submit/tizen/20160510.075001
Taeyoung Kim [Thu, 28 Apr 2016 08:54:52 +0000 (17:54 +0900)]
external: add functions to get storage size

- The functions to get storage size of given path are added.
- For the following apis, default path is set to primary sdcard.
    int storage_get_external_memory_size(struct statvfs *buf)
    int storage_get_external_memory_size64(struct statvfs *buf)

Change-Id: I0cfdcf2496849520cf0ef00a3ee2c3a70ec3c06c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal: add function to get specific directories 31/67731/3
Taeyoung Kim [Thu, 28 Apr 2016 06:57:17 +0000 (15:57 +0900)]
external: add function to get specific directories

- The specific directories are under the root path
  of external storage.
- Ringtone path is not supported on external storages.

Change-Id: Ie7e13d19a30dbe8e6b874eba98f498c81c5da0a0
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal: add function to get type 30/67730/3
Taeyoung Kim [Thu, 28 Apr 2016 06:54:36 +0000 (15:54 +0900)]
external: add function to get type

- If a storage is not the one of internal storages,
  it is external storage.

Change-Id: Idd2e4bac3c398c91ccb0f3b2891a143c9fa95100
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal: add function to get state of storages 27/67727/3
Taeyoung Kim [Thu, 28 Apr 2016 06:51:26 +0000 (15:51 +0900)]
external: add function to get state of storages

- Storage states are delivered from deviced. To get
  the information, dbus method is used.

Change-Id: Ib6c03dae93e428cadd6f484cc5b84e2e12bf1050
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal: add function to get root path 24/67724/3
Taeyoung Kim [Thu, 28 Apr 2016 06:46:24 +0000 (15:46 +0900)]
external: add function to get root path

- External storages are handled by deviced, and deviced
  knows the information about root paths of storages.
  Thus dbus method from deviced is used to get root path
  information.

Change-Id: I5ca86c1c9280bacc78d7f07fc55617ac9c397bb4
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal: add storage change handler 23/67723/3
Taeyoung Kim [Thu, 28 Apr 2016 06:40:48 +0000 (15:40 +0900)]
external: add storage change handler

- Storage change handler functions are added.
  They trace dbus signal from deviced. If storages are
  added/removed/changed, dbus signal is broadcasted.
  Thus the callbacks can be called according to the
  storage state change.

Change-Id: Ib60f9f5b3bc316bb1c276dc0a7d30b881ca9da3a
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoexternal: support foreach function for external storages 11/67711/5
Taeyoung Kim [Thu, 28 Apr 2016 06:25:59 +0000 (15:25 +0900)]
external: support foreach function for external storages

- External storage information can be get from deviced.
  Thus the dbus method call from deviced is used to
  get the information.

Change-Id: Iac56c26ed766b8a72a78ba970152c7105b0672a1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agointernal: storage list is used just for internal storage 07/67707/1
Taeyoung Kim [Thu, 28 Apr 2016 06:10:16 +0000 (15:10 +0900)]
internal: storage list is used just for internal storage

- External storages are changeable and can be added/removed
  frequently. Thus storage list maintains just internal storage.

Change-Id: Ia4da6c41b29156fdd8f783cadc371acbf8699be2
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocommon: apply Tizen Coding Rule 62/64362/2 accepted/tizen/common/20160418.141528 accepted/tizen/ivi/20160418.082834 accepted/tizen/mobile/20160418.082848 accepted/tizen/tv/20160418.082831 accepted/tizen/wearable/20160418.082757 submit/tizen/20160418.012558
Taeyoung Kim [Fri, 1 Apr 2016 00:03:03 +0000 (09:03 +0900)]
common: apply Tizen Coding Rule

- Space policy is applied.
- Brace position policy is applied.

Change-Id: I06e6e17e37018b0285c3eaf929a92640f7775f6c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "paths: change paths to Macros" into tizen
Taeyoung Kim [Thu, 31 Mar 2016 06:19:14 +0000 (23:19 -0700)]
Merge "paths: change paths to Macros" into tizen

8 years agoGet Ringtone path from system setting api 77/64077/3 accepted/tizen/common/20160330.120433 accepted/tizen/ivi/20160330.062958 accepted/tizen/mobile/20160330.062848 accepted/tizen/tv/20160330.062914 accepted/tizen/wearable/20160330.062936 submit/tizen/20160330.041302
pr.jung [Wed, 30 Mar 2016 02:01:49 +0000 (11:01 +0900)]
Get Ringtone path from system setting api

Change-Id: I4a837028d9e6b49c6d57b2d3c62da36a108e3784
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agopaths: change paths to Macros 64/63564/5
Taeyoung Kim [Thu, 24 Mar 2016 13:01:41 +0000 (22:01 +0900)]
paths: change paths to Macros

- The paths of storages can be changed according to the dir policy.
  Thus the paths are changed to macros which define the policy

Change-Id: I6eb483abefc8f8583bd439c37f886ab6b80880bd
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agopaths: change mount path to TZ_SYS_MEDIA 35/59635/1 accepted/tizen/common/20160314.065516 accepted/tizen/ivi/20160310.052637 accepted/tizen/mobile/20160310.052526 accepted/tizen/tv/20160310.052554 accepted/tizen/wearable/20160310.052610 submit/tizen/20160229.000000 submit/tizen/20160305.131859 submit/tizen_common/20160311.185532
Taeyoung Kim [Wed, 17 Feb 2016 05:17:47 +0000 (14:17 +0900)]
paths: change mount path to TZ_SYS_MEDIA

- Tizen Directory policy is changed. The block device mount paths
  are located under the TZ_SYS_MEDIA (/opt/media)

Change-Id: I5376ff66d94db8b3bfde19db304d8566985b8c1e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
9 years agolicense: update license name 81/50881/1 accepted/tizen/ivi/20160218.024031 accepted/tizen/mobile/20151111.231710 accepted/tizen/tv/20151111.231715 accepted/tizen/wearable/20151111.231727 submit/tizen/20151111.045406 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000003
Taeyoung Kim [Mon, 3 Aug 2015 10:15:21 +0000 (19:15 +0900)]
license: update license name

Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Change-Id: I18feb1e2e05f22c1142419998307ae09b9812eff

9 years agoringtones: change the path for the ringtones files 21/48021/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150911.091813 accepted/tizen/tv/20150911.091826 accepted/tizen/wearable/20150911.091843 submit/tizen/20150911.075222 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
taeyoung [Fri, 11 Sep 2015 07:26:20 +0000 (16:26 +0900)]
ringtones: change the path for the ringtones files

Change-Id: I3b4d9d40bcf1fb86dd9db64c7b62034ad44293dd
Signed-off-by: taeyoung <ty317.kim@samsung.com>
9 years agosdcard: change root path of sdcard 55/47955/1 submit/tizen/20150911.041040
taeyoung [Thu, 10 Sep 2015 09:00:44 +0000 (18:00 +0900)]
sdcard: change root path of sdcard

- Previously, the sdcard root path is hard-coded to /opt/storage/sdcard
  But the directory policy is changed and the policy can be obtained
  by libtzplatform-config. Thus the path is changed

Change-Id: Id1808bc6c67e0f54d272c332d27351ca81fec842
Signed-off-by: taeyoung <ty317.kim@samsung.com>
9 years agostorage: change directory name "DCIM" to "Camera" 74/46974/1 accepted/tizen/mobile/20150828.082826 accepted/tizen/tv/20150828.082838 accepted/tizen/wearable/20150828.082856 submit/tizen/20150828.013903
Taeyoung Kim [Thu, 27 Aug 2015 12:40:40 +0000 (21:40 +0900)]
storage: change directory name "DCIM" to "Camera"

- The policy for directory name of camera is changed from "DCIM" to "Camera"

Change-Id: I0f7e42a6ffbfe5045447d69a8f61edcff749fb05
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
9 years agolibstorage: Fixed wrong space value 16/44816/2 accepted/tizen/mobile/20150729.011140 accepted/tizen/tv/20150729.011305 accepted/tizen/wearable/20150729.011359 submit/tizen/20150728.111713
Jiyoung Yun [Tue, 28 Jul 2015 07:03:59 +0000 (16:03 +0900)]
libstorage: Fixed wrong space value

The size of unsigned long long is not the same with int's size.
But it has copied int value to unsigned long long value.
It makes wrong copy operation.

Change-Id: Ief253146585ffc7474f9bd623c4680c8d516ede5
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agolibstorage: Do not use thread-unsafe function and code clearance 15/44815/2
Jiyoung Yun [Tue, 28 Jul 2015 06:57:42 +0000 (15:57 +0900)]
libstorage: Do not use thread-unsafe function and code clearance

strerror() is not safety on multi thread environment.
Add initialize input buffer.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I159b6a2162ef73e1dd337910a5b2e9a80e1354bd

9 years agolibstorage: Support multi user by using tzplatform library 59/40359/1 accepted/tizen/common/20150605.124100 accepted/tizen/mobile/20150606.052849 accepted/tizen/tv/20150606.053608 accepted/tizen/wearable/20150606.054418 submit/tizen/20150604.062454
Jiyoung Yun [Wed, 3 Jun 2015 02:47:20 +0000 (11:47 +0900)]
libstorage: Support multi user by using tzplatform library

Storeage apis will return the proper directory path as per user accoount.

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I35e249a9396f52de0c09191e88f3cac89f758f92

9 years agolibstorage: Add memory size check routine 86/39886/1 accepted/tizen/common/20150526.081221 accepted/tizen/mobile/20150526.094906 accepted/tizen/tv/20150526.094350 accepted/tizen/wearable/20150526.094645 submit/tizen/20150526.043931
Jiyoung Yun [Thu, 21 May 2015 08:03:05 +0000 (17:03 +0900)]
libstorage: Add memory size check routine

If a memory size is zero, it does not try to divide by zero.

Change-Id: Ieeff37b0d527f0edba7d06f54f4f31081632f9b9
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agolibstorage: Change the since_tizen string for wearable 85/39885/1
Jiyoung Yun [Thu, 16 Apr 2015 03:50:30 +0000 (12:50 +0900)]
libstorage: Change the since_tizen string for wearable

Change-Id: I2400fef8924b6a6a5af6f5a3b5c82328d81bc37b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agolibstorage: Add initial libstorage code accepted/tizen/common/20150209.121040 accepted/tizen/mobile/20150210.015306 accepted/tizen/tv/20150210.013020 accepted/tizen/wearable/20150210.014905 submit/tizen/20150206.062707
Jiyoung Yun [Fri, 6 Feb 2015 06:16:10 +0000 (15:16 +0900)]
libstorage: Add initial libstorage code

This library provides functions to get storage information.

The type of stroage information includes:
    * root directory
    * storage type(internal or external)
    * storage status
    * total and available space size
      (without minimum memory to launch application)

The type of directory information includes:
    * Images
    * Sounds
    * Videos
    * Camera
    * Downloads
    * Music
    * Documents
    * Others
    * System ringtones

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoInitial empty repository master tizen_3.0.2015.q2_common
Jeonghoon Jeon [Thu, 27 Nov 2014 04:47:13 +0000 (20:47 -0800)]
Initial empty repository