platform/core/api/runtime-info.git
3 years agoAdd .gitignore 42/254842/1
Hyotaek Shim [Wed, 10 Mar 2021 04:03:00 +0000 (13:03 +0900)]
Add .gitignore

Change-Id: I001cc06d779e03436759829aac853d0be5bc7dc6
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoApply libsyscommon gdbus api improvement on error handling 11/254611/1 accepted/tizen/unified/20210310.145038 submit/tizen/20210309.090957
taemin.yeom [Fri, 5 Mar 2021 07:55:06 +0000 (16:55 +0900)]
Apply libsyscommon gdbus api improvement on error handling

Change-Id: I5e2ec13609d15de410c3901b7bdc523dc47018c1
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoUse libsyscommon for dbus 73/253673/7 accepted/tizen/unified/20210219.134923 submit/tizen/20210217.071642 submit/tizen/20210218.041307 submit/tizen/20210219.011639
taemin.yeom [Tue, 16 Feb 2021 07:24:19 +0000 (16:24 +0900)]
Use libsyscommon for dbus

Change-Id: I2779b674d8d45e3e4e76d4e52ea5523027c0c796
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoSupport gpu, gem, swap memory usage information 96/251996/13 submit/tizen/20210217.044338
Youngjae Cho [Thu, 21 Jan 2021 09:42:32 +0000 (18:42 +0900)]
Support gpu, gem, swap memory usage information

Change-Id: Ic742215d586a1f7c7cd92ffe5a44c79136a9b0fb
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoFix svace issue 12/252512/1 accepted/tizen/unified/20210210.052239 submit/tizen/20210209.074903
Yunmi Ha [Fri, 29 Jan 2021 05:23:18 +0000 (14:23 +0900)]
Fix svace issue

- add null checking logic

Change-Id: I9e9c77b91799b674133daafbe770908c17952c23
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoCheck more feature support 33/219933/3 accepted/tizen/unified/20201230.121825 submit/tizen/20201214.073408 submit/tizen/20201224.001822 submit/tizen/20201228.235910 submit/tizen/20201230.002345
Kichan Kwon [Thu, 12 Dec 2019 02:16:14 +0000 (11:16 +0900)]
Check more feature support

- Packet data, Data roaming, Vibration and TV out

Change-Id: I32bd0ded8c06b52fc396a9833a025e54be4edaa4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
3 years agoFix Coverity complaint 45/249145/2
Michal Bloch [Mon, 7 Dec 2020 19:56:16 +0000 (19:56 +0000)]
Fix Coverity complaint

Return value unchecked, but there is nothing we can do about the value.

Change-Id: Idceef9dc7577337f7b12eb20f00cf37443b35da5

4 years agoFree GVariant only if necessary 42/231542/2
Kichan Kwon [Wed, 22 Apr 2020 08:19:47 +0000 (17:19 +0900)]
Free GVariant only if necessary

- g_dbus_connection_call_sync consumes GVariant argument
  on this situations
  - on succeed
  - on failed with setting GErr
- So, we have to free only if it is failed without setting GErr

Change-Id: I39466f7ac0cddb229bd61ace5f3b9687f80e069f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoDon't use Doxygen comment for copyright 72/214872/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.025721 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064118 accepted/tizen/5.5/unified/wearable/hotfix/20201027.120520 accepted/tizen/6.0/unified/20201030.121311 accepted/tizen/6.0/unified/hotfix/20201103.003502 accepted/tizen/6.0/unified/hotfix/20201103.050225 accepted/tizen/unified/20191001.062457 submit/tizen/20190927.075925 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 submit/tizen_5.5_wearable_hotfix/20201026.184302 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_5.5.m2_release tizen_6.0.m2_release
Kichan Kwon [Fri, 27 Sep 2019 07:48:29 +0000 (16:48 +0900)]
Don't use Doxygen comment for copyright

- To hide copyright from API reference

Change-Id: Icc98b84669ae98460e0877afdb9d3c0f99041151
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoRename gcov package 07/209607/1 accepted/tizen/unified/20190710.103501 submit/tizen/20190710.014924
Kichan Kwon [Tue, 9 Jul 2019 08:45:22 +0000 (17:45 +0900)]
Rename gcov package

Change-Id: If59156f2ae26dbaec7852fc1c4ae58048fa78e84
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoMake gcov package 40/208740/1 accepted/tizen/unified/20190708.052540 submit/tizen/20190705.014328
Kichan Kwon [Fri, 28 Jun 2019 00:54:21 +0000 (09:54 +0900)]
Make gcov package

- To make, use "gcov" build option

Change-Id: I640223f4f0fbdc86ad4f8707833292f66f64145f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoAdjust the Doxygen comment with Tizen rule 95/201295/3 accepted/tizen/unified/20190313.075511 submit/tizen/20190312.081221
Kichan Kwon [Tue, 12 Mar 2019 07:06:02 +0000 (16:06 +0900)]
Adjust the Doxygen comment with Tizen rule

Change-Id: If03aa556ec508df0246dae9de99e124301a6dd21
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoNotify the range of enum value 44/199844/1 accepted/tizen/unified/20190311.072604 submit/tizen/20190307.015142
Kichan Kwon [Fri, 15 Feb 2019 03:01:47 +0000 (12:01 +0900)]
Notify the range of enum value

- ~10000 : public key
- 10001~ : product specific key

Change-Id: Ib7f2c3696591be0b8c559ecf502903070f3298d8
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agorelease : 0.5.2 54/198254/1 accepted/tizen/unified/20190128.061730 submit/tizen/20190124.014354
Kichan Kwon [Wed, 23 Jan 2019 02:36:44 +0000 (11:36 +0900)]
release : 0.5.2

Change-Id: Ie67cd2106b20956f8dae10c14ed3e2635c217006
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agoRemove deprecated enum values 22/198122/1 submit/tizen/20190122.014726
Kichan Kwon [Mon, 21 Jan 2019 06:23:54 +0000 (15:23 +0900)]
Remove deprecated enum values

Change-Id: I4c8e78a4a99f3ee1d0a35d86ae603b3462e1b348
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
5 years agotest : free after using it 05/198105/1
Kichan Kwon [Mon, 21 Jan 2019 02:11:53 +0000 (11:11 +0900)]
test : free after using it

Change-Id: I1b982282a025d58b5adf3972123016a2e7652490
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agotest : use absolute path 58/190458/1 accepted/tizen/5.0/unified/20181102.013226 accepted/tizen/unified/20181005.012538 submit/tizen/20181002.080849 submit/tizen_5.0/20181101.000002
Kichan Kwon [Tue, 2 Oct 2018 07:57:27 +0000 (16:57 +0900)]
test : use absolute path

Change-Id: I8302eae26c957f08982b494fd7ee7fa9c229b14f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoAdd LCOV comment for not supported feature 84/185384/1
Kichan Kwon [Mon, 30 Jul 2018 06:16:50 +0000 (15:16 +0900)]
Add LCOV comment for not supported feature

Change-Id: Iee230c920d6638da3f63b96fb9f1d6acfdd12c7b
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agorelease : 0.5.1 80/178780/1 accepted/tizen/unified/20180515.063732 submit/tizen/20180514.045457
Kichan Kwon [Mon, 14 May 2018 04:46:54 +0000 (13:46 +0900)]
release : 0.5.1

Change-Id: I61324934cb4f6e0106b87f9c5bfd35bec30321b7
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoCheck support if we can 79/178779/1
Kichan Kwon [Mon, 14 May 2018 04:43:15 +0000 (13:43 +0900)]
Check support if we can

- Wi-Fi, Bluetooth, GPS, location, auto rotation and battery

Change-Id: Id3fe52bb59bfc058128790f73dab793eeb50eed4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoDefine a macro checking feature support 57/178757/1
Kichan Kwon [Mon, 14 May 2018 01:51:45 +0000 (10:51 +0900)]
Define a macro checking feature support

Change-Id: I9dc062ce590dfe654e31d0ecde2e96810c709763
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoMerge remote-tracking branch 'origin/tizen_4.0' into tizen 54/178754/1
Kichan Kwon [Mon, 14 May 2018 01:32:16 +0000 (10:32 +0900)]
Merge remote-tracking branch 'origin/tizen_4.0' into tizen

Change-Id: If29909e9d04c869fb4b1266a1fd192cf67fe28bb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoEnable Wi-Fi status 48/169448/1 accepted/tizen_4.0_unified accepted/tizen/4.0/unified/20180208.163652 submit/tizen_4.0/20180207.021142
Kichan Kwon [Fri, 11 Aug 2017 05:07:56 +0000 (14:07 +0900)]
Enable Wi-Fi status

- For backward-compatibility

- Notice : this key is deprecated. Do not use this key

Change-Id: I4322da7b3cbc5759146c47fe7286c8ddc268ddec
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoPrint GDBus error message only if exist 63/168663/1 accepted/tizen/4.0/unified/20180131.050236 submit/tizen_4.0/20180130.061741
Kichan Kwon [Tue, 30 Jan 2018 05:42:35 +0000 (14:42 +0900)]
Print GDBus error message only if exist

Change-Id: If8fa90257263bfae969dd982e8e516080dc7a5ba
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
6 years agoFill error code in the log 51/168651/1
Kichan Kwon [Tue, 30 Jan 2018 05:27:37 +0000 (14:27 +0900)]
Fill error code in the log

Change-Id: Ia5db7ebc487a8c96d386e3a737b1389f96a589a5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoMerge "Merge branch 'tizen_4.0' into tizen" into tizen accepted/tizen/unified/20171108.063559 submit/tizen/20171108.015642
Kichan Kwon [Wed, 8 Nov 2017 01:56:15 +0000 (01:56 +0000)]
Merge "Merge branch 'tizen_4.0' into tizen" into tizen

7 years agoMerge branch 'tizen_4.0' into tizen 01/158901/2
Kichan Kwon [Mon, 6 Nov 2017 01:44:52 +0000 (10:44 +0900)]
Merge branch 'tizen_4.0' into tizen

Change-Id: I23e3cb08172282747166daf9aa151c4398d9207d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoFix the vconfkey related with TV out 30/155230/1 accepted/tizen/4.0/unified/20171020.014700 submit/tizen_4.0/20171019.080409 tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Kichan Kwon [Thu, 12 Oct 2017 10:08:02 +0000 (19:08 +0900)]
Fix the vconfkey related with TV out

- In current, TV out is supported via only HDMI

Change-Id: I656f2363d480f652341897dc85f1e3fca6746bb2
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoFix minor issues 40/152440/4 accepted/tizen/4.0/unified/20170927.045605 submit/tizen_4.0/20170926.084004 tizen_4.0.IoT.p1_release
Kichan Kwon [Tue, 26 Sep 2017 06:52:37 +0000 (15:52 +0900)]
Fix minor issues

- Prevent divided by zero
- Use pclose instead of fclose
- Notice the failure

Change-Id: I217aea7398b3634f1c44124209e5bce24ff1c2b1
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agotest : use fork-exec instead of system 44/151644/1 accepted/tizen/4.0/unified/20170922.064704 submit/tizen_4.0/20170921.104954
Kichan Kwon [Thu, 21 Sep 2017 10:22:55 +0000 (19:22 +0900)]
test : use fork-exec instead of system

- For security issue

Change-Id: I7ff729bf68f7fdc3173d9a5f14ac664b8a0b6943
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agotest : unref mainloop 12/151412/1 accepted/tizen/unified/20170922.065133 submit/tizen/20170921.012444
Kichan Kwon [Mon, 18 Sep 2017 10:04:53 +0000 (19:04 +0900)]
test : unref mainloop

Change-Id: Ifae35674e0388e86e3ba452003a0b7c500fa55fb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agotest : unref mainloop 29/150729/1 accepted/tizen/4.0/unified/20170920.081714 submit/tizen_4.0/20170918.101140
Kichan Kwon [Mon, 18 Sep 2017 10:04:53 +0000 (19:04 +0900)]
test : unref mainloop

Change-Id: Ifae35674e0388e86e3ba452003a0b7c500fa55fb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agotest : enhance requirement 52/142952/7 accepted/tizen/4.0/unified/20170828.223704 accepted/tizen/unified/20170810.171811 submit/tizen/20170809.071335 submit/tizen_4.0/20170828.100002
Kichan Kwon [Tue, 8 Aug 2017 03:28:17 +0000 (12:28 +0900)]
test : enhance requirement

- Some TCs return NOT_SUPPORTED
  - If resourced(-headless) is not installed
  - If there is no running app
- Require memps used by test binary

Change-Id: I204ae84fc2e56c060b8ced8deb93060338848b05
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoAdd omitted comment about return value 25/143025/1
Kichan Kwon [Tue, 8 Aug 2017 07:53:06 +0000 (16:53 +0900)]
Add omitted comment about return value

Change-Id: Ic89d3def28d790a4293ca707d916b4dddece8774
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoFix errata 61/138661/3 accepted/tizen/4.0/unified/20170816.011237 accepted/tizen/unified/20170728.195432 submit/tizen/20170727.070433 submit/tizen_4.0/20170811.094300
Kichan Kwon [Thu, 13 Jul 2017 06:26:19 +0000 (15:26 +0900)]
Fix errata

Change-Id: I68c8b1873efddf4fd05fdb2ae402e8196e56f2cb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoMake unit test 52/138452/22
Kichan Kwon [Wed, 12 Jul 2017 07:40:16 +0000 (16:40 +0900)]
Make unit test

- Existed TCs just check sanity
- This test read system data directly and compare with runtime-info result

Change-Id: I749bdad919f17c12ac6e5f7f395fd640016bb1d0
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoFix the size of KiB 31/138331/10
Kichan Kwon [Wed, 12 Jul 2017 00:35:23 +0000 (09:35 +0900)]
Fix the size of KiB

- KiB = KB = 2^10 bytes
- kB = 10^2 bytes
  - However, kernel consider kB as 2^10 bytes

Change-Id: I2291a1daa097d1838ac2955316a19b17259d6c2f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoEliminate unused internal functions. 81/134481/2 accepted/tizen/unified/20170706.193739 submit/tizen/20170706.010921
Kunhoon Baik [Mon, 19 Jun 2017 01:37:29 +0000 (10:37 +0900)]
Eliminate unused internal functions.

Except of system resource information, runtime-info will not provide
the specific module's information like GPS.
Each module needs to provide such a specific module's information
because such way will enhance API findability for developer.

Thus, from now, we will not keep internal codes for future runtime-info information any more.

Change-Id: Ic6cc41a1377f19ab87507f71f5e7b1e48f269d74

7 years agoFix memory issue 27/137227/1 submit/tizen/20170705.023006
Kichan Kwon [Wed, 5 Jul 2017 02:54:51 +0000 (11:54 +0900)]
Fix memory issue

Change-Id: I2ba37dd792224f664d728da97e5c25825d9065fb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoUnify doxygen comment format 87/133987/2 accepted/tizen/unified/20170629.085546 submit/tizen/20170620.010939
Kichan Kwon [Wed, 14 Jun 2017 06:01:03 +0000 (15:01 +0900)]
Unify doxygen comment format

- Add @privlevel before @privilege
- Add @return before @retval
- Unify whitespace

Change-Id: Ic0c0a2f34c60df5419d2b9fb1e1570b81a8e4ee0
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoModify the parameter type of runtime_info_app_usage_get_count 86/133986/1
Kichan Kwon [Wed, 14 Jun 2017 06:20:32 +0000 (15:20 +0900)]
Modify the parameter type of runtime_info_app_usage_get_count

- Modify the variable "count" from unsigned int to int
- Other app usage APIs use int for indexing
- "count" can be used for iteration which "int i" is usually used
  - e.g. for (i = 0; i < count; i ++)

Change-Id: I2685199c3e401c0875602e1c78253f383da77a6f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoVersion up 00/132900/1 submit/tizen/20170614.044733
Kichan Kwon [Thu, 8 Jun 2017 08:14:12 +0000 (17:14 +0900)]
Version up

Change-Id: Ic3e5c91735fb48cdc2c59a9fc3ebd39d783a0bb4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoAdd new APIs getting all apps' memory/CPU usage 98/129798/22
Kichan Kwon [Thu, 18 May 2017 06:22:39 +0000 (15:22 +0900)]
Add new APIs getting all apps' memory/CPU usage

1) runtime_info_app_usage_destroy
  - Free app usage handle

2) runtime_info_app_usage_get_count
  - Get the count of handle

3) runtime_info_app_usage_get_appid
  - Get app's ID from handle

4) runtime_info_app_usage_get_usage
  - Get app's resource usage from handle

5) runtime_info_get_all_apps_memory_usage
  - Get handle storing each app's memory usage(KB)

6) runtime_info_get_all_apps_cpu_rate
  - Get handle storing each app's CPU rate(%)

- To get information, it requests to resourced via D-Bus

Change-Id: Ib3fc4b91475600c071a6a6e18b6998bfbcee4e4d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoPrevent underflow 87/132587/1
Kichan Kwon [Wed, 7 Jun 2017 04:52:14 +0000 (13:52 +0900)]
Prevent underflow

- If val is large negative, it can be underflow
- In addition, tiny optimization is applied

Change-Id: I9fd7f52a60c8b7e26fc9c8a3765f17ec185429d4
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoClean up edbus dependency 71/130971/3
Kunhoon Baik [Wed, 24 May 2017 23:40:44 +0000 (08:40 +0900)]
Clean up edbus dependency

Thanks to https://review.tizen.org/gerrit/#/c/129776/, edbus dependency of runtime-info has been removed.
This patch is to remove the e-dbus build dependency

Change-Id: I84eab8c432114a595acb1e51755a313fcd074ffe

7 years agoReplace libdbus to gdbus 76/129776/8
Kichan Kwon [Thu, 18 May 2017 05:30:02 +0000 (14:30 +0900)]
Replace libdbus to gdbus

- To unify with other system modules

Change-Id: I85a0158f6fe5246e8416a3ec7063cd6f64b9fea9
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoFix minor issues 81/130781/2
Kichan Kwon [Wed, 24 May 2017 02:42:47 +0000 (11:42 +0900)]
Fix minor issues

- Check overflow
- Initialize value

Change-Id: I005a58129eb47e5e7e9840849f274ce9082380bd
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoRemove conditional statement about D-Bus method 98/129598/6
Kichan Kwon [Wed, 17 May 2017 06:36:42 +0000 (15:36 +0900)]
Remove conditional statement about D-Bus method

- To simplify code before other methods are added

Change-Id: Ieb34b0f3f9cfa9637404ef6ace5882df5f432e25
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoAdd LCOV comment for deprecated functions 31/123431/1
Kichan Kwon [Wed, 5 Apr 2017 11:50:40 +0000 (20:50 +0900)]
Add LCOV comment for deprecated functions

Change-Id: I1f9af1c9b0b942547694957f7356568e2f77335e
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoDeprecate some enum values about location status 83/119583/5 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170322.153738 accepted/tizen/ivi/20170323.000141 accepted/tizen/mobile/20170323.000059 accepted/tizen/tv/20170323.000113 accepted/tizen/unified/20170323.000156 accepted/tizen/wearable/20170323.000125 submit/tizen/20170322.052214 tizen_4.0.m1_release
Kichan Kwon [Fri, 17 Mar 2017 10:39:38 +0000 (19:39 +0900)]
Deprecate some enum values about location status

- This feature can be checked with locations.h
- Remain functions for backward compatibility

Change-Id: I1dd7df608ae8923379076806786a92ae3ed43e85
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoProofread header file and modify comment about version. 31/119531/2
Kichan Kwon [Fri, 17 Mar 2017 07:30:57 +0000 (16:30 +0900)]
Proofread header file and modify comment about version.

- It is decided that these APIs aren't supported at Tizen 2.4

Change-Id: I8044905cfc502f93b2beff33533de272be5df393
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoAdd new API for getting physical memory size 00/117500/4 accepted/tizen/common/20170316.161534 accepted/tizen/ivi/20170316.101447 accepted/tizen/mobile/20170316.101338 accepted/tizen/tv/20170316.101358 accepted/tizen/unified/20170316.101457 accepted/tizen/wearable/20170316.101429 submit/tizen/20170316.010706
Kichan Kwon [Mon, 6 Mar 2017 07:56:44 +0000 (16:56 +0900)]
Add new API for getting physical memory size

- /proc/meminfo supports the memory size except kernel reserved memory
- However, somebody want to get physical(total) memory size
- Therefore, we have to support two kinds of memory size
- Physical memory size = number of page * page size

Change-Id: I72711f1980dc8ade60578edb0ab7360f2d3f8aa5
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoCheck support before getting some value 86/118886/4 accepted/tizen/common/20170315.124745 accepted/tizen/ivi/20170315.104256 accepted/tizen/mobile/20170315.104208 accepted/tizen/tv/20170315.104225 accepted/tizen/unified/20170315.104314 accepted/tizen/wearable/20170315.104248 submit/tizen/20170315.004113
Kichan Kwon [Tue, 14 Mar 2017 10:24:39 +0000 (19:24 +0900)]
Check support before getting some value

- Some features aren't supported but these vconf value is existed
- Therefore, we check support by using system-info

Change-Id: I8a77ed61472842d4861c99cb527973dc8365bc43
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoRead zoneinfo to get total RAM size 89/115789/2 accepted/tizen/common/20170221.135557 accepted/tizen/ivi/20170221.225645 accepted/tizen/mobile/20170221.225559 accepted/tizen/tv/20170221.225614 accepted/tizen/unified/20170309.031931 accepted/tizen/wearable/20170221.225630 submit/tizen/20170221.093648 submit/tizen_unified/20170308.100405
Kichan Kwon [Tue, 21 Feb 2017 09:23:58 +0000 (18:23 +0900)]
Read zoneinfo to get total RAM size

- /proc/meminfo support total RAM size except kernel reserved memory
- To get whole RAM size, we calculate (the number of page * page size)

Change-Id: Ibccbe28cb82a3950b972f2960c1612f14ef2e894
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 09/107609/1 accepted/tizen/common/20161229.140151 accepted/tizen/ivi/20161229.233206 accepted/tizen/mobile/20161229.233107 accepted/tizen/tv/20161229.233128 accepted/tizen/wearable/20161229.233147 submit/tizen/20161229.040631
taeyoung [Thu, 29 Dec 2016 01:46:49 +0000 (10:46 +0900)]
Merge branch 'tizen_3.0' into tizen

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

7 years agoCalculate used memory size with available memory 53/107253/1 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 tizen_3.0_tv accepted/tizen/3.0.m2/mobile/20170104.121648 accepted/tizen/3.0.m2/tv/20170104.122347 accepted/tizen/3.0.m2/wearable/20170104.122727 accepted/tizen/3.0/common/20161228.162331 accepted/tizen/3.0/ivi/20161228.095219 accepted/tizen/3.0/mobile/20161228.095118 accepted/tizen/3.0/tv/20161228.095139 accepted/tizen/3.0/wearable/20161228.095156 submit/tizen_3.0.m2/20170104.093749 submit/tizen_3.0/20161228.012708
Kichan Kwon [Tue, 27 Dec 2016 08:42:28 +0000 (17:42 +0900)]
Calculate used memory size with available memory

- Actual size of used memory should be calculated from difference of
 total memory and available memory

Change-Id: Ia78f705198b3c70d6a22a8d356e7396c2b63d666
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoAdd Doxygen end-group comment 86/105186/1 accepted/tizen/3.0/common/20161221.180600 accepted/tizen/3.0/ivi/20161221.005239 accepted/tizen/3.0/mobile/20161221.005312 accepted/tizen/3.0/tv/20161221.005115 accepted/tizen/3.0/wearable/20161221.005148 accepted/tizen/common/20161219.152051 accepted/tizen/ivi/20161219.224351 accepted/tizen/mobile/20161219.224251 accepted/tizen/tv/20161219.224312 accepted/tizen/wearable/20161219.224330 submit/tizen/20161219.023726 submit/tizen_3.0/20161219.053948
Kichan Kwon [Fri, 16 Dec 2016 02:34:15 +0000 (11:34 +0900)]
Add Doxygen end-group comment

Change-Id: I60717d5b9e777564fcd2e3aab4f8874aac8e171a
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agoMerge branch 'tizen' into tizen_3.0 72/97272/1 accepted/tizen/3.0/common/20161115.184140 accepted/tizen/3.0/ivi/20161115.022505 accepted/tizen/3.0/mobile/20161115.022408 accepted/tizen/3.0/tv/20161115.022428 accepted/tizen/3.0/wearable/20161115.022445 submit/tizen_3.0/20161113.015148
taeyoung [Sat, 12 Nov 2016 06:56:45 +0000 (15:56 +0900)]
Merge branch 'tizen' into tizen_3.0

- Set recent value to current value when callback is added

Change-Id: Ib4a620335050dd31630ec7de2f01357c320072d4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoSet recent value to current value when callback is added 38/97138/3 accepted/tizen/common/20161114.171314 accepted/tizen/ivi/20161114.010412 accepted/tizen/mobile/20161114.010246 accepted/tizen/tv/20161114.010313 accepted/tizen/wearable/20161114.010342 submit/tizen/20161113.015118
Kichan Kwon [Fri, 11 Nov 2016 08:24:11 +0000 (17:24 +0900)]
Set recent value to current value when callback is added

- Until now, initial recent value is NULL
- Therefore, when key is changed, callback always called
- It is usually correct, but we have to do exception handling
  - If value is set 0 -> 1, most keys are considered to be changed
  - But USB connection isn't changed (0,1=false, 2=true)

Change-Id: If78913539a4eb8c27dad5de40413e0edd5fc24ff
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoUse doxygen style comment 52/89252/1 accepted/tizen/3.0/common/20161114.105303 accepted/tizen/3.0/ivi/20161011.062217 accepted/tizen/3.0/mobile/20161015.032622 accepted/tizen/3.0/tv/20161016.003912 accepted/tizen/3.0/wearable/20161015.081816 accepted/tizen/common/20160926.154206 accepted/tizen/ivi/20160927.020958 accepted/tizen/mobile/20160927.021000 accepted/tizen/tv/20160927.020951 accepted/tizen/wearable/20160927.020956 submit/tizen/20160926.012656 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000006 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
Kichan Kwon [Fri, 23 Sep 2016 01:30:17 +0000 (10:30 +0900)]
Use doxygen style comment

- Doxygen recognizes double leading stars as comment

Change-Id: I4be4cc8b1c2569eb4bec0e869f92a4130ba88ecc
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoAdd comments about return value and version information 48/74848/7 accepted/tizen/common/20160623.154022 accepted/tizen/ivi/20160623.121833 accepted/tizen/mobile/20160623.121737 accepted/tizen/tv/20160623.121755 accepted/tizen/wearable/20160623.121810 submit/tizen/20160622.081854
Kichan Kwon [Thu, 16 Jun 2016 01:26:15 +0000 (10:26 +0900)]
Add comments about return value and version information

Change-Id: Id71487fe0570105e259f57b804a0076c5495626d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoAdd lcov comments for coverage measurement 81/70981/3
Kichan Kwon [Mon, 23 May 2016 12:25:58 +0000 (21:25 +0900)]
Add lcov comments for coverage measurement

Change-Id: If5ff51abedefb5fa218babbd2bbb125cdf153352
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoruntime-info: fix - close the file pointer 45/69345/2 accepted/tizen/common/20160513.123451 accepted/tizen/ivi/20160513.082115 accepted/tizen/mobile/20160513.082055 accepted/tizen/tv/20160513.082108 accepted/tizen/wearable/20160513.082103 submit/tizen/20160513.014537
sunm.lee [Fri, 13 May 2016 00:25:05 +0000 (09:25 +0900)]
runtime-info: fix - close the file pointer

Close file pointer cpuinfo_fp at runtime_info_get_frequency_cpuinfo()
when function returns.

Change-Id: Id66f3507d2b40a89e00e216dd951749b36dcd803
Signed-off-by: sunm.lee <sunm.lee@samsung.com>
8 years agoRead cpuinfo to get CPU frequency when cpufreq isn't supported 08/68308/2 accepted/tizen/common/20160510.141636 accepted/tizen/ivi/20160512.050636 accepted/tizen/mobile/20160512.050620 accepted/tizen/tv/20160512.050616 accepted/tizen/wearable/20160512.050603 submit/tizen/20160509.003410 submit/tizen/20160510.124308
Kichan Kwon [Tue, 3 May 2016 10:36:53 +0000 (19:36 +0900)]
Read cpuinfo to get CPU frequency when cpufreq isn't supported

- If there is no "cpu MHz" information in the cpuinfo, then returns error

Change-Id: I26c5da75f8d4909f2a84c262626ce8ece6637f49
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoModify first released version of structure 12/68112/1 accepted/tizen/common/20160509.134725 accepted/tizen/ivi/20160509.061926 accepted/tizen/mobile/20160509.061836 accepted/tizen/tv/20160509.061852 accepted/tizen/wearable/20160509.061905 submit/tizen/20160509.003520
Kichan Kwon [Mon, 2 May 2016 08:46:43 +0000 (17:46 +0900)]
Modify first released version of structure

Change-Id: Iec598d64e7b705e4b813a4670aec17aaf68293cb
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoMerge "common: apply Tizen Coding Rule" into tizen accepted/tizen/common/20160426.143444 accepted/tizen/ivi/20160426.103159 accepted/tizen/mobile/20160426.103139 accepted/tizen/tv/20160426.103050 accepted/tizen/wearable/20160426.103205 submit/tizen/20160426.040912
Kwon [Fri, 1 Apr 2016 03:54:30 +0000 (20:54 -0700)]
Merge "common: apply Tizen Coding Rule" into tizen

8 years agoModify first release version of some APIs 82/64282/2
Kichan Kwon [Thu, 31 Mar 2016 07:33:20 +0000 (16:33 +0900)]
Modify first release version of some APIs

- These APIs are decided to include at Tizen 2.4

- But, Tizen 2.4 wearable isn't released, so we need to set separately

Change-Id: I2d293a398e6df41d92868b7d930daffe48fe415d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agocommon: apply Tizen Coding Rule 65/64365/1
Taeyoung Kim [Fri, 1 Apr 2016 00:13:18 +0000 (09:13 +0900)]
common: apply Tizen Coding Rule

- Space policy is applied.

Change-Id: I68fd8a2f4e85dd1990ac57385e39dbf8a9cc3478
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoClose file after reading 21/63621/1 accepted/tizen/common/20160325.135635 accepted/tizen/ivi/20160325.071930 accepted/tizen/mobile/20160325.071747 accepted/tizen/tv/20160325.071818 accepted/tizen/wearable/20160325.071855 submit/tizen/20160325.030803
Kichan Kwon [Fri, 25 Mar 2016 02:59:29 +0000 (11:59 +0900)]
Close file after reading

Change-Id: I23114971925f436109986d163e62d941c57c6470
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoModify wearable API version 02/63102/1 accepted/tizen/common/20160323.185530 accepted/tizen/ivi/20160323.141200 accepted/tizen/mobile/20160323.140003 accepted/tizen/tv/20160323.140138 accepted/tizen/wearable/20160323.135944 submit/tizen/20160323.104608
Kichan Kwon [Tue, 22 Mar 2016 06:11:09 +0000 (15:11 +0900)]
Modify wearable API version

Change-Id: Id0e92cd805e871de15ed3a72e70a9bdadc441116
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agoruntime-info : Add cpu information APIs 46/58846/8
Kichan Kwon [Wed, 3 Feb 2016 10:45:52 +0000 (19:45 +0900)]
runtime-info : Add cpu information APIs

 - runtime_info_get_processor_count

 - runtime_info_get_processor_current_frequency

 - runtime_info_get_processor_max_frequency

Change-Id: Ic331e1a4fd54962a7bf86186761ca58c8a91569d
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
8 years agodoc: fix invalid error type 51/56851/1 accepted/tizen/ivi/20160218.023228 accepted/tizen/mobile/20160115.112336 accepted/tizen/tv/20160115.112353 accepted/tizen/wearable/20160115.112411 submit/tizen/20160115.060125 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002
Taeyoung Kim [Wed, 13 Jan 2016 06:47:46 +0000 (15:47 +0900)]
doc: fix invalid error type

- Error code in documentation was wrong.

  RUNTIME_INFO_PERMISSION_DENIED
             -> RUNTIME_INFO_ERROR_PERMISSION_DENIED

Change-Id: I61eae52217182b7fa2aab33b64205f8d9839a4ff
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoremoved log messages from process usage info APIs 23/51723/1 accepted/tizen/mobile/20151113.060811 accepted/tizen/tv/20151113.060829 accepted/tizen/wearable/20151113.060840 submit/tizen/20151113.044914 submit/tizen_common/20151229.142028 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Prajwal A N [Fri, 13 Nov 2015 03:16:10 +0000 (12:16 +0900)]
removed log messages from process usage info APIs

* process usage info received from resourced was logged for debug purposes
* this poses a security issue
* thus removed the logging code

Change-Id: I937a5809b3ba3cf3255d8be0a3c9476f9e50d59c
Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
9 years agokeys: change enum values to support the legacy runtime-info 50/42450/1 tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150708.015041 accepted/tizen/tv/20150708.015140 accepted/tizen/wearable/20150708.015233 submit/tizen/20150630.051205 submit/tizen/20150702.103311 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 Kim [Mon, 29 Jun 2015 06:11:00 +0000 (15:11 +0900)]
keys: change enum values to support the legacy runtime-info

- The set of keys is same with Tizen 2.3, but the real value
  is different with Tizen 2.3. Because several internal keys
  are removed.

- To support apps which are built with runtime-info of tizen 2.3,
  the real values of keys are changed according to the Tizen 2.3

Change-Id: I01ded14a562dc2dc41ede50b3a6bad89ebf12911
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
9 years agoruntime-info: Remove internal enums 49/42449/1
Jiyoung Yun [Thu, 7 May 2015 09:54:56 +0000 (18:54 +0900)]
runtime-info: Remove internal enums

Please refer to below ACR issue:
http://168.219.209.56/jira/browse/ACR-108

Conflicts:
        src/runtime_info_location.c

Change-Id: I668c6d9baab19b8dcf324c46ea4dbc7637ec4fd0
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoruntime-info: added process Memory and CPU usage APIs 21/40721/1 accepted/tizen_3.0.2015.q2_common tizen_3.0.2015.q2_common accepted/tizen/3.0.2015.q2/common/20150615.091801 accepted/tizen/common/20150610.144403 accepted/tizen/mobile/20150611.004436 accepted/tizen/tv/20150611.004445 accepted/tizen/wearable/20150611.004459 submit/tizen/20150609.090156 submit/tizen_3.0.2015.q2_common/20150615.075539
Prajwal A N [Wed, 27 May 2015 12:16:14 +0000 (21:16 +0900)]
runtime-info: added process Memory and CPU usage APIs

* added call to dbus methods in resourced
* added code to parse the reply dbus message and populate the right structs

Change-Id: I94514adf12fea4257c759c977a473f5dc658c0a6
Signed-off-by: Prajwal A N <an.prajwal@samsung.com>
9 years agoruntime-info: Add memory and cpu information apis 19/40719/1
Jiyoung Yun [Tue, 10 Mar 2015 14:22:54 +0000 (23:22 +0900)]
runtime-info: Add memory and cpu information apis

New apis:
runtime_info_get_process_memory_info
runtime_info_get_system_memory_info
runtime_info_get_process_cpu_usage
runtime_info_get_cpu_usage

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

9 years agoerror type: add error type RUNTIME_INFO_ERROR_NOT_SUPPORTED 14/40714/2
Taeyoung Kim [Mon, 8 Jun 2015 09:33:06 +0000 (18:33 +0900)]
error type: add error type RUNTIME_INFO_ERROR_NOT_SUPPORTED

- when vconf key does not exist, the feature related with the vconf key
  is not supported. Thus NOT_SUPPORTED error type is added

Change-Id: I542e4981bb5ee32d2b656b9ef79c0ede1896fba5
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
9 years agoruntime-info: Battery keys regard as disconnected in no battery model 64/35764/2 accepted/tizen/common/20150226.084921 accepted/tizen/mobile/20150226.100215 accepted/tizen/tv/20150226.094312 accepted/tizen/wearable/20150226.095247 submit/tizen/20150226.021228
Jiyoung Yun [Tue, 24 Feb 2015 10:25:35 +0000 (19:25 +0900)]
runtime-info: Battery keys regard as disconnected in no battery model

Below keys depend on battery module.
If there is no battery in target,
runtime-info regards battery keys as disconnected.

RUNTIME_INFO_KEY_CHARGER_CONNECTED
RUNTIME_INFO_KEY_BATTERY_IS_CHARGING

Change-Id: I6138f1ffe03d3d0821f66e713947205712e55bae
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoruntime-info: Merge Tizen 2.3 source code into tizen branch 02/35102/3 accepted/tizen/common/20150210.094911 accepted/tizen/mobile/20150210.120109 accepted/tizen/tv/20150210.141230 accepted/tizen/wearable/20150210.115650 submit/tizen/20150210.060027
Jiyoung Yun [Mon, 9 Feb 2015 06:53:15 +0000 (15:53 +0900)]
runtime-info: Merge Tizen 2.3 source code into tizen branch

Details:
https://developer.tizen.org/dev-guide/native/2.3.0/org.tizen.mobile.native.apireference/group__CAPI__SYSTEM__RUNTIME__INFO__MODULE.html

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

11 years agoRemove debian packaging stuff 97/8597/1 accepted/tizen/ivi/genivi accepted/tizen/ivi/stable accepted/tizen_3.0.2014.q3_common accepted/tizen_3.0.m14.3_ivi accepted/tizen_generic accepted/tizen_ivi_panda tizen_3.0.2014.q3_common tizen_3.0.2014.q4_common tizen_3.0.2015.q1_common tizen_3.0.m14.2_ivi tizen_3.0.m14.3_ivi tizen_3.0_ivi tizen_ivi_genivi tizen_ivi_panda accepted/tizen/20130912.153550 accepted/tizen/20130912.190026 accepted/tizen/20130912.194206 accepted/tizen/generic/20140306.082327 accepted/tizen/ivi/20140307.054819 accepted/tizen/ivi/genivi/20140131.061632 accepted/tizen/ivi/panda/20140403.015141 accepted/tizen/mobile/20140306.024919 accepted/tizen_ivi_stable/20131116.101600 ivi_oct_m2 submit/tizen/20130912.080347 submit/tizen/20130912.090646 submit/tizen/20140305.221703 submit/tizen_ivi_genivi/20140131.060727 submit/tizen_ivi_panda/20140403.011824 submit/tizen_ivi_stable/20131116.100118 submit/tizen_mobile/20141120.000000 tizen_3.0.2014.q3_common_release tizen_3.0.m14.2_ivi_release tizen_3.0.m14.3_ivi_release tizen_3.0_ivi_release
Chengwei Yang [Sun, 25 Aug 2013 01:43:49 +0000 (09:43 +0800)]
Remove debian packaging stuff

Change-Id: I322b4fe4018a65c0f9ebc1fc189993871ee41011
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
11 years agoFix manifests 28/5828/1
Michael Leibowitz [Wed, 17 Jul 2013 17:18:49 +0000 (10:18 -0700)]
Fix manifests

put manifests in packaging/
consistent use of %{name} macros

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>
11 years agoresetting manifest requested domain to floor 80/4580/1 accepted/tizen/20130710.221610 submit/tizen/20130710.102600
Alexandru Cornea [Fri, 28 Jun 2013 17:12:34 +0000 (20:12 +0300)]
resetting manifest requested domain to floor

11 years agoRemove placeholders and cleanup spec accepted/tizen/20130531.230136 submit/tizen/20130531.154510
Anas Nashif [Fri, 31 May 2013 15:45:07 +0000 (11:45 -0400)]
Remove placeholders and cleanup spec

11 years agoFix for x86_64 compatibility. tizen_2.1 2.1b_release accepted/tizen/20130520.100828 accepted/tizen_2.1/20130425.035548 submit/tizen/20130517.044717 submit/tizen_2.1/20130424.230548 submit/tizen_2.1/20130514.052036
Junfeng [Thu, 21 Mar 2013 13:02:50 +0000 (21:02 +0800)]
Fix for x86_64 compatibility.

Change-Id: I3824ee57be8044923be23779b3965c6312456344

11 years agoremove key(RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED)
Nam KwanWoo [Tue, 19 Mar 2013 02:11:57 +0000 (11:11 +0900)]
remove key(RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED)

Change-Id: I5efec29cb75844035b25eeb90dc87f8a31dbfc90

11 years agoTizen 2.1 base
Jinkun Jang [Tue, 12 Mar 2013 16:46:10 +0000 (01:46 +0900)]
Tizen 2.1 base

12 years agoInitial empty repository
Eunkyoung Kim [Fri, 6 Jan 2012 12:59:29 +0000 (21:59 +0900)]
Initial empty repository