platform/core/context/job-scheduler.git
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>
7 years agoModify the jobId generation logic to produce unique IDs across all users 88/138688/3
Mu-Woong Lee [Thu, 13 Jul 2017 08:14:50 +0000 (17:14 +0900)]
Modify the jobId generation logic to produce unique IDs across all users

If a jobId has been returned by removing a job, the same ID can be used later.

Change-Id: Ib2d36d03c5bbc78eedbce28e60f227310cd1fc2f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSkeleton of job lifecycle handling state machine 13/138513/5
Mu-Woong Lee [Wed, 12 Jul 2017 10:31:05 +0000 (19:31 +0900)]
Skeleton of job lifecycle handling state machine

Change-Id: Iae69eae781684ce3794048b4747c03f6c1d734db
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 33/138533/1 accepted/tizen/unified/20170713.153446 submit/tizen/20170712.122138
Mu-Woong Lee [Wed, 12 Jul 2017 12:03:12 +0000 (21:03 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Apply the changed function names in context-common & rename non-class functions
  Add SchedTimer
  Create a job info table per user, instead of one big table
  JobManager prevents the same client to register the same job twice
  Make the getter functions of job information classes const

Change-Id: Idf2c43af04d9c21860122c7eae3ec06adbc40349
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoApply the changed function names in context-common & rename non-class functions 05/138505/2
Mu-Woong Lee [Wed, 12 Jul 2017 10:06:18 +0000 (19:06 +0900)]
Apply the changed function names in context-common & rename non-class functions

Change-Id: Iea7aea26b677645b29580fb6e2bd07f29e120f76
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd SchedTimer 94/138194/3
Mu-Woong Lee [Tue, 11 Jul 2017 11:18:02 +0000 (20:18 +0900)]
Add SchedTimer

SchedTimer summarizes the periodic intervals of all periodic jobs and sets a single alarm.
When the alarm expires (or the device wake-ups by any reasons),
SchedTimer notifies the corresponding periodic job runners.

Change-Id: Ib791c3a90e57d3600c04ad45967908749c69d8db
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoCreate a job info table per user, instead of one big table 18/138118/1
Mu-Woong Lee [Tue, 11 Jul 2017 06:36:33 +0000 (15:36 +0900)]
Create a job info table per user, instead of one big table

Change-Id: Ie6d56d6923668f824ef583ca9bd5435113b90b8e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoJobManager prevents the same client to register the same job twice 98/138098/1
Mu-Woong Lee [Tue, 11 Jul 2017 05:29:57 +0000 (14:29 +0900)]
JobManager prevents the same client to register the same job twice

If a client tries to register the same job, the existing job's ID is returned.

Change-Id: Iaf223ff12b3ece29c7afb31e1f01d5b9a748a4e0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMake the getter functions of job information classes const 85/138085/1
Mu-Woong Lee [Tue, 11 Jul 2017 04:54:28 +0000 (13:54 +0900)]
Make the getter functions of job information classes const

Change-Id: I3edc085cce5ddc447c9d81af1d24522aa2fdd263
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 74/137974/1 accepted/tizen/unified/20170711.180844 submit/tizen/20170710.122951
Mu-Woong Lee [Mon, 10 Jul 2017 12:23:57 +0000 (21:23 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 0.0.4
  Implement JobInfoDatabase and integrate it with JobManager
  Implement JobManager
  Implement MethodCallHandler
  Omit the last \n from the serialized json strings

Change-Id: Iea1ac73e396c22a1693e6f45d2e98a9b116abd84
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.0.4 70/137970/2
Mu-Woong Lee [Mon, 10 Jul 2017 12:06:31 +0000 (21:06 +0900)]
Version 0.0.4

Change-Id: Ic59d3ac34a47d218dee86241154ba2c760714b91
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement JobInfoDatabase and integrate it with JobManager 63/137763/4
Mu-Woong Lee [Fri, 7 Jul 2017 10:57:56 +0000 (19:57 +0900)]
Implement JobInfoDatabase and integrate it with JobManager

Change-Id: Ia10fbfb7baaa284f45af65d199b7bd48a7b0b344
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement JobManager 73/137373/4
Mu-Woong Lee [Wed, 5 Jul 2017 11:06:27 +0000 (20:06 +0900)]
Implement JobManager

DB operations are not yet implemented.

Change-Id: I6a776ca0da572cbbb3e8be71095b32f1cb4cc31c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement MethodCallHandler 11/136911/2
Mu-Woong Lee [Mon, 3 Jul 2017 11:33:34 +0000 (20:33 +0900)]
Implement MethodCallHandler

Change-Id: I0d8780047a66d415ed72cbce4558529497651e63
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoOmit the last \n from the serialized json strings 41/136741/1
Mu-Woong Lee [Mon, 3 Jul 2017 05:33:55 +0000 (14:33 +0900)]
Omit the last \n from the serialized json strings

Change-Id: I2c9def181b3fb41cf3c616eedd76b42e410e4a30
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 09/136709/1 accepted/tizen/unified/20170705.162925 submit/tizen/20170705.022841
Mu-Woong Lee [Mon, 3 Jul 2017 04:19:08 +0000 (13:19 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 0.0.3 release 1
  JobSchedulerService realizes ISystemService instead of IService
  Replace MethodCallHandler::setCaller() with a parameterized constructor

Change-Id: I9489328454c10510fc40945f071e15843e1cb9a7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.0.3 release 1 81/136481/1
Mu-Woong Lee [Fri, 30 Jun 2017 02:28:32 +0000 (11:28 +0900)]
Version 0.0.3 release 1

(in dev stage)

Change-Id: I9ff37749c18b7566975129fcfa749899582c734f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoJobSchedulerService realizes ISystemService instead of IService 36/136336/2
Mu-Woong Lee [Thu, 29 Jun 2017 06:55:13 +0000 (15:55 +0900)]
JobSchedulerService realizes ISystemService instead of IService

Change-Id: Ie5e39b57c47604611b8c6df271cdbde26b149e31
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoReplace MethodCallHandler::setCaller() with a parameterized constructor 67/136267/1
Mu-Woong Lee [Thu, 29 Jun 2017 01:54:26 +0000 (10:54 +0900)]
Replace MethodCallHandler::setCaller() with a parameterized constructor

Change-Id: Ie0ef9856666df4006c0e7b10189b8b33662e3981
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 87/134387/1 accepted/tizen/unified/20170630.083109 submit/tizen/20170616.104337
Mu-Woong Lee [Fri, 16 Jun 2017 07:09:29 +0000 (16:09 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Enable a compile warning: -Wformat=2
  Fix a possible memory leak in job_scheduler.cpp
  Implement API functions that communicate with the server
  Bug fixes: API function name typos & mis-implemented JobSchedulerService class
  The parameterized constructor of JobInfo initializes all member variables
  Cleanup build dependencies
  Implement dummy API functions
  Add JobInfo::deserialize(), which replaces two sub-class deserialize() functions
  Add the skeleton of JobManagerProxy, which is used to implement the API
  Partial implementation of API: functions requiring no IPC
  Add getType() functions to JobInfo & JobContext
  Add -Wall compile option
  Add job information class deserializer
  Add the 'notification' type action
  Add job information class serializer

Change-Id: Id7b66bfc38ed4dc12f1fc6fc9c64ae4317e60956
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoEnable a compile warning: -Wformat=2 85/134385/1
Mu-Woong Lee [Fri, 16 Jun 2017 07:06:30 +0000 (16:06 +0900)]
Enable a compile warning: -Wformat=2

Change-Id: If7d8654a851f2736bb9aed86d612acecd6b6ac6e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix a possible memory leak in job_scheduler.cpp 36/134136/1
Mu-Woong Lee [Thu, 15 Jun 2017 02:13:12 +0000 (11:13 +0900)]
Fix a possible memory leak in job_scheduler.cpp

Change-Id: I01eafcb6a075abc97cbe2bf71b2f9fba75e013f6
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement API functions that communicate with the server 90/133990/4
Mu-Woong Lee [Wed, 14 Jun 2017 06:36:51 +0000 (15:36 +0900)]
Implement API functions that communicate with the server

Change-Id: I15c603c11b05b449f9e1af16465ed8443eb0effb
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoBug fixes: API function name typos & mis-implemented JobSchedulerService class 84/134084/1
Mu-Woong Lee [Wed, 14 Jun 2017 11:43:19 +0000 (20:43 +0900)]
Bug fixes: API function name typos & mis-implemented JobSchedulerService class

Change-Id: I2a36762f3307200e72c8e88565c838a81f93a8c5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoThe parameterized constructor of JobInfo initializes all member variables 64/134064/1
Mu-Woong Lee [Wed, 14 Jun 2017 10:26:52 +0000 (19:26 +0900)]
The parameterized constructor of JobInfo initializes all member variables

Change-Id: Ieb12fd46fdd9d47607dbd8c2dc8f3bb9553bf7d6
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge "Add JobInfo::deserialize(), which replaces two sub-class deserialize() functio...
Mu-Woong Lee [Wed, 14 Jun 2017 08:14:08 +0000 (08:14 +0000)]
Merge "Add JobInfo::deserialize(), which replaces two sub-class deserialize() functions" into devel/tizen

7 years agoCleanup build dependencies 05/134005/1
Mu-Woong Lee [Wed, 14 Jun 2017 07:48:01 +0000 (16:48 +0900)]
Cleanup build dependencies

Change-Id: I36c2bdc36da8186181be377d52f5e91e61403928
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoImplement dummy API functions 93/133993/1
Mu-Woong Lee [Wed, 14 Jun 2017 06:50:59 +0000 (15:50 +0900)]
Implement dummy API functions

Change-Id: I3f9a21c91e63edcd286edafe00883fbcef32d8a3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd JobInfo::deserialize(), which replaces two sub-class deserialize() functions 66/133966/2
Mu-Woong Lee [Wed, 14 Jun 2017 06:06:26 +0000 (15:06 +0900)]
Add JobInfo::deserialize(), which replaces two sub-class deserialize() functions

Change-Id: I6b2a905e3baed0e067cc60ff87aebcd9694c9d84
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd the skeleton of JobManagerProxy, which is used to implement the API 74/133774/2
Mu-Woong Lee [Tue, 13 Jun 2017 09:48:47 +0000 (18:48 +0900)]
Add the skeleton of JobManagerProxy, which is used to implement the API

Change-Id: I6ba2218ec0259b35ebcc689de58c9f83f7a53965
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoPartial implementation of API: functions requiring no IPC 01/133701/3
Mu-Woong Lee [Tue, 13 Jun 2017 06:57:26 +0000 (15:57 +0900)]
Partial implementation of API: functions requiring no IPC

Change-Id: Ic217d22b8020affc56b44ef0dd36457555fd567e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd getType() functions to JobInfo & JobContext 95/133695/1
Mu-Woong Lee [Tue, 13 Jun 2017 06:54:25 +0000 (15:54 +0900)]
Add getType() functions to JobInfo & JobContext

Change-Id: I652fe6eff5cb48221a381bb17e78df5533926f92
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd -Wall compile option 46/133646/1
Mu-Woong Lee [Tue, 13 Jun 2017 04:14:41 +0000 (13:14 +0900)]
Add -Wall compile option

Change-Id: I70c3fd11e9c7d5f39a41eb567704ad1897fc502a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd job information class deserializer 93/133493/3
Mu-Woong Lee [Mon, 12 Jun 2017 11:14:57 +0000 (20:14 +0900)]
Add job information class deserializer

Change-Id: Ic80fc4ba2a247f536b942a51f5ce04a0f4f1cd93
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd the 'notification' type action 12/133412/2
Mu-Woong Lee [Mon, 12 Jun 2017 06:27:54 +0000 (15:27 +0900)]
Add the 'notification' type action

Change-Id: I00b5d4c507e1c8cf4ce2c339e24f1705321b80db
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd job information class serializer 95/133395/3
Mu-Woong Lee [Mon, 12 Jun 2017 04:59:15 +0000 (13:59 +0900)]
Add job information class serializer

Change-Id: I941116c863e8d4ac908a77c6657cdef6d9428967
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 97/133297/1 accepted/tizen/unified/20170609.204940 submit/tizen/20170609.130020
Mu-Woong Lee [Fri, 9 Jun 2017 12:55:20 +0000 (21:55 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Dependency cleanup: apply the modified service & client interfaces
  Job information classes (w/o serialization functions)
  Add API descriptions
  Add compile options to suppress verbose messages and enable colored diagnostics
  Declare job-scheduler internal C API

Change-Id: I603eb210a184e04003a2c25c178ef1622a5abbb4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDependency cleanup: apply the modified service & client interfaces 68/133268/2
Mu-Woong Lee [Fri, 9 Jun 2017 11:17:57 +0000 (20:17 +0900)]
Dependency cleanup: apply the modified service & client interfaces

Change-Id: I75efce7c6c54255e3beb088a873f56cc578e6395
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoJob information classes (w/o serialization functions) 99/132899/3
Mu-Woong Lee [Thu, 8 Jun 2017 08:06:53 +0000 (17:06 +0900)]
Job information classes (w/o serialization functions)

Change-Id: I037b781839800d24e5ea2687330a48252eb90389
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd API descriptions 35/132735/3
Mu-Woong Lee [Wed, 7 Jun 2017 09:53:56 +0000 (18:53 +0900)]
Add API descriptions

Change-Id: Ie4d1329ac4631e6ed54d7027519c689085378137
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd compile options to suppress verbose messages and enable colored diagnostics 61/125261/1
Mu-Woong Lee [Fri, 14 Apr 2017 08:52:36 +0000 (17:52 +0900)]
Add compile options to suppress verbose messages and enable colored diagnostics

Change-Id: I7e62291e6f51c68f99f1f8c6d72c773a961151fc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDeclare job-scheduler internal C API 92/124092/5
Mu-Woong Lee [Mon, 10 Apr 2017 07:30:34 +0000 (16:30 +0900)]
Declare job-scheduler internal C API

Change-Id: Iecc59de9cca833bdb9f368868812087db1585d78
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 48/124748/1 accepted/tizen/unified/20170414.163512 submit/tizen/20170413.031950 tizen_4.0.m1_release
Mu-Woong Lee [Wed, 12 Apr 2017 08:45:48 +0000 (17:45 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Fix the build script typos and nonconventional so symlink packaging
  Reorganize file structure to distinguish server/client headers
  Replace ContextErrorUtil.h with SharedUtil.h
  Rename the packages to clearly denote their roles
  Rearrange header directory structure w.r.t. context-common
  Package skeleton of the job-scheduler server & client

Change-Id: Ia513fa46d5c7d50a2af3a836b73ae077016aeb84
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix the build script typos and nonconventional so symlink packaging 08/123308/1
Mu-Woong Lee [Wed, 5 Apr 2017 07:30:00 +0000 (16:30 +0900)]
Fix the build script typos and nonconventional so symlink packaging

Change-Id: I229e8def4c57d8875bd76d9f817826cde43ddccc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoReorganize file structure to distinguish server/client headers 16/123116/2
Mu-Woong Lee [Tue, 4 Apr 2017 12:17:39 +0000 (21:17 +0900)]
Reorganize file structure to distinguish server/client headers

Change-Id: Ief37542ab78d9f747bc2f5c20ebbe9924389dc57
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoReplace ContextErrorUtil.h with SharedUtil.h 18/121718/1
Mu-Woong Lee [Tue, 28 Mar 2017 13:07:07 +0000 (22:07 +0900)]
Replace ContextErrorUtil.h with SharedUtil.h

Change-Id: If0b78582a2133a554f90b7cb36afa7a1c0e0aa78
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRename the packages to clearly denote their roles 34/120634/1
Mu-Woong Lee [Thu, 23 Mar 2017 11:01:36 +0000 (20:01 +0900)]
Rename the packages to clearly denote their roles

Change-Id: I2b9687718d30af23c8c820561f9bad7d1767480b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRearrange header directory structure w.r.t. context-common 56/119656/1
Mu-Woong Lee [Sun, 19 Mar 2017 15:00:47 +0000 (00:00 +0900)]
Rearrange header directory structure w.r.t. context-common

Change-Id: I3a2a989397bf4aaaac848c61ba9109609e9eee59
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoPackage skeleton of the job-scheduler server & client 54/119254/2
Mu-Woong Lee [Thu, 16 Mar 2017 06:39:06 +0000 (15:39 +0900)]
Package skeleton of the job-scheduler server & client

Change-Id: If69d317236f949a587ffe45286f55daddeee13a8
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoInitial empty repository master
Tizen Infrastructure [Wed, 11 Jan 2017 22:14:59 +0000 (14:14 -0800)]
Initial empty repository