summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-09-11Merge "Apply dbus-cynara rule for deviced" into tizentizen_3.0.m1_tv_releasetizen_3.0.m1_mobile_releasesubmit/tizen_common/20151026.085049submit/tizen_common/20151023.083358submit/tizen/20150911.080939accepted/tizen/wearable/20150911.145447accepted/tizen/tv/20150911.145434accepted/tizen/mobile/20150911.145428tizen_3.0.m1_tvtizen_3.0.m1_mobileTaeyoung Kim1-6/+30
2015-09-11Apply dbus-cynara rule for devicedpr.jung1-6/+30
dbus method call which has privilege only allowed Change-Id: I85e7056d6097130db8ab56ddd91f2a21f38d4e13 Signed-off-by: pr.jung <pr.jung@samsung.com>
2015-09-10block: in case of mmc device's primary, use static directory for libstorage ↵submit/tizen/20150911.075444accepted/tizen/wearable/20150911.091926accepted/tizen/tv/20150911.091910accepted/tizen/mobile/20150911.091857Kunhoon Baik1-10/+24
library : the libstorage library provide static path like "/usr/storage/sdcard" Change-Id: I7f196ced789584c457b4bfb6a567caff84bfc9d7 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2015-09-09display: fix display timeout errorsubmit/tizen/20150910.025457accepted/tizen/wearable/20150910.070544accepted/tizen/tv/20150910.070536accepted/tizen/mobile/20150910.070514Kunhoon Baik1-3/+0
The internal index for vconf key start from number 0. Thus, data can be 0 Change-Id: I6f68ae97d66cf62263176b067db874db7566b351
2015-09-04Fix checking effect_handle issue and build script.submit/tizen/20150904.043915accepted/tizen/wearable/20150904.064305accepted/tizen/tv/20150904.064254accepted/tizen/mobile/20150904.064232pr.jung3-5/+6
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>
2015-08-13deviced: Add dbus-glib dependency temporarilysubmit/tizen/20150813.113240accepted/tizen/wearable/20150814.011835accepted/tizen/tv/20150814.011657accepted/tizen/mobile/20150814.011508Jiyoung Yun3-0/+4
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>
2015-07-28display: Update display state vconf key whenever display state is changedsubmit/tizen/20150728.111745accepted/tizen/wearable/20150729.011407accepted/tizen/tv/20150729.011317accepted/tizen/mobile/20150729.011149Jiyoung Yun1-0/+1
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>
2015-07-27led: Do not use touchled function directlyJiyoung Yun3-10/+60
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>
2015-07-27deviced: Add gio-2.0 dependencyJiyoung Yun2-0/+2
Change-Id: I934f6e207fcb97ba919b496f265e7264fcf52c0d Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-07-27devicectl: Add dbusname and devicelist function()Jiyoung Yun5-24/+132
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>
2015-07-23deviced: Do not enter the low battery and auto brightness state on emul.submit/tizen/20150727.065505Jiyoung Yun2-10/+25
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>
2015-07-21deviced: Remove build warnings and do not use thread unsafey functionsJiyoung Yun51-1566/+4016
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>
2015-07-20block: Remove build warningsJiyoung Yun3-7/+8
Change-Id: I65b71a1ec8c3c2df168a3d81e752a3e175224dce Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-07-20block: Add a pipe for block to connect with main loop and threadJiyoung Yun1-7/+108
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>
2015-07-17battery: Merge Tizen 2.4 source code into tizen branchJiyoung Yun9-126/+351
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>
2015-07-17battery: Separate power-supply logic from lowbat fileJiyoung Yun7-386/+303
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>
2015-07-17deviced: Add cmake macro to add source file and install conf fileJiyoung Yun7-148/+183
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>
2015-07-15deviced: Change the boot order of zbooting-done.servicesubmit/tizen/20150716.064734accepted/tizen/wearable/20150717.003115accepted/tizen/tv/20150717.003103accepted/tizen/mobile/20150717.003050Jiyoung Yun1-0/+1
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>
2015-07-10block: Separate variable code from logicJiyoung Yun1-23/+24
Add function for generating mount path. Change-Id: Ib06942b3e452682c25dffba920e592684c8c96e8 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-07-09block: Do not use thread unsafe or deprecated system functionsJiyoung Yun4-6/+18
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>
2015-07-09block: Change the unmount option when sdcard removedJiyoung Yun1-1/+1
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>
2015-07-09block: Add block configuration for multimount optionJiyoung Yun4-0/+48
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>
2015-07-09block: Change the function name of block opsJiyoung Yun2-10/+10
To enhance the readability of struct block_dev_ops. Change-Id: I84e552666a4ec65c1ccee9e3b876c7d9bdd9ab15 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-07-09block: add getter for block device listJiyoung Yun1-1/+93
Change-Id: I6d9d4ea74bed33f497c64161e28711e17f182c6a Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
2015-06-02led: Support touch led using new led HALsubmit/tizen/20150604.080144accepted/tizen/wearable/20150608.002032accepted/tizen/tv/20150608.002004accepted/tizen/mobile/20150608.002024Jiyoung Yun4-186/+326
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>
2015-06-01deviced: Remove default target dependency in zbooting-done.servicesubmit/tizen/20150601.085126accepted/tizen/wearable/20150602.090937accepted/tizen/tv/20150602.090929accepted/tizen/mobile/20150602.091008accepted/tizen/common/20150602.072637Jiyoung Yun1-1/+0
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>
2015-06-01battery: Removed insuspend charging support logicJiyoung Yun2-20/+0
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>
2015-05-31usb: Do not go to suspend state while running usb devicesubmit/tizen/20150601.052811Jiyoung Yun1-3/+9
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>
2015-06-01display: Apply dpms get method call in wayland profileJiyoung Yun1-4/+10
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>
2015-05-29display: Do not control LIBINPUT_EVENT_DEVICE_ADDED eventsubmit/tizen/20150529.124502Jiyoung Yun1-0/+2
Change-Id: Ia969a985e4b8a40c52fc4e0d366b71d646173d77 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-05-29block: Add device changed signalJiyoung Yun1-1/+58
/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>
2015-05-29block: Add new dbus signal for broadcasting added or removed objectJiyoung Yun1-0/+20
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>
2015-05-29block: Add block manager and block devices dbus objectJiyoung Yun5-8/+230
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>
2015-05-29block: Add primary flags in block dataJiyoung Yun2-0/+33
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>
2015-05-29block: Add format operationJiyoung Yun2-0/+243
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>
2015-05-29block: Support to handle individual scenario btw mmc and usb storage.Jiyoung Yun4-40/+149
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>
2015-05-27extcon: Do not hdmi lock when hdmi cable is not initializedJiyoung Yun1-1/+1
Change-Id: Id86a7a4965cb4504f0eda2071e8b8e78e78f3908 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-05-27display: Fix segfualt issue when display stop and re-startJiyoung Yun2-0/+7
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>
2015-05-22power: Add power method callJiyoung Yun1-0/+26
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>
2015-05-22deviced: Add GetBrightnessForCamera method in torch led moduleJiyoung Yun1-0/+7
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>
2015-05-22deviced: Add changed flash state methodJiyoung Yun1-0/+17
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>
2015-05-08display: Support dpms control on waylandJiyoung Yun9-41/+214
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>
2015-05-06display: Update device-interface code more simpleJiyoung Yun4-323/+99
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>
2015-05-06display: Change the default lcd timeout time to 30s (30000s->30s)Jiyoung Yun5-35/+12
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>
2015-05-06haptic: Add exception handling of unexpectedly killed process.Jiyoung Yun2-46/+185
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>
2015-05-04deviced: Update the dbus watch logic.Jiyoung Yun6-149/+262
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>
2015-04-23block: Seperate the mount/unmount code from mmc logic.Jiyoung Yun11-1137/+836
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>
2015-04-22Merge "deviced: Add udev monitoring logic" into tizenJiyoung Yun2-160/+112
2015-04-22cradle: Register missing exit functionJiyoung Yun1-0/+1
Change-Id: I2464cf219d44314b70fc56677de007888ad8bc83 Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
2015-04-22deviced: Add udev monitoring logicJiyoung Yun2-160/+112
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>