platform/core/system/deviced.git
7 years agoblock: Modify mkdir mode option 06/110106/1
pr.jung [Fri, 13 Jan 2017 02:41:47 +0000 (11:41 +0900)]
block: Modify mkdir mode option

- 644 -> 0755

Change-Id: I90b1b910dfc56c8711730fe307cc18fd2ec51165
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agonotification : change add_notification to send a few parameters 97/109897/1 accepted/tizen/3.0/common/20170113.072401 accepted/tizen/3.0/ivi/20170113.001247 accepted/tizen/3.0/mobile/20170113.001204 accepted/tizen/3.0/tv/20170113.001217 accepted/tizen/3.0/wearable/20170113.001232 submit/tizen_3.0/20170112.092741
lokilee73 [Thu, 12 Jan 2017 07:05:06 +0000 (16:05 +0900)]
notification : change add_notification to send a few parameters

when notification is sent, we sometimes need to send a few parameters. for example, int, char, string and so on.
So, add_notification is modified to consider those cases.

Change-Id: Ie191e29bddcb39e0eada395a8c6542a53aae1468
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agothermal: add legacy signal for thermal state 48/109848/1
taeyoung [Thu, 12 Jan 2017 04:19:17 +0000 (13:19 +0900)]
thermal: add legacy signal for thermal state

Tizen 2.4 broadcasted a dbus signal for other apps
to know the thermal state. Thus the signal needs
to be applied to Tizen 3.0.

The signal is just for legacy uses, and tizen 3.0
needs to add new signal for new thermal module.

Change-Id: Ib1b947aabb30c434930ff88f45d41b6601183707
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoblock: Remove useless code 60/108960/1
pr.jung [Fri, 6 Jan 2017 09:17:25 +0000 (18:17 +0900)]
block: Remove useless code

Change-Id: I80a2986f7ff19f8d33e78bef16080148d6d2e9a7
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agokey-fileter: turn off by power key when display on 07/107807/1
Jeong Donghwan [Fri, 30 Dec 2016 04:27:41 +0000 (13:27 +0900)]
key-fileter: turn off by power key when display on

It need necessary check power key logic. The device should be
turn off by power key when display state was on.

Change-Id: I2ac36e752394404e3b069084b21015883b1e3772
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agoblock: Not support extended partition 59/107459/1
pr.jung [Wed, 28 Dec 2016 06:45:32 +0000 (15:45 +0900)]
block: Not support extended partition

Change-Id: I409ad0bffc7595f0c37a429db9a7c1b9c8ac5668
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoblock: Remove mount_point when mount operation is failed 58/107458/1
pr.jung [Wed, 28 Dec 2016 06:44:29 +0000 (15:44 +0900)]
block: Remove mount_point when mount operation is failed

- ex. ntfs filesystem
- Modify /run/external-storage/id file.

Change-Id: I0e49f0fad81b91d142333734d9470cfbd7405ad2
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agodisplay: remove dpms get operation during dpms setting 57/107257/2 accepted/tizen_3.0.m2_mobile accepted/tizen_3.0.m2_tv accepted/tizen_3.0.m2_wearable tizen_3.0.m2 accepted/tizen/3.0.m2/mobile/20170104.141623 accepted/tizen/3.0.m2/tv/20170104.142102 accepted/tizen/3.0.m2/wearable/20170104.142353 accepted/tizen/3.0/common/20161228.071713 accepted/tizen/3.0/ivi/20161228.022400 accepted/tizen/3.0/mobile/20161228.022309 accepted/tizen/3.0/tv/20161228.022324 accepted/tizen/3.0/wearable/20161228.022340 submit/tizen_3.0.m2/20170104.093751 submit/tizen_3.0/20161227.120351
taeyoung [Tue, 27 Dec 2016 08:45:38 +0000 (17:45 +0900)]
display: remove dpms get operation during dpms setting

dpms setting is async function. So, dpms get function
will return failure if is is called just after dpms setting.
Thus dpms get function is removed from the dpms setting operation.

Change-Id: I6930bcb1397c703c723b439fc75ed1e370b5626e
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: apply display HAL for dpms related operations 40/106040/2
taeyoung [Tue, 20 Dec 2016 07:09:38 +0000 (16:09 +0900)]
display: apply display HAL for dpms related operations

Default dpms operations of wayland are handled by dbus methods.
But dbus methods take too much time, and thus they need to be
moved to HAL for product customizing.

Change-Id: Ifa813151b76b70b4c2a68490a2187ef978ff1b43
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agobattery: add feature for batterh temperature 47/107047/1 accepted/tizen/3.0/common/20161227.102103 accepted/tizen/3.0/ivi/20161227.010645 accepted/tizen/3.0/mobile/20161227.010548 accepted/tizen/3.0/tv/20161227.010605 accepted/tizen/3.0/wearable/20161227.010620 submit/tizen_3.0/20161226.083127
taeyoung [Mon, 26 Dec 2016 08:18:35 +0000 (17:18 +0900)]
battery: add feature for batterh temperature

The feature enables battery high/low temperature scenarios.

Change-Id: I6c69f802e3e9573564e6436f2a815ed59c9ea753
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "display: remove unused variables" into tizen_3.0
taeyoung [Mon, 26 Dec 2016 06:52:56 +0000 (22:52 -0800)]
Merge "display: remove unused variables" into tizen_3.0

7 years agoMerge "battery: remove battery error popups if health is good" into tizen_3.0
taeyoung [Mon, 26 Dec 2016 06:52:49 +0000 (22:52 -0800)]
Merge "battery: remove battery error popups if health is good" into tizen_3.0

7 years agoMerge "prevent multiple lowbat or critical popup" into tizen_3.0
lokilee73 [Mon, 26 Dec 2016 06:49:56 +0000 (22:49 -0800)]
Merge "prevent multiple lowbat or critical popup" into tizen_3.0

7 years agoprevent multiple lowbat or critical popup 03/107003/4 submit/tizen_3.0/20161226.065129
lokilee73 [Mon, 26 Dec 2016 06:26:44 +0000 (15:26 +0900)]
prevent multiple lowbat or critical popup

Change-Id: I1ecd41d2f68e640d4ac283bdafac114d81acacf6
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agodisplay: remove unused variables 09/107009/2
taeyoung [Mon, 26 Dec 2016 06:31:45 +0000 (15:31 +0900)]
display: remove unused variables

They occurs build warnings

Change-Id: If689b7d5caaac39e200da79431fbb52648a20c6d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agobattery: remove battery error popups if health is good 04/107004/2
taeyoung [Mon, 26 Dec 2016 06:27:54 +0000 (15:27 +0900)]
battery: remove battery error popups if health is good

Change-Id: I0d6cf4ccd95fea6430c2d3dce2fcc3e6e7c27639
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: remove idle lock check routine 88/106988/2
taeyoung [Mon, 26 Dec 2016 05:15:05 +0000 (14:15 +0900)]
display: remove idle lock check routine

Idle Lock check routine is not necessary
during checking pm lock. Even if Idle lock
is on, pm state cannot be changed when
pm is locked.

Change-Id: If76ec51ba4f704ab81f6056375b4a006715b4fbb
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: change the parameter of device_notify to the address 69/106969/2
taeyoung [Mon, 26 Dec 2016 03:59:44 +0000 (12:59 +0900)]
power: change the parameter of device_notify to the address

The paramter of the device_notify is (void *). Thus
There can be a problem related witht the type if integer
value is delivered by casting to (void *).

Change-Id: I615249b97a7c08bd0f3e57456a23cb80c0ee8d9b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: remove unused variable 49/106949/1
taeyoung [Mon, 26 Dec 2016 01:51:59 +0000 (10:51 +0900)]
power: remove unused variable

the variable occurs the build warning

Change-Id: I868a39bc8ef93e6a5aeda6d28d89f32fb11e296f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: fix reboot param control logic 19/106619/3
Giyeol Ok [Thu, 22 Dec 2016 07:59:36 +0000 (16:59 +0900)]
power: fix reboot param control logic

param of reboot have several kinds variable factor
so we need change of reboot param control logic

Change-Id: I181f4d245e5eb6d4a43265d202539bf86316e03b
Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
7 years agocommon: remove macro for emulator 78/106678/2 accepted/tizen/3.0/common/20161227.101328 accepted/tizen/3.0/ivi/20161226.025029 accepted/tizen/3.0/mobile/20161226.024936 accepted/tizen/3.0/tv/20161226.024951 accepted/tizen/3.0/wearable/20161226.025006 submit/tizen_3.0/20161222.072356
taeyoung [Thu, 22 Dec 2016 10:53:50 +0000 (19:53 +0900)]
common: remove macro for emulator

emulator macro is changed to is_emulator()

Change-Id: I1a225a22c4dd713233fb83f981402b2e8129b7cf
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoblock: add 'const' for tzplatform_getenv() 98/106598/1
taeyoung [Thu, 22 Dec 2016 07:09:14 +0000 (16:09 +0900)]
block: add 'const' for tzplatform_getenv()

Change-Id: Ie6b49a7122ea73b0c34a951f727a2ecbbc433aa6
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocommon: specfile has unused subpackage 87/106487/2 accepted/tizen/3.0/common/20161222.181654 accepted/tizen/3.0/ivi/20161222.093505 accepted/tizen/3.0/mobile/20161222.093417 accepted/tizen/3.0/tv/20161222.093429 accepted/tizen/3.0/wearable/20161222.093451 submit/tizen_3.0/20161222.053422
taeyoung [Thu, 22 Dec 2016 01:41:35 +0000 (10:41 +0900)]
common: specfile has unused subpackage

%package deviced in deviced.spec means
"deviced-deviced", which does not have %files entry,
which in turn, makes "deviced-deviced" not be created.
Because it is useless, it is removed
before further spec file modification.

Change-Id: I86ef4266776332f6bb65752487290d8405300842
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocpu: add cpu boosting operation. 75/105275/4
taeyoung [Fri, 16 Dec 2016 06:58:58 +0000 (15:58 +0900)]
cpu: add cpu boosting operation.

Currently the code is experimental. deviced requests
to TRM to boost cpu.

Change-Id: I8b7cf84ffda9ad57d3adacb350a5ec23999e3a49
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agohaptic: Modify haptic emulator to return unique handle value 13/106313/1 submit/tizen_3.0/20161222.035026
pr.jung [Wed, 21 Dec 2016 09:06:46 +0000 (18:06 +0900)]
haptic: Modify haptic emulator to return unique handle value

- Originally, emulator handle value is all same

Change-Id: Ib82124f50f2b5f836d2a778f819a0aba100984ea
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agopower: start shutdown animation earlier 44/101544/4 accepted/tizen/3.0/common/20161221.182236 accepted/tizen/3.0/ivi/20161221.105805 accepted/tizen/3.0/mobile/20161221.105713 accepted/tizen/3.0/tv/20161221.105728 accepted/tizen/3.0/wearable/20161221.105750 submit/tizen_3.0/20161221.074901
taeyoung [Thu, 1 Dec 2016 11:02:17 +0000 (20:02 +0900)]
power: start shutdown animation earlier

- If cgroup is unmounted, apps cannot be launched.
  Thus shutdown animation needs to be launched
  before cgroup is unmounted.

Change-Id: I3b7ab800010f824440313dccd6fe8dc36b1122c7
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: block inputs and requests by dbus methods during power off 93/105193/2
taeyoung [Fri, 16 Dec 2016 02:40:08 +0000 (11:40 +0900)]
display: block inputs and requests by dbus methods during power off

During power off, Users could handle the device or apps could
request to deviced to turn on/off display. Thus all inputs and
requests need to be blocked during power off.

Change-Id: I665d8947634231b715df1935fab02f7d0a17c194
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: notice to resourced about power off situation 32/105132/3
taeyoung [Thu, 15 Dec 2016 12:58:51 +0000 (21:58 +0900)]
power: notice to resourced about power off situation

- deviced lets resourced know the power off situation.
  Then, resourced thaws freezed apps and unmount cgroup.

Change-Id: I5c025cd30087cbe3614e804e388df304214d5b3a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: add operations related with reboot options 00/105000/6
taeyoung [Thu, 15 Dec 2016 11:58:16 +0000 (20:58 +0900)]
power: add operations related with reboot options

dbus method for reboot with option is newly added.
Thud method gets the option information and checks
whether or not the option is valid. After that,
deviced calls the reboot command with the option.

Change-Id: I3bcd2c7b3507dd67644b130b02d25d88b6b28f58
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: add power.conf to support reboot options 68/104868/5
taeyoung [Wed, 14 Dec 2016 12:18:24 +0000 (21:18 +0900)]
power: add power.conf to support reboot options

The poweroff and reboot options are handled by a list.
The list is from power.conf file. Vendors can add their
own reboot options by modifying the conf file.

Change-Id: I3f7d50c0f5e4e47374170730b94b6e799749cd21
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoservice: change type to notify 39/106139/2
taeyoung [Tue, 20 Dec 2016 12:13:44 +0000 (21:13 +0900)]
service: change type to notify

system session will be finished after deviced is prepared.

Change-Id: I4c8905b1f4fea72654f13e0d9ee238ccf5ad9cc8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "thermal : add overheat 30 seconds timer for power off" into tizen_3.0
lokilee73 [Tue, 20 Dec 2016 10:55:34 +0000 (02:55 -0800)]
Merge "thermal : add overheat 30 seconds timer for power off" into tizen_3.0

7 years agothermal : add overheat 30 seconds timer for power off 48/105748/5 accepted/tizen/3.0/ivi/20161221.011227 accepted/tizen/3.0/mobile/20161221.011702 accepted/tizen/3.0/tv/20161221.010840 accepted/tizen/3.0/wearable/20161221.011312 submit/tizen_3.0/20161220.112821
lokilee73 [Mon, 19 Dec 2016 10:40:11 +0000 (19:40 +0900)]
thermal : add overheat 30 seconds timer for power off

Change-Id: Ia37636946104b3922a0abe7dda190fae1cac71f0
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agoblock: Emulator only support one partition 99/105999/3 accepted/tizen/3.0/common/20161221.181134 accepted/tizen/3.0/ivi/20161221.010633 accepted/tizen/3.0/mobile/20161221.011039 accepted/tizen/3.0/tv/20161221.010508 accepted/tizen/3.0/wearable/20161221.010651 submit/tizen_3.0/20161220.072503
pr.jung [Tue, 20 Dec 2016 07:20:18 +0000 (16:20 +0900)]
block: Emulator only support one partition

Change-Id: I6638be9b57978469dc0ab63891db0edb27914fc0
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agocommon: fix build warning and coding rule issues 72/105572/3
taeyoung [Mon, 19 Dec 2016 04:57:27 +0000 (13:57 +0900)]
common: fix build warning and coding rule issues

Change-Id: I049f9e561596898d3df8c053d2b9ed086f6a94ec
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoblock: Modify primary partition checking routine 19/105219/5
pr.jung [Fri, 16 Dec 2016 04:25:52 +0000 (13:25 +0900)]
block: Modify primary partition checking routine

- ntfs is not supported
- When multimount is not supported, deviced mount only primary partition

Change-Id: I9393e9a84cc20c2da00a692d20afd6d97202f719
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoblock: debug improvement for application using external storage 10/105210/3
Kunhoon Baik [Fri, 16 Dec 2016 04:17:07 +0000 (13:17 +0900)]
block: debug improvement for application using external storage

print information who uses the storage unmounting

Change-Id: I364e4cf8214b43d9b7c07d5d810ac967a7895574

7 years agothermal: fix a bug in overheat algorithm 89/105389/3
lokilee73 [Fri, 16 Dec 2016 10:21:39 +0000 (19:21 +0900)]
thermal: fix a bug in overheat algorithm

Change-Id: I3262672daac675445be0704b57d6de1e40c1633f
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agodisplay: lock display during booting time 86/104786/2 accepted/tizen/3.0/common/20161216.123035 accepted/tizen/3.0/ivi/20161216.014320 accepted/tizen/3.0/mobile/20161216.014211 accepted/tizen/3.0/tv/20161216.014226 accepted/tizen/3.0/wearable/20161216.014234 submit/tizen_3.0/20161215.012340
taeyoung [Wed, 14 Dec 2016 09:16:16 +0000 (18:16 +0900)]
display: lock display during booting time

If Booting time is increased, display timeout can be
expired and display can be turned off. Thus display
lock is required during booting time.

Change-Id: I34cd44092750bb90dd144194d509b47ba64da5cd
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: fix bug that booting done event handler is removed before booting done 84/104484/3
taeyoung [Tue, 13 Dec 2016 10:39:48 +0000 (19:39 +0900)]
display: fix bug that booting done event handler is removed before booting done

Previously, booting done event handler was removed when keykilter is enabled.
Thus the position to remove the handler is modified.

Change-Id: If26ca2ec191160a0b6600a0e8488b80ef8f9be44
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: remove unnecessary codes 67/104867/1
taeyoung [Wed, 14 Dec 2016 12:16:10 +0000 (21:16 +0900)]
thermal: remove unnecessary codes

Change-Id: I6724d93257d26b3fceb6f454a9fc64a19fd61a65
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: initialize the variables 66/104866/1
taeyoung [Wed, 14 Dec 2016 12:14:38 +0000 (21:14 +0900)]
display: initialize the variables

Change-Id: Ib7ce6e6903b171f0d3b1d4cfd2ee537378758451
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoblock: do not deliver removed device information 43/104743/1
taeyoung [Wed, 14 Dec 2016 07:48:16 +0000 (16:48 +0900)]
block: do not deliver removed device information

Previously, removed flag was not checked when
a certian device info is delivered. Thus apps
got the removed device information. Now, removed
flag is checked and thus removed device information
is not delivered to app anymore.

Change-Id: I36ed129ae0f92f76e682de27b98c59f3ecdcd38d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agousb: broadcast legacy dbus signal if usb state is changed 85/104285/2
taeyoung [Tue, 13 Dec 2016 04:08:31 +0000 (13:08 +0900)]
usb: broadcast legacy dbus signal if usb state is changed

Change-Id: I6ab35faa7deace048026bfb45a1f5dc91e06f1e8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "modify noti clear" into tizen_3.0
lokilee73 [Wed, 14 Dec 2016 07:19:21 +0000 (23:19 -0800)]
Merge "modify noti clear" into tizen_3.0

7 years agomodify noti clear 11/104711/1
lokilee73 [Wed, 14 Dec 2016 06:53:51 +0000 (15:53 +0900)]
modify noti clear

Change-Id: I19b634bb1837327c03c6c78ed293e38d2be25146
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agoMerge "display: set pmstate vconf when display is changed" into tizen_3.0
Taeyoung Kim [Tue, 13 Dec 2016 08:49:33 +0000 (00:49 -0800)]
Merge "display: set pmstate vconf when display is changed" into tizen_3.0

7 years agokey-filter: at booting time, display should not turn off 00/104400/1
Jeong Donghwan [Tue, 13 Dec 2016 08:17:25 +0000 (17:17 +0900)]
key-filter: at booting time, display should not turn off

At device booting time(booting animation), device should not turn off.
Because booting time, another process is bring up. at this time, if
display turn off, the process can not initialize

Change-Id: Ic852b86f339e1329b810f049a3796f8094c7d4ed
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agoblock: Modify check_primary_partition routine not to return true for all partitions 48/103648/3 accepted/tizen/3.0/common/20161213.164051 accepted/tizen/3.0/ivi/20161213.025301 accepted/tizen/3.0/mobile/20161213.025222 accepted/tizen/3.0/tv/20161213.025237 accepted/tizen/3.0/wearable/20161213.025247 submit/tizen_3.0/20161212.130455
pr.jung [Fri, 9 Dec 2016 04:56:48 +0000 (13:56 +0900)]
block: Modify check_primary_partition routine not to return true for all partitions

Change-Id: I1d1c029f781adea17d244dcbad4b401204d00b36
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoled: turn off rgb play during init 34/103934/2 accepted/tizen/3.0/common/20161212.062050 accepted/tizen/3.0/ivi/20161212.024720 accepted/tizen/3.0/mobile/20161212.024615 accepted/tizen/3.0/tv/20161212.024654 accepted/tizen/3.0/wearable/20161212.024705 submit/tizen_3.0/20161211.120433
taeyoung [Sun, 11 Dec 2016 10:42:20 +0000 (19:42 +0900)]
led: turn off rgb play during init

- If the device is rebooted during playing rgb,
  the rgb setting is remained on sysfs and the previous
  color is played without any patterns. Thus rgb
  need to be initialized during initializing deviced.

Change-Id: I6d1f8461b0f776018da6280af4dccb4390b51bff
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoled: handle rgb play requests in the list 33/103933/4
taeyoung [Sun, 11 Dec 2016 10:33:28 +0000 (19:33 +0900)]
led: handle rgb play requests in the list

- rgb play requests are handled by the request list.
  Thus deviced can know if a play stop request is
  valid or not.
- Timer is added to check invalid requests
  in the request list. If the process which requests
  to play rgb does not exist anymore, the request
  from the process is removed.

Change-Id: I34ed6d9dfdab95e5fcbe18c0fb89a96ed6ce92b1
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "ir: add privilege for ir dbus interfaces" into tizen_3.0
taeyoung [Sat, 10 Dec 2016 07:03:57 +0000 (23:03 -0800)]
Merge "ir: add privilege for ir dbus interfaces" into tizen_3.0

7 years agoMerge "modify thermal for over temperature" into tizen_3.0
lokilee73 [Sat, 10 Dec 2016 05:54:56 +0000 (21:54 -0800)]
Merge "modify thermal for over temperature" into tizen_3.0

7 years agomodify thermal for over temperature 19/103419/7 submit/tizen_3.0/20161210.055623
lokilee73 [Thu, 8 Dec 2016 08:39:45 +0000 (17:39 +0900)]
modify thermal for over temperature

Change-Id: Ic6eb138d7b882d0583cd421602f0357d1f11d332
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agoir: add privilege for ir dbus interfaces 87/103887/1
taeyoung [Sat, 10 Dec 2016 05:47:01 +0000 (14:47 +0900)]
ir: add privilege for ir dbus interfaces

Change-Id: I773da6093cd86f57a2ad7cd6b8ac103f06f6dc1d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: send watchdog ping during power off 84/103784/1 accepted/tizen/3.0/common/20161212.060605 accepted/tizen/3.0/ivi/20161212.023858 accepted/tizen/3.0/mobile/20161212.023752 accepted/tizen/3.0/tv/20161212.023827 accepted/tizen/3.0/wearable/20161212.023840 submit/tizen_3.0/20161209.130513
taeyoung [Fri, 9 Dec 2016 11:04:24 +0000 (20:04 +0900)]
power: send watchdog ping during power off

- Power off operation takes time, and deviced can be
  killed by systemd. Thus deviced sends watchdog ping
  during power off.

Change-Id: I61421cf75bed47e71281af0339ba12522c6913e3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agocommon: Apply Tizen coding rule 26/103626/2
pr.jung [Fri, 9 Dec 2016 03:28:33 +0000 (12:28 +0900)]
common: Apply Tizen coding rule

Change-Id: I2ad0dc806bd32771ba5b6f5b78c678b204ca0d5a
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoblock: Do not broadcast DeviceBlocked signal for private operation 48/103448/2 accepted/tizen/3.0/common/20161209.094856 accepted/tizen/3.0/ivi/20161209.002541 accepted/tizen/3.0/mobile/20161209.002502 accepted/tizen/3.0/tv/20161209.002522 accepted/tizen/3.0/wearable/20161209.002532 submit/tizen_3.0/20161208.091728
pr.jung [Thu, 8 Dec 2016 10:09:57 +0000 (19:09 +0900)]
block: Do not broadcast DeviceBlocked signal for private operation

Change-Id: Ic857c7c7109e14e81317fefd064fc5b3dba42c02
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoblock: Add PrivateMount and PrivateUnmount 75/99875/8
pr.jung [Thu, 24 Nov 2016 09:59:54 +0000 (18:59 +0900)]
block: Add PrivateMount and PrivateUnmount

- When block device is mounted using PrivateMount,
other operation request is limited.
Only format request by same pid and
unmount & remove request when device is removed physically
is processed after PrivateMount

Change-Id: I0f02d76d05bc807f85cd4a546e5f976bbf6e294c
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoadd event noti off and exception code 98/102998/3 accepted/tizen/3.0/common/20161207.195428 accepted/tizen/3.0/ivi/20161207.135310 accepted/tizen/3.0/mobile/20161207.135058 accepted/tizen/3.0/tv/20161207.135031 accepted/tizen/3.0/wearable/20161207.135220 submit/tizen_3.0/20161207.065139
lokilee73 [Wed, 7 Dec 2016 03:52:45 +0000 (12:52 +0900)]
add event noti off and exception code

Change-Id: I6ae375dbc8806c6d15d6a00a219cf65b50b767fd
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agofix bug when sending event noti 56/102956/1
lokilee73 [Wed, 7 Dec 2016 01:57:23 +0000 (10:57 +0900)]
fix bug when sending event noti

Change-Id: I143c31a9a3d847a46a3c8e9f39da10889ed774be
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agoadd event and active noti for low battery 76/102676/2 accepted/tizen/3.0/common/20161207.194713 accepted/tizen/3.0/ivi/20161207.012841 accepted/tizen/3.0/mobile/20161207.012747 accepted/tizen/3.0/tv/20161207.012801 accepted/tizen/3.0/wearable/20161207.012820 submit/tizen_3.0/20161206.100551
lokilee73 [Tue, 6 Dec 2016 09:59:44 +0000 (18:59 +0900)]
add event and active noti for low battery

Change-Id: I414ddb7c402b2250fd58e1cb7e4c16525affbbdd
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
7 years agoblock: Modify wrong typecasting 52/102552/1
pr.jung [Tue, 6 Dec 2016 05:45:31 +0000 (14:45 +0900)]
block: Modify wrong typecasting

Change-Id: I89e12081b92ed4180cf16f156fc56ac94a3068df
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agodisplay: set pmstate vconf when display is changed 22/101422/1
Jeong Donghwan [Wed, 30 Nov 2016 08:10:29 +0000 (17:10 +0900)]
display: set pmstate vconf when display is changed

Now, callback and get_state fucntion of Device CAPI depend on vconf key.
So another process and app can not known using vconf immediately.
Deviced should be set pmstate vconf when display is changed.

Change-Id: I15f5b8b2ba355aa5be38ed2455794efe84a625a6
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agoMerge "power: add poweroff node under /run during poweroff/restart target" into tizen_3.0 accepted/tizen/3.0/common/20161201.135129 accepted/tizen/3.0/ivi/20161201.031520 accepted/tizen/3.0/mobile/20161201.031346 accepted/tizen/3.0/tv/20161201.031434 accepted/tizen/3.0/wearable/20161201.031457 submit/tizen_3.0/20161130.101437
taeyoung [Wed, 30 Nov 2016 08:37:58 +0000 (00:37 -0800)]
Merge "power: add poweroff node under /run during poweroff/restart target" into tizen_3.0

7 years agodeviced: Add notify code for every 10 seconds 64/98964/8
pr.jung [Mon, 21 Nov 2016 08:15:38 +0000 (17:15 +0900)]
deviced: Add notify code for every 10 seconds

Change-Id: Ia616aded5a3c2ae64d45e2ea819004569e6db556
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agopower: add poweroff node under /run during poweroff/restart target 00/100600/4
taeyoung [Mon, 28 Nov 2016 13:08:15 +0000 (22:08 +0900)]
power: add poweroff node under /run during poweroff/restart target

- poweroff node under /run shows that target need to be turned off.
  Thus deviced makes the node before power off the device. If poweroff
  procedure is blocked by a certain reason, deviced will be relaunched
  by systemd and the target will be turned off by checking
  the poweroff node.

Change-Id: I1192c49e15065462fd644836a3cb37dee9a702e0
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopower: turn off modem during power off 60/100960/3
taeyoung [Wed, 30 Nov 2016 03:42:07 +0000 (12:42 +0900)]
power: turn off modem during power off

- CP modem needs to be turned off during power off

Change-Id: I28c287c091e7028d2018f93da5447f7ce6971f78
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoMerge "usb host: lock cpu when usb otg connector is connected" into tizen_3.0
taeyoung [Wed, 30 Nov 2016 06:06:01 +0000 (22:06 -0800)]
Merge "usb host: lock cpu when usb otg connector is connected" into tizen_3.0

7 years agoMerge "usb host: turn on display when usb otg devices are inserted" into tizen_3.0
taeyoung [Wed, 30 Nov 2016 06:05:41 +0000 (22:05 -0800)]
Merge "usb host: turn on display when usb otg devices are inserted" into tizen_3.0

7 years agoled: add led notification (rgb) 76/100176/2
taeyoung [Fri, 25 Nov 2016 08:01:07 +0000 (17:01 +0900)]
led: add led notification (rgb)

- LED notification is related with the front led
  which can shows RGB colors. The led notification
  is added for the led apis of capi-system-device.

Change-Id: I8793433fbe843d29852416464c93ee12aa4d01a8
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoevent handler: change value type from real value to the address of the value 35/100035/2
taeyoung [Fri, 25 Nov 2016 02:04:37 +0000 (11:04 +0900)]
event handler: change value type from real value to the address of the value

- If an integer value is delivered by casting to (void *),
  size issue occurs in 64 bit ebvironment. Thus the address
  of the value is used for delivering.

Change-Id: Ic8dc10c82a57631ba5b46d71705fae20dd9fdb27
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agousb host: lock cpu when usb otg connector is connected 08/100608/2
taeyoung [Mon, 28 Nov 2016 13:47:25 +0000 (22:47 +0900)]
usb host: lock cpu when usb otg connector is connected

usb otg connector can be notified by the extcon event.
If usb otg connector is connected, CPU needs to be locked

Change-Id: Ic5569bf97f5716d1a99d84e720ed8936a0875458
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agousb host: turn on display when usb otg devices are inserted 15/99715/3
taeyoung [Thu, 24 Nov 2016 01:46:24 +0000 (10:46 +0900)]
usb host: turn on display when usb otg devices are inserted

Turning on display according to the state change of usb otg
is added like Tizen 2.4

Change-Id: I03bd1c4fb4b31e60d7dff2914f539204464d4daf
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agopoll: modify pmlock manager data structure 45/99645/2 accepted/tizen/3.0/common/20161130.065003 accepted/tizen/3.0/ivi/20161130.011858 accepted/tizen/3.0/mobile/20161130.011825 accepted/tizen/3.0/tv/20161130.011842 accepted/tizen/3.0/wearable/20161130.011851 submit/tizen_3.0/20161129.053222
Jeong Donghwan [Wed, 23 Nov 2016 12:01:54 +0000 (21:01 +0900)]
poll: modify pmlock manager data structure

PMLockNode structure used custom list.
So it is modified to data structure providing from the library.

Change-Id: I657e0be9224f4d5e4f18a52641cb9b716df11ae2
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agopoll: missing pmlock timeout_id after be requested again 51/99651/2
Jeong Donghwan [Wed, 23 Nov 2016 12:25:49 +0000 (21:25 +0900)]
poll: missing pmlock timeout_id after be requested again

Under scenario, power-manager will be released pmlock.
Because, previous sequence, when pmlock node was existed with
restriced timer, if pmlock is requested with infinity lock,
'node->timeout_id' is null already.
So old timeout_id(restricted timer) can not be removed.

Problem scenamrio :
1. 'A' process was requested pmlock with infinity lock.
2. Same process was requested pmlock with 5 second.
3. Same process was requested pmlock with infinity lock
  before release previious lock
4. This requested pmlock will be released despite infinity option.

Change-Id: Icd5a3460b275508056b7e777653a05b5aad8fb90
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agocommon: add CMAKE option about verbose value 43/100343/2
Jeong Donghwan [Mon, 28 Nov 2016 01:37:58 +0000 (10:37 +0900)]
common: add CMAKE option about verbose value

cmake verbose option change to false value

Change-Id: I193b57aefaaf8300732dee8fc8c60b15dd44c93b
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agoMerge "display: remove unnecessary vconf setting" into tizen_3.0
Taeyoung Kim [Tue, 29 Nov 2016 05:36:06 +0000 (21:36 -0800)]
Merge "display: remove unnecessary vconf setting" into tizen_3.0

7 years agodisplay: fix initialized broadcast value 57/99657/3 accepted/tizen/3.0/common/20161129.103342 accepted/tizen/3.0/ivi/20161129.002435 accepted/tizen/3.0/mobile/20161129.002335 accepted/tizen/3.0/tv/20161129.002356 accepted/tizen/3.0/wearable/20161129.002412 submit/tizen_3.0/20161128.140207
Jeong Donghwan [Wed, 23 Nov 2016 12:53:00 +0000 (21:53 +0900)]
display: fix initialized broadcast value

First booting time, power-manager does not broadcast lcd off signal.
So it should be modified initialize value.

Change-Id: I2e2a3ebb686cff4819798d8656f954c1da6ee72c
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agodisplay: change async method from sync about dpms control 41/100341/2
Jeong Donghwan [Mon, 28 Nov 2016 01:31:59 +0000 (10:31 +0900)]
display: change async method from sync about dpms control

If dpms control is sync method, when dpms is controlling,
dbus method does blocking from another request until end dpms control.

Change-Id: I4ccf525f4127a334989e5e63d47b6e44d6c68057
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agousb: do not start/stop operations with emulator environtment 53/100353/1
taeyoung [Mon, 28 Nov 2016 02:14:00 +0000 (11:14 +0900)]
usb: do not start/stop operations with emulator environtment

- Emulator does not support mtp, rndis, and so on.
  And sdbd should not be stopped in emulator.
  Thus all operation start/stop routine need to be skipped
  with emulator environtment.

Change-Id: Ia23842a880f7c4e2ca529929b28040780ce48b8d
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoRemove Eventsystem BOOT_COMPLETED Event 77/98777/3
Kunhoon Baik [Fri, 18 Nov 2016 16:08:46 +0000 (01:08 +0900)]
Remove Eventsystem BOOT_COMPLETED Event

In Tizen 3.0, the meaning of event system SYS_EVENT_BOOT_COMPLETED is different.
(It should be aware Session Switching.
 For the detail, contact to Mr.Ko JoungMyeong for the event system)
Thus, BOOT_COMPLETED event is removed because deviced does not aware session switching in Tizen 3.0

Change-Id: Ia8323fd8e52b48b663579680904094b9e4759487

7 years agoPotential Bug Fix : Checking NULL 55/99555/2
Kunhoon Baik [Wed, 23 Nov 2016 08:42:32 +0000 (17:42 +0900)]
Potential Bug Fix : Checking NULL

Change-Id: Id9c6bbdfe2d64933495a6d8a91080270543a916c

7 years agoMerge "display: remove dependency related with X" into tizen_3.0
taeyoung [Thu, 24 Nov 2016 01:58:26 +0000 (17:58 -0800)]
Merge "display: remove dependency related with X" into tizen_3.0

7 years agodisplay: remove unnecessary vconf setting 93/99593/1
Jeong Donghwan [Wed, 23 Nov 2016 10:21:26 +0000 (19:21 +0900)]
display: remove unnecessary vconf setting

This value was set long ago. Now it is not used.

Change-Id: I7522d0a4ec6a0ca49a1edd3cee46c2682d061e0b
Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
7 years agodisplay: remove dependency related with X 79/99279/2
taeyoung [Tue, 22 Nov 2016 09:07:12 +0000 (18:07 +0900)]
display: remove dependency related with X

X is not used anymore.

Change-Id: Ibf3b7c5267ee0158cb848b349af01cc6b1206412
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: launch overhead popup and noti 74/99574/1
taeyoung [Wed, 23 Nov 2016 09:17:19 +0000 (18:17 +0900)]
thermal: launch overhead popup and noti

According to the thermal status, overheat popup
and notification are launched.

Change-Id: I2513fdd931460cb1a15b7f8338dd9b0f56f66d16
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: launch power lock expired popup 98/98998/3 accepted/tizen/3.0/common/20161123.140939 accepted/tizen/3.0/ivi/20161123.083937 accepted/tizen/3.0/mobile/20161123.083837 accepted/tizen/3.0/tv/20161123.083904 accepted/tizen/3.0/wearable/20161123.083920 submit/tizen_3.0/20161122.133614
taeyoung [Mon, 21 Nov 2016 10:39:19 +0000 (19:39 +0900)]
display: launch power lock expired popup

If apps lock power permanently, the lock needs
to be released to decrease battery consumption.
Thus deviced launches the power lock expired popup
to get the user's choice
  - kill app
  - release lock
  - continue to lock

Change-Id: I4dec7541c79ededd72a4083c58c11f2cecfe71a4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agothermal: add thermal information handling module 83/98883/4
Kunhoon Baik [Mon, 21 Nov 2016 05:54:58 +0000 (14:54 +0900)]
thermal: add thermal information handling module

Thermal module needs to know the temparature of the AP
and need to launch popup for notice and turn off
the target to avoid the target damage.

Change-Id: Ia4c54984618697954d371e2e405af93a774f875f
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay: remove unused codes for SIM 62/98862/2
taeyoung [Mon, 21 Nov 2016 05:33:48 +0000 (14:33 +0900)]
display: remove unused codes for SIM

Change-Id: I29433531f0e1eb6011e49b514dcb37197ef1d1da
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoevent handler: add event handler to turn on/off event handling 50/98850/5
taeyoung [Mon, 21 Nov 2016 04:54:05 +0000 (13:54 +0900)]
event handler: add event handler to turn on/off event handling

- deviced receives uevents directly for block and usb host module.
  In addition, deviced receives events by HAL for battery and extcon module.

- The event handling operation can be turned on/off manually
  for testing and debugging.

Change-Id: I7a6b3479ee8a43738bd3d2165ffc0c24126a3605
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agolibdeviced: fix param indexing about bytes array control of "ay" type 00/99000/1 accepted/tizen/3.0/common/20161123.140508 accepted/tizen/3.0/ivi/20161123.082809 accepted/tizen/3.0/mobile/20161123.082712 accepted/tizen/3.0/tv/20161123.082736 accepted/tizen/3.0/wearable/20161123.082747 submit/tizen_3.0/20161121.105249
pr.jung [Mon, 21 Nov 2016 10:49:16 +0000 (19:49 +0900)]
libdeviced: fix param indexing about bytes array control of "ay" type

Change-Id: Ib5f6b9ec5dc9ba9154a4bb8612feabd79756c454
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoMerge "display: fix get/set brightness functions to be normalized" into tizen_3.0
taeyoung [Mon, 21 Nov 2016 05:00:01 +0000 (21:00 -0800)]
Merge "display: fix get/set brightness functions to be normalized" into tizen_3.0

7 years agoextcon: support usage count about extcon-related devices 81/98781/2
Kunhoon Baik [Sat, 19 Nov 2016 02:55:13 +0000 (11:55 +0900)]
extcon: support usage count about extcon-related devices

 - earjack connection count
 - charger conneciton count
 - battery full charging count (exception)

Change-Id: Id3956708bfb373939553165bd1f7f85087721a7a
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agodisplay : remove dependency from X 71/98771/2
Kunhoon Baik [Fri, 18 Nov 2016 15:39:22 +0000 (00:39 +0900)]
display : remove dependency from X

Change-Id: Ibc784b2c996f659bf62311bb52e4981b02ed2004

7 years agodisplay: fix get/set brightness functions to be normalized 13/98613/2
taeyoung [Fri, 4 Nov 2016 03:13:30 +0000 (12:13 +0900)]
display: fix get/set brightness functions to be normalized

- All function to get/set brightness should normilize
  the brightness value to 0~100 since deviced handles
  the brightness from 0 to 100

Change-Id: Ic74c8f65f7d56ddaafbf39697deffc95ad29480b
Signed-off-by: taeyoung <ty317.kim@samsung.com>
7 years agoapps: change popup and noti launch interface from sync to async 70/98770/1
Kunhoon Baik [Fri, 18 Nov 2016 15:35:23 +0000 (00:35 +0900)]
apps: change popup and noti launch interface from sync to async

no need daemon dbus sync call to launch popup or notifications so change them to async call

Change-Id: I80a94b0126cc88aaf931445b8bc23fbbc13e788c

7 years agoblock: make file as /run/external-storage/id for mounted sdcard 82/97882/7
pr.jung [Tue, 15 Nov 2016 01:56:33 +0000 (10:56 +0900)]
block: make file as /run/external-storage/id for mounted sdcard

- make file before sending DeviceChanged signal for mount.
- remove file before sending DeviceBlocked signal for unmount

Change-Id: I365f228cb44b8f07da09b23c2968669d24bc88b7
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agohaptic: Add signal to notify when haptic initialization is finished 49/98449/2
pr.jung [Thu, 17 Nov 2016 05:52:44 +0000 (14:52 +0900)]
haptic: Add signal to notify when haptic initialization is finished

Change-Id: Ib94edf74bddd53ebdfb99fdd2f109fa40b5f78fd
Signed-off-by: pr.jung <pr.jung@samsung.com>
7 years agoshared-dbus: fix param indexing about bytes array control of "ay" type 02/98302/2
Giyeol Ok [Thu, 17 Nov 2016 04:00:22 +0000 (13:00 +0900)]
shared-dbus: fix param indexing about bytes array control of "ay" type

"ay"type signal have 2 integer type filed so we should be approached 1 increased access

Change-Id: I629b34e467b01dbbc87ae2f1e0b3f87f78e23688
Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>