platform/core/system/deviced.git
8 years agopower off: change fuser option -S to -s 55/50855/1
taeyoung [Tue, 3 Nov 2015 03:11:59 +0000 (12:11 +0900)]
power off: change fuser option -S to -s

- -S means printing syslog. -s means silent operation.
- When -S option is used, syslogd can occur blocking issue.
  Thus -S is changed to -s

Change-Id: I6f664739b552411e1baf70069c565817a3beaaa4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agocommon: add git ignore 24/50824/1
taeyoung [Mon, 2 Nov 2015 13:32:07 +0000 (22:32 +0900)]
common: add git ignore

Change-Id: I075d94b15c64620f7cc81a036a33206c394d107c
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoblock: add signal to contain state information 17/50817/1
taeyoung [Mon, 2 Nov 2015 11:25:48 +0000 (20:25 +0900)]
block: add signal to contain state information

- state information:
    = unmounted forcely
    = file system broken
    = empty file system
    = not supported file system
    = mounted read-only manner

Change-Id: I1c074e57a9449e83d8993ed3a46e821de3c66e17
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoblock: add "format" and "get_device_list" dbus methods 97/50797/2
taeyoung [Mon, 2 Nov 2015 09:25:35 +0000 (18:25 +0900)]
block: add "format" and "get_device_list" dbus methods

- format method is used for formatting block devices
- get_device_list method is used for getting block device list

Change-Id: I5e364c217c194b8840ff44bb8cfd49b1d8efb6d3
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoblock: change operations using a thread per a device 80/50780/2
taeyoung [Mon, 2 Nov 2015 06:42:19 +0000 (15:42 +0900)]
block: change operations using a thread per a device

- Previously, threads are used to mount/format devices,
  and main thread is used for unmounting devices. This occurs
  sync issues between operations on one device.

- Now one thread per one device is made for the operations
  and operations for one device are handled by a queue
  in the device object. Thus the sync issues are removed

Change-Id: Ie5e5f33b57b9fb2e4e1cee165f29d49a35a07052
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agodisplay: add dbus methods for custom and current brightness 83/50183/1 accepted/tizen/mobile/20151031.105450 accepted/tizen/tv/20151031.110226 accepted/tizen/wearable/20151031.110454 submit/tizen/20151030.024639
taeyoung [Mon, 26 Oct 2015 14:02:18 +0000 (23:02 +0900)]
display: add dbus methods for custom and current brightness

- Custom brightness: app defined brightness
- Current brightness: Just current brightness

Change-Id: Ic51a94a7a8020ff344672fb355968c9872f8c8ac
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoMerge "Hardware locked SD Card is not mounted as read only. This patch allows read...
Taeyoung Kim [Thu, 22 Oct 2015 06:06:21 +0000 (23:06 -0700)]
Merge "Hardware locked SD Card is not mounted as read only. This patch allows read only mount of external storage. (even if the device is hardware locked.)" into tizen

8 years agoModification by centeralized memory key initialization 65/49665/1 accepted/tizen/mobile/20151017.101204 accepted/tizen/mobile/20151017.101217 accepted/tizen/tv/20151017.101433 accepted/tizen/tv/20151017.101446 accepted/tizen/wearable/20151017.101858 accepted/tizen/wearable/20151017.101903 submit/tizen/20151017.060445 submit/tizen/20151017.060617 tizen_3.0.m2.a1_mobile_release tizen_3.0.m2.a1_tv_release
Kunhoon Baik [Sat, 17 Oct 2015 05:57:27 +0000 (14:57 +0900)]
Modification by centeralized memory key initialization

According to patch : https://review.tizen.org/gerrit/#/c/49646/,
For buxton memory-init key, Vconf script does not update existing memory-init keys any more
Thus, this patch removes unnecessary duplicated code for initializing memory-init keys.

Change-Id: I27f20009a7482a28a64facf53afcb31a24d01c4a

8 years agoFix security configuration file. Allow send dbus call and check in special case 92/49592/2 accepted/tizen/mobile/20151016.043309 accepted/tizen/tv/20151016.043414 accepted/tizen/wearable/20151016.043440 submit/tizen/20151015.100129
pr.jung [Thu, 15 Oct 2015 09:33:45 +0000 (18:33 +0900)]
Fix security configuration file. Allow send dbus call and check in special case

Change-Id: Ieca49e6f60f8cd4f8a3078a12341709185c491cf
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoHardware locked SD Card is not mounted as read only. 63/49363/1
e.talipov [Tue, 13 Oct 2015 02:58:09 +0000 (11:58 +0900)]
Hardware locked SD Card is not mounted as read only.
This patch allows read only mount of external storage.
(even if the device is hardware locked.)

Change-Id: I412396dfe722820544d3637206757bf97ecb8d4b
Signed-off-by: Elmurod Talipov <e.talipov@samsung.com>
8 years agoblock: update mmc vconf value 25/48425/1 accepted/tizen/mobile/20150923.231129 accepted/tizen/tv/20150923.231138 accepted/tizen/wearable/20150923.231148 submit/tizen/20150923.103110 submit/tizen_common/20151015.190624 submit/tizen_common/20151019.135620
taeyoung [Mon, 21 Sep 2015 11:10:32 +0000 (20:10 +0900)]
block: update mmc vconf value

- Some apis of libstorage are used the mmv vconf key
  to know the change of the mmc card. Thus the vconf key
  is changed for the compatibility

Change-Id: I5f129259b71cdc5f783bec70a9397f99d0ce72c4
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agoMerge "Apply dbus-cynara rule for deviced" into tizen tizen_3.0.m1_mobile tizen_3.0.m1_tv accepted/tizen/mobile/20150911.145428 accepted/tizen/tv/20150911.145434 accepted/tizen/wearable/20150911.145447 submit/tizen/20150911.080939 submit/tizen_common/20151023.083358 submit/tizen_common/20151026.085049 tizen_3.0.m1_mobile_release tizen_3.0.m1_tv_release
Taeyoung Kim [Fri, 11 Sep 2015 07:56:44 +0000 (00:56 -0700)]
Merge "Apply dbus-cynara rule for deviced" into tizen

8 years agoApply dbus-cynara rule for deviced 11/48011/2
pr.jung [Fri, 11 Sep 2015 04:11:14 +0000 (13:11 +0900)]
Apply dbus-cynara rule for deviced

dbus method call which has privilege only allowed

Change-Id: I85e7056d6097130db8ab56ddd91f2a21f38d4e13
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agoblock: in case of mmc device's primary, use static directory for libstorage library 16/47916/2 accepted/tizen/mobile/20150911.091857 accepted/tizen/tv/20150911.091910 accepted/tizen/wearable/20150911.091926 submit/tizen/20150911.075444
Kunhoon Baik [Thu, 10 Sep 2015 04:24:43 +0000 (13:24 +0900)]
block: in case of mmc device's primary, use static directory for libstorage library

     : the libstorage library provide static path like "/usr/storage/sdcard"

Change-Id: I7f196ced789584c457b4bfb6a567caff84bfc9d7
Signed-off-by: taeyoung <ty317.kim@samsung.com>
8 years agodisplay: fix display timeout error 32/47832/1 accepted/tizen/mobile/20150910.070514 accepted/tizen/tv/20150910.070536 accepted/tizen/wearable/20150910.070544 submit/tizen/20150910.025457
Kunhoon Baik [Wed, 9 Sep 2015 08:32:15 +0000 (17:32 +0900)]
display: fix display timeout error

The internal index for vconf key start from number 0.
Thus, data can be 0

Change-Id: I6f68ae97d66cf62263176b067db874db7566b351

8 years agoFix checking effect_handle issue and build script. 01/47501/1 accepted/tizen/mobile/20150904.064232 accepted/tizen/tv/20150904.064254 accepted/tizen/wearable/20150904.064305 submit/tizen/20150904.043915
pr.jung [Fri, 4 Sep 2015 03:05:43 +0000 (12:05 +0900)]
Fix checking effect_handle issue and build script.

Before, it didn't check whethere it is null or not, now it checks.
Before checking architecture on spec file has some problem, so it build as emulator.
So now it checkes whether it has emulator option on or not.

Change-Id: If086212e8071adea36611bb7037660782c7af3b3
Signed-off-by: pr.jung <pr.jung@samsung.com>
8 years agodeviced: Add dbus-glib dependency temporarily 53/46053/1 accepted/tizen/mobile/20150814.011508 accepted/tizen/tv/20150814.011657 accepted/tizen/wearable/20150814.011835 submit/tizen/20150813.113240
Jiyoung Yun [Thu, 13 Aug 2015 11:23:04 +0000 (20:23 +0900)]
deviced: Add dbus-glib dependency temporarily

Currently libdeviced still use dbus-glib api.
But it is deprecated so remove it asap.
To solve build break issue, a temporary patch is added.

Change-Id: I859e6fa276c048996c8e988c62265af3a08a1673
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
8 years agodisplay: Update display state vconf key whenever display state is changed 06/44806/1 accepted/tizen/mobile/20150729.011149 accepted/tizen/tv/20150729.011317 accepted/tizen/wearable/20150729.011407 submit/tizen/20150728.111745
Jiyoung Yun [Tue, 28 Jul 2015 05:22:26 +0000 (14:22 +0900)]
display: Update display state vconf key whenever display state is changed

The display api in capi-system-device depends on display state vconf key.
So it should be updated whenever display state is changed
to notify others changing events.

Change-Id: I52084fbd51da92af2313c2aa130c98bff777a004
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
8 years agoled: Do not use touchled function directly 66/44766/1
Jiyoung Yun [Mon, 27 Jul 2015 12:12:35 +0000 (21:12 +0900)]
led: Do not use touchled function directly

Some profile does not support touchled.
In this case, if other module use touchled api, it fails to build.
So use device structure wrapper function.

Change-Id: Ifff5d57099aacbb948faa49202c099bb18e37286
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
8 years agodeviced: Add gio-2.0 dependency 65/44765/1
Jiyoung Yun [Mon, 27 Jul 2015 12:12:04 +0000 (21:12 +0900)]
deviced: Add gio-2.0 dependency

Change-Id: I934f6e207fcb97ba919b496f265e7264fcf52c0d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
8 years agodevicectl: Add dbusname and devicelist function() 36/44736/1
Jiyoung Yun [Mon, 27 Jul 2015 08:08:46 +0000 (17:08 +0900)]
devicectl: Add dbusname and devicelist function()

These functions will support to get whole dbus name and device list in deviced.
And do not use sync call to request save log and dump mode events.

Change-Id: I51966c0717750b29ce9523ee3f9c95ff57a9bafc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
8 years agodeviced: Do not enter the low battery and auto brightness state on emul. 01/44601/1 submit/tizen/20150727.065505
Jiyoung Yun [Thu, 23 Jul 2015 12:34:05 +0000 (21:34 +0900)]
deviced: Do not enter the low battery and auto brightness state on emul.

The initial value of battery capacity gets from device node on the first boot.
Do not change an auto brightness mode when sim is inserted.
It's a specific mobile product concept.

Change-Id: I731d8a1ca3c4daf3bd8b282e1bd476ed721010e7
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
8 years agodeviced: Remove build warnings and do not use thread unsafey functions 01/44301/2
Jiyoung Yun [Tue, 21 Jul 2015 01:10:07 +0000 (10:10 +0900)]
deviced: Remove build warnings and do not use thread unsafey functions

Thread unsafety functions:
readdir, strerror
Keep the kernel's checkpatch.pl guideline.
Remove build warnings and unused codes.

Change-Id: I79d2442d77531c6ff9e4c6decc862019e7b3e4a4
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Remove build warnings 49/44249/1
Jiyoung Yun [Mon, 20 Jul 2015 07:30:00 +0000 (16:30 +0900)]
block: Remove build warnings

Change-Id: I65b71a1ec8c3c2df168a3d81e752a3e175224dce
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Add a pipe for block to connect with main loop and thread 44/44244/1
Jiyoung Yun [Mon, 20 Jul 2015 07:03:02 +0000 (16:03 +0900)]
block: Add a pipe for block to connect with main loop and thread

Separate signal broadcast and dbus request from mount/format logics in thread.
So deviced does not invoke dbus method call in thread anywhere.

Change-Id: I6798dc85772a0bb22925a73e03a50b08f4169958
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agobattery: Merge Tizen 2.4 source code into tizen branch 71/44171/1
Jiyoung Yun [Fri, 17 Jul 2015 10:16:02 +0000 (19:16 +0900)]
battery: Merge Tizen 2.4 source code into tizen branch

Add TimeToFull and TimeToEmpty of battery functions
Do not enter the suspend state during lanuching poweroff popup
Segmenting lowbat scenarios
Support to notify a status of battery health

Change-Id: I0fe04b062ec1a1f88eda286d1a366d1c75dd9722
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agobattery: Separate power-supply logic from lowbat file 48/44148/1
Jiyoung Yun [Fri, 17 Jul 2015 07:53:56 +0000 (16:53 +0900)]
battery: Separate power-supply logic from lowbat file

Lowbat logic only controls lowbat scenarios
and power-supply logic will update battery status by using uevent.
Other files fixed some codes which are not matched with coding convention rules.

Change-Id: Ic298bf1df9f4dc06774be5d3020de21e401f020d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Add cmake macro to add source file and install conf file 81/44081/3
Jiyoung Yun [Thu, 16 Jul 2015 12:34:24 +0000 (21:34 +0900)]
deviced: Add cmake macro to add source file and install conf file

It will be useful for deviced developers to manage source code and conf file.
ADD_SOURCE macro will contain whole source code in a specificed directory
except for other profile's files.
INSTALL_CONF macro will install a proper conf file as per profile.

Change-Id: I57bcc7c3f423f8564dcb92f2ad5a19d808b7a957
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Change the boot order of zbooting-done.service 35/43535/2 accepted/tizen/mobile/20150717.003050 accepted/tizen/tv/20150717.003103 accepted/tizen/wearable/20150717.003115 submit/tizen/20150716.064734
Jiyoung Yun [Fri, 10 Jul 2015 03:11:59 +0000 (12:11 +0900)]
deviced: Change the boot order of zbooting-done.service

The booting done event will invoke after launching display manager service.
Currently, booting done event is too fast for deviced not to detect it.

System regards a booting done timing as being ready of display manager.

Change-Id: I254f5b31cb63b82c1fe89c70011138c5e6b01ff6
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Separate variable code from logic 60/43460/2
Jiyoung Yun [Thu, 9 Jul 2015 10:49:07 +0000 (19:49 +0900)]
block: Separate variable code from logic

Add function for generating mount path.

Change-Id: Ib06942b3e452682c25dffba920e592684c8c96e8
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Do not use thread unsafe or deprecated system functions 59/43459/1
Jiyoung Yun [Thu, 9 Jul 2015 10:05:32 +0000 (19:05 +0900)]
block: Do not use thread unsafe or deprecated system functions

usleep() is replaced by nanosleep(). (man usleep(7))
readdir() is replaced by readdir_r(). (man readdir(7))
Do not use strerror().

Change-Id: I198e51f3ae5fcc7679fcee508969e27b3c3b91fa
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Change the unmount option when sdcard removed 58/43458/1
Jiyoung Yun [Thu, 9 Jul 2015 09:58:17 +0000 (18:58 +0900)]
block: Change the unmount option when sdcard removed

When other processes still access a sdcard data during removed it,
deviced will send a sigterm and sigkill to the process
to unmount it successfully.

Change-Id: I858046019902e7ae7840868cf9c22c610a35f816
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Add block configuration for multimount option 57/43457/1
Jiyoung Yun [Thu, 9 Jul 2015 09:57:05 +0000 (18:57 +0900)]
block: Add block configuration for multimount option

Currently, deviced does not support multi mount in mmc devices.
So we turn off a multi mount option by using block configuration file.

Change-Id: Ia2eb51cab54e3004d8a43baf0cda0c26f39512c9
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Change the function name of block ops 56/43456/1
Jiyoung Yun [Thu, 9 Jul 2015 09:52:16 +0000 (18:52 +0900)]
block: Change the function name of block ops

To enhance the readability of struct block_dev_ops.

Change-Id: I84e552666a4ec65c1ccee9e3b876c7d9bdd9ab15
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: add getter for block device list 55/43455/1
Jiyoung Yun [Thu, 9 Jul 2015 09:49:55 +0000 (18:49 +0900)]
block: add getter for block device list

Change-Id: I6d9d4ea74bed33f497c64161e28711e17f182c6a
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
9 years agoled: Support touch led using new led HAL 92/40292/2 accepted/tizen/mobile/20150608.002024 accepted/tizen/tv/20150608.002004 accepted/tizen/wearable/20150608.002032 submit/tizen/20150604.080144
Jiyoung Yun [Tue, 2 Jun 2015 03:53:13 +0000 (12:53 +0900)]
led: Support touch led using new led HAL

The existing touch led code is moved to src/led/touch-key.c file.
And it works using new led HAL library.

The details:
https://wiki.tizen.org/wiki/HAL_upgrade_for_Tizen_3.0

Change-Id: I8d744ac5f46c7c4844c9beec95d988835c9e1693
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove default target dependency in zbooting-done.service 17/40217/1 accepted/tizen/common/20150602.072637 accepted/tizen/mobile/20150602.091008 accepted/tizen/tv/20150602.090929 accepted/tizen/wearable/20150602.090937 submit/tizen/20150601.085126
Jiyoung Yun [Mon, 1 Jun 2015 06:11:58 +0000 (15:11 +0900)]
deviced: Remove default target dependency in zbooting-done.service

Default target requires the graphical target.
So it makes a circular target dependency.
Besides each service file don't need to care about the dependency among targets.

Change-Id: I5dd97ae9ae0f313ceb49ea1acebb3962391bd52d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agobattery: Removed insuspend charging support logic 99/40199/1
Jiyoung Yun [Mon, 1 Jun 2015 05:38:34 +0000 (14:38 +0900)]
battery: Removed insuspend charging support logic

Deviced has supported not to enter the power suspend state
if insuspend charging support value is false.
Some devices could not notify battery events to user space themselves in suspend.
So we used to use a speicific node like insuspend_charging_support
to share if this device could raise their events automatically
between deviced and device.

But now, tizen kernel always support charging manager for holding each events
in suspend state. So deviced don't need to provide this logics.

Change-Id: I5854e66f0025897d850c0ebccdc250d9432686c2
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agousb: Do not go to suspend state while running usb device 94/40194/2 submit/tizen/20150601.052811
Jiyoung Yun [Mon, 1 Jun 2015 05:17:49 +0000 (14:17 +0900)]
usb: Do not go to suspend state while running usb device

When usb device is connected,
deviced does not go to suspend state for supporting usb operation.

Change-Id: I4cc0baf785c208aa41ce7733d6bec09a748b8886
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodisplay: Apply dpms get method call in wayland profile 87/40187/2
Jiyoung Yun [Mon, 1 Jun 2015 02:26:05 +0000 (11:26 +0900)]
display: Apply dpms get method call in wayland profile

Enlightenment provides a getter api for the current dpms state.
Deviced uses the api instead of internal value.

Change-Id: Ib9a401eeabbd5216a1c17b7d84d896deeb2f9324
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodisplay: Do not control LIBINPUT_EVENT_DEVICE_ADDED event 51/40151/1 submit/tizen/20150529.124502
Jiyoung Yun [Fri, 29 May 2015 12:38:02 +0000 (21:38 +0900)]
display: Do not control LIBINPUT_EVENT_DEVICE_ADDED event

Change-Id: Ia969a985e4b8a40c52fc4e0d366b71d646173d77
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Add device changed signal
Jiyoung Yun [Fri, 29 May 2015 10:42:31 +0000 (19:42 +0900)]
block: Add device changed signal

/Org/Tizen/System/DeviceD/Block/Devices/[devnode]
  Interfaces
    org.tizen.system.deviced.Block
      methods
        Mount ("s" mount point)
        Unmount ("i" unmount option)  /* 0 : Normal, 1 : Force */
      signals
        DeviceChanged ("issssssisii"
                        block type, /* 0 : scsi, 1 : mmc */
                        devnode,
                        syspath,
                        fs_usgae,
                        fs_type,
                        fs_version,
                        fs_uuid_enc,
                        readonly, /* 0 : rw, 1 : ro */
                        mount_point,
                        state, /* 0 : unmount, 1 : mount */
                        primary) /* 0 : false, 1 : true */

Change-Id: I6ea8d7abd9d806a9b1e64e13fc011df3a710493f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Add new dbus signal for broadcasting added or removed object
Jiyoung Yun [Thu, 28 May 2015 07:59:04 +0000 (16:59 +0900)]
block: Add new dbus signal for broadcasting added or removed object

When object is added or removed,
BlockManager interface will broadcast those signal.
Application can receive the event and
register the dbus signal for each object by using new object path.

Object path
/Org/Tizen/System/DeviceD/Block/Manager
  Interfaces
    org.tizen.system.deviced.BlockManager
      signals
        ObjectAdded ("s" Object path)
        ObjectRemoved ("s" Object path)

Change-Id: I756d2234ab421c86e04c588f1c9e94e89432c6c4
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Add block manager and block devices dbus object 95/39895/2
Jiyoung Yun [Tue, 26 May 2015 06:08:10 +0000 (15:08 +0900)]
block: Add block manager and block devices dbus object

Block module's dbus structure:
* /Org/Tizen/System/DeviceD/Block/Manager
    - org.tizen.system.deviced.BlockManager
        - ShowDeviceList ()
* /Org/Tizen/System/DeviceD/Block/Devices/[devnode]
    - org.tizen.system.deviced.Block
        - Mount (IN s mount_point, OUT i result)
        - Unmount (IN i option, OUT i result)

Each block device provides a specific dbus object and
it is connected with a block interface which supports to mount and unmount.
Block manager is for managing whole block devices.

The existing Block object and interface is changed to block manager's.

Change-Id: Iea3c98c6bfaf92da9d5f23cbadcd72bcf0180ca5
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Add primary flags in block data 94/39894/2
Jiyoung Yun [Tue, 26 May 2015 05:39:43 +0000 (14:39 +0900)]
block: Add primary flags in block data

MMC should be known which block is a primary device.
A primary device means that it is the first partition in each device.

Change-Id: Ie83f829d0c3470b26fd0cf2169b242e2f5b89e86
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Add format operation 90/39890/3
Jiyoung Yun [Tue, 26 May 2015 05:32:24 +0000 (14:32 +0900)]
block: Add format operation

When user request to format a specific block device,
it will format the device and update the related information.
The uuid is always updated by formatting.

Change-Id: I35eb468e53204e2d833b59ef71a7f6a5cd0a006c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Support to handle individual scenario btw mmc and usb storage. 89/39889/3
Jiyoung Yun [Tue, 26 May 2015 05:17:31 +0000 (14:17 +0900)]
block: Support to handle individual scenario btw mmc and usb storage.

Add struct block_dev_ops for device operation sets
for supporting to handle individual scenario btw mmc and usb storage.
MMC and usb storage can have each other scenario
when block device is added or removed.
In this case, block_dev_ops is useful.

Change the struct mmc_fs_ops to struct block_fs_ops.

Change-Id: I9bdba58d6ded1b355ea526a02083c06a149abf26
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoextcon: Do not hdmi lock when hdmi cable is not initialized 32/39632/2
Jiyoung Yun [Wed, 20 May 2015 05:44:55 +0000 (14:44 +0900)]
extcon: Do not hdmi lock when hdmi cable is not initialized

Change-Id: Id86a7a4965cb4504f0eda2071e8b8e78e78f3908
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodisplay: Fix segfualt issue when display stop and re-start 33/39133/2
Jiyoung Yun [Mon, 11 May 2015 04:35:51 +0000 (13:35 +0900)]
display: Fix segfualt issue when display stop and re-start

When display stop, display_dev is released.
But it does not allocate when display restart, so add it.

Change-Id: I2e2c25ce67ef7a7c26db4e890008d382980faadd
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agopower: Add power method call 69/39769/1
Jiyoung Yun [Fri, 22 May 2015 05:12:37 +0000 (14:12 +0900)]
power: Add power method call

This method is linked to device_power_reboot() in capi-system-device module.
It is a Tizen 2.3.1 public API.
Other method call is for internal modules, not public.

Change-Id: I195487cd6315a57da019fc52e98b7000d929e53f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Add GetBrightnessForCamera method in torch led module 67/39767/1
Jiyoung Yun [Fri, 22 May 2015 05:07:23 +0000 (14:07 +0900)]
deviced: Add GetBrightnessForCamera method in torch led module

GetBrightnessForCamera is for camera library.
Currently they do not have a daemon for camera,
but they need to get camera brightness value without led priv.
So security team and mmfw team guys agreed to add temporarily method.
It's a temporary solution on Tizen 2.4 and will be removed asap.

Change-Id: I2f0b1c95c2fcb4535efb0958a32ce93f8f509d01
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Add changed flash state method 64/39764/1
Jiyoung Yun [Fri, 22 May 2015 05:02:47 +0000 (14:02 +0900)]
deviced: Add changed flash state method

Whenever who requests to turn on and off flash device,
deviced will broadcast 'ChangeFlashState' dbus signal.

Change-Id: Ic07f3568d804753b84972cf4f2a4e2cfee4af4b4
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodisplay: Support dpms control on wayland 31/39031/4
Jiyoung Yun [Thu, 7 May 2015 10:10:59 +0000 (19:10 +0900)]
display: Support dpms control on wayland

Deviced does not use display HAL to control dpms anymore.
Instead it control the power of display automatically
with build configuration.
It also supports to control display in wayland using dbus signal.

Change-Id: I691a3bb450ff734ceafd559c07e281dc18aee78c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodisplay: Update device-interface code more simple 94/38994/1
Jiyoung Yun [Wed, 6 May 2015 10:13:30 +0000 (19:13 +0900)]
display: Update device-interface code more simple

Do not use deprecated OAL functions (device_set/get_property)
instead it accesses /sys/power/* nodes directly.
And remove the unnecessary x-lcd-on.c file and PMSys structure.

Change-Id: I37495125589f7e9d9880e333416d1bfea7e2fa1c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodisplay: Change the default lcd timeout time to 30s (30000s->30s) 61/38961/5
Jiyoung Yun [Mon, 4 May 2015 07:37:14 +0000 (16:37 +0900)]
display: Change the default lcd timeout time to 30s (30000s->30s)

Only mobile profile will need this operation.
We should redesign how to manage other profile by one code.

Change-Id: Ib6ab0256ed0692e3ea0f0e949fffd12fd4247315
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agohaptic: Add exception handling of unexpectedly killed process. 43/38243/11
Jiyoung Yun [Fri, 17 Apr 2015 08:23:53 +0000 (17:23 +0900)]
haptic: Add exception handling of unexpectedly killed process.

When some process is killed unexpectedly,
it should control to stop, close and collect the related resources.

Change-Id: I4dd9a226304b7d755ac6d0d5a9ad1ba9bb79ed40
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Update the dbus watch logic. 39/38239/7
Jiyoung Yun [Wed, 15 Apr 2015 07:59:11 +0000 (16:59 +0900)]
deviced: Update the dbus watch logic.

Deviced will invoke the registered function to the sender
whenever the name owner of sender is changed.

Change-Id: Iffd7474cc53531cb8433aaf9c0ea9035d1c5cd3e
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoblock: Seperate the mount/unmount code from mmc logic. 68/38068/9
Jiyoung Yun [Thu, 23 Apr 2015 08:00:36 +0000 (17:00 +0900)]
block: Seperate the mount/unmount code from mmc logic.

There are two type of the supported block device type in deviced.
* Scsi - USB HOST STORAGE
* MMC - SD

The exisiting mmc module has combined block device logic with mmc.
To support scsi block devices, block logic is seperated.
Block module supports to mount multi partition.
The mount point is '/usr/storage/[uuid]'.
To show the current mounted file system,
deviced provides a below dbus method call.
* object path: /Org/Tizen/System/DeviceD/Block
* interface name: org.tizen.system.deviced.Block.ShowDeviceList

TODO: Should be fixed the thread safety issue.

Change-Id: Ie13544f3c2075018c238357167b35018448ff573
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoMerge "deviced: Add udev monitoring logic" into tizen
Jiyoung Yun [Wed, 22 Apr 2015 09:18:50 +0000 (02:18 -0700)]
Merge "deviced: Add udev monitoring logic" into tizen

9 years agocradle: Register missing exit function 70/38570/1
Jiyoung Yun [Wed, 22 Apr 2015 07:34:05 +0000 (16:34 +0900)]
cradle: Register missing exit function

Change-Id: I2464cf219d44314b70fc56677de007888ad8bc83
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Add udev monitoring logic 23/38323/5
Jiyoung Yun [Thu, 16 Apr 2015 11:16:41 +0000 (20:16 +0900)]
deviced: Add udev monitoring logic

Sometimes uevent from udev has more various information.
In this case, deviced can use udev monitoring apis.

Change-Id: I6d56620341a0d0ae23b691d4c172377f61672766
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Fix uninvoked device notifier func problem 60/38160/3 accepted/tizen/common/20150421.084603 accepted/tizen/mobile/20150421.232844 accepted/tizen/tv/20150421.232823 accepted/tizen/wearable/20150421.095706 submit/tizen/20150421.033354
Jiyoung Yun [Tue, 14 Apr 2015 01:07:16 +0000 (10:07 +0900)]
deviced: Fix uninvoked device notifier func problem

Device notifier is managed by a list.
The list can be changed during other notifier callback function.
So do not remove in unregister func.
Instead it marks deleted and will be removed on deviced idle time.

Change-Id: I7074c2ca99000c10bcfee44047d08de2f15cb7f1
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Add tizen environment to deviced process 97/38097/3
Jiyoung Yun [Mon, 13 Apr 2015 03:51:33 +0000 (12:51 +0900)]
deviced: Add tizen environment to deviced process

To control display, deviced needs a DISPLAY enviroment value.
So the dependency of tizen-system-env.service is added.

Change-Id: I691015d54c12577c7e8b24df609069afaffc5bf7
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove unused device notifier codes 59/38159/1
Jiyoung Yun [Tue, 14 Apr 2015 01:02:03 +0000 (10:02 +0900)]
deviced: Remove unused device notifier codes

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: I475b762fc6f8e44eac73b57b6020179bc2f14788

9 years agopower: Do not use vconf key to control poweroff operation 42/37842/5
Jiyoung Yun [Tue, 7 Apr 2015 10:01:17 +0000 (19:01 +0900)]
power: Do not use vconf key to control poweroff operation

Before changing, deviced can be turn off the target by vconf key.
Now all poweroff case of the dependent on vconf key are removed.
And removed unsupported recovery, fota codes.

Change-Id: Ia01a4e1f898ecb3451c81d226521a4864712dd6c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Add device idler logic 30/37830/7
Jiyoung Yun [Tue, 7 Apr 2015 06:21:41 +0000 (15:21 +0900)]
deviced: Add device idler logic

It allows for callbacks to be called when the daemon is idle state.
func:
  int add_idle_request(int (*func)(void *data), void *data);

Change-Id: I2d7879874da5bd072b6ed205ff4d33a81e919dc7
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove Eina_list codes 26/37826/4
Jiyoung Yun [Tue, 7 Apr 2015 04:43:53 +0000 (13:43 +0900)]
deviced: Remove Eina_list codes

Do not use Eina_list anymore.
Instead deviced will use glist api in glibc.

Change-Id: Ia9a2a8a24baadb14e1b5c6fe02f315c56d9b500c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove unused vconf key and logics 61/37761/3
Jiyoung Yun [Fri, 3 Apr 2015 11:52:12 +0000 (20:52 +0900)]
deviced: Remove unused vconf key and logics

Removed vconf key list:
VCONFKEY_SYSMAN_MMC_DEVICE_CHANGED
VCONFKEY_STARTER_SEQUENCE
VCONFKEY_SETAPPL_PWRSV_CUSTMODE_CPU
VCONFKEY_LCD_BRIGHTNESS_INIT
VCONFKEY_INTERNAL_PRIVATE_MMC_ID
VCONFKEY_DEVICED_BOOT_POWER_ON_STATUS
VCONFKEY_SETAPPL_ACCESSIBILITY_TTS

Change-Id: Ia256ac802c65ca6c0725f1bbe690beca6802ffaf
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agousb: Fix usb connection on 64bit machine 61/37661/2 accepted/tizen/common/20150408.102937 accepted/tizen/mobile/20150408.104258 accepted/tizen/tv/20150413.065414 accepted/tizen/wearable/20150408.103939 submit/tizen/20150407.103222 submit/tizen_tv/20150413.000000
Jiyoung Yun [Thu, 2 Apr 2015 04:00:45 +0000 (13:00 +0900)]
usb: Fix usb connection on 64bit machine

In 64bit machine, sdb can't connect properly to a host.
This patch fixed the issue by changing fconf value.

Change-Id: Ib2c8ac40f7e8a06d93c63141b3e5c5a8945b54c7
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoudev: Change the device-change-handler to udev module 46/37746/3
Jiyoung Yun [Fri, 3 Apr 2015 08:46:51 +0000 (17:46 +0900)]
udev: Change the device-change-handler to udev module

Sliding keyboard and tvout is not supported currently.
These logic will add as per the common kernel interface.
Change the device-change-handler to udev module.
And remove the unnecessary codes and defines.
Remove device-handler.h file.

Change-Id: Iecb44fd52cafd7fc3708f3834eecf4f3e7b1df12
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoextcon: Do not invoke the update() if the status is the same as before 39/37739/3
Jiyoung Yun [Fri, 3 Apr 2015 07:35:14 +0000 (16:35 +0900)]
extcon: Do not invoke the update() if the status is the same as before

Do not invoke the update func. if the status is the same as before.
And do not printout error logs for not matched device.
The information of not matched device is already printed out on booting time.
So it's redundant logs.

Change-Id: I8bd2696036bb4633eb05a128d5a9de46dc35fed1
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agofs: Support to mount ext4 file system 55/37755/2
Jiyoung Yun [Fri, 3 Apr 2015 10:43:11 +0000 (19:43 +0900)]
fs: Support to mount ext4 file system

Change-Id: Ib3bd2b33ea540c87b7c2e1ee4b6d9d825ccdc7bc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agommc: Change the udev register way 52/37752/2
Jiyoung Yun [Fri, 3 Apr 2015 10:28:29 +0000 (19:28 +0900)]
mmc: Change the udev register way

Do not use an extra udev logic.
Instead I shared the core udev logic.

Change-Id: I879f5f7e2fdbcdac46f06e035e058f3db7c2339a
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoextcon: Support hdmi devices 35/37735/2
Jiyoung Yun [Fri, 3 Apr 2015 06:46:44 +0000 (15:46 +0900)]
extcon: Support hdmi devices

Hdmi-hdcp, hdmi-audio are not common interfaces in kernel side.
So I removed the codes depends on product kernel.

Change-Id: I38da3fc3215a5d814e48a6ba582403053e1920fb
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoextcon: Support dock devices 17/37717/3
Jiyoung Yun [Fri, 3 Apr 2015 04:19:48 +0000 (13:19 +0900)]
extcon: Support dock devices

Dock module will be activated by extcon event.
If there is no event for dock, it doesn't work.

Change-Id: I13992b2b1d8736ee84e84623aea1bae651f23ccc
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agopackaging/postinst: remove erroneous -i on vconftool call 80/37580/2
Stephane Desneux [Tue, 31 Mar 2015 10:19:45 +0000 (12:19 +0200)]
packaging/postinst: remove erroneous -i on vconftool call

This suppresses the following warning at installation time:
WARNING: only keys beginning with memory/ are allowing option -i

Change-Id: I3763268f849bb551d4dd6356261622661f277a8c
Signed-off-by: Stephane Desneux <stephane.desneux@open.eurogiciel.org>
9 years agoextcon: Load all attached extcon nodes 16/37716/2
Jiyoung Yun [Fri, 3 Apr 2015 03:33:07 +0000 (12:33 +0900)]
extcon: Load all attached extcon nodes

I tried to get the information of extcon nodes from udev_enumerate,
but it was failed, it depended on kernel extcon uevent logic.
So deviced searches the attached extcon nodes by accessing the node directly.

Change-Id: I1e6ce69a85b9b3a917079a3570e747b3a0880f7d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoextcon: Enable earjack control logic and remove unused files(ta,usb) 64/37664/2
Jiyoung Yun [Thu, 2 Apr 2015 06:21:05 +0000 (15:21 +0900)]
extcon: Enable earjack control logic and remove unused files(ta,usb)

Deviced recognizes the ta(charger) status by using power-supply uevent.
So extcon doesn't care about the ta status.
Usb-handler logic launches usb-server whenever usb is connected,
but usb-server is deprecated and usb logic is included in deviced.

Change-Id: I21d526fb44aebbdac9e21671e45c0237a6335c8b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove unnecessary modules like factory, csc and testmode 62/37662/2
Jiyoung Yun [Thu, 2 Apr 2015 04:21:39 +0000 (13:21 +0900)]
deviced: Remove unnecessary modules like factory, csc and testmode

Change-Id: I566e9a04a4b255e30c24c37e2bb8a047e96ba73b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Add tool pkgs for deviced 35/37635/1
Jiyoung Yun [Wed, 1 Apr 2015 12:32:55 +0000 (21:32 +0900)]
deviced: Add tool pkgs for deviced

Add deviced-tool pkg to install helper programs.

Change-Id: Ibe36c5dc4fc86acb8f01ba2f8c6da4b0d8ec5f61
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodisplay: Use libinput to get input events 90/37590/4
Jiyoung Yun [Tue, 31 Mar 2015 13:57:37 +0000 (22:57 +0900)]
display: Use libinput to get input events

Remove the exisiting input code and use libinput for getting input events
It's for common use with wayland input system.

Change-Id: I2de534b73250e8d1fdfccd3b02f64eb13efcb45a
Signed-off-by: Seunghun Pi <sh.pi@samsung.com>
9 years agodeviced: Move direct_set_debug script from usb-server 16/37516/4 accepted/tizen/common/20150407.101605 accepted/tizen/tv/20150407.082059 accepted/tizen/wearable/20150405.123350 submit/tizen/20150401.022148
Jiyoung Yun [Mon, 30 Mar 2015 10:04:02 +0000 (19:04 +0900)]
deviced: Move direct_set_debug script from usb-server

Usb-server is no longer used.
Instead to control usb devices will be replaced by deviced.
direct_set_debug script is for controlling sdb or ssh tools manually.
It is a very helpful when deviced does not work normally.

Change-Id: Ib0b3369677d1a1819fb5d57c5072c477e2b389f5
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Remove unnecessary service files 75/37575/2
Jiyoung Yun [Tue, 31 Mar 2015 08:11:53 +0000 (17:11 +0900)]
deviced: Remove unnecessary service files

devicectl-start@/stop@ service files are just helper modules.
It does not need to register by systemd.
You can execute the devicectl binary directly.

Change-Id: I24516c642d558e30e2288b36ee0b81fec0cef244
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoextcon: Add extcon test module on devicectl 84/37384/5
Jiyoung Yun [Wed, 25 Mar 2015 12:03:04 +0000 (21:03 +0900)]
extcon: Add extcon test module on devicectl

To test extcon devices, devicectl supports to enable/disable device manually.

commands:
devicectl extcon enable [MODULE NAME]
devicectl extcon disable [MODULE NAME]

Change-Id: I7f032aee5eb5415380a3dc040e4b13bd9a85af74
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agousb-host: Fix dbus segfault issue on GetDeviceList method call 27/37527/2
Jiyoung Yun [Mon, 30 Mar 2015 12:50:25 +0000 (21:50 +0900)]
usb-host: Fix dbus segfault issue on GetDeviceList method call

dbus_message_iter_append_basic() makes segfault
when string is NULL.
So the null is changed to "" string.

Change-Id: I1afe2971d2c3ca7221c40c1e67959531de60e86b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoGet rid of unnecesary dbus-glib dependency 43/37543/1
Maciej Wereski [Mon, 30 Mar 2015 14:45:49 +0000 (16:45 +0200)]
Get rid of unnecesary dbus-glib dependency

None of dbus-glib functions were used in libdeviced. Besides dbus-glib is
deprecated.

Change-Id: I6ea986bc3548b36390493050078edacb26a7cb7f
Signed-off-by: Maciej Wereski <m.wereski@partner.samsung.com>
9 years agousb-host: Add the attached usb host device on booting time 08/37508/1
Jiyoung Yun [Mon, 30 Mar 2015 08:23:05 +0000 (17:23 +0900)]
usb-host: Add the attached usb host device on booting time

When usb host devices are connected before boot,
it will add usb host list automatically by udev enumerate.

Change-Id: I9d0c56405d3c31a8921f0cd724722381110169cf
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agousb-host: Add ChangedDevice signal 79/37479/5
Jiyoung Yun [Fri, 27 Mar 2015 10:47:49 +0000 (19:47 +0900)]
usb-host: Add ChangedDevice signal

Whenever usb host devices are connected and disconnected,
ChangedDevice signal will broacast with whole information about the device.

Added signal:
ChangedDevice("isiiiiisss")
 - int32 : Usbhost state(0:remove, 1:add)
 - The order of other signatures are the same with that of dbus method.
   (devpath, baseclass, subclass, protocol, vendorid, productid,
    manufacturer, product, serial)

Change-Id: I23002f1a0766584b49bc9dd4c4c42ea5bde5a002
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agousb-host: Add dbus method to provide the current device list and count 71/37471/4
Jiyoung Yun [Fri, 27 Mar 2015 08:36:53 +0000 (17:36 +0900)]
usb-host: Add dbus method to provide the current device list and count

Added dbus method:
GetDeviceList("i")
 - "i" : baseclass
 - Return whole device information about the matching baseclass.
GetDeviceListCount("i")
 - "i" : baseclass
 - Return device count about the matching baseclass.
PrintDeviceList
 - Print out whole device information for debugging

Change-Id: Iebf51ec81d30b431e384cd2e57a0c1fc3ca2b1cb
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agousb-host: Add usb host logic 38/37438/7
Jiyoung Yun [Thu, 26 Mar 2015 12:29:15 +0000 (21:29 +0900)]
usb-host: Add usb host logic

When usb host device is added or removed,
deviced receives the usb uevent and control internal usb host list.

Usb host device must have at least one interface.
And an interface is matched with a specific usb class.

Change-Id: Ib0164daa4b7649820146092f2f04e814f5cef4ca
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agommc: Enable filesystem routine 81/37481/2
Jiyoung Yun [Fri, 27 Mar 2015 11:02:17 +0000 (20:02 +0900)]
mmc: Enable filesystem routine

MMC directory is interlaced with filesystem and mmc logic.
Filesystem logic should be enable regardless of the supported devices.
So I enable MMC routine first and will be separated two logics.
And MMC routine works when sdcard is connected.
So it does not make any overhead at present.

Change-Id: I7c02968aa989df842fc8c43d92af94e92a588be1
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agoextcon: Changed the function name easily identifiable 82/37382/1
Jiyoung Yun [Wed, 25 Mar 2015 11:57:39 +0000 (20:57 +0900)]
extcon: Changed the function name easily identifiable

get_extcon_uevent_state is changed to get_extcon_state_node.
This function is for getting state node string.
And remove the duplicated logic regarding extcon_changed() and extcon_update().

Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
Change-Id: Ifdd5f5f3d1a1b710d9ead02bce64d7cb7e388fdc

9 years agodeviced: Update usb vconf key whenever usb is connected or not 34/36634/2 accepted/tizen/common/20150313.083716 accepted/tizen/mobile/20150313.084749 accepted/tizen/tv/20150313.084452 accepted/tizen/wearable/20150313.084617 submit/tizen/20150312.105238
Jiyoung Yun [Wed, 11 Mar 2015 06:33:48 +0000 (15:33 +0900)]
deviced: Update usb vconf key whenever usb is connected or not

Currently, runtime-info uses VCONFKEY_SYSMAN_USB_STATUS vconf key
to judge if usb is connected or not.
Deviced will update the vconf key whenever usb is changed.

Change-Id: I97ab2e9a7a8228fe33b14297b4c002398fd9532c
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Apply display HAL structure 28/36428/2
Jiyoung Yun [Fri, 6 Mar 2015 09:04:05 +0000 (18:04 +0900)]
deviced: Apply display HAL structure

Deviced will control display power using display HAL.
It also supports to control display brightness.

Change-Id: Ie15c0abe434610dfe60bbda7949ba6e5f71d174f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Add inline function to make dbus reply automatically 78/35878/4
Jiyoung Yun [Wed, 25 Feb 2015 12:30:05 +0000 (21:30 +0900)]
deviced: Add inline function to make dbus reply automatically

Apply new function in extcon module

Change-Id: Ia9a77fd88be8151288e9f51bc1ddd3e9ece74f8b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: remove out unsupported device from device list 08/36008/2
Jiyoung Yun [Fri, 27 Feb 2015 09:56:33 +0000 (18:56 +0900)]
deviced: remove out unsupported device from device list

Unsupported device remove out from device list.
It does not invoke any function of unsuppoted device include exit() function.

Change-Id: Ia09a9a0b3676b0fc8cca8cbf3875c72961d51d1b
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: resolve resource leak issue 31/35931/2
Jiyoung Yun [Thu, 26 Feb 2015 08:03:49 +0000 (17:03 +0900)]
deviced: resolve resource leak issue

DD_LIST_FOREACH define is not proper to remove elementary in loop.
Instead, DD_LIST_FOREACH_SAFE define redeems the issue.
So change the FOREACH define to FOREACH_SAFE.

Change-Id: I722ca291115f2a82b06d29764a7bfc4ae8cc7256
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Enable vibrator and check whether it is available at runtime 10/35910/3
Jiyoung Yun [Thu, 26 Feb 2015 03:51:46 +0000 (12:51 +0900)]
deviced: Enable vibrator and check whether it is available at runtime

Deviced will check if there is an external vibrator plugin.
It should be named 'libhaptic-module.so' in lib directory.
If not, it checks whether this target supports the input force feedback.
If there is no valid module, it will return fail
and do not register any function and method related to vibrator.

Change-Id: I3bc1da9cb378fac1ecea3cb0480915e0485c229f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: add null point check 07/36007/1 accepted/tizen/common/20150227.160943 accepted/tizen/mobile/20150302.010819 accepted/tizen/tv/20150302.010441 accepted/tizen/wearable/20150302.084024 submit/tizen/20150227.111152
Jiyoung Yun [Fri, 27 Feb 2015 09:54:59 +0000 (18:54 +0900)]
deviced: add null point check

When deviced is terminated,
if there is no led device, it makes a segfault issue by null point access.

Change-Id: I8724c9f235b090e04682d514e9de8f030b7591ca
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
9 years agodeviced: Enable camera led module and check whether it is available at runtime 11/35311/5
Jiyoung Yun [Thu, 12 Feb 2015 01:51:13 +0000 (10:51 +0900)]
deviced: Enable camera led module and check whether it is available at runtime

Deviced loads led HAL structure at loading time.
If it is failed, the device does not support camera led module.

Change-Id: Ie45423cdd920ae5192b56a678c4c256b1e5f4a2f
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>