summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
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>
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>
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
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
Kwon [Fri, 1 Apr 2016 03:54:30 +0000 (20:54 -0700)]
Merge "common: apply Tizen Coding Rule" into tizen
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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
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>
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>
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
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>
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>
Alexandru Cornea [Fri, 28 Jun 2013 17:12:34 +0000 (20:12 +0300)]
resetting manifest requested domain to floor
Anas Nashif [Fri, 31 May 2013 15:45:07 +0000 (11:45 -0400)]
Remove placeholders and cleanup spec
Junfeng [Thu, 21 Mar 2013 13:02:50 +0000 (21:02 +0800)]
Fix for x86_64 compatibility.
Change-Id: I3824ee57be8044923be23779b3965c6312456344
Nam KwanWoo [Tue, 19 Mar 2013 02:11:57 +0000 (11:11 +0900)]
remove key(RUNTIME_INFO_KEY_ROTATION_LOCK_ENABLED)
Change-Id: I5efec29cb75844035b25eeb90dc87f8a31dbfc90
Jinkun Jang [Tue, 12 Mar 2013 16:46:10 +0000 (01:46 +0900)]
Tizen 2.1 base
Eunkyoung Kim [Fri, 6 Jan 2012 12:59:29 +0000 (21:59 +0900)]
Initial empty repository