platform/core/context/job-scheduler.git
12 months agoFixed the build error using gcc 13 98/295098/3 accepted/tizen/unified/20230713.014426 accepted/tizen/unified/dev/20230726.115904
wchang kim [Mon, 3 Jul 2023 02:19:50 +0000 (11:19 +0900)]
Fixed the build error using gcc 13

Change-Id: I6b358640aee2e4f31909b6fbd1577bb159ffa205

2 years agochange json api deprecated 66/261766/2 accepted/tizen_6.5_unified accepted/tizen_7.0_unified accepted/tizen_7.0_unified_hotfix tizen_6.5 tizen_7.0 tizen_7.0_hotfix accepted/tizen/6.5/unified/20211028.101605 accepted/tizen/7.0/unified/20221110.063658 accepted/tizen/7.0/unified/hotfix/20221116.105250 accepted/tizen/unified/20210803.123906 submit/tizen/20210802.223411 submit/tizen_6.5/20211028.162201 tizen_6.5.m2_release tizen_7.0_m2_release
Youngjae Shin [Mon, 26 Jul 2021 02:07:26 +0000 (11:07 +0900)]
change json api deprecated

Change-Id: I51efe034f7d3518c84238f7c359f2e12cbea3050

3 years agoremove supporting Dbus Action 37/255337/1 accepted/tizen/unified/20210317.115804 submit/tizen/20210317.072956
Youngjae Shin [Wed, 17 Mar 2021 06:01:43 +0000 (15:01 +0900)]
remove supporting Dbus Action

Change-Id: I7c135a7e118490041a3766185494ff6c7f29357b

5 years agoDlog Print Format Updates 60/195260/1 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_5.5 tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/5.5/unified/20191031.025149 accepted/tizen/5.5/unified/mobile/hotfix/20201027.084843 accepted/tizen/5.5/unified/wearable/hotfix/20201027.115210 accepted/tizen/6.0/unified/20201030.120740 accepted/tizen/6.0/unified/hotfix/20201103.051831 accepted/tizen/unified/20181217.142137 submit/tizen/20181212.095503 submit/tizen/20181214.061228 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 submit/tizen_5.5_wearable_hotfix/20201026.184303 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_5.5.m2_release tizen_6.0.m2_release
Dewal Agarwal [Wed, 12 Dec 2018 04:37:21 +0000 (10:07 +0530)]
Dlog Print Format Updates

Change-Id: Ib63c96af169c0504dd6ffbd73d8de2a1b03d914c
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
6 years ago[Coverity Fixes][Job Scheduler] 33/173733/4 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.015956 accepted/tizen/unified/20180418.071811 submit/tizen/20180417.081234 submit/tizen_5.0/20181101.000003
Abhishek Vijay [Fri, 23 Mar 2018 12:23:57 +0000 (17:53 +0530)]
[Coverity Fixes][Job Scheduler]

Change-Id: I474f984844437d7d2a764eaa3d06e9389fd83459
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 40/160040/1 accepted/tizen/unified/20171114.132355 submit/tizen/20171114.081743
Somin Kim [Tue, 14 Nov 2017 08:10:42 +0000 (17:10 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Fix crash issue(erase while iterating std list)
   - when a requirement is satisfied during ContextDataRead()

Change-Id: I11202ff1cf0261b80b8b19b5f9f59e54da6a10b6
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoFix crash issue(erase while iterating std list) 04/159604/2 devel/tizen
Somin Kim [Fri, 10 Nov 2017 05:55:29 +0000 (14:55 +0900)]
Fix crash issue(erase while iterating std list)
- when a requirement is satisfied during ContextDataRead()

Change-Id: Iad71212300aaa824e3dab3472268535ae1add16a
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 06/150606/1 accepted/tizen/unified/20170920.065413 submit/tizen/20170918.055906
Somin Kim [Mon, 18 Sep 2017 05:10:14 +0000 (14:10 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Unsubscribe wifi event on idle

Change-Id: Ia93fb8b8545798d310d7ac7530bbeac55bb00784
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoUnsubscribe wifi event on idle 89/150189/1
Somin Kim [Thu, 14 Sep 2017 14:18:53 +0000 (23:18 +0900)]
Unsubscribe wifi event on idle

Change-Id: I03fc4885468cebebfe6459c5637436564dfc8b7c
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 93/149493/1 accepted/tizen/unified/20170915.193456 submit/tizen/20170914.014656 submit/tizen/20170914.145428
Somin Kim [Tue, 12 Sep 2017 09:41:08 +0000 (18:41 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Fix coding rule violations

Change-Id: I393c8e99724513ea48c88c2a77fd0f853eb5bb18
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoFix coding rule violations 06/149106/1
Somin Kim [Mon, 11 Sep 2017 12:12:24 +0000 (21:12 +0900)]
Fix coding rule violations

Change-Id: I55f09a27d48de86a568ee75fdb48b62ed95b993e
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 24/149024/1 accepted/tizen/unified/20170913.070900 submit/tizen/20170911.104439
Somin Kim [Mon, 11 Sep 2017 09:40:32 +0000 (18:40 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Modified to duplicate bundle when creating JobAction
  Replace aul_svc_run_service_for_uid() with async call & vsersion 4.0.5

Change-Id: Ie5185d407ee0489b0a627671c56ebd5eb42d7339
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoMerge "Replace aul_svc_run_service_for_uid() with async call & vsersion 4.0.5 ->...
Somin Kim [Mon, 11 Sep 2017 09:38:33 +0000 (09:38 +0000)]
Merge "Replace aul_svc_run_service_for_uid() with async call & vsersion 4.0.5 -> aul_svc_run_service_async_for_uid()" into devel/tizen

6 years agoModified to duplicate bundle when creating JobAction 68/148968/2
Somin Kim [Mon, 11 Sep 2017 08:28:33 +0000 (17:28 +0900)]
Modified to duplicate bundle when creating JobAction

Change-Id: I9638528539c808c40cae4fdb929e9095a0893f08
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoReplace aul_svc_run_service_for_uid() with async call & vsersion 4.0.5 21/149021/4
Hwankyu Jhun [Mon, 11 Sep 2017 08:26:22 +0000 (17:26 +0900)]
Replace aul_svc_run_service_for_uid() with async call & vsersion 4.0.5
-> aul_svc_run_service_async_for_uid()

Change-Id: Ifd4250a4028a3457b7f7b109e49323d984dfe8cc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
(cherry picked from commit 35e44abbc26bf1ebeabbb5bfe1d3fe20b63c8975)

6 years agoChange using launch API 66/148966/1
Hwankyu Jhun [Mon, 11 Sep 2017 08:26:22 +0000 (17:26 +0900)]
Change using launch API

- Uses aul_svc_run_service_async_for_uid() instead of
aul_svc_run_service_for_uid()

Change-Id: Ifd4250a4028a3457b7f7b109e49323d984dfe8cc
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 71/146871/1 accepted/tizen/unified/20170904.144521 submit/tizen/20170904.032954
Somin Kim [Thu, 31 Aug 2017 02:47:46 +0000 (11:47 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 4.0.4
  Geofence event agent implemented
  Contacts db agent implemented

Change-Id: I7a65b5b8d5faf3f017cbdf66612c9305b91d178c
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoVersion 4.0.4 61/146861/1
Somin Kim [Thu, 31 Aug 2017 02:21:08 +0000 (11:21 +0900)]
Version 4.0.4

Change-Id: I66974354b397d14cff41963e9102050d64d75184
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoGeofence event agent implemented 10/146410/3
Somin Kim [Mon, 28 Aug 2017 10:33:00 +0000 (19:33 +0900)]
Geofence event agent implemented

Change-Id: I8917b5a2cef61b144cf91f26684a2564ceb1ed47
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoContacts db agent implemented 24/146224/1
Somin Kim [Fri, 25 Aug 2017 09:56:30 +0000 (18:56 +0900)]
Contacts db agent implemented

Change-Id: I5ea76ed5f1c4211fe5b24ebd82ac06cde302cc2b
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 92/143192/1 accepted/tizen/4.0/unified/20170828.223557 accepted/tizen/unified/20170809.135409 submit/tizen/20170809.045126 submit/tizen_4.0/20170828.100003
Mu-Woong Lee [Wed, 9 Aug 2017 04:23:31 +0000 (13:23 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Remove inactive users' corresponding job information if a global app is uninstalled
  Add OrphanedJobCleaner to remove the jobs owned by uninstalled apps
  Remove redundant unsubscribe() calls from the publisher destructors
  Fix attribute duplication
  Version 4.0.3
  Attribute bound setting functions always overwrite the bound values
  ActionState calls the dbus asynchronously
  Fix memory leaks in OnDemandJob & ActionState
  Code cleanup: JobAction::build() uses Json::Value::isMember() instead of getMemberNames()

Change-Id: I8cd4bf0295ed390116a508d9945d1797227d9ea9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoRemove inactive users' corresponding job information if a global app is uninstalled 05/143105/1
Mu-Woong Lee [Tue, 8 Aug 2017 11:56:30 +0000 (20:56 +0900)]
Remove inactive users' corresponding job information if a global app is uninstalled

Change-Id: I9ca13f466f1cb36f3f76a23839992eb2effdbcc3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd OrphanedJobCleaner to remove the jobs owned by uninstalled apps 88/143088/2
Mu-Woong Lee [Tue, 8 Aug 2017 10:50:23 +0000 (19:50 +0900)]
Add OrphanedJobCleaner to remove the jobs owned by uninstalled apps

Change-Id: I8176b3558e915ad18f41c6852f39f41b011c8791
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge "Remove redundant unsubscribe() calls from the publisher destructors" into...
Mu-Woong Lee [Tue, 8 Aug 2017 09:44:42 +0000 (09:44 +0000)]
Merge "Remove redundant unsubscribe() calls from the publisher destructors" into devel/tizen

6 years agoMerge "Version 4.0.3" into devel/tizen
Mu-Woong Lee [Tue, 8 Aug 2017 09:42:07 +0000 (09:42 +0000)]
Merge "Version 4.0.3" into devel/tizen

6 years agoRemove redundant unsubscribe() calls from the publisher destructors 59/143059/1
Mu-Woong Lee [Tue, 8 Aug 2017 09:23:32 +0000 (18:23 +0900)]
Remove redundant unsubscribe() calls from the publisher destructors

Change-Id: Ie93435561b7f832bd10db910f8dddd90299fcc00
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoFix attribute duplication 50/143050/1
Somin Kim [Tue, 8 Aug 2017 08:44:03 +0000 (17:44 +0900)]
Fix attribute duplication

Change-Id: Id1651f3d2b5e09922d5328621a5585de191d10e0
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoVersion 4.0.3 34/143034/1
Mu-Woong Lee [Tue, 8 Aug 2017 08:07:11 +0000 (17:07 +0900)]
Version 4.0.3

Change-Id: I709fa757870e65adaf681edfc65a96949aa3c00e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAttribute bound setting functions always overwrite the bound values 69/142669/2
Mu-Woong Lee [Mon, 7 Aug 2017 04:04:41 +0000 (13:04 +0900)]
Attribute bound setting functions always overwrite the bound values

Change-Id: Ie27b733a4114703f6ef75a375479bc4c2cea3423
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoActionState calls the dbus asynchronously 64/142664/1
Mu-Woong Lee [Mon, 7 Aug 2017 03:14:52 +0000 (12:14 +0900)]
ActionState calls the dbus asynchronously

Change-Id: I82d117a8b5c0abcad40536595c2f081f40102fb7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoFix memory leaks in OnDemandJob & ActionState 47/142647/2
Mu-Woong Lee [Mon, 7 Aug 2017 02:30:32 +0000 (11:30 +0900)]
Fix memory leaks in OnDemandJob & ActionState

- OnDemandJob::~OnDemandJob() deletes its JobTrigger objects.
- ActionState::__callDBusMethod() frees the GVariant parameter object.

Change-Id: I778199214222dfceb250226c2896155d36d451bf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoCode cleanup: JobAction::build() uses Json::Value::isMember() instead of getMemberNames() 28/142628/2
Mu-Woong Lee [Sun, 6 Aug 2017 06:32:20 +0000 (15:32 +0900)]
Code cleanup: JobAction::build() uses Json::Value::isMember() instead of getMemberNames()

Change-Id: I8b31aff20ab99f880984001e511496f907a0a3c9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 30/142630/1 accepted/tizen/unified/20170808.171004 submit/tizen/20170806.070303
Mu-Woong Lee [Sun, 6 Aug 2017 06:50:47 +0000 (15:50 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 4.0.2
  add_eq/ne API functions return E_INV_RULE if the same values are added
  Add an API function to serialize a context handle

Change-Id: I028cc31a5be0f0e88580e4a949cd78ac998da997
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoVersion 4.0.2 49/142549/1
Mu-Woong Lee [Fri, 4 Aug 2017 07:51:02 +0000 (16:51 +0900)]
Version 4.0.2

Change-Id: I849e1110d52d6e130eac2f2682f245eaacedfdaf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoadd_eq/ne API functions return E_INV_RULE if the same values are added 86/142486/2
Mu-Woong Lee [Fri, 4 Aug 2017 05:50:04 +0000 (14:50 +0900)]
add_eq/ne API functions return E_INV_RULE if the same values are added

Change-Id: Iab9d4a5bd278807e7d85a828260246c25a56b536
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd an API function to serialize a context handle 94/142394/1
Mu-Woong Lee [Fri, 4 Aug 2017 01:05:39 +0000 (10:05 +0900)]
Add an API function to serialize a context handle

Change-Id: I11f1554fe663ff96bd17756d662c69a072f83bb9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 40/142340/1
Mu-Woong Lee [Thu, 3 Aug 2017 11:48:05 +0000 (20:48 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 4.0.1
  Add AlarmEvent publisher to support the time event of context-trigger
  Set the disjunction flag to false, if it has no effect
  Add an API function to duplicate job context handle
  Modified API descriptions(powersave, battery)
  Add Battery state publisher
  Add privilege information to the API descriptions
  Add Display state publisher
  Add PowerSave state publisher
  Add input param checkers to JobManagerProxy & JobAction
  API descriptions of the URIs
  Remove virtual packages provided by this package

Change-Id: I2b76a00509f2f661ab91256017d75f2104eff5b8
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoVersion 4.0.1 39/142339/1
Mu-Woong Lee [Thu, 3 Aug 2017 11:35:33 +0000 (20:35 +0900)]
Version 4.0.1

Change-Id: I8edbec275e2fb5cf7276d8e42d83b06c652ba16a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd AlarmEvent publisher to support the time event of context-trigger 11/141211/4
Mu-Woong Lee [Fri, 28 Jul 2017 13:59:15 +0000 (22:59 +0900)]
Add AlarmEvent publisher to support the time event of context-trigger

Change-Id: I89ff1d2be18be227d07c5977090385c30bb12285
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoSet the disjunction flag to false, if it has no effect 84/142284/1
Mu-Woong Lee [Thu, 3 Aug 2017 08:37:58 +0000 (17:37 +0900)]
Set the disjunction flag to false, if it has no effect

Change-Id: I4594ecb69c620bfa3b45b6e906fdea75dccf38c2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd an API function to duplicate job context handle 48/142248/4
Mu-Woong Lee [Thu, 3 Aug 2017 07:03:27 +0000 (16:03 +0900)]
Add an API function to duplicate job context handle

Change-Id: If538c2fb6746f5811e393ae7fa837e92186f5a28
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoModified API descriptions(powersave, battery) 05/142205/3
Somin Kim [Thu, 3 Aug 2017 05:11:38 +0000 (14:11 +0900)]
Modified API descriptions(powersave, battery)

Change-Id: I99b47881f992e7f3b552274a8a1c29ce282830c7
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoAdd Battery state publisher 01/142201/1
Somin Kim [Thu, 3 Aug 2017 05:05:31 +0000 (14:05 +0900)]
Add Battery state publisher

Change-Id: Iee31042c13f9310ba998c05ec358d24002fe46d9
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoAdd privilege information to the API descriptions 77/142177/2
Mu-Woong Lee [Thu, 3 Aug 2017 02:57:43 +0000 (11:57 +0900)]
Add privilege information to the API descriptions

Change-Id: I886f5e6a1b2f2df3e49d7ebe22fe527b06da9d3f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd Display state publisher 60/141960/5
Somin Kim [Wed, 2 Aug 2017 06:13:49 +0000 (15:13 +0900)]
Add Display state publisher

Change-Id: I5de790fa0101c2ff48a56d209449be7629c5256b
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoAdd PowerSave state publisher 00/141900/5
Somin Kim [Wed, 2 Aug 2017 03:06:16 +0000 (12:06 +0900)]
Add PowerSave state publisher

Change-Id: Iabbde1586659f653a7bc53db15a768ae03f00c6d
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoAdd input param checkers to JobManagerProxy & JobAction 12/142112/3
Mu-Woong Lee [Wed, 2 Aug 2017 13:15:10 +0000 (22:15 +0900)]
Add input param checkers to JobManagerProxy & JobAction

Change-Id: Id0be6f13b0ba213236c8228f0f099b58e710c28a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAPI descriptions of the URIs 99/141999/2
Mu-Woong Lee [Wed, 2 Aug 2017 07:35:01 +0000 (16:35 +0900)]
API descriptions of the URIs

Change-Id: Ia6ee02c61b1873796b1aed71e29dd1b09b669e5b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoRemove virtual packages provided by this package 38/141938/1
Mu-Woong Lee [Wed, 2 Aug 2017 05:19:11 +0000 (14:19 +0900)]
Remove virtual packages provided by this package

Change-Id: I76e73c744bb25e0f5acd6f7899ef670e1dcf4d96
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 14/141914/1 accepted/tizen/4.0/unified/20170816.011627 accepted/tizen/4.0/unified/20170816.020233 accepted/tizen/unified/20170802.151541 submit/tizen/20170802.043634 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0_unified/20170814.115522
Mu-Woong Lee [Wed, 2 Aug 2017 04:03:06 +0000 (13:03 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 4.0.0
  Cleanup the publisher privileges
  Add event publisher function to the geofence agent
  Implement isIdle() function of agent plugins
  Add skeletons of the user-session agents
  Add USB state publisher
  Remove the IPC helper class
  Add custom context registration functions to support legacy context-trigger API
  Add TemporalState publisher (not observable)
  Add ContextPublisher::isObservable()
  Add WiFi state publisher
  Add user activity publishers
  Define attribute names and values for several system contexts
  Reorganize source directory: concrete state class files are moved to 'state' subdirectory
  Add CustomPublisher
  DBusAction only supports system bus
  Remove unsupported trigger URIs
  Add privilege checkers for actions
  Change the cleanup order to avoid crashes
  Implement app-control & notification actions

Change-Id: I8e0141e69b0710397f85d33247ae9fd50afc11d2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoVersion 4.0.0 08/141908/1
Mu-Woong Lee [Wed, 2 Aug 2017 03:49:47 +0000 (12:49 +0900)]
Version 4.0.0

Change-Id: I3d0d8ccadcd74a8a8689c0e9eba80621266fc323
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoCleanup the publisher privileges 03/141903/1
Mu-Woong Lee [Wed, 2 Aug 2017 03:16:51 +0000 (12:16 +0900)]
Cleanup the publisher privileges

Change-Id: I6dc56068c6fe592e6f5695ccc0d51f55921ef2dd
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd event publisher function to the geofence agent 93/141893/1
Mu-Woong Lee [Wed, 2 Aug 2017 02:27:36 +0000 (11:27 +0900)]
Add event publisher function to the geofence agent

Change-Id: I461aa59ddb1aacead54a96075f8f0d05cc655597
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoImplement isIdle() function of agent plugins 74/141774/2
Mu-Woong Lee [Tue, 1 Aug 2017 10:33:08 +0000 (19:33 +0900)]
Implement isIdle() function of agent plugins

Change-Id: I34634c5c5f03f60d05b0ef3e19401088291ef96c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge "Add USB state publisher" into devel/tizen
Somin Kim [Tue, 1 Aug 2017 10:33:06 +0000 (10:33 +0000)]
Merge "Add USB state publisher" into devel/tizen

6 years agoAdd skeletons of the user-session agents 80/141280/4
Mu-Woong Lee [Sun, 30 Jul 2017 09:01:34 +0000 (18:01 +0900)]
Add skeletons of the user-session agents

Change-Id: I35f70eedb4845cd8645bff4dceeabde93ae2b5ea
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd USB state publisher 15/141515/1
Somin Kim [Tue, 1 Aug 2017 02:18:03 +0000 (11:18 +0900)]
Add USB state publisher

Change-Id: If94e569afb6f561a775130b1a67435168cb68547
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoRemove the IPC helper class 75/141275/3
Mu-Woong Lee [Sun, 30 Jul 2017 02:46:30 +0000 (11:46 +0900)]
Remove the IPC helper class

Change-Id: I17c64867b550c4a26c3bc847ca8a3321d2a608ff
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd custom context registration functions to support legacy context-trigger API 13/141213/4
Mu-Woong Lee [Fri, 28 Jul 2017 14:14:10 +0000 (23:14 +0900)]
Add custom context registration functions to support legacy context-trigger API

Change-Id: Ie74076eec0f6a457125d5c6a385bf657303aa004
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd TemporalState publisher (not observable) 92/141192/4
Mu-Woong Lee [Fri, 28 Jul 2017 11:47:52 +0000 (20:47 +0900)]
Add TemporalState publisher (not observable)

Change-Id: Ib65124268bbab3f51aca021ba0b9c27e1bbce8eb
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd ContextPublisher::isObservable() 10/141210/1
Mu-Woong Lee [Fri, 28 Jul 2017 13:45:05 +0000 (22:45 +0900)]
Add ContextPublisher::isObservable()

Change-Id: I032fca150218b09f8d8f01992fa196598fcab004
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd WiFi state publisher 61/141161/2
Mu-Woong Lee [Fri, 28 Jul 2017 09:29:58 +0000 (18:29 +0900)]
Add WiFi state publisher

Change-Id: If74a6eb1d32817f6586becc96c6950ed8384c757
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd user activity publishers 31/141131/1
Mu-Woong Lee [Fri, 28 Jul 2017 07:52:09 +0000 (16:52 +0900)]
Add user activity publishers

Change-Id: I194f221f0b4f82d3728d0eeff4f68516472e1cee
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDefine attribute names and values for several system contexts 97/141097/1
Mu-Woong Lee [Fri, 28 Jul 2017 06:56:40 +0000 (15:56 +0900)]
Define attribute names and values for several system contexts

Change-Id: Ibe463f2a9f57a637e121f46061fa29acfac3143b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoReorganize source directory: concrete state class files are moved to 'state' subdirectory 88/141088/1
Mu-Woong Lee [Fri, 28 Jul 2017 06:20:02 +0000 (15:20 +0900)]
Reorganize source directory: concrete state class files are moved to 'state' subdirectory

Change-Id: I09853d9be3aec9ef2f14d3c93cf7d66fa0bf2324
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd CustomPublisher 76/141076/4
Mu-Woong Lee [Fri, 28 Jul 2017 04:55:09 +0000 (13:55 +0900)]
Add CustomPublisher

Change-Id: I8a100d8298bef247e56b66c2768b83e621abb46b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDBusAction only supports system bus 31/141031/1
Mu-Woong Lee [Fri, 28 Jul 2017 01:17:31 +0000 (10:17 +0900)]
DBusAction only supports system bus

Change-Id: I7afb14e8d7700a54c0b84faf72df8b2da5f6a8b9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove unsupported trigger URIs 03/141003/1
Mu-Woong Lee [Thu, 27 Jul 2017 11:44:05 +0000 (20:44 +0900)]
Remove unsupported trigger URIs

Change-Id: I8d67aa349a274ee7442e857531446a5b9993fc92
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd privilege checkers for actions 00/141000/1
Mu-Woong Lee [Thu, 27 Jul 2017 11:34:31 +0000 (20:34 +0900)]
Add privilege checkers for actions

Change-Id: I98ac6db8874f655517bf21fa814ccc0fefaae759
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoChange the cleanup order to avoid crashes 93/140993/1
Mu-Woong Lee [Thu, 27 Jul 2017 11:23:35 +0000 (20:23 +0900)]
Change the cleanup order to avoid crashes

Change-Id: Ide05404079204694c6ed1bacd1a71a497f3d4c32
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement app-control & notification actions 41/140941/6
Mu-Woong Lee [Thu, 27 Jul 2017 07:33:19 +0000 (16:33 +0900)]
Implement app-control & notification actions

Change-Id: I182952d9b2f857480cdadc53e09196aff34d8c93
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 32/140832/1 accepted/tizen/unified/20170727.191032 submit/tizen/20170726.122148
Mu-Woong Lee [Wed, 26 Jul 2017 12:17:55 +0000 (21:17 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen: (24 commits)
  Version 0.0.6
  Fix mismatched pointer types in JobManagerProxy
  Add more logs showing state transitions
  ContextPublisher copies the observer list before iterating it
  Apply base64 encoding to the DBus call parameters
  Free the string allocated by g_variant_print() in JobDBusCall
  Add an internal API function ctx_sched_job_serialize()
  Add ChargerState & EarJackState context publishers
  Implement ActionState and ClosingState
  Implement ReqVerificationState
  Implement TriggerStandbyState
  Remove an unused member variable
  Add sufficiency checking operators to the JobContext and Attribute classes
  Split the implementations of JobRunner & JobState child classes
  Add ContextManager and integrate it with JobManager
  Add the GpsState context publisher
  Make some getters of ContextPublisher const
  Define ContextPublisher and IContextObserver
  Monitor PM state to be reactive to the device wakeups
  Implement TimerStandbyState
  ...

Change-Id: If4fa612780803cfc3a137aee6fd0225d075f8678
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.0.6 29/140829/1
Mu-Woong Lee [Wed, 26 Jul 2017 12:11:03 +0000 (21:11 +0900)]
Version 0.0.6

Change-Id: I3c528bb12b289d9a45cf89bbd0956881b6934da1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix mismatched pointer types in JobManagerProxy 14/140814/1
Mu-Woong Lee [Wed, 26 Jul 2017 11:32:46 +0000 (20:32 +0900)]
Fix mismatched pointer types in JobManagerProxy

Change-Id: Id2decfb4d30a8742105ed13bcd3c92eacbb18828
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd more logs showing state transitions 09/140809/1
Mu-Woong Lee [Wed, 26 Jul 2017 11:17:54 +0000 (20:17 +0900)]
Add more logs showing state transitions

Change-Id: I2599737123d936d3c085f2ae2bcefe7181fa8b36
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoContextPublisher copies the observer list before iterating it 03/140803/1
Mu-Woong Lee [Wed, 26 Jul 2017 10:35:37 +0000 (19:35 +0900)]
ContextPublisher copies the observer list before iterating it

Change-Id: I32c4ea2c9bc2d372b5fe8f07d3f522c780dd54c1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoApply base64 encoding to the DBus call parameters 65/140765/1
Mu-Woong Lee [Wed, 26 Jul 2017 08:29:46 +0000 (17:29 +0900)]
Apply base64 encoding to the DBus call parameters

A DBus call parameter may contain SQL-unfriendly characters, it thus needs to be encoded into a safe form.

Change-Id: Iff7f21ec2692b5cf89641811d24b20e6cca6ba16
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFree the string allocated by g_variant_print() in JobDBusCall 33/140733/1
Mu-Woong Lee [Wed, 26 Jul 2017 07:27:05 +0000 (16:27 +0900)]
Free the string allocated by g_variant_print() in JobDBusCall

Change-Id: I48079de1bf06fa765955180184e483ad31b98100
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd an internal API function ctx_sched_job_serialize() 89/140589/2
Mu-Woong Lee [Tue, 25 Jul 2017 12:11:19 +0000 (21:11 +0900)]
Add an internal API function ctx_sched_job_serialize()

This function is for testing purpose.

Change-Id: I296ff90fc926d7a544f5ef85291bf4df205d107d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd ChargerState & EarJackState context publishers 81/140581/2
Mu-Woong Lee [Tue, 25 Jul 2017 11:41:15 +0000 (20:41 +0900)]
Add ChargerState & EarJackState context publishers

Change-Id: Ief68b30961e0d378393ad67e869dd7606625a235
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement ActionState and ClosingState 51/140551/2
Mu-Woong Lee [Tue, 25 Jul 2017 10:02:59 +0000 (19:02 +0900)]
Implement ActionState and ClosingState

Change-Id: I5275369bde6068d285314e17f77003cdd1263d70
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement ReqVerificationState 55/140455/3
Mu-Woong Lee [Tue, 25 Jul 2017 05:18:35 +0000 (14:18 +0900)]
Implement ReqVerificationState

Change-Id: I05058aa4aad1e3122774381eb48daad39838bb0b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement TriggerStandbyState 83/140383/3
Mu-Woong Lee [Tue, 25 Jul 2017 02:24:05 +0000 (11:24 +0900)]
Implement TriggerStandbyState

Change-Id: Iaabcffd256bdabeb84172b7202c66e5d19df833c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove an unused member variable 25/140325/1
Mu-Woong Lee [Mon, 24 Jul 2017 12:28:35 +0000 (21:28 +0900)]
Remove an unused member variable

Change-Id: I4be201f0fdd12a41d54fc9e8ef72409464e22618
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd sufficiency checking operators to the JobContext and Attribute classes 20/140320/1
Mu-Woong Lee [Mon, 24 Jul 2017 11:56:48 +0000 (20:56 +0900)]
Add sufficiency checking operators to the JobContext and Attribute classes

The operator <= is used to define sufficiency checkers
as "S => N" ("N <= S" in reverse) usually denotes "if S, then N".

Change-Id: I26cefe67a69d569373b3ceb5bd9328c14c336ac2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSplit the implementations of JobRunner & JobState child classes 66/140266/2
Mu-Woong Lee [Mon, 24 Jul 2017 08:50:16 +0000 (17:50 +0900)]
Split the implementations of JobRunner & JobState child classes

Change-Id: I5363406ecf1d00f0b2e185c257895028e548d994
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd ContextManager and integrate it with JobManager 16/140216/3
Mu-Woong Lee [Mon, 24 Jul 2017 07:25:25 +0000 (16:25 +0900)]
Add ContextManager and integrate it with JobManager

Change-Id: I0a6c929cc77abf93cc5320ec476b8ddcf9bd4e3f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd the GpsState context publisher 95/140195/3
Mu-Woong Lee [Mon, 24 Jul 2017 06:41:46 +0000 (15:41 +0900)]
Add the GpsState context publisher

Change-Id: Ib3f066bb496b07be13f0c342f463d45e06660d7e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMake some getters of ContextPublisher const 74/140174/1
Mu-Woong Lee [Mon, 24 Jul 2017 05:41:03 +0000 (14:41 +0900)]
Make some getters of ContextPublisher const

Change-Id: I48a14bc45f883acfb5a93bad19c31ea12d5ddcd5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDefine ContextPublisher and IContextObserver 10/140110/2
Mu-Woong Lee [Mon, 24 Jul 2017 02:26:00 +0000 (11:26 +0900)]
Define ContextPublisher and IContextObserver

Change-Id: I0a1aa5c59daab5c12c56c97f24099a834aa1fc5b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMonitor PM state to be reactive to the device wakeups 14/140014/2
Mu-Woong Lee [Fri, 21 Jul 2017 10:25:34 +0000 (19:25 +0900)]
Monitor PM state to be reactive to the device wakeups

Change-Id: I71a9fcc8a9faaa0649b3c2197f413917a91cae0d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement TimerStandbyState 48/139948/2
Mu-Woong Lee [Fri, 21 Jul 2017 06:32:12 +0000 (15:32 +0900)]
Implement TimerStandbyState

Change-Id: I1f3c30054ac644ab2fcf2c7e0c38750d3c1adc14
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSome states acquire a wakelock to be sure that the system is kept awake 00/139900/1
Mu-Woong Lee [Fri, 21 Jul 2017 03:13:20 +0000 (12:13 +0900)]
Some states acquire a wakelock to be sure that the system is kept awake

Change-Id: I02184f3ebd46ed8a7fded5b72575fdc425016660
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoIntegrate ctx_sched_set_job_cb() with the server-side functionalities 71/139871/1
Mu-Woong Lee [Fri, 21 Jul 2017 01:54:40 +0000 (10:54 +0900)]
Integrate ctx_sched_set_job_cb() with the server-side functionalities

Change-Id: Idc084b09c8f2e9a3f8155720c522212c26ed2ff5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoA job's user data accepts a byte string with its length. 93/139193/3
Mu-Woong Lee [Tue, 18 Jul 2017 01:58:42 +0000 (10:58 +0900)]
A job's user data accepts a byte string with its length.

It does not need to be a NULL-terminate string anymore.

Change-Id: I52f99a2fbe025fd7af2dbc3c2fba7985c6984a82
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoJobManager::removeJob() returns an error if the job is not stopped 89/139189/1
Mu-Woong Lee [Tue, 18 Jul 2017 01:21:27 +0000 (10:21 +0900)]
JobManager::removeJob() returns an error if the job is not stopped

Change-Id: Ie5589733472d0215b5b5a9a20e807d2013e3642a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 57/138957/1 accepted/tizen/unified/20170717.170708 submit/tizen/20170714.105655
Mu-Woong Lee [Fri, 14 Jul 2017 10:50:08 +0000 (19:50 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 0.0.5
  Test parameter validity when adding a job
  Add an API function ctx_sched_job_finished() and a callback ctx_sched_start_job_cb
  Modify the jobId generation logic to produce unique IDs across all users
  Skeleton of job lifecycle handling state machine

Change-Id: I3bc85533e2fb36c96dccbf0b89b154859e83fa3d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.0.5 40/138840/2
Mu-Woong Lee [Fri, 14 Jul 2017 04:29:15 +0000 (13:29 +0900)]
Version 0.0.5

Change-Id: I0a8cc78603acc5aeeac8e7b2a9b61fae6a0d51d1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoTest parameter validity when adding a job 38/138838/5
Mu-Woong Lee [Fri, 14 Jul 2017 04:26:28 +0000 (13:26 +0900)]
Test parameter validity when adding a job

Change-Id: Id0fd45e091dc8342b8b6bbd6326d1f1dfee274c6
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd an API function ctx_sched_job_finished() and a callback ctx_sched_start_job_cb 15/138815/6
Mu-Woong Lee [Fri, 14 Jul 2017 02:01:05 +0000 (11:01 +0900)]
Add an API function ctx_sched_job_finished() and a callback ctx_sched_start_job_cb

Change-Id: Ia6e6ebec8b1d3ed6d3d56bd17d1251331ff10ca3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>