summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2017-08-24Battery: fix a bug that battery is full without fully charged signalsubmit/tizen_3.0/20170825.083406submit/tizen_3.0/20170825.053155submit/tizen_3.0/20170825.021525submit/tizen_3.0/20170824.124306accepted/tizen/3.0/tv/20170827.222807accepted/tizen/3.0/mobile/20170827.222812accepted/tizen/3.0/common/20170828.112341accepted/tizen_3.0_tvaccepted/tizen_3.0_mobileaccepted/tizen_3.0_commonlokilee731-1/+1
When the battery is full, it should be set to BAT LEVEL FULL. Change-Id: I63523e62f7a01faff98f49fa9c060fcd889c48fe Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-08-21Battery : fix to make it possible to set VCONFKEY_SYSMAN_BAT_LEVEL_FULLsubmit/tizen_3.0/20170821.050349accepted/tizen/3.0/wearable/20170821.225832accepted/tizen/3.0/mobile/20170821.225836accepted/tizen/3.0/ivi/20170821.225846accepted/tizen/3.0/common/20170822.162203accepted/tizen_3.0_wearableaccepted/tizen_3.0_ivilokilee733-13/+17
Change-Id: I87da11ccf3aa7e738f5b15d9690eb630d0672b53 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-08-17Tzip : add protection code to prevent segment fault in deviced during ↵lokilee731-2/+3
powering off Change-Id: Ied9f0ae06f646b6a4262cac41e30ea88a3d1d85e Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-06-07block: Prevent buffer overflowsubmit/tizen_3.0/20170607.092305accepted/tizen/3.0/wearable/20170608.070926accepted/tizen/3.0/tv/20170608.070923accepted/tizen/3.0/mobile/20170608.070920accepted/tizen/3.0/ivi/20170608.070936accepted/tizen/3.0/common/20170608.115533pr.jung1-1/+1
- Specify a limit on the input string length when using s with '%' format specifiers for scanf-like functions Change-Id: I25e27d1605aac01009040658a071b3627c780eb9 Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-04-28power key : add power key signal sendersubmit/tizen_3.0_common/20170511.082856submit/tizen_3.0/20170510.032305accepted/tizen/3.0/wearable/20170510.222354accepted/tizen/3.0/tv/20170510.222348accepted/tizen/3.0/mobile/20170510.222339accepted/tizen/3.0/ivi/20170510.222401accepted/tizen/3.0/common/20170511.174309lokilee731-1/+33
To detect short or long pressed power key, it must be sent by deviced. Because, power key popup is activated by deviced. So, to get power key events from the same deamon is more reasonable than getting it from widow. Change-Id: Id47c2239d341cd816862a92eb1d3abe48b792dc0 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-04-05display: change lcdon operate sequenceJeong Donghwan1-3/+3
- When display is turned on, display panel should be on before set touchscreen. - There are two reasons for this. First, when user want to turn on display, display response speed should be fast. Usually, touch screen setting is late, so it can make delay to display. Second, This is hardware basic issue. if touchscreen was turn on before display setting, when display is setting, the display spark can obstruct with the wrong input of the touch screen. Change-Id: If7e1bc82033f86cc45443ce250740ded94955667 Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
2017-04-04Power off : add usleep() to make sure that poweroff_start_animation() works ↵submit/tizen_3.0/20170405.012823accepted/tizen/3.0/wearable/20170405.051156accepted/tizen/3.0/tv/20170405.051122accepted/tizen/3.0/mobile/20170405.051043accepted/tizen/3.0/ivi/20170405.051256accepted/tizen/3.0/common/20170405.134221lokilee731-0/+1
properly while powering off Sometimes, poweroff_start_animation didn't work properly because duration for it was not confirmed. So, add usleep() to solve this issue. Change-Id: I6dabbb8fb28668ef42beddaca207b92579f90d09 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-03-28License : add license file for libdeviced and deviced-toolssubmit/tizen_3.0/20170328.092236accepted/tizen/3.0/wearable/20170329.021608accepted/tizen/3.0/tv/20170329.021539accepted/tizen/3.0/mobile/20170329.021508accepted/tizen/3.0/ivi/20170329.021634accepted/tizen/3.0/common/20170329.151107lokilee731-0/+2
Change-Id: I6fe15ba6be2402df3af659f4ead34e2f6801593d Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-03-18display: add ambient modesubmit/tizen_3.0/20170320.073344accepted/tizen/3.0/wearable/20170320.220915accepted/tizen/3.0/tv/20170320.220909accepted/tizen/3.0/mobile/20170320.220854accepted/tizen/3.0/ivi/20170320.220926accepted/tizen/3.0/common/20170321.122740taeyoung12-7/+373
- Ambient mode turns off the CPU but does not turn off the display. - Currently, turning off CPU is not supported by kernel, and thus just display operation is added. - "ambient condition" value shows that the Ambient Mode is allowed or not by the User trough the settings app. This value is handled by vconf key VCONFKEY_SETAPPL_AMBIENT_MODE_BOOL. Even if the value is true, the target can be the normal mode (not Ambient Mode). - "ambient state" value shows whether or not the Ambient Mode is enabled. "ambient state" can be true only if "ambient condition" is true. - If "ambient condition" is true, display off operation works little bit different. The operation checks "ambient condition" value and enables the Ambient Mode by setting "ambient state". The Ambient Mode is one of the display off states, and thus "LCDOff" and "LCDOffCompleted" signal also need to be broadcasted like the normal mode. However, the "LCDOffCompleted" signal is broadcasted after launching ambient clock. For the operation, "HomeScreen" signal is delivered from the ambient clock application. Change-Id: I4630459d8af1c8f179009c1b325b983a352efdf3 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2017-02-21block: Check uevent is already handledpr.jung1-11/+21
- Check uevent is already handled on block_init_from_udev_enumerate - Create external directory when sdcard is mounted (not USB storage) Change-Id: I49f6b4297843f08accf040b9dedb70538572973a Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-02-17block: Check uevent is already handled on block_init_from_udev_enumeratesubmit/tizen_3.0/20170221.035828accepted/tizen/3.0/wearable/20170223.040354accepted/tizen/3.0/tv/20170223.040337accepted/tizen/3.0/mobile/20170223.040306accepted/tizen/3.0/ivi/20170223.040402accepted/tizen/3.0/common/20170223.121150pr.jung1-19/+53
Change-Id: I1cec40da92f0a6cebcf97833fb1ac7ee920f46d0 Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-02-17block: Change mount state when mount operation is failedpr.jung1-12/+17
Change-Id: I0adc236a27538d450f4bc95ec254e1201699796e Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-02-15power: fix the privilege of the reboot operationtaeyoung7-33/+13
Previously, the privilege of the reboot operation was "http://tizen.org/privilege/power" since the method is registered on the "org.tizen.system.deviced.power" interface. But the device_power_reboot() document of capi-system-device noticed that the operation requires "http://tizen.org/privilege/reboot" privilege. Now, the privilege of the reboot operation is changed to "http://tizen.org/privilege/reboot" according to the device_power_reboot(). For the change, the dbus method interface is changed to "org.tizen.system.deviced.reboot". Change-Id: I928fc35710f8713c74b84d0aa434fc60e084fc2c Signed-off-by: taeyoung <ty317.kim@samsung.com>
2017-02-14common: fix memory leak issuestaeyoung2-7/+10
Change-Id: I956e59695285e2ef9285008360c4393677dd54be Signed-off-by: taeyoung <ty317.kim@samsung.com>
2017-02-08block: Check block device is already removed before deviced tries to remove ↵submit/tizen_3.0/20170209.013140accepted/tizen/3.0/wearable/20170209.033430accepted/tizen/3.0/tv/20170209.033408accepted/tizen/3.0/mobile/20170209.033330accepted/tizen/3.0/ivi/20170209.033446accepted/tizen/3.0/common/20170209.113029pr.jung1-3/+3
block device - Prevent to remove already removed block device Change-Id: I32b9977fe8fcbcb4baed8c5d0d6d306acf24806c Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-01-25block: Create external appdata directory after sdcard is mountedsubmit/tizen_3.0/20170125.062656accepted/tizen/3.0/wearable/20170126.060404accepted/tizen/3.0/tv/20170126.060354accepted/tizen/3.0/mobile/20170126.060334accepted/tizen/3.0/ivi/20170126.060421accepted/tizen/3.0/common/20170126.092414tizen_3.0_tvpr.jung1-0/+23
Change-Id: Idad207bfd5248e12a964c4bbc0f7b36bcc01253e Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-01-24block: Support compatibility with tizen 2.4pr.jung1-0/+4
- Need to migrate app external images which is created on tizen 2.4 - Call app2ext_migrate_legacy_all() Change-Id: I719856571d8c227ea02a6feb6ba535dea4251c5d Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-01-24block: Check udev enumeration is done alreadypr.jung1-2/+5
Change-Id: I0a71a53af3290a837ad6f0f2c0881f2cddd905bc Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-01-19display: set vconf key only if the value is changedtaeyoung1-0/+6
Previously, the vconf key could be set with same value. Thus the display state callback of the capi-system-device could be called several times with same state. Now, the vconf key is updated only if the value is changed. Thus the callback of the api will be called once for a certain display state. Change-Id: I35a89dc6a882b58fb86c21a2b8a8b570231db97c Signed-off-by: taeyoung <ty317.kim@samsung.com>
2017-01-19battery : fix a bug in active and event notisubmit/tizen_3.0/20170120.023435accepted/tizen/3.0/wearable/20170120.073304accepted/tizen/3.0/tv/20170120.073250accepted/tizen/3.0/mobile/20170120.073236accepted/tizen/3.0/ivi/20170120.073322accepted/tizen/3.0/common/20170120.102425lokilee731-9/+11
current battery value should be shown in active noti. but, it was applied to event noti. Change-Id: Iafb62c6a309870a23599a6b7d87d0c4766860f91 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-01-16battery : add PROFILE_MOBILE to distinguish low battery noti between mobile ↵submit/tizen_3.0/20170116.085712submit/tizen_3.0/20170116.085702accepted/tizen/3.0/wearable/20170117.005537accepted/tizen/3.0/tv/20170117.005521accepted/tizen/3.0/mobile/20170117.005507accepted/tizen/3.0/ivi/20170117.005554accepted/tizen/3.0/common/20170117.075710lokilee732-4/+15
and wearable active and event noti are sent for mobile and only active noti is sent for wearable. Change-Id: Ia2ea7fcbba91de4603e1f4db542366284feb3722 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-01-15battery : change low battery default notification from event to activelokilee731-14/+14
Change-Id: I143968efa79f38798a0d1df6de9975c2bdb79216 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-01-13block: Modify mkdir mode optionpr.jung1-2/+2
- 644 -> 0755 Change-Id: I90b1b910dfc56c8711730fe307cc18fd2ec51165 Signed-off-by: pr.jung <pr.jung@samsung.com>
2017-01-12notification : change add_notification to send a few parameterssubmit/tizen_3.0/20170112.092741accepted/tizen/3.0/wearable/20170113.001232accepted/tizen/3.0/tv/20170113.001217accepted/tizen/3.0/mobile/20170113.001204accepted/tizen/3.0/ivi/20170113.001247accepted/tizen/3.0/common/20170113.072401lokilee735-11/+45
when notification is sent, we sometimes need to send a few parameters. for example, int, char, string and so on. So, add_notification is modified to consider those cases. Change-Id: Ie191e29bddcb39e0eada395a8c6542a53aae1468 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2017-01-12thermal: add legacy signal for thermal statetaeyoung1-0/+53
Tizen 2.4 broadcasted a dbus signal for other apps to know the thermal state. Thus the signal needs to be applied to Tizen 3.0. The signal is just for legacy uses, and tizen 3.0 needs to add new signal for new thermal module. Change-Id: Ib1b947aabb30c434930ff88f45d41b6601183707 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2017-01-06block: Remove useless codepr.jung1-3/+1
Change-Id: I80a2986f7ff19f8d33e78bef16080148d6d2e9a7 Signed-off-by: pr.jung <pr.jung@samsung.com>
2016-12-30key-fileter: turn off by power key when display onJeong Donghwan1-0/+2
It need necessary check power key logic. The device should be turn off by power key when display state was on. Change-Id: I2ac36e752394404e3b069084b21015883b1e3772 Signed-off-by: Jeong Donghwan <dh.jeong@samsung.com>
2016-12-28block: Not support extended partitionpr.jung1-0/+5
Change-Id: I409ad0bffc7595f0c37a429db9a7c1b9c8ac5668 Signed-off-by: pr.jung <pr.jung@samsung.com>
2016-12-28block: Remove mount_point when mount operation is failedpr.jung1-0/+13
- ex. ntfs filesystem - Modify /run/external-storage/id file. Change-Id: I0e49f0fad81b91d142333734d9470cfbd7405ad2 Signed-off-by: pr.jung <pr.jung@samsung.com>
2016-12-27display: remove dpms get operation during dpms settingsubmit/tizen_3.0/20161227.120351submit/tizen_3.0.m2/20170104.093751accepted/tizen/3.0/wearable/20161228.022340accepted/tizen/3.0/tv/20161228.022324accepted/tizen/3.0/mobile/20161228.022309accepted/tizen/3.0/ivi/20161228.022400accepted/tizen/3.0/common/20161228.071713accepted/tizen/3.0.m2/wearable/20170104.142353accepted/tizen/3.0.m2/tv/20170104.142102accepted/tizen/3.0.m2/mobile/20170104.141623tizen_3.0.m2accepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobiletaeyoung3-35/+21
dpms setting is async function. So, dpms get function will return failure if is is called just after dpms setting. Thus dpms get function is removed from the dpms setting operation. Change-Id: I6930bcb1397c703c723b439fc75ed1e370b5626e Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-27display: apply display HAL for dpms related operationstaeyoung1-3/+44
Default dpms operations of wayland are handled by dbus methods. But dbus methods take too much time, and thus they need to be moved to HAL for product customizing. Change-Id: Ifa813151b76b70b4c2a68490a2187ef978ff1b43 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-26battery: add feature for batterh temperaturesubmit/tizen_3.0/20161226.083127accepted/tizen/3.0/wearable/20161227.010620accepted/tizen/3.0/tv/20161227.010605accepted/tizen/3.0/mobile/20161227.010548accepted/tizen/3.0/ivi/20161227.010645accepted/tizen/3.0/common/20161227.102103taeyoung3-14/+26
The feature enables battery high/low temperature scenarios. Change-Id: I6c69f802e3e9573564e6436f2a815ed59c9ea753 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-25Merge "display: remove unused variables" into tizen_3.0taeyoung1-2/+0
2016-12-25Merge "battery: remove battery error popups if health is good" into tizen_3.0taeyoung1-0/+3
2016-12-25Merge "prevent multiple lowbat or critical popup" into tizen_3.0lokilee731-3/+13
2016-12-26prevent multiple lowbat or critical popupsubmit/tizen_3.0/20161226.065129lokilee731-3/+13
Change-Id: I1ecd41d2f68e640d4ac283bdafac114d81acacf6 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
2016-12-25display: remove unused variablestaeyoung1-2/+0
They occurs build warnings Change-Id: If689b7d5caaac39e200da79431fbb52648a20c6d Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-25battery: remove battery error popups if health is goodtaeyoung1-0/+3
Change-Id: I0d6cf4ccd95fea6430c2d3dce2fcc3e6e7c27639 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-25display: remove idle lock check routinetaeyoung1-9/+0
Idle Lock check routine is not necessary during checking pm lock. Even if Idle lock is on, pm state cannot be changed when pm is locked. Change-Id: If76ec51ba4f704ab81f6056375b4a006715b4fbb Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-25power: change the parameter of device_notify to the addresstaeyoung1-9/+16
The paramter of the device_notify is (void *). Thus There can be a problem related witht the type if integer value is delivered by casting to (void *). Change-Id: I615249b97a7c08bd0f3e57456a23cb80c0ee8d9b Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-26power: remove unused variabletaeyoung1-1/+0
the variable occurs the build warning Change-Id: I868a39bc8ef93e6a5aeda6d28d89f32fb11e296f Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-22power: fix reboot param control logicGiyeol Ok1-71/+34
param of reboot have several kinds variable factor so we need change of reboot param control logic Change-Id: I181f4d245e5eb6d4a43265d202539bf86316e03b Signed-off-by: Giyeol Ok <giyeol.ok@samsung.com>
2016-12-22common: remove macro for emulatorsubmit/tizen_3.0/20161222.072356accepted/tizen/3.0/wearable/20161226.025006accepted/tizen/3.0/tv/20161226.024951accepted/tizen/3.0/mobile/20161226.024936accepted/tizen/3.0/ivi/20161226.025029accepted/tizen/3.0/common/20161227.101328taeyoung2-8/+7
emulator macro is changed to is_emulator() Change-Id: I1a225a22c4dd713233fb83f981402b2e8129b7cf Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-22block: add 'const' for tzplatform_getenv()taeyoung1-1/+1
Change-Id: Ie6b49a7122ea73b0c34a951f727a2ecbbc433aa6 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-21common: specfile has unused subpackagesubmit/tizen_3.0/20161222.053422accepted/tizen/3.0/wearable/20161222.093451accepted/tizen/3.0/tv/20161222.093429accepted/tizen/3.0/mobile/20161222.093417accepted/tizen/3.0/ivi/20161222.093505accepted/tizen/3.0/common/20161222.181654taeyoung1-7/+0
%package deviced in deviced.spec means "deviced-deviced", which does not have %files entry, which in turn, makes "deviced-deviced" not be created. Because it is useless, it is removed before further spec file modification. Change-Id: I86ef4266776332f6bb65752487290d8405300842 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-22cpu: add cpu boosting operation.taeyoung8-1/+777
Currently the code is experimental. deviced requests to TRM to boost cpu. Change-Id: I8b7cf84ffda9ad57d3adacb350a5ec23999e3a49 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-21haptic: Modify haptic emulator to return unique handle valuesubmit/tizen_3.0/20161222.035026pr.jung1-9/+42
- Originally, emulator handle value is all same Change-Id: Ib82124f50f2b5f836d2a778f819a0aba100984ea Signed-off-by: pr.jung <pr.jung@samsung.com>
2016-12-21power: start shutdown animation earliersubmit/tizen_3.0/20161221.074901accepted/tizen/3.0/wearable/20161221.105750accepted/tizen/3.0/tv/20161221.105728accepted/tizen/3.0/mobile/20161221.105713accepted/tizen/3.0/ivi/20161221.105805accepted/tizen/3.0/common/20161221.182236taeyoung1-1/+2
- If cgroup is unmounted, apps cannot be launched. Thus shutdown animation needs to be launched before cgroup is unmounted. Change-Id: I3b7ab800010f824440313dccd6fe8dc36b1122c7 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-20display: block inputs and requests by dbus methods during power offtaeyoung4-2/+88
During power off, Users could handle the device or apps could request to deviced to turn on/off display. Thus all inputs and requests need to be blocked during power off. Change-Id: I665d8947634231b715df1935fab02f7d0a17c194 Signed-off-by: taeyoung <ty317.kim@samsung.com>
2016-12-20power: notice to resourced about power off situationtaeyoung1-0/+13
- deviced lets resourced know the power off situation. Then, resourced thaws freezed apps and unmount cgroup. Change-Id: I5c025cd30087cbe3614e804e388df304214d5b3a Signed-off-by: taeyoung <ty317.kim@samsung.com>