summaryrefslogtreecommitdiff
path: root/src
AgeCommit message (Collapse)AuthorFilesLines
2017-02-23Add missing dbus_error_entrysubmit/tizen_3.0/20170223.013552accepted/tizen/3.0/wearable/20170224.041212accepted/tizen/3.0/tv/20170224.041036accepted/tizen/3.0/mobile/20170224.040602accepted/tizen/3.0/ivi/20170224.041429accepted/tizen/3.0/common/20170224.125725Myungki Lee1-0/+1
- NOTIFICATION_ERROR_MAX_EXCEEDED Change-Id: I2ac4445394a3fc06807d92b915949d0ed1bed59a Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2017-02-21Fix memory leaksubmit/tizen_3.0/20170221.090900accepted/tizen/3.0/wearable/20170222.082744accepted/tizen/3.0/tv/20170222.082740accepted/tizen/3.0/mobile/20170222.082721accepted/tizen/3.0/ivi/20170222.082747accepted/tizen/3.0/common/20170222.125837Myungki Lee1-0/+3
Change-Id: Ie31faeff68a199f960afb14cc7bb91d76b464d19 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2017-02-01Fix memory leaksubmit/tizen_3.0/20170201.003016accepted/tizen/3.0/wearable/20170201.091625accepted/tizen/3.0/tv/20170201.091601accepted/tizen/3.0/mobile/20170201.091516accepted/tizen/3.0/ivi/20170201.091702accepted/tizen/3.0/common/20170201.164546seungha.son1-0/+6
- If body is floating, memory corruption is occured when msg get body in g_dbus_connection_send_message_with_reply() So, this problem can be solved by increase reference count of body when body is floating. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Ifaffa3153b111d91a8e20c6ad5c9e228548983c9
2017-01-25Revert "Adds new API for get/set delete timeout"seungha.son5-62/+24
This reverts commit a5558e2f17ae3e49445a4e7b80710aa2a57b3ba5. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Ied1429f2f8cca26ea4d0dc68e343d5737505acf1
2017-01-17Add exception handling for '%'submit/tizen_3.0/20170118.065338accepted/tizen/3.0/wearable/20170119.225247accepted/tizen/3.0/tv/20170119.225232accepted/tizen/3.0/mobile/20170119.225216accepted/tizen/3.0/ivi/20170119.225304accepted/tizen/3.0/common/20170120.102108Myungki Lee1-0/+4
- At get_text,'%' is not to be ignored. Change-Id: Ie633e80d8ff7f7de5116f4fe17612a3e4e1ebb80 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2017-01-17Adds new API for get/set delete timeoutsubmit/tizen_3.0/20170117.104748accepted/tizen/3.0/wearable/20170118.043459accepted/tizen/3.0/tv/20170118.043455accepted/tizen/3.0/mobile/20170118.043448accepted/tizen/3.0/ivi/20170118.043503accepted/tizen/3.0/common/20170118.131227seungha.son5-24/+62
- Get/Set timeout value in second when the notification can be hidden from the viewer. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I2a013f58da6aa16bf153e2ca6eb5641a661e92c5
2017-01-16Change the logic to check allowed_to_notify()Myungki Lee1-3/+3
- if there is no app_control and can't get settting, should not check allow_to_notify and app_disabled. - Adjust the log level because no setting is not an error. Change-Id: I69bec78ce07c617e39f46af8b135ae0ed4bdbffc Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2017-01-16Exclude function from measure coverageMyungki Lee2-0/+4
- notification_setting_db_update_app_disabled : called when app disabled - get_setting_from_app_control : called if can't find setting Change-Id: Iaa37e24a1a741fd3e539de23bea248e9e57f4ac1 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2017-01-11Fix wrong log levelsubmit/tizen_common/20170112.224201submit/tizen_3.0/20170111.084510submit/tizen/20170112.062902accepted/tizen/wearable/20170112.223058accepted/tizen/tv/20170112.223040accepted/tizen/mobile/20170112.223014accepted/tizen/ivi/20170112.223115accepted/tizen/common/20170113.184543accepted/tizen/3.0/wearable/20170113.080142accepted/tizen/3.0/tv/20170113.080124accepted/tizen/3.0/mobile/20170113.080108accepted/tizen/3.0/ivi/20170113.080200accepted/tizen/3.0/common/20170113.181937seungha.son1-1/+1
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I52b32aa028f9842b7cbbfc1cf5ffbf871a2a8716
2017-01-11Changes type conversion macrosseungha.son1-4/+4
- Match declared data type and conversion macros. - variable 'priv_id' is declared to int. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I0e6a065d14b03c1222391f0c17eac0700c321e9f
2017-01-10Merge "Modified type definitions" into tizen_3.0seungha.son1-3/+3
2017-01-11Modified type definitionsseungha.son1-3/+3
- This can cause pointers to be assigned to int and vice-versa. But on a 64-bit system, assigning a pointer to an int causes the truncation of the high-order 32-bits. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I7d8c1e122af1b4c8a88cc8d1de9e4eaa898f9dec
2017-01-11Add a new API to check if event send is possibleseungha.son2-0/+111
- New API check if notification event is sended to application. - This patch include, if data-provider-master is terminated abnormally, application check state of data-provider-master and request to register callback again. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I754307d375407b8c4f5d3d031af6faa4cfe2a3bf
2017-01-06Remove unnecessary if() when creating a reply_bodyMyungki Lee1-4/+2
- Fixed an issue that updating is not possible when set to none like -1. Change-Id: Ibb48e73adf1914e7d647d6927db00c9aae1d0820 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2017-01-06Fix notification queryseungha.son1-5/+6
- If data-provider-master send a notification handle to the application except for the uid column in notification db, the uid is initialized to 0. which is a problem. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I7b174ccdb965fa49d1ef25e75d94ed3f8e8278a2
2016-12-28Support to receive cb when selected in viewersubmit/tizen_3.0/20170104.055639accepted/tizen/3.0/wearable/20170105.231627accepted/tizen/3.0/tv/20170105.231612accepted/tizen/3.0/mobile/20170105.231552accepted/tizen/3.0/ivi/20170105.231646accepted/tizen/3.0/common/20170109.195429Myungki Lee1-3/+5
- if user select a notification on quickpanel, receive a pressed event cb. if user swipe a notification on quickpanel, receive a deleted event cb. Change-Id: Ibe691e5af49ef1ecaee82b7363fef47ece00c096 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-12-22Fix the wrong behavior of update_settingsubmit/tizen_3.0/20161222.111552submit/tizen_3.0.m2/20170104.093749accepted/tizen/3.0/wearable/20161226.025635accepted/tizen/3.0/tv/20161226.025627accepted/tizen/3.0/mobile/20161226.025612accepted/tizen/3.0/ivi/20161226.025642accepted/tizen/3.0/common/20161227.101508accepted/tizen/3.0.m2/wearable/20170104.122702accepted/tizen/3.0.m2/tv/20170104.122317accepted/tizen/3.0.m2/mobile/20170104.121821tizen_3.0.m2accepted/tizen_3.0.m2_wearableaccepted/tizen_3.0.m2_tvaccepted/tizen_3.0.m2_mobileMyungki Lee1-2/+1
Change-Id: I5423d01fcab9d76c6be5233e6a591ec01953bee5 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-12-16Add the check routine for app_enable/disableMyungki Lee5-18/+145
- when app disabled, notification will not post. Change-Id: If6bffd5b4e73e5127655270b57c5ec6d1f9e3d78 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-12-12Change wrong log macroseungha.son1-1/+1
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I1048ea34165408d8c3a1af6b287cc23cf2c495ed
2016-11-30Fix notification translation SMACK issuesubmit/tizen_3.0/20161130.105146submit/tizen_3.0/20161130.105137accepted/tizen/3.0/wearable/20161201.031603accepted/tizen/3.0/tv/20161201.031556accepted/tizen/3.0/mobile/20161201.031536accepted/tizen/3.0/ivi/20161201.031606accepted/tizen/3.0/common/20161201.135151seungha.son3-14/+26
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I15f700b2c80d487da509431897847b7ec52fcb95
2016-11-29Remove Null check logicsubmit/tizen_3.0/20161130.023420accepted/tizen/3.0/wearable/20161130.091156accepted/tizen/3.0/tv/20161130.091138accepted/tizen/3.0/mobile/20161130.091110accepted/tizen/3.0/ivi/20161130.091210accepted/tizen/3.0/common/20161130.133545seungha.son1-6/+0
- Because, Null is already checked where this API is called. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I62bede4636f531c61938042982079f83a134e021
2016-11-29Add GCompareFunc typecastingseungha.son2-4/+4
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I97782d6446d7a49f4e1c816817e1f136ac3fe328
2016-11-29Add define _GNU_SOURCE for strerror_rMyungki Lee2-2/+2
- Only GNU strerror_r return char * Signed-off-by: Myungki Lee <mk5004.lee@samsung.com> Change-Id: I3057780e88574f8ec8af7f48063544be1508612d
2016-11-28Adjust coding ruleseungha.son1-5/+7
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: If6dc6aa686e0d3c6bf81490c9924ef5f4ea12d8c
2016-11-24Add exception logic for installed app by globalappsubmit/tizen_3.0/20161124.053537accepted/tizen/3.0/wearable/20161125.075953accepted/tizen/3.0/tv/20161125.075910accepted/tizen/3.0/mobile/20161125.075848accepted/tizen/3.0/ivi/20161125.080006accepted/tizen/3.0/common/20161125.101443seungha.son1-3/+5
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I1dac4303d876ec8fc47cfc6c21a59d87377d930b
2016-11-21Adjust coding styleMyungki Lee6-33/+32
Change-Id: I39b4186396ba096f83484f9e823d9c7825aa7663 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-11-15Fix issue about GHashtable and GListsubmit/tizen_3.0/20161117.022446accepted/tizen/3.0/wearable/20161118.003808accepted/tizen/3.0/tv/20161118.003746accepted/tizen/3.0/mobile/20161118.003726accepted/tizen/3.0/ivi/20161118.003828accepted/tizen/3.0/common/20161118.192937seungha.son1-38/+71
- The issue mat arise if GList is used for the value of GHashtable, If the head list of GList is deleted, GHashtable will not be able to find GList. The problem is solved by replacing the corresponding list with GHashTable. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Ifecadeceee9041baaff30734af335a820ce73b02
2016-11-10Adds appid to notification_setting_hsubmit/tizen_3.0/20161115.024443submit/tizen_3.0/20161111.015333accepted/tizen/3.0/wearable/20161116.022200accepted/tizen/3.0/tv/20161116.022122accepted/tizen/3.0/mobile/20161116.022016accepted/tizen/3.0/ivi/20161116.022239accepted/tizen/3.0/common/20161116.143503seungha.son5-182/+238
- Change notification setting from package base to app_id base - Modify FOTA upgrade scripts Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I04f6d3cde07107f838e878065bf816c913dea353
2016-11-08Can set NULL to path of imagesubmit/tizen_3.0_common/20161110.084657submit/tizen_3.0/20161108.101813accepted/tizen/3.0/wearable/20161110.020313accepted/tizen/3.0/tv/20161110.020253accepted/tizen/3.0/mobile/20161110.020235accepted/tizen/3.0/ivi/20161110.020331accepted/tizen/3.0/common/20161114.081541Myungki Lee1-4/+8
- When the image type has a path Change-Id: I3e99b854580ea67cacf5a7dce97c8fe2c8b0a40b Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-11-01Delete notification_setting_set_package_name API()seungha.son1-16/+0
- It is dangerous that package_name is changed. If package name is changed, unexpected problems may arise. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Ic2939c8385cc5b639a14a8ee45e3e1f89f83798c
2016-11-01Add error handling code when row_count is zerosubmit/tizen_3.0/20161102.051512submit/tizen/20161101.004208accepted/tizen/wearable/20161101.122946accepted/tizen/tv/20161101.122923accepted/tizen/mobile/20161101.122844accepted/tizen/ivi/20161101.123005accepted/tizen/common/20161102.121412accepted/tizen/3.0/wearable/20161102.075653accepted/tizen/3.0/tv/20161102.075622accepted/tizen/3.0/mobile/20161102.075511accepted/tizen/3.0/ivi/20161102.075724seungha.son1-0/+10
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: If4f6a2f6acb841e84c1d489b22118e0043382ecb
2016-10-20Fix notification_update_async bugsubmit/tizen/20161031.010650accepted/tizen/wearable/20161031.082246accepted/tizen/tv/20161031.082224accepted/tizen/mobile/20161031.082132accepted/tizen/ivi/20161031.082305accepted/tizen/common/20161031.121550Hyunho Kang1-2/+0
Async should not free msg, will be freed by gdbus after async call done Change-Id: I7bfce5a2c62d1d2e3b8b963fd05c3ddab8342527 Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
2016-10-12Delete unused variablesubmit/tizen_3.0_common/20161104.104000submit/tizen_3.0/20161028.082323submit/tizen_3.0/20161028.062323submit/tizen/20161012.064511accepted/tizen/wearable/20161014.022109accepted/tizen/tv/20161014.022137accepted/tizen/mobile/20161014.022221accepted/tizen/ivi/20161014.022150accepted/tizen/common/20161012.154656accepted/tizen/3.0/wearable/20161028.122724accepted/tizen/3.0/tv/20161028.122512accepted/tizen/3.0/mobile/20161028.122211accepted/tizen/3.0/ivi/20161028.122939seungha.son1-4/+0
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Iaed55d917f35c4d421a2497e2dca343d2755bf8d
2016-10-10Use pkgid to get domain, path of dirsubmit/tizen/20161010.125001submit/tizen/20161010.124901accepted/tizen/wearable/20161011.050359accepted/tizen/tv/20161011.050344accepted/tizen/mobile/20161011.050329accepted/tizen/ivi/20161011.050415accepted/tizen/common/20161010.150111Myungki Lee1-20/+19
- instead of app_id Change-Id: I61e05ead3ba797a3c950fd633b3502d4da0a1191 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-10-05Implement function to support notification dnd changed callbacksubmit/tizen_3.0_wearable/20161015.000004submit/tizen_3.0_tv/20161015.000004submit/tizen_3.0_mobile/20161015.000005submit/tizen_3.0_ivi/20161010.000005submit/tizen/20161005.072822accepted/tizen/wearable/20161006.075643accepted/tizen/tv/20161006.075628accepted/tizen/mobile/20161006.075609accepted/tizen/ivi/20161006.075655accepted/tizen/common/20161005.165600accepted/tizen/3.0/wearable/20161015.083511accepted/tizen/3.0/tv/20161016.005123accepted/tizen/3.0/mobile/20161015.033859accepted/tizen/3.0/ivi/20161011.055300seungha.son1-0/+51
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Ibdc5dc51f4418f16b58451af11e26e2804431fa9
2016-10-05Adjust the coding styleMyungki Lee2-3/+5
Change-Id: I4c4ae4ef84fa91d9060188115e495808e228a6d4 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-09-30Fix 'allowed calls exception' do not work problemsubmit/tizen/20160930.042450accepted/tizen/wearable/20160930.232724accepted/tizen/tv/20160930.232710accepted/tizen/mobile/20160930.232653accepted/tizen/ivi/20160930.232739accepted/tizen/common/20160930.174749seungha.son2-34/+47
- Modify GList find method. - Modify DB query in dnd_allow_exception db table. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I2c042fa99b2443d23fc83187eaafe197a4a1cd0b
2016-09-26Add b_event_handler_click_on_text_input_button to dbsubmit/tizen/20160926.012336accepted/tizen/wearable/20160927.020927accepted/tizen/tv/20160927.020915accepted/tizen/mobile/20160927.020944accepted/tizen/ivi/20160927.020937accepted/tizen/common/20160926.154153Myungki Lee3-16/+28
Change-Id: Ib7703b772173f15f8e677e4dcc50e63e7994db2b Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-09-23Fix wrong notification handle initializationseungha.son1-1/+1
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I70db7c704c91cfff986a0b84aea501664c0c8b1d
2016-09-23Add apis for notification post with event handler callbackseungha.son5-12/+309
- notification_post_with_event_cb() API provide one event callback and distinguish the event by parameter. - notification_send_event() API is for sending event to daemon or app. Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I4232568eb7bb02994f049f81685ae0310327dc69
2016-09-22Add logic to init a dnd_allow_exception dbMyungki Lee1-1/+20
Change-Id: I0f17989634dc898b62dbe909c80594949765721e Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-09-22Move notification_get_text_input_max_length to internalMyungki Lee2-12/+12
- Fix typo - change range to check event_type Change-Id: I32af45dd74a5a4e9586ad6af71a78d6d40bc5f5a Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-09-22Add check routine whether a parameter is nullMyungki Lee1-1/+1
- notification_system_setting_get_dnd_allow_exceptions() Change-Id: Ib146438e008dc47293dcd89c163937bc3e0398d5 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-09-21Change a default value of do_not_disturb schedulesubmit/tizen/20160922.051802accepted/tizen/common/20160922.120858Myungki Lee1-3/+3
- dnd_schedule_day M T W T F - dnd_start_hour 22 - dnd_end_hour 8 Change-Id: I017a099691693fbbc20fa6ebc480776cf88d960e Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-09-20Add new api for direct replyMyungki Lee3-13/+60
Change-Id: I0944647478f8ef7ee0f1cb60da038054b6531037 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>
2016-09-20Add error check conditional statementseungha.son1-1/+7
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: I4f43c3bfdbb95d73b805f2712bedf9004875b966
2016-09-20Modify query in notification dbseungha.son1-10/+22
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Ie86924d896d5730a0073b8a45fd969966f9a7ce2
2016-09-20Remove unnecessary space and lineseungha.son1-2/+1
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Ice9531ebccb66f24128716506590926f75cd0dc6
2016-09-20Fix wrong function namingseungha.son1-3/+3
Signed-off-by: seungha.son <seungha.son@samsung.com> Change-Id: Icc978ec9d9dd39f59027745362004b9a910776a4
2016-09-19Add apis for dnd_allow_exceptionMyungki Lee4-2/+266
- notification_system_setting_set_dnd_allow_exceptions() notification_system_setting_get_dnd_allow_exceptions() Change-Id: I9e2fda4ca1b705383a7d74dea5198eef99c19063 Signed-off-by: Myungki Lee <mk5004.lee@samsung.com>