platform/core/api/device.git
20 months agopower: rename callback function 30/280030/1 tizen_6.5
Youngjae Cho [Mon, 22 Aug 2022 07:52:33 +0000 (16:52 +0900)]
power: rename callback function

Change-Id: I72707a9c62b9fbddeb3f03de986b34279c0a8dc9
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 4fb8b1f6309602e13f1f51042495a4b23bbdcb64)

20 months agopower: elaborate description 05/280005/1
Youngjae Cho [Mon, 18 Jul 2022 05:43:31 +0000 (14:43 +0900)]
power: elaborate description

Change-Id: I485b6da54b51ba9e8e1bb79d8e56a88dfb324d02
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 37e6821b51d294f2ee2e38fa0af4e4a448605afa)

21 months agopower: add getter for the deviced power state 95/277695/1
Youngjae Cho [Tue, 12 Jul 2022 01:23:56 +0000 (10:23 +0900)]
power: add getter for the deviced power state

Change-Id: I6fd3aff0d211df954d0ec1c7505e979eef5cfd07
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit db2fd6133ebba7c3c2c59fabc2ed099579263355)

22 months agoAdd new API to use hal-board API 09/277409/1 accepted/tizen_6.5_unified accepted/tizen/6.5/unified/20220713.144322 submit/tizen_6.5/20220712.050119
SangYoun Kwak [Wed, 6 Jul 2022 04:26:55 +0000 (13:26 +0900)]
Add new API to use hal-board API

Change-Id: Ia71b461ebb1b31f51ef058776e71d85581a19793
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
(cherry picked from commit bc5292ffbee4e40cdc59be647d71569b9f140598)

22 months agopower: fix memory leak 88/276588/1 accepted/tizen/6.5/unified/20220626.224902 submit/tizen_6.5/20220624.005239
Youngjae Cho [Tue, 21 Jun 2022 09:17:02 +0000 (18:17 +0900)]
power: fix memory leak

Change-Id: Iafed41769cc4a1fa4d63ead83145f032820516c4
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit b91af6ec60a5eab6adae3fbe44a7e96ff607b9d1)

22 months agopower: move #include into a source code 98/276398/1
Youngjae Cho [Thu, 16 Jun 2022 03:59:54 +0000 (12:59 +0900)]
power: move #include into a source code

A header can be used by other packages and their environment variable
for locating header files cannot locate hal/device/hal-board.h, which
makes No such file or directory error. To address this, hide the
include into source code and only exposes declaration through header.

Change-Id: I3f5c310dcf8f5fa1306fe2551d15d86caf68ba4d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 355b5f6abccd7ec168bbf7d19e68126947b9ab73)

22 months agopower: change order of signal subscription 84/276384/1
Youngjae Cho [Wed, 15 Jun 2022 05:16:57 +0000 (14:16 +0900)]
power: change order of signal subscription

Subscribe signal after calling AddChangeStateWait dbus method. It
prevents signal subscription when the dbus methods fail.

Change-Id: Ie194db05dbad5e784a6e4c3c211b8b45acc178b0
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 671eb4cd9e079eabb3f88460565a3f023dd21b82)

22 months agocallback: allow additional internal types 14/276314/1
Youngjae Cho [Tue, 14 Jun 2022 04:58:11 +0000 (13:58 +0900)]
callback: allow additional internal types

Change-Id: I48d987304887fc36cf071c5aaed4fcb72ea9b3f4
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 93d9f91c26d25dd928c3c96a96b53aef9bfb20cf)

22 months agopower: prevent poweroff if partition cloning is in progress 02/276302/1
Youngjae Cho [Tue, 14 Jun 2022 05:34:18 +0000 (14:34 +0900)]
power: prevent poweroff if partition cloning is in progress

Change-Id: Ib280523ff8ffd248d6aea7b2ecb324dc0990ae5b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 49dbce56deddd42bf2b23af710c17be9e1a0961f)

23 months agopower: add device_power_change_state() 47/275747/1 accepted/tizen/6.5/unified/20220602.131851 submit/tizen_6.5/20220531.085836
Youngjae Cho [Tue, 31 May 2022 05:03:30 +0000 (14:03 +0900)]
power: add device_power_change_state()

The API, device_power_change_state(), send a request to deviced for
changing power state. It simply sends request and receives result of
the request. If the changed state is sleep/poweroff/reboot, then the
ongoing async callback might be ceased. To ensure the whole execution
of subroutine, use device_power_add_change_state_wait_callback().

Change-Id: Id7479a08d56505a0bc6bfba3e9971cb635e1276e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit f7474d115c92f18bd1f447414620aef428258431)

23 months agopower: rename typedef of callback 12/275712/1
Youngjae Cho [Tue, 31 May 2022 00:36:29 +0000 (09:36 +0900)]
power: rename typedef of callback

 - change_state_callback -> change_state_wait_callback

Change-Id: I7a21f4e716af474e6de4236bc92718c52d767527
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit b660609f30ff82224e35d95244249af5a1b20600)

23 months agopower-internal: add new state POWER_STATE_EXIT 74/275674/1
Youngjae Cho [Thu, 19 May 2022 02:22:02 +0000 (11:22 +0900)]
power-internal: add new state POWER_STATE_EXIT

Change-Id: Idbc9ea3c9608f27651fa39dc6f252c1091a8ad06
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 71129f43d8359c0084cc165bfb63271becbaa805)

2 years agoModify "int len" parameter to "const int max_len" 41/274641/1
SangYoun Kwak [Wed, 4 May 2022 05:32:33 +0000 (14:32 +0900)]
Modify "int len" parameter to "const int max_len"

Change-Id: Id55314a32b903bc93ebb67cd0b5f3751289a9123
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
(cherry picked from commit defc6ab7d12b5ff4bcc4d1f79e44b64ea63840e7)

2 years agoAdd new API to use hal-board API 31/274631/1
SangYoun Kwak [Tue, 3 May 2022 08:36:53 +0000 (17:36 +0900)]
Add new API to use hal-board API

Change-Id: Ib1d2ebe9d489791187fb468f26815176e9ddfa34
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
(cherry picked from commit 802cb570fc4f3c4e3787bfa5c3159e19892d1ee1)

2 years agoAdd new API to use hal-board API 89/274589/1
SangYoun Kwak [Tue, 3 May 2022 02:25:49 +0000 (11:25 +0900)]
Add new API to use hal-board API

Change-Id: I219493924149aba42242b348888917c64a1b196b
Signed-off-by: SangYoun Kwak <sy.kwak@samsung.com>
2 years agousb-gadget: rename ane rearrange enum 41/274541/1 accepted/tizen/6.5/unified/20220505.134848 submit/tizen_6.5/20220502.091732
Youngjae Cho [Thu, 14 Apr 2022 05:08:39 +0000 (14:08 +0900)]
usb-gadget: rename ane rearrange enum

Removed unused usb-gadget functions, DM and CONN_GADGET.

Change-Id: Ibd8c5fdc18901dd52b489e05731ed03bc3e7d8ce
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit f729f67c340ad1a5c293020f6bfef2a1c02dd0b8)

2 years agousb-gadget: relocate declarations of enum 00/273800/1 accepted/tizen/6.5/unified/20220418.141324 submit/tizen_6.5/20220415.045405
Youngjae Cho [Thu, 14 Apr 2022 02:13:46 +0000 (11:13 +0900)]
usb-gadget: relocate declarations of enum

Move USB_FUNCTION_IDX_* from hal-api-device to deviced.
Move USB_FUNCTION_* from hal-api-device to capi-system-device.

Change-Id: Ia595e8e5c9fb73a7b108f0c1c850e9268e73ae48
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 826a5286ce745617e757d175f1b7fd32d13e17be)

2 years agoboard: replace get_reboot_mode() to get_boot_mode() 55/272455/1 accepted/tizen/6.5/unified/20220321.141239 submit/tizen_6.5/20220317.053139
Youngjae Cho [Mon, 14 Mar 2022 03:10:44 +0000 (12:10 +0900)]
board: replace get_reboot_mode() to get_boot_mode()

Change-Id: I600e6c036fbf2bedb79cdfaf2f46889ac835e4fe
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 4fb49b5678d30da427f1f87ac7c298c8e0728cbf)

2 years agodisplay: complement description for brightness API 32/271932/1 accepted/tizen/6.5/unified/20220314.125425 submit/tizen_6.5/20220308.032730 submit/tizen_6.5/20220311.031819
Youngjae Cho [Thu, 3 Mar 2022 07:57:13 +0000 (16:57 +0900)]
display: complement description for brightness API

Change-Id: Ibd53f488e3d6333b87e39cedca55e8dca4026496
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agodisplay: check replied return of dbus method call 40/270640/1 accepted/tizen/6.5/unified/20220212.065136 submit/tizen_6.5/20220208.052648
Youngjae Cho [Mon, 7 Feb 2022 06:34:07 +0000 (15:34 +0900)]
display: check replied return of dbus method call

Change-Id: I3a33463fa4187bb21854321849113f9b1b2edc2d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 22e017d9475d18e1bd4b1b22f862ee06b3bcc709)

2 years agoAdd errno to device-error mapping for ENOTSUP 39/270639/1
Youngjae Cho [Mon, 7 Feb 2022 04:17:02 +0000 (13:17 +0900)]
Add errno to device-error mapping for ENOTSUP

Change-Id: I43d470a61053b0ce1284ca45b4cb2251d51398ad
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit b7ac840ffd44ccfc7921e0cc967d08859bdab1b4)

2 years agoChange gcov object install path 27/270227/1 accepted/tizen/6.5/unified/20220128.144307 submit/tizen_6.5/20220127.012127 submit/tizen_6.5/20220127.090334
Youngjae Cho [Wed, 26 Jan 2022 05:31:22 +0000 (21:31 -0800)]
Change gcov object install path

Change-Id: Ibdaf312c27db473db4d646f0276c66d1a2ff9dba
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoAdd extern C macro for C++ 64/269664/1
Hyotaek Shim [Thu, 20 Jan 2022 02:22:06 +0000 (11:22 +0900)]
Add extern C macro for C++

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

2 years agoboard: add device_board_get_boot_reason() 00/269200/1 accepted/tizen/6.5/unified/20220117.134914 submit/tizen_6.5/20220112.015623 submit/tizen_6.5/20220113.004754
Youngjae Cho [Tue, 11 Jan 2022 08:03:31 +0000 (00:03 -0800)]
board: add device_board_get_boot_reason()

Change-Id: Ifb1cbf35a444fcafdea9a5ff19b5338f6de68e02
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 605779084c833e392b1770d31c0dfbe48802806e)

2 years agopower: initialize local GError 46/269146/1
Youngjae Cho [Mon, 10 Jan 2022 10:21:47 +0000 (19:21 +0900)]
power: initialize local GError

Change-Id: I6b6bbba478be5a923ed2dc44f063cfdce9a871a0
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 799bbaba0ac6f47237f0c4089d730d34c9c08b5d)

2 years agopower: add device_power_change_state_wait_done() 41/269141/1
Youngjae Cho [Mon, 10 Jan 2022 07:14:19 +0000 (16:14 +0900)]
power: add device_power_change_state_wait_done()

The api device_power_add_change_state_wait_callback() now shall reply
to the deviced that it is ready to sleep. The struct device_event_info
now contains an additional information, uint64_t id, which is used by
device_power_change_state_wait_done(). The callback should store the id
and call device_power_change_state_wait_done() with the id.

Change-Id: I9d399cda46a0d1029439b9b66fc586aa1318fbc9
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit ce0ba6532a4f12a62291fc68989d483976d7154c)

2 years agopower: add state POWER_STATE_START 07/269107/1
Youngjae Cho [Fri, 7 Jan 2022 05:16:12 +0000 (14:16 +0900)]
power: add state POWER_STATE_START

POWER_STATE_START is the initial power state of deviced.

Change-Id: I841236237e1c765525ca3046de58d04c49d31ff8
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 6c7db7c9de273d907cbe47737b27c26d943e9733)

2 years agopower: apply wait callback mechanism to all state transitions 49/268049/1
Youngjae Cho [Tue, 14 Dec 2021 06:38:45 +0000 (15:38 +0900)]
power: apply wait callback mechanism to all state transitions

Change-Id: I09f2d72e3b0d49f775ed9087641cfe71f0ba424d
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 92c421f3c06b5825d3c3513c792705bf7b35a009)

2 years agocallback: add callback for key input signal 21/267821/1 accepted/tizen/6.5/unified/20211213.212349 submit/tizen_6.5/20211210.062902
Youngjae Cho [Fri, 10 Dec 2021 03:58:38 +0000 (12:58 +0900)]
callback: add callback for key input signal

Key callback is exclusive for a specific target. Therefore, manages
regarding key enums using device_callback_internal_e, which ranges from
1000 to 1100.

Change-Id: I1f7b60e48407d379c6cdf1af4d18e14b1b9f7155
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit c4febcb832b4eaf9e26cf3079d6f6d7d329b3f78)

2 years agopower: rename sleep-wait add/remove function 19/267819/1
Youngjae Cho [Fri, 10 Dec 2021 05:54:57 +0000 (14:54 +0900)]
power: rename sleep-wait add/remove function

Change the name to
 - device_power_add_sleep_wait_callback
 - device_power_remove_sleep_wait_callback

Change-Id: I596288e27fc3bd1b977a28a7df8dc2239ffac056
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 070acd325252b7909672ab82e8050a3281524871)

2 years agopower: fix sleep/wakeup dbus signal handler 36/267736/1
Youngjae Cho [Thu, 9 Dec 2021 06:42:46 +0000 (15:42 +0900)]
power: fix sleep/wakeup dbus signal handler

Now sleep/wakeup callback is invoked by dbus signal "ChangeState".
The signal param contains type(0:sleep, 1:wakeup) as well as reason.

Change-Id: I63dbb9c1f2ee3dfb6557d5ce1e5f1d322d976292
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 2d58f6ba5fa3c845b073601b6a27fb68d366e037)

2 years agopower: add signal handler for wakeup signal 35/267735/1
Youngjae Cho [Fri, 19 Nov 2021 08:54:01 +0000 (17:54 +0900)]
power: add signal handler for wakeup signal

Change-Id: If8c314fe656edced7042c827b81455a41af2cbf3
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit b4653adfa82567135d5c1eee35b1bf92bb525e96)

2 years agopower: change return value of cpulock/unlock 77/267577/1 accepted/tizen/6.5/unified/20211208.210714 submit/tizen_6.5/20211207.085925
Youngjae Cho [Tue, 7 Dec 2021 08:55:28 +0000 (17:55 +0900)]
power: change return value of cpulock/unlock

C# TCT expects DEVICE_ERROR_NONE for not supported feature.

Change-Id: I8e1d2f5f34e297e13a4fd05b1cf60c182d537771
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agopower: disable CPU lock/unlock on iot-headless 82/267482/1 submit/tizen_6.5/20211206.061419 submit/tizen_6.5/20211207.004049
Youngjae Cho [Mon, 6 Dec 2021 06:01:51 +0000 (15:01 +0900)]
power: disable CPU lock/unlock on iot-headless

Change-Id: Idd2cf460012f7bfab2ef8c9c649a54d1d1b50471
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agopower: add internal function for deferring sleep 35/266835/1 accepted/tizen/6.5/unified/20211122.213340 submit/tizen_6.5/20211119.093745
Youngjae Cho [Thu, 18 Nov 2021 04:14:51 +0000 (13:14 +0900)]
power: add internal function for deferring sleep

Someone who wants to defer sleep can now request for deferring sleep to
system using device_power_add_sleep_callback(). The callback is invoked
when the system is going to sleep. Do your todo list for sleep in this
callback, and return DEVICE_SLEEP_READY, which notifies the system you
are ready to sleep.

Change-Id: I5dfbe60abbfaa30991124cfd5eea243f85a80d02
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
(cherry picked from commit 7d851ddb5d84b1a24255906a301b71ea7350b811)

2 years agoMerge branch 'tizen' into tizen_6.5 33/265733/1 accepted/tizen/6.5/unified/20211109.041725 submit/tizen_6.5/20211108.015012
Youngjae Cho [Thu, 28 Oct 2021 02:00:55 +0000 (19:00 -0700)]
Merge branch 'tizen' into tizen_6.5

Change-Id: I0bb51d8bb356950cd5c035bdc860eedad5e6b6a6

2 years agopower: support cpu lock/unlock for headless 70/264470/3 accepted/tizen/unified/20211105.130457 submit/tizen/20211103.072537 submit/tizen/20211104.031932 submit/tizen/20211104.080231
Youngjae Cho [Thu, 23 Sep 2021 00:49:44 +0000 (17:49 -0700)]
power: support cpu lock/unlock for headless

Change-Id: Ic1ecf15ee3a6f5b5de17f438b094a847ae4e875b
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoFix description on device_battery_property_e 06/262106/2 accepted/tizen/6.5/unified/20211028.094232 accepted/tizen/unified/20210809.125009 submit/tizen/20210805.103313 submit/tizen/20210809.024445 submit/tizen_6.5/20211028.161701 tizen_6.5.m2_release
Hyotaek Shim [Tue, 3 Aug 2021 02:49:48 +0000 (11:49 +0900)]
Fix description on device_battery_property_e

Change-Id: Iae6f04133632967e7412b9cbc6fa12f6730d2b76
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agotemperature: adopt direct hal api 56/262056/1 accepted/tizen/unified/20210804.085711 submit/tizen/20210802.064402
Youngjae Cho [Mon, 2 Aug 2021 05:55:23 +0000 (14:55 +0900)]
temperature: adopt direct hal api

Change-Id: I8e6d654a57895a327930f9dd966c830c76e7de9e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoFix warning of converting pointer from integer 71/261871/1
Youngjae Cho [Wed, 28 Jul 2021 05:10:32 +0000 (14:10 +0900)]
Fix warning of converting pointer from integer

warning: cast to pointer from integer of different size
The above warning is only generated in 64bit compile environment.

Change-Id: Idffb00ec61ac9029f94ceca14c13882b7ac33fdf
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoAdd description on device_battery_property_e 08/261608/3 accepted/tizen/unified/20210727.124532 submit/tizen/20210726.050348
Hyotaek Shim [Thu, 22 Jul 2021 05:22:34 +0000 (14:22 +0900)]
Add description on device_battery_property_e

Change-Id: I4769e5c5db34fa4aed81720db7e1262884880f12
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
2 years agocallback: check feature before add/remove callback 85/260685/2 submit/tizen/20210701.065306 submit/tizen/20210719.034923
Youngjae Cho [Thu, 1 Jul 2021 05:36:12 +0000 (14:36 +0900)]
callback: check feature before add/remove callback

Change-Id: Id9ab9c9d68a54bcba444606ba7c62f46cc2c6d4c
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
2 years agoAdd board-internal to get serial number 69/259769/4 accepted/tizen/unified/20210621.123245 submit/tizen/20210618.075427
Youngjae Cho [Mon, 14 Jun 2021 02:46:12 +0000 (11:46 +0900)]
Add board-internal to get serial number

Change-Id: I97e25f8fabc30fd5b4e26ec371b16430c57107d9
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoFix typo 05/256305/1
Youngjae Cho [Thu, 1 Apr 2021 04:39:55 +0000 (13:39 +0900)]
Fix typo

Change-Id: Ib8bdedf432e863081dc92a86fba33b3ae3153606
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoChange dbus function name 67/255567/1 accepted/tizen/unified/20210321.225742 submit/tizen/20210319.090004
taemin.yeom [Fri, 19 Mar 2021 07:52:33 +0000 (16:52 +0900)]
Change dbus function name

Change-Id: Ifc85b487582dc18914ebb76a9d64ea09a30be16d
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoImprove variable naming style 25/255125/6 accepted/tizen/unified/20210317.120006 submit/tizen/20210315.085912
taemin.yeom [Fri, 12 Mar 2021 08:35:54 +0000 (17:35 +0900)]
Improve variable naming style

Change-Id: I04a989d5ebd9b50ede2352df195707dd84c8d3b2
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoApply libsyscommon gdbus api improvement on error handling 06/254606/2 accepted/tizen/unified/20210310.145008 submit/tizen/20210309.090957
taemin.yeom [Fri, 5 Mar 2021 06:55:01 +0000 (15:55 +0900)]
Apply libsyscommon gdbus api improvement on error handling

Change-Id: Ie150902e176ec89362920ce6903a9280056a8c5f
Signed-off-by: taemin.yeom <taemin.yeom@samsung.com>
3 years agoAdd display feature for headless profile 31/254131/5 accepted/tizen/unified/20210225.130511 submit/tizen/20210224.093227
lokilee73 [Wed, 24 Feb 2021 01:59:18 +0000 (10:59 +0900)]
Add display feature for headless profile

Return DEVICE_ERROR_NOT_SUPPORTED about below API
ex) device_power_request_lock
    device_power_release_lock

Change-Id: I119e3a8839c8986af81257202545abc14e2438ec
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoChange function name and location 56/253756/5 accepted/tizen/unified/20210219.041145 submit/tizen/20210218.015647
lokilee73 [Wed, 17 Feb 2021 09:03:30 +0000 (18:03 +0900)]
Change function name and location

ex)
1. function name
   is_display_state_supported -> is_feature_display_state_supported
   is_display_supported -> is_feature_display_supported
2. location
   common.c -> display.c

Change-Id: I0fc050b244858e4d3b3ffcc02b6455af51cdecfa
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoAdd comments for line coverage 42/253542/4
lokilee73 [Mon, 15 Feb 2021 07:23:18 +0000 (16:23 +0900)]
Add comments for line coverage

Change-Id: If5658a2478d341631749b5338d58e83701d8932d
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agobattery: fix usage of hal api 80/252780/1 accepted/tizen/unified/20210204.134646 submit/tizen/20210203.015309
Yunmi Ha [Tue, 2 Feb 2021 07:55:11 +0000 (16:55 +0900)]
battery: fix usage of hal api

Change-Id: I7492e3fc58ffe150450ff8ad70a0bd2b09783df4
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoUse device_battery_get_info_direct 75/252175/4 accepted/tizen/unified/20210129.002304 submit/tizen/20210126.055732 submit/tizen/20210126.064541 submit/tizen/20210126.081759 submit/tizen/20210127.032903
lokilee73 [Mon, 25 Jan 2021 07:06:16 +0000 (16:06 +0900)]
Use device_battery_get_info_direct

Change-Id: I387f39d1ba792e9c79aae75abc12cf498652bd34
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoApply next HAL architecture (device_battery_get_info_direct) 73/251873/1
Yunmi Ha [Wed, 20 Jan 2021 07:41:29 +0000 (16:41 +0900)]
Apply next HAL architecture (device_battery_get_info_direct)

Change-Id: I8501f3f3ffbcce78f76a0fd4b99d3901a30c5bee
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoChange return value for -ENOTSUP, -ENODEV and -ENOENT 16/251116/3
lokilee73 [Fri, 8 Jan 2021 07:56:28 +0000 (16:56 +0900)]
Change return value for -ENOTSUP, -ENODEV and -ENOENT

DEVICE_ERROR_NOT_SUPPORTED must be returned only when feature is not defined.
So, change return value to DEVICE_ERROR_OPERATION_FAILED.

Change-Id: Id4876d34e63c55d666458f58fef95c24eb77026f
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoChange prefix of list definition 73/250973/2 accepted/tizen/unified/20210111.125507 submit/tizen/20210108.041937
Yunmi Ha [Wed, 6 Jan 2021 07:48:36 +0000 (16:48 +0900)]
Change prefix of list definition

- list to SYS_G_LIST

Change-Id: I293acdeb5f475e477d088573e61fb2f538f568c3
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoUse libsyscommon for list and ini-parser 98/250898/2
Yunmi Ha [Tue, 5 Jan 2021 08:53:49 +0000 (17:53 +0900)]
Use libsyscommon for list and ini-parser

Change-Id: I1d0f41b21ecac551962dca3bec702a4d9cf59441
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
3 years agoAdd internal api for power off 77/250377/4 accepted/tizen/unified/20201228.130118 submit/tizen/20201224.060832
lokilee73 [Thu, 24 Dec 2020 04:08:55 +0000 (13:08 +0900)]
Add internal api for power off

Change-Id: I85be084f3b566c68ea44593a757bd664a08bbc3b
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoRemove unnecessary HTML link for privilege 04/249804/1
lokilee73 [Thu, 17 Dec 2020 01:06:52 +0000 (10:06 +0900)]
Remove unnecessary HTML link for privilege

Change-Id: I9177889ff54d84ea49889a85eaa35f4dbe6186cb
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoChange system error to device error code 15/247815/2 accepted/tizen/unified/20201118.123921 submit/tizen/20201118.023711
Yunmi Ha [Tue, 17 Nov 2020 07:12:57 +0000 (16:12 +0900)]
Change system error to device error code

Change-Id: I4a33afe41699a1aeb76821bcf234ab2e56f8676d
Signed-off-by: Yunmi Ha <yunmi.ha@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoUse libsyscommon 70/243070/12 accepted/tizen/unified/20201106.130151 submit/tizen/20201103.015640 submit/tizen/20201104.011652
Youngjae Cho [Thu, 3 Sep 2020 03:19:41 +0000 (12:19 +0900)]
Use libsyscommon

To eliminate dbus proxy in device api, use libsyscommon instead.

Change-Id: I43c2c2c14278d20dc97b106842d3b536c0eb840a
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoChange comments 33/245333/1
lokilee73 [Wed, 7 Oct 2020 07:53:38 +0000 (16:53 +0900)]
Change comments

Change-Id: I5a45a46a27203ffdf0d020f878773590af3257a0
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
(cherry picked from commit bb139aa4fe99c5ba112d9c9a89894b28c941b799)

3 years agoAdd remarks for DISPLAY_STATE_SCREEN_DIM and POWER_LOCK_DISPLAY_DIM 23/245323/1
lokilee73 [Tue, 6 Oct 2020 09:11:14 +0000 (18:11 +0900)]
Add remarks for DISPLAY_STATE_SCREEN_DIM and POWER_LOCK_DISPLAY_DIM

Change-Id: I488a385f50ecc495dcbfba138e6641bddb3ae63a
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
(cherry picked from commit 4c9e1fdc3826b235465b9ff1a2ee8a7244689ce3)

3 years agoApply check_async_call_rate to each function 64/244764/4
lokilee73 [Thu, 24 Sep 2020 05:09:54 +0000 (14:09 +0900)]
Apply check_async_call_rate to each function

Currently, check_async_call_rate is applied to power and display.
If power related api is blocked, display related api is blocked as well.
So, devide them.

Change-Id: I7132448f2aaf29fe26fcd1c4f3e7f7d421732fd6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
3 years agoFix to use g_free() instead of free() 03/244703/1
Youngjae Cho [Wed, 23 Sep 2020 08:57:50 +0000 (17:57 +0900)]
Fix to use g_free() instead of free()

Memory allocated by g_malloc(and such as g_new()) should be matched with
g_free().

Change-Id: Iafc9f5c29ed9d120d312df681f6125e80bc5fbb6
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
3 years agoFix check_async_call_rate() 62/244662/5
Hyotaek Shim [Wed, 23 Sep 2020 05:00:50 +0000 (14:00 +0900)]
Fix check_async_call_rate()

This is to prevent a broken pair of lock/release by check_async_call_rate()
Do not invoke device_power_release_lock(type) unless the type is locked.

Change-Id: I4cb8517fd5abce72ba0b9c405434706f64db10b9
Signed-off-by: Hyotaek Shim <hyotaek.shim@samsung.com>
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>