platform/core/system/deviced.git
8 years agolib: add library for glib and gio explicitly 44/61444/1
Taeyoung Kim [Tue, 8 Mar 2016 02:44:52 +0000 (11:44 +0900)]
lib: add library for glib and gio explicitly

- glib dependency is added. The library was added
  by other libraries. Now, the dependency is
  added explicitly.
- gio is added to the library list of libshared.a.
  The library was skipped and thus link problem
  existed. Thus the dependency is added explicitly.

Change-Id: I6fac63ea40cd6084ad3785783c297e2d193c1c7e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "display: change display state from standby to suspend automatically" into...
Taeyoung Kim [Mon, 29 Feb 2016 11:56:39 +0000 (03:56 -0800)]
Merge "display: change display state from standby to suspend automatically" into tizen

8 years agoMerge "display: add filter for standby mode" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:35 +0000 (03:56 -0800)]
Merge "display: add filter for standby mode" into tizen

8 years agoMerge "display: change display interfaces for TV profile" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:30 +0000 (03:56 -0800)]
Merge "display: change display interfaces for TV profile" into tizen

8 years agoMerge "display: add state functions for TV profile" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:25 +0000 (03:56 -0800)]
Merge "display: add state functions for TV profile" into tizen

8 years agoMerge "display: disable timeout and input module" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:21 +0000 (03:56 -0800)]
Merge "display: disable timeout and input module" into tizen

8 years agoMerge "display: change display lock/unlock/change condition" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:15 +0000 (03:56 -0800)]
Merge "display: change display lock/unlock/change condition" into tizen

8 years agoMerge "display: change lock condition name using current state" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:06 +0000 (03:56 -0800)]
Merge "display: change lock condition name using current state" into tizen

8 years agoMerge "display: remove standby mode from common profile" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:56:01 +0000 (03:56 -0800)]
Merge "display: remove standby mode from common profile" into tizen

8 years agoMerge "display: add action/trans/check change functions to support other profiles...
Taeyoung Kim [Mon, 29 Feb 2016 11:55:57 +0000 (03:55 -0800)]
Merge "display: add action/trans/check change functions to support other profiles" into tizen

8 years agoMerge "display: add lcd on/off complete signal" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:55:53 +0000 (03:55 -0800)]
Merge "display: add lcd on/off complete signal" into tizen

8 years agoMerge "display: recover display lock according to the app state" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:55:49 +0000 (03:55 -0800)]
Merge "display: recover display lock according to the app state" into tizen

8 years agoMerge "display: release display lock when apps go to background" into tizen
Taeyoung Kim [Mon, 29 Feb 2016 11:55:40 +0000 (03:55 -0800)]
Merge "display: release display lock when apps go to background" into tizen

8 years agodisplay: change display state from standby to suspend automatically 33/60633/1
Taeyoung Kim [Mon, 29 Feb 2016 11:23:26 +0000 (20:23 +0900)]
display: change display state from standby to suspend automatically

- In TV profile, Standby mode will be changed to suspend mode
  if none of apps lock the S_LCDOFF.

- display unlock event is added to update display state
  after unlocking display state.

Change-Id: I9096396b5e9d90e0ffab712c327d6c2603747a2f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add filter for standby mode 62/60562/1
Taeyoung Kim [Mon, 29 Feb 2016 05:20:22 +0000 (14:20 +0900)]
display: add filter for standby mode

- The method for changing display status did not handle standby mode.
  Thus the filter for standby mode is added.

- In the standby mode, display should be turned off. Thus,
  display off operation is added.

Change-Id: I15ff5a7d73cc18b23ee317a58621aa8625dc287d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: change display interfaces for TV profile 57/60557/1
Taeyoung Kim [Mon, 29 Feb 2016 04:08:59 +0000 (13:08 +0900)]
display: change display interfaces for TV profile

- TV profile targer does not use same interfaces
  of Mobile and Wearable profiles. Thus TV interfaces
  are added. The interfaces can be divided to HAL.

Change-Id: Ia9b657ac685b384b3e3b760f6aa1259df483353e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add state functions for TV profile 56/60556/3
Taeyoung Kim [Mon, 29 Feb 2016 03:54:56 +0000 (12:54 +0900)]
display: add state functions for TV profile

- The display states and their operations of TV profile
  is quite different with Mobile and Wearable Profiles
  Thus the new states are added.

Change-Id: I5938967fdbfc29c70d29d228e447d03ed9611acf
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: disable timeout and input module 55/60555/1
Taeyoung Kim [Mon, 29 Feb 2016 03:38:57 +0000 (12:38 +0900)]
display: disable timeout and input module

- Display status of TV profile is not changed by timeout.
  Thus timeout_enable field is added to the conf file.
- Inputs from touch screen and HW keys of TV profile are
  handled at other modules. Thus deviced of TV profile
  does not handle inputs.

Change-Id: If969337325a397eaa2955b1d06e645f06f34f9ec
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "block: change mount path to TZ_SYS_MEDIA" into tizen submit/tizen/20160229.000000
Taeyoung Kim [Mon, 29 Feb 2016 03:14:53 +0000 (19:14 -0800)]
Merge "block: change mount path to TZ_SYS_MEDIA" into tizen

8 years agodisplay: change display lock/unlock/change condition 03/60103/3
Taeyoung Kim [Tue, 23 Feb 2016 09:54:24 +0000 (18:54 +0900)]
display: change display lock/unlock/change condition

- Previously, the condition value showed the state information
  and flags. However, it supposed that just 4 states exist
  such as S_NORMAL, S_LCDDIM, S_LCDOFF, and S_SLEEP. Thus
  the condition value could not contain more states.

- Now, the condition value is modified. First 8 bits show
  the state to lock/unlock/change. Second 8 bits show
  the request type such as lock, unlock, and change. Third
  8 bits show the flags. And fourth 8bits are reserved.

Change-Id: I63a6478b0d1f94abae76c70612d3fac80f05526d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: change lock condition name using current state 73/60073/4
Taeyoung Kim [Tue, 23 Feb 2016 07:06:36 +0000 (16:06 +0900)]
display: change lock condition name using current state

- Previously, lock condition name used next state.
   (ex. S_LCDOFF lock -> cond_head[S_SLEEP],
        S_LCDDIM lock -> cond_head[S_LCDOFF],
        S_NORMAL lock -> cond_head[S_LCDDIM])
  However, the name is confusing. cond_head[S_SLEEP] means
  that the state cannot be changed to S_SLEEP. But this
  supposes that the next state of S_LCDOFF is S_SLEEP.
  Thus there will be problems if the state transition table
  is changed.

- Now, lock condition name uses the current state.
   (ex. S_LCDOFF lock -> cond_head[S_LCDOFF],
        S_LCDDIM lock -> cond_head[S_LCDDIM],
        S_NORMAL lock -> cond_head[S_NORMAL])
  Thus there is no confusing. cond_head[S_LCDOFF] means
  that S_LCDOFF state is locked.

Change-Id: I6c00430651354fb853967d58d53dbc232d1e1e97
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "ir: Add IR methods" into tizen accepted/tizen/ivi/20160223.231449 accepted/tizen/mobile/20160223.231401 accepted/tizen/tv/20160223.231414 accepted/tizen/wearable/20160223.231431 submit/tizen/20160223.043930 submit/tizen/20160223.045047
pr.jung [Tue, 23 Feb 2016 04:38:59 +0000 (20:38 -0800)]
Merge "ir: Add IR methods" into tizen

8 years agoir: Add IR methods 82/59182/5
pr.jung [Thu, 11 Feb 2016 07:56:33 +0000 (16:56 +0900)]
ir: Add IR methods

- IRIsAvailable : Get information whether ir is available
- TransmitIR : Transmit ir pattern

Change-Id: Ic3f62ad4bb8747e79891dbfeb2001aec32ad5e0d
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: remove standby mode from common profile 52/60052/1
Taeyoung Kim [Tue, 23 Feb 2016 01:11:52 +0000 (10:11 +0900)]
display: remove standby mode from common profile

- Standby mode will be added as a separated power state.
  Thus the standby mode of common profile scatterd
  in the codes is removed

Change-Id: I93fd085f7d5d42f6e415d72420f7ffaf034da236
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add action/trans/check change functions to support other profiles 87/59987/1
Taeyoung Kim [Mon, 22 Feb 2016 06:07:21 +0000 (15:07 +0900)]
display: add action/trans/check change functions to support other profiles

- Currently, default_action(), default_trans(), and default_check()
  are supported for common profile operation. But Other profiles
  can be necessary to fix the operations of each state. Thus change
  functions are added.

Change-Id: I9de7e1b775a2dcb9b8a68197ffac5013bd741627
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add lcd on/off complete signal 47/59747/1
Taeyoung Kim [Thu, 18 Feb 2016 06:30:52 +0000 (15:30 +0900)]
display: add lcd on/off complete signal

- LCD on/off takes some time. But previous signal
  notices that LCD will be turned on/off. Thus
  Apps can show unexpected operations during
  LCD on/off.

- LCD on/off complete signal notices that LCD state
  is changed completely.

Change-Id: I4a10df22969f819c2c3f904f83dbe623e3ee369d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: recover display lock according to the app state 39/59739/1
Taeyoung Kim [Thu, 18 Feb 2016 05:17:11 +0000 (14:17 +0900)]
display: recover display lock according to the app state

- If an app locks display, and goes to bakcground status,
  display lock information is removed and the lock is released.
  But the display lock is not discovered when the app status
  is changed to foreground. This is not the predicted situation
  for apps

- Now, The display lock is released and but the lock information
  is not removed. Thus the display lock can be recovered
  when the app status is changed to foreground.

Change-Id: I8395b43908cd798ce992e04569326dccd8876747
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: release display lock when apps go to background 65/59365/3
Taeyoung Kim [Mon, 15 Feb 2016 06:01:26 +0000 (15:01 +0900)]
display: release display lock when apps go to background

- When background apps lock display, power consumption is
  increased. Thus background app should release display lock.

- deviced gets app background information from resourced (dbus signal)
  When the information is delivered, deviced just checks
  the app status. And the display lock is released when
  display state is changed.

Change-Id: Ia3f5f1bbf311fc4784cd469e078ce4f476372420
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: change mount path to TZ_SYS_MEDIA 33/59633/1
Taeyoung Kim [Wed, 17 Feb 2016 05:12:46 +0000 (14:12 +0900)]
block: change mount path to TZ_SYS_MEDIA

- Tizen Directory policy is changed. The block device mount paths
  are located under the TZ_SYS_MEDIA (/opt/media)

Change-Id: I4e79ec4044ec3c41ead1074aaf2e66675699feb3
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "usb: use first usb configuration for sdb" into tizen
Taeyoung Kim [Mon, 15 Feb 2016 09:26:02 +0000 (01:26 -0800)]
Merge "usb: use first usb configuration for sdb" into tizen

8 years agoMerge "display: SMAST is removed" into tizen
Taeyoung Kim [Thu, 4 Feb 2016 01:51:30 +0000 (17:51 -0800)]
Merge "display: SMAST is removed" into tizen

8 years agoMerge "display: remove unused macros" into tizen
Taeyoung Kim [Thu, 4 Feb 2016 01:50:43 +0000 (17:50 -0800)]
Merge "display: remove unused macros" into tizen

8 years agoMerge "display: remove extreme signal handler" into tizen
Taeyoung Kim [Thu, 4 Feb 2016 01:50:14 +0000 (17:50 -0800)]
Merge "display: remove extreme signal handler" into tizen

8 years agoblock: Fix security issues 63/58163/2 accepted/tizen/ivi/20160218.024010 accepted/tizen/mobile/20160203.050750 accepted/tizen/tv/20160203.050802 accepted/tizen/wearable/20160203.050823 submit/tizen/20160202.095947 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000003
pr.jung [Thu, 28 Jan 2016 05:18:12 +0000 (14:18 +0900)]
block: Fix security issues

 - Set mount flag MS_NOSUID | MS_NOEXEC.
 - Run mmc-smack-label command on file and directory (not include symlink)

Change-Id: I65efcaa5d3e27e1da08102a9ed6acad27a7e5709
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoMerge "haptic: Modify magnitude for haptic" into tizen accepted/tizen/mobile/20160122.033249 accepted/tizen/tv/20160122.033439 accepted/tizen/wearable/20160122.033731 submit/tizen/20160121.045114
pr.jung [Thu, 21 Jan 2016 04:49:52 +0000 (20:49 -0800)]
Merge "haptic: Modify magnitude for haptic" into tizen

8 years agousb: use first usb configuration for sdb 47/57347/1
Taeyoung Kim [Tue, 19 Jan 2016 09:06:46 +0000 (18:06 +0900)]
usb: use first usb configuration for sdb

- Tizen policy is changed to use sdb on first usb configuration.
  Thus all gadgets such as mtp, acm, and sdb are moved to
  first usb configuration.

Change-Id: Ia021ef6fb441206ff2a13c521acf8a77c1bd0869
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: check if the LCDAlwaysOn is set before changing next state 39/57139/1 accepted/tizen/mobile/20160118.084542 accepted/tizen/tv/20160118.084610 accepted/tizen/wearable/20160118.084634 submit/tizen/20160118.054528
Taeyoung Kim [Fri, 15 Jan 2016 09:57:49 +0000 (18:57 +0900)]
display: check if the LCDAlwaysOn is set before changing next state

Change-Id: I87fcb34e1395b7abbdfc52b5af8f411f3fe58ed9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agohaptic: Modify magnitude for haptic 63/56463/5
pr.jung [Fri, 8 Jan 2016 08:30:00 +0000 (17:30 +0900)]
haptic: Modify magnitude for haptic

Previous value was too small
Max magnitude for RUMBLE : 0xFFFF

Change-Id: Id8190cd8455728664977d4b8d5b44fd69b16b3c8
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: SMAST is removed 55/56955/1
Taeyoung Kim [Thu, 14 Jan 2016 00:56:56 +0000 (09:56 +0900)]
display: SMAST is removed

- SMAST is not supported from the platform deviced.
  Thus macro and related codes are removed

Change-Id: I345d3cb14e755dd4ed85e7043246b30cdf88ef0b
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: remove unused macros 54/56954/1
Taeyoung Kim [Thu, 14 Jan 2016 00:53:06 +0000 (09:53 +0900)]
display: remove unused macros

Change-Id: Ifacc29b5da20139621ab4091912299ecc75174ef
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: remove extreme signal handler 49/56349/2
Taeyoung Kim [Thu, 7 Jan 2016 00:46:11 +0000 (09:46 +0900)]
display: remove extreme signal handler

- The signal is not used anymore
  It was used to check user input to change display state to DIM
  when battery status is very low.

Change-Id: I97a4f14f8efa5f3b8d18df26eacfb244857195bd
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousb: update vconf keys for legacy usages 09/56209/2
Taeyoung Kim [Tue, 5 Jan 2016 10:01:27 +0000 (19:01 +0900)]
usb: update vconf keys for legacy usages

- VCONFKEY_USB_CUR_MODE and VCONFKEY_SETAPPL_USB_MODE_INT
  are legacy vconf keys to notice usb state. The keys
  are used at the legacy codes such as mtp, and so on.
  Thus they are added for the other modules

Change-Id: I25441a66a9466480ef4b0c93bc4177f4cf5ba778
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "usb: enable usb configuration by usb module of deviced" into tizen
Taeyoung Kim [Tue, 12 Jan 2016 09:41:37 +0000 (01:41 -0800)]
Merge "usb: enable usb configuration by usb module of deviced" into tizen

8 years agoblock: Remove build warning 60/56360/1 accepted/tizen/mobile/20160108.005537 accepted/tizen/tv/20160108.005555 accepted/tizen/wearable/20160108.005615 submit/tizen/20160107.091633
pr.jung [Thu, 7 Jan 2016 04:22:48 +0000 (13:22 +0900)]
block: Remove build warning

Change-Id: I2fa993cb94c2821a6e982a22a5bf7184b59b0795
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agousb: enable usb configuration by usb module of deviced 07/56207/2
Taeyoung Kim [Tue, 5 Jan 2016 09:48:06 +0000 (18:48 +0900)]
usb: enable usb configuration by usb module of deviced

- Previously, usb configuration is set by udev rule
  since usb uevent is delivered by different subsystem
- Now, udev rule is removed and usb configuration is
  set by usb module of deviced since uevent is delivered
  by HAL for TM1 device

Change-Id: If2fd2ca8522c704dee6deee9f6612cd4b6ec1bf3
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: Fix timing issue 78/56078/1 accepted/tizen/mobile/20160104.224534 accepted/tizen/tv/20160104.224552 accepted/tizen/wearable/20160104.224612 submit/tizen/20160104.075202
pr.jung [Mon, 4 Jan 2016 06:54:05 +0000 (15:54 +0900)]
block: Fix timing issue

If the device is removed before INSERT operation is handled,
when thread handle INSERT operation, it could't get out loop.

Change-Id: Ifcd69fcf3dfa918f637ff57c363b148dc3c928af
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoblock: remove notification library 77/55777/2
Taeyoung Kim [Tue, 29 Dec 2015 08:01:03 +0000 (17:01 +0900)]
block: remove notification library

- notification library is upper level apis
  and deviced cannot use it. It can be changed
  to other manner to show notices

Change-Id: I7e19684417c7471be3c3bfa3252cb71fe58e9576
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolibdevman: check return values for IO apis 39/55739/2
Taeyoung Kim [Tue, 29 Dec 2015 05:56:36 +0000 (14:56 +0900)]
libdevman: check return values for IO apis

Change-Id: I2e54606ad44b75d0b6cd40666009d98b786dfda0
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agopower: add header file to use launch_app function 37/55737/2
Taeyoung Kim [Tue, 29 Dec 2015 05:14:07 +0000 (14:14 +0900)]
power: add header file to use launch_app function

Change-Id: Id0a078c4e4a558bd4a0f133902a8c2626288e416
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agosysman: fix warnings which are occurred during compiling 34/55734/3
Taeyoung Kim [Tue, 29 Dec 2015 05:02:45 +0000 (14:02 +0900)]
sysman: fix warnings which are occurred during compiling

- Log macros are changed to its own macro
- Return values are checked for write() operaiton

Change-Id: If5eab574172757ccd69b8ff8afa12e58a100c85f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "sysman: fix _E macro to ERR macro" into tizen accepted/tizen/mobile/20151231.072151 accepted/tizen/tv/20151231.072209 accepted/tizen/wearable/20151231.072234 submit/tizen/20151231.001224
Taeyoung Kim [Wed, 30 Dec 2015 23:47:47 +0000 (15:47 -0800)]
Merge "sysman: fix _E macro to ERR macro" into tizen

8 years agosysman: fix _E macro to ERR macro 82/55982/1
Taeyoung Kim [Wed, 30 Dec 2015 23:41:42 +0000 (08:41 +0900)]
sysman: fix _E macro to ERR macro

_E is used in the deviced, not int the sysman.
Thus the macro is fixed to ERR which is defined
in sysman

Change-Id: I34dc363fc6f6ef203cb506dab957bd835a64dca6
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agosysman: fix _E macro to ERR macro
Taeyoung Kim [Wed, 30 Dec 2015 23:41:42 +0000 (08:41 +0900)]
sysman: fix _E macro to ERR macro

_E is used in the deviced, not int the sysman.
Thus the macro is fixed to ERR which is defined
in sysman

Change-Id: I34dc363fc6f6ef203cb506dab957bd835a64dca6
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolicense: change license name 61/55961/1 submit/tizen/20151230.121600
Taeyoung Kim [Wed, 30 Dec 2015 11:53:37 +0000 (20:53 +0900)]
license: change license name

- BSD-1.0      -> BSD-4-Clause
- BSD 2-clause -> BSD-2-Clause

Change-Id: Iea4c9b33a1c0d35c01fa37b17e8750837d8c1aa8
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolicense: update license files for fsck-msdos and newfs-msdos 88/55788/3
Taeyoung Kim [Tue, 29 Dec 2015 08:46:48 +0000 (17:46 +0900)]
license: update license files for fsck-msdos and newfs-msdos

Change-Id: Ie77ca3b9c4b4599733f0ad56ad1ea233a2e79503
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolicense: add license BSD 2-clause and BSD-1.0 to spec file 38/55838/1
Taeyoung Kim [Wed, 30 Dec 2015 00:07:01 +0000 (09:07 +0900)]
license: add license BSD 2-clause and BSD-1.0 to spec file

- newfs-msdos and fsck-msdos use BSD 2-clause and BSD-1.0.
  Thus the license should be noticed on the spec file

Change-Id: I7d4cddee00ab4c3d482ce90b1be4c0f3cddee2dc
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "haptic: remove unused function" into tizen submit/tizen/20151229.094638
Taeyoung Kim [Tue, 29 Dec 2015 04:49:33 +0000 (20:49 -0800)]
Merge "haptic: remove unused function" into tizen

8 years agoMerge "usbhost: remove unused variable" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:49:22 +0000 (20:49 -0800)]
Merge "usbhost: remove unused variable" into tizen

8 years agoMerge "tzip: fix type size mismatching issue" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:49:12 +0000 (20:49 -0800)]
Merge "tzip: fix type size mismatching issue" into tizen

8 years agoMerge "block: remove unused variable" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:49:02 +0000 (20:49 -0800)]
Merge "block: remove unused variable" into tizen

8 years agoMerge "devicectl: fix misstype issue" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:48:53 +0000 (20:48 -0800)]
Merge "devicectl: fix misstype issue" into tizen

8 years agoMerge "libdeviced: fix warnings occurred during compiling" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:48:41 +0000 (20:48 -0800)]
Merge "libdeviced: fix warnings occurred during compiling" into tizen

8 years agoMerge "display: fix warning issues during compiling" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:48:16 +0000 (20:48 -0800)]
Merge "display: fix warning issues during compiling" into tizen

8 years agoMerge "display: get fd from input event" into tizen
Taeyoung Kim [Tue, 29 Dec 2015 04:47:59 +0000 (20:47 -0800)]
Merge "display: get fd from input event" into tizen

8 years agoRemove unused files 27/55727/2
pr.jung [Tue, 29 Dec 2015 03:44:04 +0000 (12:44 +0900)]
Remove unused files

Change-Id: I4770d5954e29e048dce0ca3aec74b69e3be7d62c
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agohaptic: remove unused function 12/55712/1
Taeyoung Kim [Tue, 29 Dec 2015 01:29:38 +0000 (10:29 +0900)]
haptic: remove unused function

Change-Id: I823768b4b87cce22fb1b74dbaab61a3a6cdef7b2
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousbhost: remove unused variable 95/55695/1
Taeyoung Kim [Tue, 29 Dec 2015 00:36:17 +0000 (09:36 +0900)]
usbhost: remove unused variable

Change-Id: I68eed0adb87436f78af63f62a1cf10b3d8a6a867
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agotzip: fix type size mismatching issue 94/55694/1
Taeyoung Kim [Tue, 29 Dec 2015 00:31:24 +0000 (09:31 +0900)]
tzip: fix type size mismatching issue

- Size of pointer in 32bit arch is 4byte, but size of uint64_t is 8byte.
  This occurs the size mismatching issue.
- The issue is fixed by checking type of architecture

Change-Id: If696b7465df81ba401458b94b8559b8521458f84
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: remove unused variable 47/55647/1
Taeyoung Kim [Mon, 28 Dec 2015 10:05:38 +0000 (19:05 +0900)]
block: remove unused variable

- unused variable occurs warning during compiling.
  Thus the variable is removed

Change-Id: I5636c46560de1448f0ee9a2ded3c68a74bfb75dd
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodevicectl: fix misstype issue 46/55646/1
Taeyoung Kim [Mon, 28 Dec 2015 10:02:32 +0000 (19:02 +0900)]
devicectl: fix misstype issue

- different type was used to assign values.
  thus the type is fixed to match type.

Change-Id: I53e358333512b373da4b8951090cb047b4f9884f
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agolibdeviced: fix warnings occurred during compiling 19/55619/4
Taeyoung Kim [Mon, 28 Dec 2015 08:01:15 +0000 (17:01 +0900)]
libdeviced: fix warnings occurred during compiling

- type mismatches are fixed
- unused functions and variables are removed
- missed header files are added

Change-Id: I6f91fc82e047e9dd9e19ad5ab4216f61b88bc705
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: fix warning issues during compiling 76/55576/2
Taeyoung Kim [Mon, 28 Dec 2015 01:03:23 +0000 (10:03 +0900)]
display: fix warning issues during compiling

Change-Id: I1219a85de411d17822e6130f5b45ad19be92a07e
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: get fd from input event 47/55547/2
Taeyoung Kim [Thu, 24 Dec 2015 10:50:15 +0000 (19:50 +0900)]
display: get fd from input event

- fd value was not initialized. Thus the fd is get
  from the input event

Change-Id: I9a159b8c9e7d12175e77f6a2969214dce887da8c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: add function check routine 46/55546/2
Taeyoung Kim [Thu, 24 Dec 2015 10:41:14 +0000 (19:41 +0900)]
display: add function check routine

- device-ops define their own functions to start and stop
  them. Thus, checking the  existance of the functions
  is important before using it.

Change-Id: I36345bec84ba8480219b04f55f39dafd048aee93
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: fix parameter types according to the function prototypes 43/55543/3
Taeyoung Kim [Thu, 24 Dec 2015 10:04:11 +0000 (19:04 +0900)]
display: fix parameter types according to the function prototypes

- The parameters of timer() and ceil() are double.
  Thus their types are changed to double.

Change-Id: I5c01ee5d5003a1e66ec28f4157f7001bc8b8e014
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agodisplay: exchange sprintf() to snprintf() 35/55535/2
Taeyoung Kim [Thu, 24 Dec 2015 08:59:29 +0000 (17:59 +0900)]
display: exchange sprintf() to snprintf()

- sprintf() is unsafe, and thus snprintf() is used instead

Change-Id: I51e0737373922c10d8200207a7452c47bd4c3c7d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agocommon: exchagne strcmp() to strncmp() 34/55534/2
Taeyoung Kim [Thu, 24 Dec 2015 08:54:08 +0000 (17:54 +0900)]
common: exchagne strcmp() to strncmp()

- strcmp() can occur overflow issue. Thus it is changed
  to strncmp()

Change-Id: I640fec1ee49b7f2491a000b9c25b3414a63231c1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "common: add return check routine" into tizen
Taeyoung Kim [Mon, 28 Dec 2015 04:18:39 +0000 (20:18 -0800)]
Merge "common: add return check routine" into tizen

8 years agoMerge "extcon: remove return value in the function whose return type is void" into...
Taeyoung Kim [Mon, 28 Dec 2015 04:18:35 +0000 (20:18 -0800)]
Merge "extcon: remove return value in the function whose return type is void" into tizen

8 years agoMerge "common: fix unreachable codes" into tizen
Taeyoung Kim [Mon, 28 Dec 2015 04:18:30 +0000 (20:18 -0800)]
Merge "common: fix unreachable codes" into tizen

8 years agocommon: add return check routine 08/55508/1
Taeyoung Kim [Thu, 24 Dec 2015 06:25:46 +0000 (15:25 +0900)]
common: add return check routine

- read() was used without checking the return value.
  Thus the checking routine is added

Change-Id: Ie844caa98bc6e55819f3c18d39fdde12a68d613c
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoextcon: remove return value in the function whose return type is void 96/55496/1
Taeyoung Kim [Thu, 24 Dec 2015 05:24:22 +0000 (14:24 +0900)]
extcon: remove return value in the function whose return type is void

- This is a bug, and warning message is occurred during build

Change-Id: I7976393cf2f48561eccdf125d4d80651ef6258e9
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "block: Add and Broadcast signal before unmount device" into tizen
pr.jung [Thu, 24 Dec 2015 05:10:06 +0000 (21:10 -0800)]
Merge "block: Add and Broadcast signal before unmount device" into tizen

8 years agocommon: fix unreachable codes 94/55494/1
Taeyoung Kim [Thu, 24 Dec 2015 04:51:17 +0000 (13:51 +0900)]
common: fix unreachable codes

- Unreachable codes are not used and thus
  they should be fixed

Change-Id: I87f3498967a404394aef1e7ab861ba8d2cc38c2d
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoblock: Add and Broadcast signal before unmount device 33/55333/1
pr.jung [Wed, 23 Dec 2015 07:32:18 +0000 (16:32 +0900)]
block: Add and Broadcast signal before unmount device

Change-Id: I24212935911a17a7ff78df6b49873c87005191a8
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: add config file for TV profile 29/55329/1 accepted/tizen/mobile/20151224.000149 accepted/tizen/tv/20151224.000208 accepted/tizen/wearable/20151224.000225 submit/tizen/20151223.084010 submit/tizen_common/20151229.144031 submit/tizen_common/20151229.154718
Taeyoung Kim [Wed, 23 Dec 2015 07:14:14 +0000 (16:14 +0900)]
display: add config file for TV profile

- Display of TV profile should be turned on. Display is turned off
  when request from outside is delivered. Thus config file
  shows that the display should be on state.

Change-Id: I970de5ee897c7304515b71a9956a450c45fed8a5
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "Fix minor error" into tizen accepted/tizen/mobile/20151223.105158 accepted/tizen/tv/20151223.105209 accepted/tizen/wearable/20151223.105227 submit/tizen/20151223.052839
Taeyoung Kim [Wed, 23 Dec 2015 02:42:52 +0000 (18:42 -0800)]
Merge "Fix minor error" into tizen

8 years agoMerge "display: support display module even if display HAL is not supported" into... accepted/tizen/mobile/20151222.224103 accepted/tizen/tv/20151222.224117 accepted/tizen/wearable/20151222.224138 submit/tizen/20151222.110411
Taeyoung Kim [Tue, 22 Dec 2015 10:48:32 +0000 (02:48 -0800)]
Merge "display: support display module even if display HAL is not supported" into tizen

8 years agoFix minor error 75/55175/1
pr.jung [Tue, 22 Dec 2015 09:18:15 +0000 (18:18 +0900)]
Fix minor error

- fd can be negative value in error case.
- Need to break in switch case.

Change-Id: I06a33b80f0f028d5854adb5208c9242bc504d942
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: support display module even if display HAL is not supported 07/55007/1
Taeyoung Kim [Mon, 21 Dec 2015 08:27:24 +0000 (17:27 +0900)]
display: support display module even if display HAL is not supported

- Display HAL cannot be supported at TV profile. Thus error handling
  is fixed to normal operation

Change-Id: I20437784dc6680c6492befc01834c2aa6582c410
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoextcon: HAL is applied 25/54725/2 accepted/tizen/mobile/20151222.085716 accepted/tizen/tv/20151222.085735 accepted/tizen/wearable/20151222.085759 submit/tizen/20151221.234722 submit/tizen/20151222.023057
Taeyoung Kim [Thu, 17 Dec 2015 11:42:42 +0000 (20:42 +0900)]
extcon: HAL is applied

- TM1 target does not use extcon subsystem of kernel.
  It uses switch subsystem its own. This is not the
  standard, and thus HAL is required

Change-Id: Ie1351ef24cf66885cab3a84abdd25766ae9f48a1
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousb: enable mtp for TM1 target. 40/54640/2 accepted/tizen/mobile/20151217.223835 accepted/tizen/tv/20151217.223852 accepted/tizen/wearable/20151217.223914 submit/tizen/20151217.081028
Taeyoung Kim [Thu, 17 Dec 2015 01:27:04 +0000 (10:27 +0900)]
usb: enable mtp for TM1 target.

- mtp gadget should be enabled to use mtp services.
- mtp-responder will communicate with host PC and show
  the contents in the target

Change-Id: I33912cdf31326f67961d51b6ab69393324c9ebce
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "deviced: Change dependency of zbooting-done.service." into tizen accepted/tizen/mobile/20151215.124545 accepted/tizen/tv/20151215.125227 accepted/tizen/wearable/20151215.125448 submit/tizen/20151215.083725
Taeyoung Kim [Tue, 15 Dec 2015 07:30:32 +0000 (23:30 -0800)]
Merge "deviced: Change dependency of zbooting-done.service." into tizen

8 years agodeviced: Change dependency of zbooting-done.service. 97/54197/1
pr.jung [Mon, 14 Dec 2015 05:32:23 +0000 (14:32 +0900)]
deviced: Change dependency of zbooting-done.service.

Because zbooting-done.service sends booting-done signal too early,
deviced couldn't receive booting-done signal.
So this commit changes the dependency of zbooting-done.service

Change-Id: I59246a92eed09656a2477f3cffb4d8d91f06eb13
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agotouchscreen: add touchscreen module to manage touch input 01/53401/3 accepted/tizen/mobile/20151211.055150 accepted/tizen/tv/20151211.062231 accepted/tizen/wearable/20151211.061129 submit/tizen/20151211.031137
Taeyoung Kim [Fri, 4 Dec 2015 12:20:50 +0000 (21:20 +0900)]
touchscreen: add touchscreen module to manage touch input

- If display is turned on, touchscreen should be enabled.
  And if display is turned off, touchscreen should be disabled.
  to reduce power consumption. Thus touchscreen module is added.

Change-Id: Iff2cad4294ecb5aba1e2ce656b9b2a596af52191
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agousbhost: enable usb host module for mobile and TV profile 17/53717/2
Taeyoung Kim [Wed, 9 Dec 2015 02:10:41 +0000 (11:10 +0900)]
usbhost: enable usb host module for mobile and TV profile

- Mobile and TV targets support usb host devices and thus
  deviced should support usb host module.

Change-Id: Ib76e8a85bd41a29e5d8a09a97bdd988d7a983268
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
8 years agoMerge "block: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath" into tizen
Taeyoung Kim [Fri, 4 Dec 2015 08:15:16 +0000 (00:15 -0800)]
Merge "block: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath" into tizen

8 years agoMerge "display: remove brightness popup operation" into tizen
Taeyoung Kim [Fri, 4 Dec 2015 08:15:09 +0000 (00:15 -0800)]
Merge "display: remove brightness popup operation" into tizen

8 years agoblock: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath 63/53363/1
pr.jung [Fri, 4 Dec 2015 07:43:14 +0000 (16:43 +0900)]
block: Compare MMC_PATH, SCSI_PATH and devnode instead of syspath

There is a case that syspath include SCSI_PATH,
so now deviced is changed to compare with devnode.

Change-Id: I2dc7a9621cf6ee8a0bfba144ce8b56ea228a60ac
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodisplay: remove brightness popup operation 21/53321/1
Taeyoung Kim [Fri, 4 Dec 2015 01:53:30 +0000 (10:53 +0900)]
display: remove brightness popup operation

- Brightness popup is not supported with Tizen 3.0.
  Thus the codes related with communication with
  the popup is removed

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