platform/core/appfw/alarm-manager.git
6 years agoAdjust the initialization sequence of alarm-lib 13/163713/2
jusung son [Wed, 13 Dec 2017 04:56:23 +0000 (13:56 +0900)]
Adjust the initialization sequence of alarm-lib

In multi-thread environment, dbus messages can be delivered before registering interfaces.

Change-Id: I7182f2f0c00ec583e7ced5e8fc4d08497cb56183
Signed-off-by: jusung son <jusung07.son@samsung.com>
6 years agoRelease version 0.5.16 45/161245/1 accepted/tizen/4.0/unified/20171123.184357 accepted/tizen/unified/20171124.064527 submit/tizen/20171122.112413 submit/tizen/20171123.000002 submit/tizen_4.0/20171122.110758
Inkyun Kil [Wed, 22 Nov 2017 08:37:55 +0000 (17:37 +0900)]
Release version 0.5.16

- Add code for checking integrity

Change-Id: I9764694fbf7132a44cd2f98057e4a3dd24c3b615
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
6 years agoAdd code for checking integrity 76/161076/3
Inkyun Kil [Tue, 21 Nov 2017 09:20:36 +0000 (18:20 +0900)]
Add code for checking integrity

Change-Id: I48277013b5f1efe59e123efe909b926cface677d
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoRelease version 0.5.15 27/159427/1 accepted/tizen/4.0/unified/20171109.125007 accepted/tizen/unified/20171110.070742 submit/tizen/20171109.015625 submit/tizen_4.0/20171109.015618 submit/tizen_4.0/20171109.050405
Inkyun Kil [Thu, 9 Nov 2017 01:43:54 +0000 (10:43 +0900)]
Release version 0.5.15

 - Add DB validation check when db init

Change-Id: I36e2480d67a276eb0defead19e9509f440c9cdea
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoAdd DB validation check when db init 70/158770/3
Inkyun Kil [Fri, 3 Nov 2017 02:37:42 +0000 (11:37 +0900)]
Add DB validation check when db init

- Added integrity check related logic to db init process to check
  if db integrity is broken due to file system error and initialize db

Change-Id: Ide8efaba21f8bb63952046028879bdba5b6899c2
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoChange type of alarm-session-agent service from 'oneshot' to 'simple' 30/154730/1
Inkyun Kil [Wed, 11 Oct 2017 07:28:53 +0000 (16:28 +0900)]
Change type of alarm-session-agent service from 'oneshot' to 'simple'

Change-Id: Ia60c398d1dbaa7a9ddd4fa6acb0eb10cd32afb42
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
7 years agoRelease version 0.5.14 58/150258/1 accepted/tizen/4.0/unified/20170920.081453 submit/tizen/20170915.023525 submit/tizen_4.0/20170915.023947 tizen_4.0.IoT.p1_release tizen_4.0.m2_release
Semun Lee [Fri, 15 Sep 2017 02:27:12 +0000 (11:27 +0900)]
Release version 0.5.14

Changes:
 - Remove old update script
 - Adjust coding rule
 - fix coding rule error

Change-Id: I5c53e45084faa49a51e2212dbcba9f318dc91c7e
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agofix coding rule error 18/149718/2
Youngjae Shin [Wed, 13 Sep 2017 02:58:23 +0000 (11:58 +0900)]
fix coding rule error

Change-Id: I0e36295d694bbe2aa0d899ba11ff57765e556a9d

7 years agoAdjust coding rule 51/149151/1
Seungha Son [Mon, 11 Sep 2017 23:41:05 +0000 (08:41 +0900)]
Adjust coding rule

Signed-off-by: Seungha Son <seungha.son@samsung.com>
Change-Id: I4160410647086a7d89cfe87fa848c58512053d81

7 years agoRemove old update script 31/148631/1
Sunmin Lee [Fri, 8 Sep 2017 04:58:45 +0000 (13:58 +0900)]
Remove old update script

RW update script for Tizen 2.4 (to 3.0) is not necessary in Tizen 4.0.
Remove this file to avoid being executed during Tizen 4.0 update.

Change-Id: I5e5980a5160e1e2845fb7ed6829bea0ac1af6c45

7 years agoRelease version 0.5.13 98/141598/1 accepted/tizen/4.0/unified/20170816.013724 accepted/tizen/4.0/unified/20170816.020133 accepted/tizen/4.0/unified/20170828.223942 accepted/tizen/unified/20170802.151125 submit/tizen/20170801.062329 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100002 submit/tizen_4.0_unified/20170814.115522
Jiwoong Im [Tue, 1 Aug 2017 05:54:11 +0000 (14:54 +0900)]
Release version 0.5.13

Changes:
 - Remove unnecessary rtc setting in alarm-server
 - Fix bug in periodic alarm
 - Fix logic for calculating next duetime considering DST
 - Modify getting appinfo in alarm expired

Change-Id: Id0de1d3adc1fe344036d7b430a234f3144f79ecc
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoModify getting appinfo in alarm expired 58/141058/2
Jiwoong Im [Fri, 7 Jul 2017 06:08:54 +0000 (15:08 +0900)]
Modify getting appinfo in alarm expired

- Get appinfo for the proper uid.

Change-Id: I57cf2b425fe039d12a4aae5fc3b3a7ccf950e3ea
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix logic for calculating next duetime considering DST 57/141057/2
dahyeong.kim [Mon, 3 Jul 2017 09:33:16 +0000 (18:33 +0900)]
Fix logic for calculating next duetime considering DST

Change-Id: Ib13caf4cfb694f7bf0b56d0d517a0f60f003ac4c
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix bug in periodic alarm 56/141056/1
Jiwoong Im [Tue, 27 Jun 2017 04:39:39 +0000 (13:39 +0900)]
Fix bug in periodic alarm

Change-Id: I1d1ea8c40a208b9357a68ddea10cde7f734fadb2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRemove unnecessary rtc setting in alarm-server 55/141055/1
Jiwoong Im [Wed, 14 Jun 2017 10:36:53 +0000 (19:36 +0900)]
Remove unnecessary rtc setting in alarm-server

- modify alarm-server not to repeat the rtc set for the same duetime.

Change-Id: I339fecb514f8a6c5fa0a67aa5ad9afd08e0bbd40
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.12 06/139906/1 accepted/tizen/unified/20170724.020237 submit/tizen/20170721.041626
Jiwoong Im [Fri, 21 Jul 2017 04:12:42 +0000 (13:12 +0900)]
Release version 0.5.12

Changes:
 - Handle memory allocation failure
 - Fix misused strncpy calls
 - Fix service file

Change-Id: I9db396ddbc1e2de05584dbad4e89a042daa7f50e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix service file 76/139576/1
Jiwoong Im [Wed, 19 Jul 2017 10:44:00 +0000 (19:44 +0900)]
Fix service file

- Adds capabilities and securiebit options

Change-Id: I753ddc8756186eb4360e797d0da14f746544d5a3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix misused strncpy calls 32/139432/5
Semun Lee [Wed, 19 Jul 2017 02:57:36 +0000 (11:57 +0900)]
Fix misused strncpy calls

Change-Id: I40cb57043b9fda017274347beea4090fd29bbc20
Signed-off-by: Semun Lee <semun.lee@samsung.com>
7 years agoHandle memory allocation failure 52/139452/2
Semun Lee [Wed, 19 Jul 2017 04:37:22 +0000 (13:37 +0900)]
Handle memory allocation failure

Change-Id: Id4f0688bcf36d5045af165979b3270fa291af2fc

7 years agoRelease version 0.5.11 22/137622/1 accepted/tizen/unified/20170711.180506 submit/tizen/20170707.024819 submit/tizen/20170710.015440
Jiwoong Im [Fri, 7 Jul 2017 02:04:39 +0000 (11:04 +0900)]
Release version 0.5.11

Changes:
 - Change GQaurk to char*

Change-Id: I5fa1530dc329f57c17b5c589fd19a11934b3f6b2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoChange GQaurk to char* 27/132327/17
Inkyun Kil [Fri, 2 Jun 2017 08:36:43 +0000 (17:36 +0900)]
Change GQaurk to char*

g_quark_from_string api causes memory increase

Change-Id: If4e6d8aab3352a63a22bcbd03064588b44ba5b5c
Signed-off-by: Inkyun Kil <inkyun.kil@samsung.com>
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.10 01/136301/1 accepted/tizen/unified/20170703.064126 submit/tizen/20170629.060228
Hwankyu Jhun [Thu, 29 Jun 2017 05:04:15 +0000 (14:04 +0900)]
Release version 0.5.10

Changes:
 - Fix memory leak
 - Fix invalid log format

Change-Id: I81642a45097c35728d322a6429c16b3588e34edc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix memory leak 26/136226/1
Hwankyu Jhun [Wed, 28 Jun 2017 22:31:12 +0000 (07:31 +0900)]
Fix memory leak

Change-Id: Id28528b68925f251ec53c65bc1cbb88103bce6f8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
7 years agoFix invalid log format 29/133929/5
Jiwoong Im [Wed, 14 Jun 2017 04:49:51 +0000 (13:49 +0900)]
Fix invalid log format

Change-Id: I4a9848d7df60e35d49082e6fce130d54ce59896d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.9 82/133082/1 accepted/tizen/unified/20170609.203844 submit/tizen/20170609.014738
Jiwoong Im [Fri, 9 Jun 2017 01:42:14 +0000 (10:42 +0900)]
Release version 0.5.9

Changes:
 - Fix bug in __get_caller_unique_name
 - Fix memory leak
 - Replace rand() with g_random_int_range()

Change-Id: Ieb7026198086d7e3b196e8f874163ca5059c32a9
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoReplace rand() with g_random_int_range() 13/132913/2
Jiwoong Im [Thu, 8 Jun 2017 08:42:56 +0000 (17:42 +0900)]
Replace rand() with g_random_int_range()

- If unique_id are generated consecutively within one second,
  the same id can be generated.

Change-Id: I7937bd75ecaffbf5b173a9cc95dcf3064190a90e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak 40/132440/5
Jiwoong Im [Mon, 5 Jun 2017 07:26:44 +0000 (16:26 +0900)]
Fix memory leak

- Fix memory leak of pkgmgrinfo handle and bundle

Change-Id: I39cc31441d7d7dde9c0a51b49101ee205bd45114
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix bug in __get_caller_unique_name 68/132868/3
Jiwoong Im [Thu, 8 Jun 2017 04:40:58 +0000 (13:40 +0900)]
Fix bug in __get_caller_unique_name

- There is a bug that assign a wrong value to is_app boolean value.

Change-Id: I617d385849399d729d55c16ae6f927b3bc4f23b4
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.8 12/127612/1 accepted/tizen/unified/20170429.023658 submit/tizen/20170428.023751 tizen_4.0.m1_release
Jiwoong Im [Fri, 28 Apr 2017 05:41:56 +0000 (14:41 +0900)]
Release version 0.5.8

Changes:
 - Fix bad casting

Change-Id: I301e30999b2dcb95a03290821d01a8aef1b435b3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix bad casting 68/127568/1
Jiwoong Im [Fri, 28 Apr 2017 01:43:53 +0000 (10:43 +0900)]
Fix bad casting

- Casting smaller size variable to bigger size variable can lead to
  out-of-bounds memory access when dereferenced.

Change-Id: I89c26b3290a4159ac8f7c9932e0bd77d7928709e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.7 43/126743/1 accepted/tizen/unified/20170428.033031 submit/tizen/20170425.040634 submit/tizen/20170427.131814
Jiwoong Im [Tue, 25 Apr 2017 04:14:55 +0000 (13:14 +0900)]
Release version 0.5.7

Changes:
 - Add alarm update API

Change-Id: I932e4d01205d59ea139da68fb2dfd303eb7c7a64
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoAdd alarm update API 87/118687/11
Jiwoong Im [Mon, 13 Mar 2017 13:48:15 +0000 (22:48 +0900)]
Add alarm update API

- int alarmmgr_update_alarm(alarm_id_t alarm_id, alarm_entry_t *alarm, int update_flag)

Change-Id: I835f3b595331e8fcae4d30843ec1c8b4a17e4e9f
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.6 21/126321/1 accepted/tizen/unified/20170421.114338 submit/tizen/20170421.005321
Jiwoong Im [Fri, 21 Apr 2017 02:32:36 +0000 (11:32 +0900)]
Release version 0.5.6

Changes:
 - Remove dependency on db-util
 - Fix memory leak

Change-Id: I022aaa0ca5be4729c9fcb05f389f14736fbd2551
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak 89/126289/1
Jiwoong Im [Wed, 19 Apr 2017 00:11:37 +0000 (09:11 +0900)]
Fix memory leak

- Fix memory leak in sqlite3 error_message
- Add missing sqlite3_stmt in _load_alarms_from_registry

Change-Id: Idbcca3d50d30a0d7848b728cb07cd4ccfdd57879
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRemove dependency on db-util 88/126288/1
dahyeong.kim [Thu, 13 Apr 2017 12:30:33 +0000 (21:30 +0900)]
Remove dependency on db-util

Change-Id: I0f3e4f993cf75f076c5ebfc1b9d6b7cb15908318
Signed-off-by: dahyeong.kim <dahyeong.kim@samsung.com>
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.5 69/125169/1 accepted/tizen/unified/20170414.163934 submit/tizen/20170414.043651
Jiwoong Im [Fri, 14 Apr 2017 04:49:28 +0000 (13:49 +0900)]
Release version 0.5.5

Changes:
 - Send launch request asynchronously in alarm expired
 - Fix memory leak

Change-Id: I68389a1cc5bfa5fb20ec3c83a3493c426f0d82a8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSend launch request asynchronously in alarm expired 35/125135/3
Jiwoong Im [Fri, 14 Apr 2017 02:35:02 +0000 (11:35 +0900)]
Send launch request asynchronously in alarm expired

- If target application is in ANR status, appsvc_usr_run_service api can be blocked.
  To solve this, use async api in sending launch request.

- Requires:
[aul-1] https://review.tizen.org/gerrit/#/c/124571/

Change-Id: I65af5d9ba00bf378296899db2d6ff130e482fe18
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak 45/125045/1
Jiwoong Im [Thu, 13 Apr 2017 11:51:57 +0000 (20:51 +0900)]
Fix memory leak

Change-Id: I5f3ec19974a46f99e2137bbe4ce36ed3a72d6457
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.4 80/123780/1 accepted/tizen/unified/20170407.190623 submit/tizen/20170407.042402
Jiwoong Im [Fri, 7 Apr 2017 04:21:52 +0000 (13:21 +0900)]
Release version 0.5.4

Changes:
 - Fix crash issue
 - Fix memory leak

Change-Id: Ie3ffdde2c8d40a1f5c82d99a8dd86235d23d1544
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak 06/122506/2
Jiwoong Im [Sun, 2 Apr 2017 23:55:27 +0000 (08:55 +0900)]
Fix memory leak

Change-Id: Ied6964c23364a29b831a21fc4ffd338237aec2e8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix crash issue 70/119870/1
Venkatesha Sarpangala [Sun, 19 Mar 2017 09:13:01 +0000 (14:43 +0530)]
Fix crash issue

- API caller crashed due to null pointer dereference
- Fix by adding Null check before dereference

Change-Id: I885e4b2cb7b8c8d79656e95abc5a9dcfa1d1d7f6
Signed-off-by: Venkatesha Sarpangala <sarpangala.v@samsung.com>
(cherry picked from commit 51d21ea2c568041a91a003bebc0af7dc518e8ec7)

7 years agoRelease version 0.5.3 77/117977/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_tv accepted/tizen_wearable accepted/tizen/common/20170309.175402 accepted/tizen/ivi/20170309.072154 accepted/tizen/mobile/20170309.072120 accepted/tizen/tv/20170309.072141 accepted/tizen/unified/20170310.075747 accepted/tizen/wearable/20170309.072147 submit/tizen/20170309.012852 submit/tizen_unified/20170310.011401
Jiwoong Im [Wed, 8 Mar 2017 07:39:59 +0000 (16:39 +0900)]
Release version 0.5.3

Changes:
 - Change to call aul_update_freezer_status function
 - Check if app is running by aul_app_get_all_running_app_info

Change-Id: Ie3edc824ce3a3bd4f1cf7b3637e74f3d3d221aa2
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoCheck if app is running by aul_app_get_all_running_app_info 51/117751/3
Jiwoong Im [Tue, 7 Mar 2017 09:04:55 +0000 (18:04 +0900)]
Check if app is running by aul_app_get_all_running_app_info

- aul_app_is_running() can't check if the watch-app is running or not.
  Replace check step by using aul_app_get_all_running_app_info.

Change-Id: I0061117ebe052e0c0e70c7f31cbe02e344bb0c40
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoChange to call aul_update_freezer_status function 22/116422/1
Jiwoong Im [Fri, 24 Feb 2017 08:14:15 +0000 (17:14 +0900)]
Change to call aul_update_freezer_status function

Change-Id: If78e3f78753d73940583e0c5bc143860334be6f3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.2 88/115888/1 accepted/tizen/common/20170222.124700 accepted/tizen/ivi/20170222.222244 accepted/tizen/mobile/20170222.222141 accepted/tizen/tv/20170222.222212 accepted/tizen/unified/20170309.032336 accepted/tizen/wearable/20170222.222224 submit/tizen/20170222.090515 submit/tizen_unified/20170308.100405
Jiwoong Im [Wed, 22 Feb 2017 01:31:38 +0000 (10:31 +0900)]
Release version 0.5.2

 - Fix restart option

Change-Id: Idfb8e40fad1341438fb7ffebec5c3c7b7e8fa723
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix Restart option 01/115501/1
Jiwoong Im [Mon, 20 Feb 2017 07:37:17 +0000 (16:37 +0900)]
Fix Restart option

- Use "on-failure" option instead of "always" option

Change-Id: I710e60444b4303cdaef4f8c161fd6c52430189b7
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.1 46/114146/1 accepted/tizen/common/20170210.170557 accepted/tizen/ivi/20170214.010250 accepted/tizen/mobile/20170214.010123 accepted/tizen/tv/20170214.010152 accepted/tizen/wearable/20170214.010222 submit/tizen/20170210.073038
Jiwoong Im [Fri, 10 Feb 2017 07:04:08 +0000 (16:04 +0900)]
Release version 0.5.1

Changes:
- Fix memory leak
- replace stat to lstat in alarm_manager_alarm_set_timezone

Change-Id: Ibf27a7ed4613fb3b718a7e5e88fef86d4f2aa589
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak issue 70/113570/1
Jiwoong Im [Wed, 8 Feb 2017 06:44:03 +0000 (15:44 +0900)]
Fix memory leak issue

Change-Id: I68a40715a6453d1ecc0d6bc81583c958497a5bcb
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoreplace stat to lstat in alarm_manager_alarm_set_timezone 63/111663/1
Jiwoong Im [Mon, 23 Jan 2017 09:01:54 +0000 (18:01 +0900)]
replace stat to lstat in alarm_manager_alarm_set_timezone

- To check the link itself, user lstat instead of stat

Change-Id: I55d51621721b56ec4d442371bd635cdb0d9ffd20
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoRelease version 0.5.0 61/110961/1 accepted/tizen/common/20170125.113248 accepted/tizen/ivi/20170119.222204 accepted/tizen/mobile/20170119.221806 accepted/tizen/tv/20170119.221956 accepted/tizen/wearable/20170119.222057 submit/tizen/20170119.070147
Jiwoong Im [Thu, 19 Jan 2017 03:58:58 +0000 (12:58 +0900)]
Release version 0.5.0

Changes:
- Remove Profile Build Dependency

Change-Id: I5700d9483ae9be7332798842f90213f81f10ae45
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoStyle: code indentation of alarm-manager.c 36/101036/4
MyungJoo Ham [Wed, 30 Nov 2016 06:50:07 +0000 (15:50 +0900)]
Style: code indentation of alarm-manager.c

The intentionally ignored indentation for the previous commit,
"Remove Profile Build Dependency: Do it at runtime"
is restored in this commit, which was to help review
the commit.

Change-Id: I619ea326027ea65b98eeabb4dfa1c5146a40cb03
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoRemove Profile Build Dependency: Do it at runtime 01/98101/9
MyungJoo Ham [Wed, 16 Nov 2016 06:58:22 +0000 (15:58 +0900)]
Remove Profile Build Dependency: Do it at runtime

- This is for Tizen 4.0.

  : Tizen 4.0 Configurability and Build Blocks require
  to remove all profile-depending build options in spec files.
  (No More profile macros!)

- It is recommended to distinguish features/profiles at runtime.
 unless it incurs too much overhead, which requires you to
 create multiple binaries and subpackages.

  In the code (alarm-manager), indentation for
 if(_APPFW_FEATURE_WAKEUP_USING_RTC) is ignored to help understand
 the patch. Correcting those indentation ignores will follow
 as another patch.

Change-Id: I18b2ff8ea39bbdda0ed435f08a89b343b868822e
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix bug in alarmmgr_fini accepted/tizen/common/20170112.174805 accepted/tizen/ivi/20170112.222949 accepted/tizen/mobile/20170112.222856 accepted/tizen/tv/20170112.222913 accepted/tizen/wearable/20170112.222929 submit/tizen/20170112.062520
Jiwoong Im [Thu, 29 Dec 2016 09:36:25 +0000 (18:36 +0900)]
Fix bug in alarmmgr_fini

- Some finalize step for session bus connection is missing.

Change-Id: Iaf033059e35efcdedadab05bb8e305825086b0c1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoAdd delay for millisecond accuracy alarm handler
Jiwoong Im [Mon, 26 Dec 2016 13:00:49 +0000 (22:00 +0900)]
Add delay for millisecond accuracy alarm handler

Change-Id: I7ef155b7e3c3f75f8b5bf35e9838b6d977ee7c98
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSupport milliseconds accuracy api
Jiwoong Im [Fri, 16 Dec 2016 11:46:04 +0000 (20:46 +0900)]
Support milliseconds accuracy api

- Add alarmmgr_add_alarm_precision().
  This api support non-volatile milliseconds accuracy alarm.

Change-Id: Ia20c3eed30ee8190176b8dd4e6f299dc81b4b53d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix alarmmgr_add_alarm_withcb_precision api.
Jiwoong Im [Fri, 16 Dec 2016 01:49:29 +0000 (10:49 +0900)]
Fix alarmmgr_add_alarm_withcb_precision api.

- Change priority in g_timeout_add to G_PRIORITY_HIGH.
  Modify alarmmgr_add_alarm_withcb_precision description.

Change-Id: I8351c5c508f495cac44acfa96cbe68e3caf84ca5
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen
Jiwoong Im [Thu, 8 Dec 2016 09:05:53 +0000 (18:05 +0900)]
Merge branch 'tizen_3.0' into tizen

7 years agoChange log dump script path 22/103422/1 accepted/tizen/3.0/common/20161212.060347 accepted/tizen/3.0/ivi/20161212.022755 accepted/tizen/3.0/mobile/20161212.022531 accepted/tizen/3.0/tv/20161212.022652 accepted/tizen/3.0/wearable/20161212.022721 submit/tizen_3.0/20161209.072525
Jiwoong Im [Thu, 8 Dec 2016 08:42:55 +0000 (17:42 +0900)]
Change log dump script path

- change to /opt/etc/dump.d/module.d/alarmmgr_log_dump.sh

Change-Id: I171a0f745088618b45aefcfb40fd727940c70a84
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak in using pkgmgrinfo_appinfo_h 74/103174/1 accepted/tizen/3.0/common/20161208.153757 accepted/tizen/3.0/ivi/20161208.063754 accepted/tizen/3.0/mobile/20161208.063719 accepted/tizen/3.0/tv/20161208.063738 accepted/tizen/3.0/wearable/20161208.063745 submit/tizen_3.0/20161208.010952
Jiwoong Im [Wed, 7 Dec 2016 11:42:40 +0000 (20:42 +0900)]
Fix memory leak in using pkgmgrinfo_appinfo_h

Change-Id: Iad18257ff2afe4b3d0fd95f0629fb868eff6f09d
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak in handling expired notification alarm
Jiwoong Im [Tue, 6 Dec 2016 04:55:41 +0000 (13:55 +0900)]
Fix memory leak in handling expired notification alarm

Change-Id: I54c5e9843ddfa0f376a611579b8567e50de906e6
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoAdd missing initialize step in alarm noti api
Jiwoong Im [Mon, 5 Dec 2016 04:55:28 +0000 (13:55 +0900)]
Add missing initialize step in alarm noti api

Change-Id: I9c43e2ac07603250e387b3aff824c14034d080b6
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoChange upgrade script number
Jiwoong Im [Fri, 2 Dec 2016 08:46:06 +0000 (17:46 +0900)]
Change upgrade script number

Change-Id: Id2a797735783bd35dda86371ce4c3dd58cab7ea8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix alarmmgr_upgrade script
Jiwoong Im [Tue, 29 Nov 2016 10:52:19 +0000 (19:52 +0900)]
fix alarmmgr_upgrade script

- add missing column

Change-Id: Ic86091d71f6d81b8aa98a1b00f6cccd5f73cea52
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoreplace module log saving path
Jiwoong Im [Mon, 28 Nov 2016 05:18:34 +0000 (14:18 +0900)]
replace module log saving path

- Because of permission, replace /var/log to /run/alarmmgr_log

Change-Id: I239663fa965aab7b49efc74766a0743b2d13baad
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSupport milliseconds accuracy api for platform module
Jiwoong Im [Wed, 2 Nov 2016 00:41:12 +0000 (09:41 +0900)]
Support milliseconds accuracy api for platform module

- add alarmmgr_add_alarm_withcb_precision()

Change-Id: I02252d8fc273a09b7682fde66bd3bc5098d9cda1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix alarmmgr_upgrade script
Jiwoong Im [Thu, 24 Nov 2016 08:07:45 +0000 (17:07 +0900)]
fix alarmmgr_upgrade script

Change-Id: If6cbd453d26e28f6237513b79d76dedd9485a15a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoFix memory leak in handling expired notification alarm 16/102516/1 accepted/tizen/3.0/common/20161207.194924 accepted/tizen/3.0/ivi/20161207.014002 accepted/tizen/3.0/mobile/20161207.013910 accepted/tizen/3.0/tv/20161207.013928 accepted/tizen/3.0/wearable/20161207.013945 submit/tizen_3.0/20161207.001753
Jiwoong Im [Tue, 6 Dec 2016 04:55:41 +0000 (13:55 +0900)]
Fix memory leak in handling expired notification alarm

Change-Id: I54c5e9843ddfa0f376a611579b8567e50de906e6
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoAdd missing initialize step in alarm noti api 21/102121/1
Jiwoong Im [Mon, 5 Dec 2016 04:55:28 +0000 (13:55 +0900)]
Add missing initialize step in alarm noti api

Change-Id: I9c43e2ac07603250e387b3aff824c14034d080b6
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoChange upgrade script number 60/101860/2 accepted/tizen/3.0/common/20161205.091927 accepted/tizen/3.0/ivi/20161204.235846 accepted/tizen/3.0/mobile/20161204.235711 accepted/tizen/3.0/tv/20161204.235751 accepted/tizen/3.0/wearable/20161204.235817 submit/tizen_3.0/20161202.085638
Jiwoong Im [Fri, 2 Dec 2016 08:46:06 +0000 (17:46 +0900)]
Change upgrade script number

Change-Id: Id2a797735783bd35dda86371ce4c3dd58cab7ea8
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix alarmmgr_upgrade script 46/100846/1 accepted/tizen/3.0/common/20161130.065256 accepted/tizen/3.0/ivi/20161130.012621 accepted/tizen/3.0/mobile/20161130.012507 accepted/tizen/3.0/tv/20161130.012546 accepted/tizen/3.0/wearable/20161130.012603 submit/tizen_3.0/20161129.101050
Jiwoong Im [Tue, 29 Nov 2016 10:52:19 +0000 (19:52 +0900)]
fix alarmmgr_upgrade script

- add missing column

Change-Id: Ic86091d71f6d81b8aa98a1b00f6cccd5f73cea52
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoreplace module log saving path 00/100400/4
Jiwoong Im [Mon, 28 Nov 2016 05:18:34 +0000 (14:18 +0900)]
replace module log saving path

- Because of permission, replace /var/log to /run/alarmmgr_log

Change-Id: I239663fa965aab7b49efc74766a0743b2d13baad
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoSupport milliseconds accuracy api for platform module 00/98300/11 accepted/tizen/3.0/common/20161128.091428 accepted/tizen/3.0/ivi/20161128.083608 accepted/tizen/3.0/mobile/20161128.083407 accepted/tizen/3.0/tv/20161128.083446 accepted/tizen/3.0/wearable/20161128.083528 submit/tizen_3.0/20161125.051452
Jiwoong Im [Wed, 2 Nov 2016 00:41:12 +0000 (09:41 +0900)]
Support milliseconds accuracy api for platform module

- add alarmmgr_add_alarm_withcb_precision()

Change-Id: I02252d8fc273a09b7682fde66bd3bc5098d9cda1
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agofix alarmmgr_upgrade script 35/99835/1 accepted/tizen/3.0/common/20161125.101649 accepted/tizen/3.0/ivi/20161125.081159 accepted/tizen/3.0/mobile/20161125.081050 accepted/tizen/3.0/tv/20161125.081131 accepted/tizen/3.0/wearable/20161125.081140 submit/tizen_3.0/20161124.111024
Jiwoong Im [Thu, 24 Nov 2016 08:07:45 +0000 (17:07 +0900)]
fix alarmmgr_upgrade script

Change-Id: If6cbd453d26e28f6237513b79d76dedd9485a15a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoMerge branch 'tizen_3.0' into tizen accepted/tizen/common/20161125.095509 accepted/tizen/ivi/20161125.004233 accepted/tizen/mobile/20161125.003825 accepted/tizen/tv/20161125.003949 accepted/tizen/wearable/20161125.004111 submit/tizen/20161124.000829
Hwankyu Jhun [Thu, 24 Nov 2016 00:17:02 +0000 (09:17 +0900)]
Merge branch 'tizen_3.0' into tizen

7 years agoFix error in wakeup alarm rtc set 81/98281/1 accepted/tizen/3.0/common/20161118.192940 accepted/tizen/3.0/ivi/20161118.003831 accepted/tizen/3.0/mobile/20161118.003728 accepted/tizen/3.0/tv/20161118.003748 accepted/tizen/3.0/wearable/20161118.003810 submit/tizen_3.0/20161117.022446
Jiwoong Im [Thu, 17 Nov 2016 02:13:20 +0000 (11:13 +0900)]
Fix error in wakeup alarm rtc set

Change-Id: Icd1fd7eae992aa33041c577dc321173df478b047
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agohandle app enable/disable signal 62/96862/2
Jiwoong Im [Mon, 31 Oct 2016 08:58:15 +0000 (17:58 +0900)]
handle app enable/disable signal

- backup/restore alarm to handle app enable/disable signal

Change-Id: Id90b0004f7452ce1d93759e417eb79808865e5cf
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
7 years agoremove smack labeling in socket unit file 06/97506/1 accepted/tizen/3.0/common/20161116.143634 accepted/tizen/3.0/ivi/20161116.022259 accepted/tizen/3.0/mobile/20161116.022056 accepted/tizen/3.0/tv/20161116.022144 accepted/tizen/3.0/wearable/20161116.022225 submit/tizen_3.0/20161115.024443
Jiwoong Im [Mon, 14 Nov 2016 10:05:29 +0000 (19:05 +0900)]
remove smack labeling in socket unit file

Change-Id: I2b0476466e2fd988744391a3de5fe8e714676a2e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoMerge branch 'tizen_3.0' into tizen 72/96672/1
Hwankyu Jhun [Wed, 9 Nov 2016 22:26:06 +0000 (07:26 +0900)]
Merge branch 'tizen_3.0' into tizen

Change-Id: I1216fa4cc1332553760c17309f3c2a1bf76ae955

8 years agoFix NULL dereference defect 23/96223/1 accepted/tizen/3.0/common/20161114.082555 accepted/tizen/3.0/ivi/20161110.020332 accepted/tizen/3.0/mobile/20161110.020239 accepted/tizen/3.0/tv/20161110.020254 accepted/tizen/3.0/wearable/20161110.020314 submit/tizen_3.0/20161108.101813 submit/tizen_3.0_common/20161110.084657
Hyunho Kang [Tue, 8 Nov 2016 07:36:55 +0000 (16:36 +0900)]
Fix NULL dereference defect

Change-Id: I58e5ba3102f62e6d006a718235eaca0c42bebb27
Signed-off-by: Hyunho Kang <hhstark.kang@samsung.com>
8 years agoadd missing noti initialize in __alarm_create accepted/tizen/3.0/ivi/20161104.103818 accepted/tizen/3.0/mobile/20161104.103739 accepted/tizen/3.0/tv/20161104.103742 accepted/tizen/3.0/wearable/20161104.103757 submit/tizen_3.0/20161104.014414
Jiwoong Im [Fri, 4 Nov 2016 04:34:20 +0000 (13:34 +0900)]
add missing noti initialize in __alarm_create

Change-Id: I6c66eb8328578c072ef6c34088e851638c4e4187
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoadd missing noti initialize in __alarm_create 09/95609/2
Jiwoong Im [Fri, 4 Nov 2016 04:34:20 +0000 (13:34 +0900)]
add missing noti initialize in __alarm_create

Change-Id: I6c66eb8328578c072ef6c34088e851638c4e4187
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agofix syntax error alarm-service.conf file
Jiwoong Im [Fri, 4 Nov 2016 00:33:18 +0000 (09:33 +0900)]
fix syntax error alarm-service.conf file

Change-Id: Idf313157fbfa7fe3d4ea0b14517cba9e391b5f56
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoFix using wrong event type 63/95563/2
Sangyoon Jang [Fri, 4 Nov 2016 00:43:22 +0000 (09:43 +0900)]
Fix using wrong event type

Change-Id: I552b854c1f4b77477fff2b6315e425465fd3a960
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoFix using wrong event type 63/95563/1
Sangyoon Jang [Fri, 4 Nov 2016 00:43:22 +0000 (09:43 +0900)]
Fix using wrong event type

Change-Id: I552b854c1f4b77477fff2b6315e425465fd3a960
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agofix syntax error alarm-service.conf file 61/95561/1
Jiwoong Im [Fri, 4 Nov 2016 00:33:18 +0000 (09:33 +0900)]
fix syntax error alarm-service.conf file

Change-Id: Idf313157fbfa7fe3d4ea0b14517cba9e391b5f56
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoadd notification requires in pc file 81/94881/2 accepted/tizen/3.0/ivi/20161103.131748 accepted/tizen/3.0/mobile/20161103.131651 accepted/tizen/3.0/tv/20161103.131710 accepted/tizen/3.0/wearable/20161103.131730 submit/tizen_3.0/20161102.064015
Jiwoong Im [Wed, 2 Nov 2016 01:23:08 +0000 (10:23 +0900)]
add notification requires in pc file

Change-Id: I346d67056b6d3e8c9c7dc4931d9e875a598919a3
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoadd notification alarm APIs 86/82186/12 submit/tizen/20161101.112858
Jiwoong Im [Mon, 1 Aug 2016 11:18:57 +0000 (20:18 +0900)]
add notification alarm APIs

- alarmmgr_add_alarm_noti()
  alarmmgr_add_alarm_noti_with_localtime()
  alarmmgr_get_alarm_noti_info()

Change-Id: I19e994a95a6bb198a42df7102ed3df14b8398c6a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoFix CMakeLists for compatibility 75/94275/1 accepted/tizen/3.0/ivi/20161102.075743 accepted/tizen/3.0/mobile/20161102.075610 accepted/tizen/3.0/tv/20161102.075641 accepted/tizen/3.0/wearable/20161102.075716 accepted/tizen/common/20161031.122117 accepted/tizen/ivi/20161101.005350 accepted/tizen/mobile/20161101.005255 accepted/tizen/tv/20161101.005310 accepted/tizen/wearable/20161101.005331 submit/tizen/20161031.090409 submit/tizen_3.0/20161102.051512
Jiwoong Im [Fri, 28 Oct 2016 02:40:53 +0000 (11:40 +0900)]
Fix CMakeLists for compatibility

- Fix CMakeLists to include additional source files automatically

Change-Id: Id2831fd66456e4a22cfa1fa92c32554e323ccf2e
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agocache app_unique_name to improve performance 93/93393/9
Jiwoong Im [Mon, 24 Oct 2016 05:48:52 +0000 (14:48 +0900)]
cache app_unique_name to improve performance

Change-Id: If090e3b8504cf0b6ad888a40f3181269c0fb3c4a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoassign NULL after unref global object 54/93554/2
Jiwoong Im [Tue, 25 Oct 2016 01:58:43 +0000 (10:58 +0900)]
assign NULL after unref global object

Change-Id: Id73dfc4b464417f93c27926befbc61ff514c7c9f
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoFix bug in relative type & once alarm 71/93371/5
Jiwoong Im [Mon, 24 Oct 2016 04:15:00 +0000 (13:15 +0900)]
Fix bug in relative type & once alarm

- Timer is not expired when duetime is duplicated time as DST

Change-Id: I6d7284a5e8cd93c8163e88d82c446c0457710931
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agofix miscalculated duetime 42/93542/3
Jiwoong Im [Tue, 25 Oct 2016 01:37:17 +0000 (10:37 +0900)]
fix miscalculated duetime

Change-Id: Ibddb808f132c93bb88f4b5c4b05d52ba134eff93
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoadd privilege check in set_time api 41/93541/2
Jiwoong Im [Tue, 25 Oct 2016 01:33:58 +0000 (10:33 +0900)]
add privilege check in set_time api

- alarm_manager_alarm_set_time()
  alarm_manager_alarm_set_time_with_propagation_delay()
  alarm_manager_alarm_set_timezone()

Change-Id: I39eaa175f86dbc1d7a822ae30119bcc8741e1361
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoUse pkgmgr_client_new instead of pkgmgrinfo_client_new 84/93484/1
Sangyoon Jang [Mon, 24 Oct 2016 11:50:31 +0000 (20:50 +0900)]
Use pkgmgr_client_new instead of pkgmgrinfo_client_new

Change-Id: I10bf0f71d9fd9d9809dcddee03c765d5f7666f9b
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoremove unused alarmmgr_server object 37/90937/2 accepted/tizen/3.0/ivi/20161011.053545 accepted/tizen/3.0/mobile/20161015.032341 accepted/tizen/3.0/tv/20161016.003647 accepted/tizen/3.0/wearable/20161015.080405 accepted/tizen/common/20161005.165556 accepted/tizen/ivi/20161006.075653 accepted/tizen/mobile/20161006.075606 accepted/tizen/tv/20161006.075627 accepted/tizen/wearable/20161006.075638 submit/tizen/20161005.072822 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000000 submit/tizen_3.0_ivi/20161010.000010 submit/tizen_3.0_mobile/20161015.000000 submit/tizen_3.0_tv/20161015.000000 submit/tizen_3.0_wearable/20161015.000000
Jiwoong Im [Wed, 5 Oct 2016 05:05:46 +0000 (14:05 +0900)]
remove unused alarmmgr_server object

Change-Id: Ic01ff720605f70c00d8eb44917487f60e72574ec
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agofix bug in __set_time function 51/90151/1 accepted/tizen/common/20160929.163036 accepted/tizen/ivi/20160929.081522 accepted/tizen/mobile/20160929.081527 accepted/tizen/tv/20160929.081459 accepted/tizen/wearable/20160929.081515 submit/tizen/20160929.002630
Jiwoong Im [Wed, 28 Sep 2016 13:43:25 +0000 (22:43 +0900)]
fix bug in __set_time function

Change-Id: I93f9d532935f831251e22fae4c9d33624e14c20a
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agofix system time setting in tv profile 86/90086/2 accepted/tizen/common/20160928.164447 submit/tizen/20160928.084653
Jiwoong Im [Wed, 28 Sep 2016 08:32:48 +0000 (17:32 +0900)]
fix system time setting in tv profile

Change-Id: I5ad368f964f33cc46bfc7cc86306db38a8a7a813
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoUse pkgmgr_client_xxx instead of pkgmgrinfo_client_xxx 61/89561/1
Sangyoon Jang [Mon, 26 Sep 2016 04:45:17 +0000 (13:45 +0900)]
Use pkgmgr_client_xxx instead of pkgmgrinfo_client_xxx

Change-Id: Ie8789a00f4120a36517ad914feaa2cf876e9197e
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
8 years agoAdd extension APIs for exact alarms of service app 91/88891/2 accepted/tizen/common/20160923.161044 accepted/tizen/ivi/20160927.020312 accepted/tizen/mobile/20160927.020154 accepted/tizen/tv/20160927.020234 accepted/tizen/wearable/20160927.020221 submit/tizen/20160923.090258
Jiwoong Im [Wed, 21 Sep 2016 05:34:36 +0000 (14:34 +0900)]
Add extension APIs for exact alarms of service app

Change-Id: I3e4580cd6da4bdef0d221313c86aaaf570ae5499
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
8 years agoDisable RTC feature in tv profile 80/89080/3
Jiwoong Im [Thu, 22 Sep 2016 04:24:18 +0000 (13:24 +0900)]
Disable RTC feature in tv profile

Change-Id: I86faaa880dc19a82410140040103027f6263cdbb
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>