platform/core/api/device.git
3 years agoApply G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS for dbus proxy 07/243007/3
Hyotaek Shim [Wed, 2 Sep 2020 11:09:06 +0000 (20:09 +0900)]
Apply G_DBUS_PROXY_FLAGS_DO_NOT_CONNECT_SIGNALS for dbus proxy

This is for preventing implicit dbus signal subscription with NULL member
that causes too many signal messages.

Change-Id: Iaf0b78da45e8e6fdecea162fe44c529dc99a5ed7
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoAdd extern C to booting-internal.h 32/242932/1 accepted/tizen/6.0/unified/20201030.121413 accepted/tizen/6.0/unified/hotfix/20201103.004957 accepted/tizen/6.0/unified/hotfix/20201103.052416 accepted/tizen/unified/20200903.151810 submit/tizen/20200902.052241 submit/tizen_6.0/20201029.205102 submit/tizen_6.0_hotfix/20201102.192502 submit/tizen_6.0_hotfix/20201103.114802 tizen_6.0.m2_release
Youngjae Cho [Wed, 2 Sep 2020 04:53:05 +0000 (13:53 +0900)]
Add extern C to booting-internal.h

Change-Id: I2d5bbb836caae6a2bfc35a9a888bf0a1f5155dbc
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoAdd comments for line coverage 54/241954/5 accepted/tizen/unified/20200825.142849 submit/tizen/20200824.103034 submit/tizen/20200825.014022
lokilee73 [Fri, 21 Aug 2020 05:37:11 +0000 (14:37 +0900)]
Add comments for line coverage

Change-Id: Ie2eddae2cf4dd0b29680756528777f6e061e9ec5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoTypedef change: dbus_pending_cb -> device_dbus_pending_cb 41/241941/1
Youngjae Cho [Wed, 19 Aug 2020 06:52:55 +0000 (15:52 +0900)]
Typedef change: dbus_pending_cb -> device_dbus_pending_cb

Change-Id: I1308144009a355d9c4580391ed6c1ac126255bce
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoRemove hwcommon dependency 99/240199/3 accepted/tizen/unified/20200806.062501 submit/tizen/20200805.062948
Yunmi Ha [Tue, 4 Aug 2020 09:27:02 +0000 (18:27 +0900)]
Remove hwcommon dependency

- Load 'battery-plugin.so' library dynamically
and call 'battery_get_info_direct' func.

Change-Id: I81ede014a7cf4180f02d198bf5638626df0fbe49
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agobattery: Add 'device_battery_get_info_direct' internal API 87/238787/4 accepted/tizen/unified/20200723.161316 submit/tizen/20200721.112435
Yunmi Ha [Fri, 17 Jul 2020 08:52:05 +0000 (17:52 +0900)]
battery: Add 'device_battery_get_info_direct' internal API

- Change battery_info structure to device_battery_info
- Get battery info directly from HAL

Change-Id: Id4892bedea89b9e35932f98c72c926512dca3d2e
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoFix boot.so filename to bootmode.so accepted/tizen/unified/20200716.144614 submit/tizen/20200715.095135
Youngjae Cho [Wed, 15 Jul 2020 08:49:14 +0000 (17:49 +0900)]
Fix boot.so filename to bootmode.so

Change-Id: Ib2fbb965ac2da820d5e5313480498db5c9926187
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoFix api description for device_battery_get_info() 90/237490/6 accepted/tizen/unified/20200707.140922 submit/tizen/20200706.095902
Hyotaek Shim [Wed, 1 Jul 2020 02:28:46 +0000 (11:28 +0900)]
Fix api description for device_battery_get_info()

Change-Id: Ie9e191a999d9c54134ec9507d78117c4299a0b37
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
3 years agoAdd comments to exclude in coverage 32/237132/1 accepted/tizen/unified/20200626.133439 submit/tizen/20200625.102608
lokilee73 [Thu, 25 Jun 2020 08:10:06 +0000 (17:10 +0900)]
Add comments to exclude in coverage

Change-Id: I7872dc2669154e77c43d522e04259b434bcad2a1
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoFix bug 86/236486/1
sanghyeok.oh [Wed, 17 Jun 2020 10:23:24 +0000 (19:23 +0900)]
Fix bug

Change-Id: Ie4dea4f0e622f5bcb91d73793413456ffe4d85ff
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
3 years agobattery: Rename INFO_MAX to BATTERY_INFO_MAX 31/235931/1 accepted/tizen/unified/20200612.145000 submit/tizen/20200611.055134
sanghyeok.oh [Thu, 11 Jun 2020 05:46:15 +0000 (14:46 +0900)]
battery: Rename INFO_MAX to BATTERY_INFO_MAX

Avoid redefinition.

Change-Id: I50045329c6a07deed7ff8159ac0a87135707318f
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
3 years agoAdd internal API for battery 20/235920/3 submit/tizen/20200611.052854
sanghyeok.oh [Thu, 11 Jun 2020 04:07:22 +0000 (13:07 +0900)]
Add internal API for battery

Get every battery status at once.

Change-Id: I277c6854815dd5ce5c18f43d6340fc1561994199
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
3 years agoFix error log 84/235484/1
Hyotaek Shim [Fri, 5 Jun 2020 02:26:45 +0000 (11:26 +0900)]
Fix error log

Change-Id: I180f802a0c43e782e2e124f0d11fa5b0ff93d31c
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoAdd get_reboot_mode() internal api 31/230931/6 accepted/tizen/unified/20200422.123157 submit/tizen/20200421.052338
Youngjae Cho [Mon, 13 Apr 2020 06:04:33 +0000 (15:04 +0900)]
Add get_reboot_mode() internal api

Change-Id: Ie279d0e168b86aae87623e5d2907616469969c28
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoAdd APIs for pmqos cpu request 37/231037/2
sanghyeok.oh [Fri, 17 Apr 2020 01:55:47 +0000 (10:55 +0900)]
Add APIs for pmqos cpu request

Change-Id: I151e9941e55d86be7e8d8d89b9153b9e52754f25

4 years agoFix coverity issue - remove memory leak 31/224531/1 accepted/tizen/unified/20200216.215215 submit/tizen/20200214.104642
Yunmi Ha [Tue, 11 Feb 2020 08:31:53 +0000 (17:31 +0900)]
Fix coverity issue - remove memory leak

Change-Id: I87b38d118247283eefb42a8e14df38c3b09143d7
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoFix svace issue 76/224376/2 accepted/tizen/unified/20200212.125913 submit/tizen/20200211.051146
Yunmi Ha [Mon, 10 Feb 2020 06:49:48 +0000 (15:49 +0900)]
Fix svace issue

- add null checking logic

Change-Id: I1eec58a31247d12cbd3c2d205a914e81f701313d
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoFix device_display_get_state() to consider VCONFKEY_PM_STATE_SLEEP 46/224346/1 accepted/tizen/unified/20200211.055754 submit/tizen/20200210.060410
Hyotaek Shim [Mon, 10 Feb 2020 04:59:10 +0000 (13:59 +0900)]
Fix device_display_get_state() to consider VCONFKEY_PM_STATE_SLEEP

Change-Id: I28d795a81e3ec44ef28731d5bc6abc37f03f05df
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
4 years agoAdd grouping for doxygen 55/223955/1 accepted/tizen/unified/20200206.023643 submit/tizen/20200205.073650
Youngjae Cho [Wed, 5 Feb 2020 07:32:53 +0000 (16:32 +0900)]
Add grouping for doxygen

Change-Id: I80c21ec8e1be992657ea21ab6c965803731245ad
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoMerge "Fix typo" into tizen accepted/tizen/unified/20200129.022606 submit/tizen/20200121.090851 submit/tizen/20200122.232403
youngjae cho [Mon, 20 Jan 2020 04:56:07 +0000 (04:56 +0000)]
Merge "Fix typo" into tizen

4 years agoFix typo 83/222783/1
Youngjae Cho [Mon, 20 Jan 2020 04:54:18 +0000 (13:54 +0900)]
Fix typo

Change-Id: Iebf19d35bb278b1919a9b24c6abdab421c44b113
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agofix memory leak 25/221925/3
sanghyeok.oh [Wed, 8 Jan 2020 08:40:46 +0000 (17:40 +0900)]
fix memory leak

Change-Id: I2cb00ff25ad73c5f557bea591a69888cf7ae4031
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agodbus: replace old dbus api with GVariant support api 26/221826/6
sanghyeok.oh [Wed, 8 Jan 2020 01:12:50 +0000 (10:12 +0900)]
dbus: replace old dbus api with GVariant support api

Change-Id: Ie6b5e00497fe5c02bce2d40a68f6e97cbfab53c6
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agodbus: add GVariant support api 21/221621/4
sanghyeok.oh [Mon, 6 Jan 2020 09:00:19 +0000 (18:00 +0900)]
dbus: add GVariant support api

Change-Id: Iac13dfbb5cf6044c9becb225cc6c217ab1483866
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
4 years agoAdd internal api for touchscreen control 67/222367/1
Youngjae Cho [Tue, 14 Jan 2020 05:31:22 +0000 (14:31 +0900)]
Add internal api for touchscreen control

Change-Id: Ibcbdebc9a4044588613b5c52c491a6b156ddffb8
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoSupport display changestate by reason as internal api 14/221614/5 accepted/tizen/unified/20200109.065548 submit/tizen/20200108.103615
Youngjae Cho [Mon, 6 Jan 2020 08:09:38 +0000 (17:09 +0900)]
Support display changestate by reason as internal api

Change-Id: I525b1367845ad3ccc6ee0068504c73492d5efd10
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoChange "developer.tizen.org" link to "docs.tizen.org" 07/220007/3
Yunmi Ha [Thu, 12 Dec 2019 09:04:05 +0000 (18:04 +0900)]
Change "developer.tizen.org" link to "docs.tizen.org"

Change-Id: I3d5fcb80a507e41822811d42b76a46a5b4fe411b
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
4 years agoMake gcov package 35/218435/1
Youngjae Cho [Fri, 22 Nov 2019 07:14:28 +0000 (16:14 +0900)]
Make gcov package

Change-Id: I60beb3d1c6de284eab396aac403e46737a158600
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoDelete not supported error for emulator and initialize battery info to 0 74/214074/1 accepted/tizen_5.5_unified_mobile_hotfix tizen_5.5_mobile_hotfix accepted/tizen/5.5/unified/20191031.031612 accepted/tizen/5.5/unified/mobile/hotfix/20201027.064312 accepted/tizen/unified/20190919.065342 submit/tizen/20190918.021417 submit/tizen/20190918.071926 submit/tizen_5.5/20191031.000002 submit/tizen_5.5_mobile_hotfix/20201026.185102 tizen_5.5.m2_release
Youngjae Cho [Wed, 18 Sep 2019 00:07:28 +0000 (09:07 +0900)]
Delete not supported error for emulator and initialize battery info to 0

TCT ITc_device_battery_get_property_p requires for
device_battery_get_property() to return true even if
DEVICE_BATTERY_PROPERTY_VOLTAGE_NOW,
DEVICE_BATTERY_PROPERTY_VOLTAGE_AVERAGE,
DEVICE_BATTERY_PROPERTY_TEMPERATURE
are given in case of emulator.

Change-Id: I40be244c2c3acba6ee1c09e688354d15ca24d653
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
4 years agoApply Captital letter in callback.h 89/211189/2 accepted/tizen/unified/20190805.042852 submit/tizen/20190802.050423
lokilee73 [Wed, 31 Jul 2019 04:24:50 +0000 (13:24 +0900)]
Apply Captital letter in callback.h

Change-Id: I09715d5d3c6d738f2bdce3aa6c3aacbb078bc066
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoAdd display feature for all profiles 66/209666/4 submit/tizen/20190730.112013
lokilee73 [Wed, 10 Jul 2019 02:38:37 +0000 (11:38 +0900)]
Add display feature for all profiles

Display feature is necessary for all profiles such as headed and headless.
  ex) http://tizen.org/feature/display
So, add it.

Change-Id: If0a9f9d0cda5e31784fc5b38df0e7544ad41138c
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
4 years agoChange DD_LIST_FOREACH to DD_LIST_FOREACH_SAFE to protect crash 71/208271/1 accepted/tizen/unified/20190621.121904 submit/tizen/20190621.030050
lokilee73 [Fri, 21 Jun 2019 02:48:31 +0000 (11:48 +0900)]
Change DD_LIST_FOREACH to DD_LIST_FOREACH_SAFE to protect crash

While running DD_LIST_FOREACH, one item in the list can be removed.
At that time, removed item can be refered in DD_LIST_FOREACH.
And it can cause crash.

Change-Id: Iaf90e62fbb64a707a3341cf24dfadc389d4c3cea
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd @sice_tizen comment 52/202952/1 accepted/tizen/unified/20190410.002110 submit/tizen/20190408.064053
Yunmi Ha [Mon, 8 Apr 2019 06:19:42 +0000 (15:19 +0900)]
Add @sice_tizen comment

Change-Id: I1b36b4e2d080219caea600b21b6ef06a9297b3a6
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
5 years agopower: change to case-sensitive name 94/200894/1 accepted/tizen/unified/20190311.072439 accepted/tizen/unified/20190312.113030 submit/tizen/20190305.120315 submit/tizen/20190306.005724 submit/tizen/20190308.023010 submit/tizen/20190311.073252
sanghyeok.oh [Tue, 5 Mar 2019 11:29:31 +0000 (20:29 +0900)]
power: change to case-sensitive name

Change-Id: Ib3bed7d6c91fa67e4655b018c179985ed4b10f92
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agopower: apply modified dbus spec 74/200574/4 submit/tizen/20190305.100545
sanghyeok.oh [Wed, 27 Feb 2019 02:35:06 +0000 (11:35 +0900)]
power: apply modified dbus spec

Change-Id: Ic17bba4c4a2b81c87deb0ff72636cec3d11b85cc
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agoRemove internal tag in display_state_e 75/200675/1
lokilee73 [Thu, 28 Feb 2019 04:55:50 +0000 (13:55 +0900)]
Remove internal tag in display_state_e

@if TV @internal @endif is internal tag.
And it has no meaning becasue TV is not defined.
So, remove it.

Change-Id: Idc9bd80bf0253110fc67e823a30b189a6d553363
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoChange include file format of device-error.h 60/200360/1 accepted/tizen/unified/20190307.230751 submit/tizen/20190222.065344 submit/tizen/20190225.015430
lokilee73 [Fri, 22 Feb 2019 06:44:23 +0000 (15:44 +0900)]
Change include file format of device-error.h

Change-Id: I34f15d1ae2ae3d6c7aeb9ae856278f0df3d8e61c
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd device_thermal_get_temperature for public API 53/196353/17 accepted/tizen/unified/20190219.154146 accepted/tizen/unified/20190221.165802 submit/tizen/20190218.105211 submit/tizen/20190220.073046
lokilee73 [Thu, 27 Dec 2018 11:35:51 +0000 (20:35 +0900)]
Add device_thermal_get_temperature for public API

Change-Id: I20855ea5557aef442db52076bcff3c78143bd30e
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoRemove executable flag from non-executable files 65/196265/1 accepted/tizen/unified/20181231.125010 submit/tizen/20181227.070601 submit/tizen/20181231.010834 submit/tizen/20181231.070821
lokilee73 [Thu, 27 Dec 2018 01:49:16 +0000 (10:49 +0900)]
Remove executable flag from non-executable files

Change-Id: Ic8b95cc4db792076a1d32ceb6d67485f0b00a6ee
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoFix description for device_haptic_vibrate() 96/193696/1 accepted/tizen/unified/20181130.064921 submit/tizen/20181129.005631
Hyotaek Shim [Fri, 23 Nov 2018 08:08:40 +0000 (17:08 +0900)]
Fix description for device_haptic_vibrate()

Change-Id: Iabc365960f4508371527460d7740c8117a8d7e42
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
(cherry picked from commit 1648f7704022cab5213585c03d20e0543ff28e35)

5 years agoAdd description for device_haptic_vibrate() 74/193674/3
Hyotaek Shim [Fri, 23 Nov 2018 06:27:45 +0000 (15:27 +0900)]
Add description for device_haptic_vibrate()

Change-Id: Ib548ca63f95cf27edc20d140d1ca34d7eb982fdd
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoChange words from Feature List to feature element description. 36/191236/4 accepted/tizen/5.0/unified/20181102.013344 accepted/tizen/unified/20181015.161506 submit/tizen/20181015.062835 submit/tizen_5.0/20181101.000002
lokilee73 [Mon, 15 Oct 2018 02:09:48 +0000 (11:09 +0900)]
Change words from Feature List to feature element description.
Add a description for http://tizen.org.feature.display.state

Change-Id: Ia8c8e4cbb1a5381e535abe7a716217d364b4d04d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd display related feature to disable below API in TV 91/191091/3 accepted/tizen/unified/20181012.083533 submit/tizen/20181012.024418
lokilee73 [Thu, 11 Oct 2018 08:03:12 +0000 (17:03 +0900)]
Add display related feature to disable below API in TV
ex) device_power_wakeup, device_display_change_state

Change-Id: I1ac4d9d8000c5c37539975e9469bb534d1c14d3f
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoChange API name 73/189773/1 accepted/tizen/unified/20180928.080542 submit/tizen/20180927.030248
lokilee73 [Thu, 20 Sep 2018 10:43:52 +0000 (19:43 +0900)]
Change API name
from device_multi_led_play_custom to device_multi_led_control

Change-Id: I07bf1973929fe5a057cf627bd57ef7392d4171ab
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoApply some changes to support multi leds 81/189481/4
lokilee73 [Tue, 18 Sep 2018 06:15:44 +0000 (15:15 +0900)]
Apply some changes to support multi leds
1. Change the name of device_multi_led_play_custom() to device_multi_led_control()
2. Add device_multi_led_get_number() in device_multi_led_control()

Change-Id: I5ac5b5e01fc583080c17ff8733dd4dac818d4f5a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoMinor fix on license 70/188870/1
Hyotaek Shim [Tue, 11 Sep 2018 07:26:54 +0000 (16:26 +0900)]
Minor fix on license

Change-Id: I8856145ac1b30a244f06988951a05371036c6c02
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoAdd license file on all rpm packages 50/188850/1 accepted/tizen/unified/20180912.061608 submit/tizen/20180911.060541
pr.jung [Tue, 11 Sep 2018 05:49:44 +0000 (14:49 +0900)]
Add license file on all rpm packages

Change-Id: Ia1211b8df2b6481925caf9fb7ebce8c6eb20c87b
Signed-off-by: pr.jung <pr.jung@samsung.com>
5 years agoRemove Deprecation Warnings to cancel deprecation 26/186226/5 accepted/tizen/unified/20180830.182626 accepted/tizen/unified/20180831.061035 submit/tizen/20180829.051003 submit/tizen/20180829.075844
lokilee73 [Wed, 8 Aug 2018 07:01:38 +0000 (16:01 +0900)]
Remove Deprecation Warnings to cancel deprecation

Related API and enum
API - device_display_change_state()
power_lock_e - POWER_LOCK_DISPLAY
power_lock_e - POWER_LOCK_DISPLAY_DIM

Change-Id: I18db2bbe13877b2e4274fa50ff578cee12171497
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd is_emulator for device_battery_get_property 91/186391/1 accepted/tizen/unified/20180810.062929 submit/tizen/20180809.104154
lokilee73 [Thu, 9 Aug 2018 08:51:11 +0000 (17:51 +0900)]
Add is_emulator for device_battery_get_property

There are no nodes for below enum in emulator.
They are only available in real target.
  DEVICE_BATTERY_PROPERTY_VOLTAGE_NOW
  DEVICE_BATTERY_PROPERTY_VOLTAGE_AVERAGE
  DEVICE_BATTERY_PROPERTY_TEMPERATURE

So, add is_emulator to distinguish real target and emulator.
device_battery_get_property returns DEVICE_ERROR_NOT_SUPPORTED for emulator.

Change-Id: I5bae62fb8e4f977f7e763ce8e4dbea49e02fb52c
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoAdd voltage and temperature in the structure of battery_info 88/179188/6 accepted/tizen/unified/20180712.092559 submit/tizen/20180706.105024 submit/tizen/20180710.030326
lokilee73 [Wed, 16 May 2018 07:42:13 +0000 (16:42 +0900)]
Add voltage and temperature in the structure of battery_info

In addition, a function to check battery feature is added in APIs.

Change-Id: I709e5946d62868371d4d0590804bf4c960a74d14
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agodbus: proxy: disable load properties flag 11/183111/1 accepted/tizen/unified/20180704.154013 submit/tizen/20180704.010647
sanghyeok.oh [Mon, 2 Jul 2018 07:32:06 +0000 (16:32 +0900)]
dbus: proxy: disable load properties flag

gdbus proxy makes few dbus messages such as Get, Set, GetAll method call.(org.freedesktop.DBus.Properties)
Also API trying to subscribe PropertiesChanged signal.
But, deviced doesn't offer dbus properties, so it is not needed to use this property releated mechanism.

Change-Id: I57ce4ab1379aa7e008750de48ff73d7c83c394ff
Signed-off-by: sanghyeok.oh <sanghyeok.oh@samsung.com>
5 years agoModify error handling in device_display_change_state() 46/182146/3
lokilee73 [Thu, 21 Jun 2018 02:09:35 +0000 (11:09 +0900)]
Modify error handling in device_display_change_state()

Allow dbus_method call, even if previous returned value was -EACCES, -ECOMM and -EPERM.

Change-Id: I9610dd75a2c36f207358117084838865dd9fa434
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoRemove check_rate because it is the same function with check_async_call_rate 15/182115/1 accepted/tizen/unified/20180621.141347 submit/tizen/20180620.105920
lokilee73 [Wed, 20 Jun 2018 10:49:53 +0000 (19:49 +0900)]
Remove check_rate because it is the same function with check_async_call_rate

Change-Id: I7d95dbdd6a0d2adea83526e1ab723ea851a689be
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
5 years agoModify device_display_change_state() to be asynchronous 90/181990/3
lokilee73 [Tue, 19 Jun 2018 11:31:52 +0000 (20:31 +0900)]
Modify device_display_change_state() to be asynchronous
To change from Off to Normal, time of more than 200ms was required.

Change-Id: I36075931343a5adde860624c7aa762be8de92cc7
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoAdd a defense code for device_power_request/release_lock() APIs 38/181438/6 accepted/tizen/unified/20180614.150849 submit/tizen/20180614.063411
Hyotaek Shim [Thu, 14 Jun 2018 03:11:02 +0000 (12:11 +0900)]
Add a defense code for device_power_request/release_lock() APIs
, which rejects API calls when the rate is over the threshold.

-- User-side solution --
Adding a delay(100ms) between calls.

-- Problem Definition --
Insensive async dbus calls like this can block dbus-daemon and others (deviced, etc.).

while (1) {
        ret = device_power_request_lock (POWER_LOCK_DISPLAY, 0);
}

Program terminated with signal SIGABRT, Aborted.
 #0  0xb68b6964 in poll () at ../sysdeps/unix/syscall-template.S:84
 84 ../sysdeps/unix/syscall-template.S: No such file or directory.
 [Current thread is 1 (Thread 0xb6f3f180 (LWP 367))]
 (gdb) bt
 #0  0xb68b6964 in poll () at ../sysdeps/unix/syscall-template.S:84
 #1  0xb6b74c18 in g_main_context_poll (priority=<optimized out>, n_fds=1, fds=0xb7574c80,
     timeout=<optimized out>, context=0xb756fb00) at gmain.c:4259
 #2  g_main_context_iterate (context=0xb756fb00, block=block@entry=1, dispatch=dispatch@entry=1,
     self=<optimized out>) at gmain.c:3955
 #3  0xb6b74fd8 in g_main_loop_run (loop=0xb7570c50) at gmain.c:4156
 #4  0xb6e345c0 in g_dbus_connection_send_message_with_reply_sync (
     connection=connection@entry=0xb752d868, message=message@entry=0xb51d2180,
     flags=G_DBUS_SEND_MESSAGE_FLAGS_NONE, timeout_msec=10000, timeout_msec@entry=-1226030992,
     out_serial=out_serial@entry=0x0, cancellable=0x0, error=0xbeeaeaf4, error@entry=0xbeeaeaec)
     at gdbusconnection.c:2844
 #5  0xb6e34b70 in g_dbus_connection_call_sync_internal (connection=connection@entry=0xb752d868,
     bus_name=<optimized out>, object_path=0xb6c91bb4 "/",
     interface_name=0xb6c91b9c "org.freedesktop.DBus", method_name=<optimized out>,
     method_name@entry=0x2710 <error: Cannot access memory at address 0x2710>, parameters=0xb515f960,
     parameters@entry=0xb6c91339 <dbus_connection_get_sender_pid+76>,
     reply_type=reply_type@entry=0xb6c91bb8, flags=flags@entry=G_DBUS_CALL_FLAGS_NONE,
     timeout_msec=timeout_msec@entry=10000, fd_list=fd_list@entry=0x0,
     out_fd_list=out_fd_list@entry=0x0, cancellable=cancellable@entry=0x0, error=0xbeeaeb78,
     error@entry=0x2710) at gdbusconnection.c:6901
 #6  0xb6e37294 in g_dbus_connection_call_sync (connection=connection@entry=0xb752d868,
     bus_name=<optimized out>, object_path=<optimized out>, interface_name=<optimized out>,
     method_name=0xb6c91bb8 "GetConnectionUnixProcessID", parameters=0xb515f960,
     reply_type=reply_type@entry=0x0, flags=flags@entry=G_DBUS_CALL_FLAGS_NONE,
     timeout_msec=timeout_msec@entry=10000, cancellable=cancellable@entry=0x0,
     error=error@entry=0xbeeaeb78) at gdbusconnection.c:7128
 #7  0xb6c91338 in dbus_connection_get_sender_pid (conn=conn@entry=0xb752d868,
     sender=sender@entry=0xb5169b58 ":1.103")
     at /usr/src/debug/libsyscommon-4.1/src/libgdbus/dbus-system.c:2412
 #8  0xb6f798a2 in dbus_lockstate (conn=0xb752d868, sender=0xb5169b58 ":1.103", path=<optimized out>,
     iface=<optimized out>, name=0xb5166cd8 "lockstate", param=0xb5159360, invocation=0xb50342c0,
     user_data=0xb6ca230c <g_dh>) at /usr/src/debug/deviced-5.0.0/src/display/display-dbus.c:128
 #9  0xb6c901d6 in _method_call_handler (conn=0xb752d868, sender=0xb5169b58 ":1.103",
     path=0xb504f000 "/Org/Tizen/System/DeviceD/Display",
     iface=0xb5157aa0 "org.tizen.system.deviced.display", name=0xb5166cd8 "lockstate",
     param=0xb5159360, invocation=0xb50342c0, user_data=0xb7532ee0)
     at /usr/src/debug/libsyscommon-4.1/src/libgdbus/dbus-system.c:1048
 #10 0xb6e32a60 in call_in_idle_cb (user_data=0xb50342c0) at gdbusconnection.c:5792
 #11 0xb6b748e8 in g_main_dispatch (context=0xb7528f28) at gmain.c:3234
 #12 g_main_context_dispatch (context=context@entry=0xb7528f28) at gmain.c:3887
 #13 0xb6b74c78 in g_main_context_iterate (context=0xb7528f28, block=block@entry=1,
     dispatch=dispatch@entry=1, self=<optimized out>) at gmain.c:3960
 #14 0xb6b74fd8 in g_main_loop_run (loop=0xb7529400) at gmain.c:4156
 #15 0xb6f5bb66 in deviced_main (argc=<optimized out>, argv=<optimized out>)
     at /usr/src/debug/deviced-5.0.0/src/core/main.c:116
 #16 0xb6f57ce8 in main (argc=1, argv=0xbeeaee64) at /usr/src/debug/deviced-5.0.0/src/core/main.c:126

Change-Id: Ide0b04f2af13c25a1e9347b9f3caf35736d61556
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years agoAdd logs in device_power_request/release_lock() 49/181249/1
Hyotaek Shim [Mon, 11 Jun 2018 08:37:32 +0000 (17:37 +0900)]
Add logs in device_power_request/release_lock()

Change-Id: Ie5dc219f725491ec082f6669f7b0f7224b34c423
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
5 years ago[haptic]Add haptic feature 12/178812/4 accepted/tizen/unified/20180611.132136 submit/tizen/20180611.005638
pr.jung [Mon, 14 May 2018 06:19:27 +0000 (15:19 +0900)]
[haptic]Add haptic feature

Change-Id: I260519fc2f56d9c5680d3b5e52b9050ade687f08
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoModify for line coverage 44/179344/2
lokilee73 [Thu, 17 May 2018 07:35:49 +0000 (16:35 +0900)]
Modify for line coverage

Change-Id: I83543cb9eb3de1cb43b659b7b3b63c056302b231
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoAdd .gitignore 39/178339/1 accepted/tizen/unified/20180510.070833 submit/tizen/20180509.104423
Hyotaek Shim [Wed, 9 May 2018 10:43:46 +0000 (19:43 +0900)]
Add .gitignore

Change-Id: I584bdb1eaf5a56c44bcdcd644bdcc7d91cd655d1
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoExclude System error and callback for line coverage 09/178309/5
pr.jung [Wed, 9 May 2018 08:10:43 +0000 (17:10 +0900)]
Exclude System error and callback for line coverage

Change-Id: Ib8537c2617053ec47fd7252428c42114c7a71568
Signed-off-by: pr.jung <pr.jung@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoAdd internal APIs for DIM control 03/177003/6 accepted/tizen/unified/20180502.071147 submit/tizen/20180426.071254 submit/tizen/20180430.025008 submit/tizen/20180430.025608 submit/tizen/20180502.014710
lokilee73 [Tue, 24 Apr 2018 11:29:51 +0000 (20:29 +0900)]
Add internal APIs for DIM control

Change-Id: Iab1e71c6cca32fa04e8bd3f762e01e4ea5d05a11
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoModify multi-LED APIs 10/169310/3
Hyotaek Shim [Tue, 6 Feb 2018 02:26:52 +0000 (11:26 +0900)]
Modify multi-LED APIs

Change-Id: Ie36ac4ed295267454e9a05dcfe89b174a1bafc64
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoAdd new APIs that control multiple LEDs 48/169048/18
lokilee73 [Fri, 2 Feb 2018 05:06:31 +0000 (14:06 +0900)]
Add new APIs that control multiple LEDs

Change-Id: I6c1e0bc0b54a910ddb7ec371a24765552b07d6ff
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoDisplay: add a flag to prevent duplicated privilege check 60/162760/3 accepted/tizen/unified/20171207.070159 submit/tizen/20171204.104825 submit/tizen/20171205.105834 submit/tizen/20171206.045221 submit/tizen/20171206.125708
lokilee73 [Tue, 5 Dec 2017 07:17:31 +0000 (16:17 +0900)]
Display: add a flag to prevent duplicated privilege check

Change-Id: I3c3599d30f72b732d9140b4b23d104d4a0f2e6f5
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoDisplay: to remove a log for privilege check 72/162572/2
lokilee73 [Mon, 4 Dec 2017 08:44:51 +0000 (17:44 +0900)]
Display: to remove a log for privilege check

Change-Id: I4498e24fb94c047b016a70fdc8fd1642ae683939
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoCommon: initialize power_source 07/161107/1
lokilee73 [Tue, 21 Nov 2017 12:46:49 +0000 (21:46 +0900)]
Common: initialize power_source

Change-Id: I1eaa737326dd634a37b9e98e0095afdb09144f10
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoRevert "power: Replace lockstate dbus method to lockstate_nopt" 80/159980/1
Hyotaek Shim [Tue, 14 Nov 2017 04:31:34 +0000 (13:31 +0900)]
Revert "power: Replace lockstate dbus method to lockstate_nopt"

This reverts commit 0cbaa2742f3bedfa5a52f85b9bdc8876ada217f2.

Change-Id: Ic738730f6e638ec45374b8bddf1b40c485c4f12a
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
6 years agoCommon: fix a bug in log 57/155957/1 accepted/tizen/unified/20171017.071033 submit/tizen/20171017.005038
lokilee73 [Mon, 16 Oct 2017 14:23:17 +0000 (23:23 +0900)]
Common: fix a bug in log

Change-Id: I0e70e1afec98e6dd804d82d334b17770e451a03d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoDisplay: remove an incorrect sentence 67/149067/1
lokilee73 [Mon, 11 Sep 2017 10:48:09 +0000 (19:48 +0900)]
Display: remove an incorrect sentence

Change-Id: I18d390f561859fdc8082153175045bfba4f6f919
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agohaptic: Check malloc() failed 78/148478/1 accepted/tizen/unified/20170911.060316 submit/tizen/20170908.052749
pr.jung [Fri, 8 Sep 2017 03:04:38 +0000 (12:04 +0900)]
haptic: Check malloc() failed

Change-Id: I206f3252a969422a2da0cf683f31c45d2112cde2
Signed-off-by: pr.jung <pr.jung@samsung.com>
6 years agoPower: remove warning messages becasue those apis are still needed 76/147876/1 accepted/tizen/unified/20170906.144535 submit/tizen/20170906.032135
lokilee73 [Wed, 6 Sep 2017 02:57:34 +0000 (11:57 +0900)]
Power: remove warning messages becasue those apis are still needed

Change-Id: I8ecebba443737e8c52cadba00f00b4bf180a5a43
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoPower: change a word form MObile to MOBILE for API reference 36/147836/1
lokilee73 [Wed, 6 Sep 2017 01:45:13 +0000 (10:45 +0900)]
Power: change a word form MObile to MOBILE for API reference

Change-Id: I5c6a06d8507b09ec6ebd3596809a7154c2240272
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
6 years agoBattery : change a string for DEVICE_BATTERY_LEVEL_FULL 78/145578/1 accepted/tizen/4.0/unified/20170828.223722 accepted/tizen/unified/20170823.170342 submit/tizen/20170823.062729 submit/tizen_4.0/20170828.100002
lokilee73 [Wed, 23 Aug 2017 03:11:44 +0000 (12:11 +0900)]
Battery : change a string for DEVICE_BATTERY_LEVEL_FULL

Change-Id: Ie6c827acfb69c7c4101f17a1ec47ad8a8dc64473
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agopower: Replace lockstate dbus method to lockstate_nopt 93/128493/1 accepted/tizen/4.0/unified/20170816.010421 accepted/tizen/unified/20170512.023834 submit/tizen/20170512.003944 submit/tizen_4.0/20170811.094300 tizen_4.0.m1_release
Yunmi Ha [Wed, 10 May 2017 07:55:07 +0000 (16:55 +0900)]
power: Replace lockstate dbus method to lockstate_nopt

Only internal services can call lockstate dbus method.
(privilege was changed.)
So replace it to lockstate_nopt.

- This should be applied with https://review.tizen.org/gerrit/#/c/128490/

Change-Id: Ia65eb3e2e85564674695cf6e2c56bba3befb23eb
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
7 years agopower : replace libtracker API to latest functions 60/127660/1 accepted/tizen/unified/20170429.024301 submit/tizen/20170428.074418
Kichan Kwon [Fri, 28 Apr 2017 07:34:11 +0000 (16:34 +0900)]
power : replace libtracker API to latest functions

Change-Id: I87bc1281ec883e3d4d80a58415ca441d76c1419f
Signed-off-by: Kichan Kwon <k_c.kwon@samsung.com>
7 years agopower: Fixed a bug to use the wrong dbus path and interface for reboot. 53/125853/1 accepted/tizen/unified/20170419.165317 submit/tizen/20170419.062310
wchang kim [Wed, 19 Apr 2017 06:17:22 +0000 (15:17 +0900)]
power: Fixed a bug to use the wrong dbus path and interface for reboot.

Change-Id: I0da5b494faec0931b3d1f21af872c5ae88fcbb99

7 years agoChange the URL information of device_doc.h 01/122801/1
wchang kim [Mon, 3 Apr 2017 08:33:58 +0000 (17:33 +0900)]
Change the URL information of device_doc.h

The link URL was chaged. But, the change was not applied to the
device_doc.h.

Change-Id: I6a34472b932812fef3ec7da2d725807a830c94be
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years ago[4.0] Remove Profile Build Dependencies: do it at runtime 81/99181/5
MyungJoo Ham [Tue, 22 Nov 2016 06:26:25 +0000 (15:26 +0900)]
[4.0] Remove Profile Build Dependencies: do it at runtime

- This is for Tizen 4.0.

  : Tizen 4.0 Configurability and Build Blocks require
  to remove all profile-depending build options in spec files.
  (No More profile macros)

  : Because per-profile difference could be resolved in runtime
  in this package, the subpackaging has not become complex.

- The differences in binary size for non-TV profiels is about 2kiB.

Change-Id: I61cd193744cdf1976a18be700e77da62ef2b66c0
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoMerge remote-tracking branch 'origin/tizen_3.0' into tizen 05/109105/1
pr.jung [Mon, 9 Jan 2017 01:52:28 +0000 (10:52 +0900)]
Merge remote-tracking branch 'origin/tizen_3.0' into tizen

Change-Id: I4d4b60a6ffcba605dccb0af9cb8fac6c0a4c73d0
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoModify api document 53/108953/2
pr.jung [Fri, 6 Jan 2017 09:00:30 +0000 (18:00 +0900)]
Modify api document

Change-Id: Ie110607257e0bab7d4788fa5cf32adb15b51a439
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agopower: fix to deliver reboot parameter 16/108416/1 accepted/tizen/3.0/common/20170109.195441 accepted/tizen/3.0/ivi/20170105.231855 accepted/tizen/3.0/mobile/20170105.231802 accepted/tizen/3.0/tv/20170105.231820 accepted/tizen/3.0/wearable/20170105.231837 submit/tizen_3.0/20170105.022920
taeyoung [Wed, 4 Jan 2017 08:24:47 +0000 (17:24 +0900)]
power: fix to deliver reboot parameter

Previously, device_power_reboot() returns error
if reboot parameter is NULL. Thus it is fixed
by handling NULL input.

Change-Id: Idcb6a5f4d0b41803cd6d60c4ec2be185675f0e83
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen 06/107606/2 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20161229.140147 accepted/tizen/ivi/20161229.233205 accepted/tizen/mobile/20161229.233105 accepted/tizen/tv/20161229.233127 accepted/tizen/unified/20170309.031648 accepted/tizen/wearable/20161229.233146 submit/tizen/20161229.040631 submit/tizen_unified/20170308.100404
taeyoung [Thu, 29 Dec 2016 01:26:53 +0000 (10:26 +0900)]
Merge branch 'tizen_3.0' into tizen

Change-Id: I6b11abc7caccb7bc53a8172c5dc300ad0be827f2
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocommon: Add ProxyPool for dbus method call 24/106724/1 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.100232 accepted/tizen/3.0.m2/tv/20170104.100418 accepted/tizen/3.0.m2/wearable/20170104.101007 accepted/tizen/3.0/common/20161227.101336 accepted/tizen/3.0/ivi/20161226.025036 accepted/tizen/3.0/mobile/20161226.024944 accepted/tizen/3.0/tv/20161226.024959 accepted/tizen/3.0/wearable/20161226.025013 submit/tizen_3.0.m2/20170104.093748 submit/tizen_3.0/20161222.072356
pr.jung [Thu, 22 Dec 2016 13:09:14 +0000 (22:09 +0900)]
common: Add ProxyPool for dbus method call

- Reuse proxy for same destination and interface

Change-Id: I89a57e81afb0a7eb386067671704acd7d805550b
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoRevert "haptic: Do not check handle value on emulator" 94/106294/1
Jung [Wed, 21 Dec 2016 08:31:36 +0000 (00:31 -0800)]
Revert "haptic: Do not check handle value on emulator"

This reverts commit c070415ffb2959cf508cfdb7857a528498b13e2e.

Change-Id: I13f4346f3d3728ebda8f4e051599b80ac967d0a6

7 years agohaptic: Do not check handle value on emulator 63/106263/1
pr.jung [Wed, 21 Dec 2016 07:15:12 +0000 (16:15 +0900)]
haptic: Do not check handle value on emulator

- deviced-vibrator always returns same handle on Emulator

Change-Id: I27541c9e6776599e419a459a87d8679fe6075945
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoir: Return permission denied error for permission denied cases 96/105996/1 accepted/tizen/3.0/common/20161221.181146 accepted/tizen/3.0/ivi/20161221.010638 accepted/tizen/3.0/mobile/20161221.011046 accepted/tizen/3.0/tv/20161221.010517 accepted/tizen/3.0/wearable/20161221.010656 submit/tizen_3.0/20161220.072503
pr.jung [Tue, 20 Dec 2016 07:18:28 +0000 (16:18 +0900)]
ir: Return permission denied error for permission denied cases

Change-Id: I9eae094619dc06fd2dec0ef788bdc73b946860bb
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agohaptic: Guarantee device_handle validation when device-vibrator crashs. 88/101788/4 accepted/tizen/3.0/common/20161209.094930 accepted/tizen/3.0/ivi/20161209.002548 accepted/tizen/3.0/mobile/20161209.002515 accepted/tizen/3.0/tv/20161209.002528 accepted/tizen/3.0/wearable/20161209.002538 submit/tizen_3.0/20161208.091728
pr.jung [Fri, 2 Dec 2016 04:31:32 +0000 (13:31 +0900)]
haptic: Guarantee device_handle validation when device-vibrator crashs.

- Add InitiateVibrator signal handler
- Return pointer of handle structure instead of integer value for device_handle

Change-Id: I0fe08ebbd252c12e02afa50d3dbc4343296f97cc
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agopower: fix uninitilized variable issues 02/101002/1 accepted/tizen/3.0/common/20161201.135139 accepted/tizen/3.0/ivi/20161201.031526 accepted/tizen/3.0/mobile/20161201.031404 accepted/tizen/3.0/tv/20161201.031439 accepted/tizen/3.0/wearable/20161201.031503 submit/tizen_3.0/20161130.101437
taeyoung [Wed, 30 Nov 2016 05:22:35 +0000 (14:22 +0900)]
power: fix uninitilized variable issues

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

7 years agopower: launch popup for user to notice the battery comsumption 01/98601/3 accepted/tizen/3.0/common/20161123.140950 accepted/tizen/3.0/ivi/20161123.083949 accepted/tizen/3.0/mobile/20161123.083850 accepted/tizen/3.0/tv/20161123.083914 accepted/tizen/3.0/wearable/20161123.083932 submit/tizen_3.0/20161122.133614
taeyoung [Thu, 27 Oct 2016 04:37:06 +0000 (13:37 +0900)]
power: launch popup for user to notice the battery comsumption

- After timeout of the permanant power lock,
  capi-system-device asks to deviced whether or not
  the power lock needs to be released.

Change-Id: I8766280ef49b0f60ce81cd72e8b8e3f9c38ac8b2
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: add conf file to adjust power lock auto release timeout 00/98600/1 accepted/tizen/3.0/common/20161123.140537 accepted/tizen/3.0/ivi/20161123.082818 accepted/tizen/3.0/mobile/20161123.082728 accepted/tizen/3.0/tv/20161123.082742 accepted/tizen/3.0/wearable/20161123.082755 submit/tizen_3.0/20161121.105249
taeyoung [Thu, 29 Sep 2016 04:17:40 +0000 (13:17 +0900)]
power: add conf file to adjust power lock auto release timeout

- Power Lock Auto Release timeout can be changed
  while developing plarform by modifying the conf file.

Change-Id: I82d42980a1076a400cecd0b3894fadb92ef0e64f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: fix unused variable issue 99/98599/1
taeyoung [Wed, 12 Oct 2016 09:58:10 +0000 (18:58 +0900)]
power: fix unused variable issue

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

7 years agopower: fix unused variable issue 65/91965/1
taeyoung [Wed, 12 Oct 2016 09:58:10 +0000 (18:58 +0900)]
power: fix unused variable issue

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

7 years agoApply API Deprecation Policy 86/84686/2 accepted/tizen/3.0/common/20161114.105159 accepted/tizen/3.0/ivi/20161011.043833 accepted/tizen/3.0/mobile/20161015.032750 accepted/tizen/3.0/tv/20161016.004042 accepted/tizen/3.0/wearable/20161015.081936 accepted/tizen/common/20160822.132858 accepted/tizen/ivi/20160822.232647 accepted/tizen/mobile/20160822.232552 accepted/tizen/tv/20160822.232611 accepted/tizen/wearable/20160822.232627 submit/tizen/20160822.092002 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_tv/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
pr.jung [Mon, 22 Aug 2016 04:45:06 +0000 (13:45 +0900)]
Apply API Deprecation Policy

Change-Id: Id191385cfc6ef616c0f68465815a133ffcbb3579
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agocommon: remove unused battery codes 46/82646/2
taeyoung [Fri, 5 Aug 2016 00:42:26 +0000 (09:42 +0900)]
common: remove unused battery codes

- Old battery apis are not used any more.
  For the battery information, battery.h needs to be used.

Change-Id: Id6f23122824c0d327580c4e0f507d629c3afc9c8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocommon: remove unused codes 45/82645/2
taeyoung [Fri, 5 Aug 2016 00:35:14 +0000 (09:35 +0900)]
common: remove unused codes

- cpu related apis exists in capi-system-runtime-info.
  capi-system-device does not support them anymore.

Change-Id: Ied7e6b9f41857c305cd7e17cd3683518d3f2918b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: remove power lock auto release feature with TV profile 26/82826/1 accepted/tizen/common/20160808.121143 accepted/tizen/ivi/20160809.011521 accepted/tizen/mobile/20160809.011442 accepted/tizen/tv/20160809.011450 accepted/tizen/wearable/20160809.011506 submit/tizen/20160808.034410
taeyoung [Mon, 8 Aug 2016 02:54:36 +0000 (11:54 +0900)]
power: remove power lock auto release feature with TV profile

- TV profile does not have the libtracker, and build problems
  can be occurred with TV. Thus power lock auto release feature
  which is related with libtracker is disabled with TV.

Change-Id: I7c71ed715728dae214299651fd6bff7ef0d5a308
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: add padding timer to power lock 58/59358/4 accepted/tizen/common/20160804.174407 accepted/tizen/ivi/20160804.081139 accepted/tizen/mobile/20160804.081210 accepted/tizen/tv/20160804.081102 accepted/tizen/wearable/20160804.081123 submit/tizen/20160803.081834
Taeyoung Kim [Mon, 15 Feb 2016 04:29:07 +0000 (13:29 +0900)]
power: add padding timer to power lock

- If Power Lock timeout (10 minutes) is expired during apps do
  something with reference count 0 for very short time,
  Power Lock will be released. Thus Suspend mode can be entered.

 (Problem example)
==============================================================
Time  |  Music player  |  device-power       | libtracker
==============================================================
00:00    power lock       power lock
                          add timer
         play start                             ref count:1
--------------------------------------------------------------
09:50    play stop                              ref count:0
         search music
--------------------------------------------------------------
10:00                     timer expired
                          check ref count (== 0)
                            -> power unlock
--------------------------------------------------------------
10:10    search done
         play start                             ref count:1
--------------------------------------------------------------
 After
  few                < Power Suspend Mode >
minutes
==============================================================

- To fix the issue, power lock api uses the padding timeout
  whose callback is called after 20 seconds of power lock timeout.
  Apps can do something without increasing reference count.
  If the ref count is still 0 after 20 seconds, the Power Lock
  will be released.

- If the ref count is changed during 20 seconds but the value is
  still 0, Power Lock should not be released. Thus libtracker
  supports the total reference count which means the accumulated
  ref count. Thus The accumulated ref count is checked if the
  ref count is still 0.

Change-Id: I307fbda4313d14fec2a4a31640096020c3c21485
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: add timeout not to permit permanent power lock 00/57700/6
Taeyoung Kim [Fri, 22 Jan 2016 00:28:10 +0000 (09:28 +0900)]
power: add timeout not to permit permanent power lock

- If an app requests permanent power lock and does not
  release the powr lock, power comsumption will be increased
  dramatically. This is not good for the platform.

- Now, a timeout is added not to permit permanent power lock.
  Even if an app requests permanent power lock, the api
  adds timeout with maximum lock time (currently 10 minutes)
  internally. If the timeout is expired, the permanent power
  lock is released.

- Only the way to keep the power lock is to use the platform
  apis which use power lock internally. For example, if an
  app plays music using MM apis, the power lock will be kept
  sinc the MM apis request power lock internally.

Change-Id: I3f11df904f61f720081e5ab63e4e4da130dc85dc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
7 years agodisplay: change printf to dlog_print 87/81387/1
taeyoung [Tue, 26 Jul 2016 02:22:14 +0000 (11:22 +0900)]
display: change printf to dlog_print

- dlog is used for the logging system of the Tizen.
  Thus printf is changed to dlog

Change-Id: I9587dbe98d6651c2650794984c5825069e54243a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: hide display dim state on TV profile 02/68402/2
Taeyoung Kim [Wed, 4 May 2016 03:00:18 +0000 (12:00 +0900)]
display: hide display dim state on TV profile

- TV profile does not support dim state of display.
  Thus doxygen is updated not to show dim state
  on TV profile.

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