Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
dbus method call which has privilege only allowed
Change-Id: I85e7056d6097130db8ab56ddd91f2a21f38d4e13
Signed-off-by: pr.jung <pr.jung@samsung.com>
|
|
library
: the libstorage library provide static path like "/usr/storage/sdcard"
Change-Id: I7f196ced789584c457b4bfb6a567caff84bfc9d7
Signed-off-by: taeyoung <ty317.kim@samsung.com>
|
|
The internal index for vconf key start from number 0.
Thus, data can be 0
Change-Id: I6f68ae97d66cf62263176b067db874db7566b351
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: I934f6e207fcb97ba919b496f265e7264fcf52c0d
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: I65b71a1ec8c3c2df168a3d81e752a3e175224dce
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Add function for generating mount path.
Change-Id: Ib06942b3e452682c25dffba920e592684c8c96e8
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
To enhance the readability of struct block_dev_ops.
Change-Id: I84e552666a4ec65c1ccee9e3b876c7d9bdd9ab15
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
|
|
Change-Id: I6d9d4ea74bed33f497c64161e28711e17f182c6a
Signed-off-by: Taeyoung Kim <ty317.kim@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: Ia969a985e4b8a40c52fc4e0d366b71d646173d77
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
|
|
/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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Change-Id: Id86a7a4965cb4504f0eda2071e8b8e78e78f3908
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
|
|
Change-Id: I2464cf219d44314b70fc56677de007888ad8bc83
Signed-off-by: Jiyoung Yun <jy910.yun@samsung.com>
|
|
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>
|