platform/core/context/context-common.git
7 years agoReorganize util function headers 16/121716/1
Mu-Woong Lee [Tue, 28 Mar 2017 13:05:21 +0000 (22:05 +0900)]
Reorganize util function headers

Change-Id: Ib555ae22e0f7183db53dea0772640c33b0c0b99e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoUnref GSources after attaching them to prevent memory leaks 88/121288/1
Mu-Woong Lee [Mon, 27 Mar 2017 11:58:14 +0000 (20:58 +0900)]
Unref GSources after attaching them to prevent memory leaks

Change-Id: Ie1c8b46f48380781bbe43296eb620c4dcd7029e5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoExplicitly denote the namespace of atof/atoll 53/121253/1
Mu-Woong Lee [Mon, 27 Mar 2017 10:05:46 +0000 (19:05 +0900)]
Explicitly denote the namespace of atof/atoll

Change-Id: I602d31126afc50defdcf620f68ce2872623e22bc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoChange the framework-internal header path 53/119653/1
Mu-Woong Lee [Sun, 19 Mar 2017 14:57:44 +0000 (23:57 +0900)]
Change the framework-internal header path

All framework-internal headers are placed in
/usr/include/context-service/private.

Change-Id: I37ab83c7ecfa22beca212016dfdc7a011f42dd12
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove single-threading option 65/118965/1
Mu-Woong Lee [Wed, 15 Mar 2017 03:33:15 +0000 (12:33 +0900)]
Remove single-threading option

For code simplicity, the single-threading option is removed.

Change-Id: I0a7526cf85d992f93517d6bd10203f7a38bd0f25
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd a debug tag of privilege checking results 98/118898/1
Mu-Woong Lee [Tue, 14 Mar 2017 11:33:27 +0000 (20:33 +0900)]
Add a debug tag of privilege checking results

Change-Id: I1225de0cb02237fc1f1d96d8d6897993ce97279e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix DB insertion issue of mis-counting binding index 91/118891/1
Mu-Woong Lee [Tue, 14 Mar 2017 10:44:48 +0000 (19:44 +0900)]
Fix DB insertion issue of mis-counting binding index

Change-Id: I8819b9ca9df4b83ff264867e5a0dca4365e77f99
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRename E_PRIVIL to E_ACCESS 39/118839/1
Mu-Woong Lee [Tue, 14 Mar 2017 08:06:18 +0000 (17:06 +0900)]
Rename E_PRIVIL to E_ACCESS

Permission denial may occur by other reasons.

Change-Id: I0b6c89000be9c01c9ded0e428f6cfe47cffc8b1a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd mainloop state checking routines to ServiceBase 80/118780/1
Mu-Woong Lee [Tue, 14 Mar 2017 05:03:39 +0000 (14:03 +0900)]
Add mainloop state checking routines to ServiceBase

Change-Id: I2033801f35699fc07ce24fb8c9a424a926a3f39a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd ClientBase::hasPrivileges() to check multiple privileges at once 79/118679/1
Mu-Woong Lee [Mon, 13 Mar 2017 13:41:39 +0000 (22:41 +0900)]
Add ClientBase::hasPrivileges() to check multiple privileges at once

Change-Id: Ib3566b86f491c389285eaffd9e8f863a95e28b90
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd util functions for creating platform paths 65/118665/1
Mu-Woong Lee [Mon, 13 Mar 2017 12:51:02 +0000 (21:51 +0900)]
Add util functions for creating platform paths

Change-Id: I47ca401661e2b8d3ed0297fe305a5ce1e65bb3e9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd insert() helper functions to the class Database 33/118433/2
Mu-Woong Lee [Fri, 10 Mar 2017 09:38:19 +0000 (18:38 +0900)]
Add insert() helper functions to the class Database

Change-Id: Id3e1bef3239974fca51102d07a809f00c7d6729f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoExclude Credential from the exposed APIs 12/118312/1
Mu-Woong Lee [Fri, 10 Mar 2017 04:00:58 +0000 (13:00 +0900)]
Exclude Credential from the exposed APIs

Change-Id: I161e41789a057e7c388412152a61c28217d4539a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoTuple::toGVariant() consumes the input 71/118071/1
Mu-Woong Lee [Wed, 8 Mar 2017 12:35:11 +0000 (21:35 +0900)]
Tuple::toGVariant() consumes the input

Change-Id: I93638b103eeb747047e2a7ca6bb5e57f5353a8fe
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoServiceProxy::call() always consumes the in-param GVariant 70/118070/1
Mu-Woong Lee [Wed, 8 Mar 2017 12:34:17 +0000 (21:34 +0900)]
ServiceProxy::call() always consumes the in-param GVariant

Change-Id: I18b17d0e31b2dcde29870923f7bcaa276e0e4df3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoUse () for a macro argument 82/117982/1
Mu-Woong Lee [Wed, 8 Mar 2017 08:04:59 +0000 (17:04 +0900)]
Use () for a macro argument

Change-Id: I3908e6fe6b4fe10891aaada7f48cf3ed8a3c9eb3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove the active user monitoring routine 54/117254/1
Mu-Woong Lee [Fri, 3 Mar 2017 11:00:23 +0000 (20:00 +0900)]
Remove the active user monitoring routine

It will be handled in the context-service package.

Change-Id: I384cabee5db736b58917dffc81ed96405e1f6f7c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoIn MethodCall::reply(int), cast the in-param NULL while calling reply(GVariant*) 46/117046/1
Mu-Woong Lee [Thu, 2 Mar 2017 11:26:57 +0000 (20:26 +0900)]
In MethodCall::reply(int), cast the in-param NULL while calling reply(GVariant*)

Change-Id: I1769fa2f0cbba63234e7ac8e59b48b6a1415afda
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMethodCall::reply(int error) accepts E_NONE 69/116969/1
Mu-Woong Lee [Thu, 2 Mar 2017 07:11:16 +0000 (16:11 +0900)]
MethodCall::reply(int error) accepts E_NONE

Change-Id: I4666e07d91d34e79ef10eb93421cfdb5a6743de8
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd Credential::getClientID() providing the smack label 93/116893/1
Mu-Woong Lee [Thu, 2 Mar 2017 01:23:59 +0000 (10:23 +0900)]
Add Credential::getClientID() providing the smack label

Change-Id: I225520578f87817d362efaf9eb76eaf3bb88392e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoUnref a GSource after destroyed 14/116114/1
Mu-Woong Lee [Thu, 23 Feb 2017 05:03:49 +0000 (14:03 +0900)]
Unref a GSource after destroyed

Change-Id: I7b3de80dc7a23b3ac2755f7dc2e84c11f283c78e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSeparate the database implementation into its own shared object 99/115599/2
Mu-Woong Lee [Mon, 20 Feb 2017 13:18:19 +0000 (22:18 +0900)]
Separate the database implementation into its own shared object

With this separation, API-sides are capable to use the database.

Change-Id: Ia2ad68184f305cee292fd69ff3d3bfd0dca40ad7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge "Add a runtime switch to turn on the single threading mode" into devel/tizen
Mu-Woong Lee [Mon, 20 Feb 2017 12:08:24 +0000 (04:08 -0800)]
Merge "Add a runtime switch to turn on the single threading mode" into devel/tizen

7 years agoMerge "Rename classes to denote their roles clearly" into devel/tizen
Mu-Woong Lee [Mon, 20 Feb 2017 12:08:21 +0000 (04:08 -0800)]
Merge "Rename classes to denote their roles clearly" into devel/tizen

7 years agoMerge "Separate the service loop termination process from the destructor" into devel...
Mu-Woong Lee [Mon, 20 Feb 2017 12:08:17 +0000 (04:08 -0800)]
Merge "Separate the service loop termination process from the destructor" into devel/tizen

7 years agoAdd a runtime switch to turn on the single threading mode 48/115548/1
Mu-Woong Lee [Mon, 20 Feb 2017 09:26:20 +0000 (18:26 +0900)]
Add a runtime switch to turn on the single threading mode

Change-Id: I3981d4136feb42a7054e1a8bd8b984b00492076d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRename classes to denote their roles clearly 22/115522/1
Mu-Woong Lee [Mon, 20 Feb 2017 08:13:35 +0000 (17:13 +0900)]
Rename classes to denote their roles clearly

Change-Id: Ida84bc00909c2b895133b61246e72591b1e62fe8
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoSeparate the service loop termination process from the destructor 58/114458/3
Mu-Woong Lee [Mon, 13 Feb 2017 10:42:43 +0000 (19:42 +0900)]
Separate the service loop termination process from the destructor

Change-Id: I9fbda1dc473d550f773ffd09ba68e494c67bc1c9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoCleanup the build script 30/115430/2
Mu-Woong Lee [Mon, 20 Feb 2017 03:14:41 +0000 (12:14 +0900)]
Cleanup the build script

Change-Id: I45f84a15db7cb816bf1440f70c7d0b42e849f2e0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd a Database constructor accepting the const reference of Credential 96/114096/1
Mu-Woong Lee [Fri, 10 Feb 2017 04:11:11 +0000 (13:11 +0900)]
Add a Database constructor accepting the const reference of Credential

Change-Id: I0ebfdd8bd9d0a5b971bf454df07e08d20bf7a947
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd a debug log tag in the alarmmgr callback 95/114095/1
Mu-Woong Lee [Fri, 10 Feb 2017 04:10:13 +0000 (13:10 +0900)]
Add a debug log tag in the alarmmgr callback

Change-Id: Iad8aca56ecb6d949141e3565c04306b03c887d2a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd a build flag for switching to single-threading mode 19/114019/2
Mu-Woong Lee [Thu, 9 Feb 2017 13:56:02 +0000 (22:56 +0900)]
Add a build flag for switching to single-threading mode

Change-Id: I306967d85eeb792a375c877cf48dcfa1ebc06f42
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agotoGVariant returns NULL if the input vector is empty 18/114018/1
Mu-Woong Lee [Thu, 9 Feb 2017 13:53:47 +0000 (22:53 +0900)]
toGVariant returns NULL if the input vector is empty

Change-Id: Ie2c3e45e2286a6d41294bae431c095edf41428e5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoUse libsystemd to properly check the uid 01/114001/1
Mu-Woong Lee [Thu, 9 Feb 2017 12:48:00 +0000 (21:48 +0900)]
Use libsystemd to properly check the uid

Change-Id: I65e2488a7898f305212bca5c06748c0a245b5f41
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoClarify the reference counting policy of GVariant 60/113960/1
Mu-Woong Lee [Thu, 9 Feb 2017 10:57:54 +0000 (19:57 +0900)]
Clarify the reference counting policy of GVariant

Change-Id: I91ac65451859caf110ecb91073481d611e41bec8
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd monitoring routine of the active user uid 42/113942/1
Mu-Woong Lee [Thu, 9 Feb 2017 10:13:03 +0000 (19:13 +0900)]
Add monitoring routine of the active user uid

Change-Id: I65e0268950c636de56933a0f5e168f0a9b2088a7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove redundant constructor definitions from interface classes 21/113821/1
Mu-Woong Lee [Thu, 9 Feb 2017 03:10:26 +0000 (12:10 +0900)]
Remove redundant constructor definitions from interface classes

Change-Id: Idabd627d232b2dbb86242d025b6b4e874c365bdd
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd DBus signal monitor to the server side 20/113820/1
Mu-Woong Lee [Thu, 9 Feb 2017 03:04:25 +0000 (12:04 +0900)]
Add DBus signal monitor to the server side

Change-Id: Ib36f5217800521afe7db2855e8b15958dbd9153a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd a constructor accepting uid_t to Database 14/113714/2
Mu-Woong Lee [Wed, 8 Feb 2017 11:22:30 +0000 (20:22 +0900)]
Add a constructor accepting uid_t to Database

Change-Id: Icf0685048c12b81f4106505200811cd3ec45c1cf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoChange some getter member functions to const 72/113672/1
Mu-Woong Lee [Wed, 8 Feb 2017 09:47:32 +0000 (18:47 +0900)]
Change some getter member functions to const

Change-Id: Ic46b05da4c1ea43ca09b22fd0ecc85a3316446c7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd initial implementation of the class Database 56/113656/1
Mu-Woong Lee [Wed, 8 Feb 2017 08:50:33 +0000 (17:50 +0900)]
Add initial implementation of the class Database

Change-Id: I79e9c79d43aa545e3e5ffe42ceb851e569e08650
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoTuple::toGVariant() consumes its input param 51/113651/1
Mu-Woong Lee [Wed, 8 Feb 2017 08:42:39 +0000 (17:42 +0900)]
Tuple::toGVariant() consumes its input param

Change-Id: I0cfdeb60ecc88087d88cddc497106bda773a3638
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd the class Tuple for denoting DB query results 06/113206/3
Mu-Woong Lee [Mon, 6 Feb 2017 13:30:17 +0000 (22:30 +0900)]
Add the class Tuple for denoting DB query results

Change-Id: I731109af9ed382929dda9960f868f920cfd68f34
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd initial implementation of shared utils 69/113069/2
Mu-Woong Lee [Mon, 6 Feb 2017 03:39:55 +0000 (12:39 +0900)]
Add initial implementation of shared utils

Change-Id: Id20c4853d95b607c675f21b4d00d7b357f604a69
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove Tizen 3.0 code 67/113067/1
Mu-Woong Lee [Mon, 6 Feb 2017 03:11:13 +0000 (12:11 +0900)]
Remove Tizen 3.0 code

Change-Id: I0b88d74bc68bae9474a51ee89ac71e34e0849abf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.9.9 20/102120/1
Somin Kim [Mon, 5 Dec 2016 04:56:02 +0000 (13:56 +0900)]
Version 0.9.9

Change-Id: I83fd92a2b07d6c0b6a9689a0f6f37f6d45aa4d3b
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoDefined internal key USED_TIME for RecentBatteryUsage 11/102111/1
Somin Kim [Mon, 5 Dec 2016 04:36:11 +0000 (13:36 +0900)]
Defined internal key USED_TIME for RecentBatteryUsage

Change-Id: Ib10921da35bc18cd850521eee737db46e48581a2
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoModify the initialization process of DatabaseManager 20/93720/2
Mu-Woong Lee [Tue, 25 Oct 2016 11:20:08 +0000 (20:20 +0900)]
Modify the initialization process of DatabaseManager

The DB file needs to be opened explicitly, before using DatabaseManager.

Change-Id: Ic3ca658c6d1aed861a7b3efaf590582b0c2e4740
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoVersion 0.9.7 42/92242/1
Mu-Woong Lee [Fri, 14 Oct 2016 06:14:00 +0000 (15:14 +0900)]
Version 0.9.7

Change-Id: I758124b1657964de2103ae4d7ecaf798831333f7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoReduce the dbus timeout to 3 seconds 25/91725/3
Mu-Woong Lee [Tue, 11 Oct 2016 05:13:12 +0000 (14:13 +0900)]
Reduce the dbus timeout to 3 seconds

Change-Id: Ie45d226d330dfd948ade8caabf67b91ebf9f487f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRemoved old rule trigger types (moved to context package) 80/89680/2
Somin Kim [Mon, 26 Sep 2016 10:03:56 +0000 (19:03 +0900)]
Removed old rule trigger types (moved to context package)

Change-Id: I9a932234f9ceb27bf006df901222d4baed2df36f
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoInternal rule conversion 82/87982/5
Somin Kim [Mon, 12 Sep 2016 11:25:18 +0000 (20:25 +0900)]
Internal rule conversion

Change-Id: I942009ccb1575451974bb3e6013b3ad7dbd98025
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoRemove legacy code for supporting Tizen 2.x 83/89883/2
Mu-Woong Lee [Tue, 27 Sep 2016 09:34:39 +0000 (18:34 +0900)]
Remove legacy code for supporting Tizen 2.x

Change-Id: Icfc27fdff1e74b7f6a37cb29e4febdab5b845f9e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRemove unnecessary profile dependencies from build spec 06/87806/1
MyungJoo Ham [Fri, 9 Sep 2016 08:12:32 +0000 (08:12 +0000)]
Remove unnecessary profile dependencies from build spec

If TV profile does not need this, update meta-tv.git and build project
so that it does not include this package.

If it already does not include this, the code being deleted is
already a dead code that you did not need anyway.

Change-Id: Iedf4577f48bccdcdf376fcd764a442a930fccb09
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
8 years agoFix coding rule violations 51/87751/2
Somin Kim [Fri, 9 Sep 2016 08:44:40 +0000 (17:44 +0900)]
Fix coding rule violations

Change-Id: Ic0f9ed595dcde1b33cc98b4306fd64a78dc51c67
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoVersion 0.9.6 52/87352/1
Mu-Woong Lee [Wed, 7 Sep 2016 12:18:14 +0000 (21:18 +0900)]
Version 0.9.6

Change-Id: Ifc966debfac171dbb4859196f4bb11bb38541f46
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdded Provider Types for Tizen Battery Statistics 11/81311/13
Somin Kim [Mon, 22 Aug 2016 07:24:12 +0000 (16:24 +0900)]
Added Provider Types for Tizen Battery Statistics

Change-Id: I9ad7de0dff2e16cb289acd8c5950c233693c0cde
Signed-off-by: Kunal Chawla <kunal.chawla@samsung.com>
8 years agoMove trigger & trigger rule types to context-common 44/84744/2
Somin Kim [Mon, 22 Aug 2016 07:24:12 +0000 (16:24 +0900)]
Move trigger & trigger rule types to context-common

Change-Id: Ia2006f1a079dbb1976dc880d203c7e7bbf89ba3f
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoVersion 0.9.5 80/83580/1
Mu-Woong Lee [Fri, 12 Aug 2016 00:46:32 +0000 (09:46 +0900)]
Version 0.9.5

Change-Id: I8e5923465d9c1bf1d3abfc2b000200dec215b50b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years ago[my-place] internal definitions. 31/81931/2
Marcin Masternak [Fri, 5 Aug 2016 16:15:46 +0000 (18:15 +0200)]
[my-place] internal definitions.

Change-Id: Idac0a7d8f0fae8ebf13cff1c7cb5094b10b2455d
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years agoVersion 0.9.4 82/78682/1
Mu-Woong Lee [Wed, 6 Jul 2016 11:54:23 +0000 (20:54 +0900)]
Version 0.9.4

Change-Id: Ia701f8515c84e3a8d9fb9772ad3255452a6da7ea
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agosensor: add attribute keys for sleep monitor & hrm 42/78642/1
Mu-Woong Lee [Wed, 6 Jul 2016 09:23:01 +0000 (18:23 +0900)]
sensor: add attribute keys for sleep monitor & hrm

Change-Id: Ic420600427d35377392f4ac638a4f21cd96eb3d0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoFix the mutex deadlocking issue in the destructor of TimerManager 41/78641/1
Mu-Woong Lee [Wed, 6 Jul 2016 09:22:40 +0000 (18:22 +0900)]
Fix the mutex deadlocking issue in the destructor of TimerManager

Change-Id: I4c5dc4f12944ef2bc778cb9558949d3e417aac9c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years ago[my-place] missing definition build fix. 78/78078/5
Marcin Masternak [Mon, 4 Jul 2016 09:05:02 +0000 (11:05 +0200)]
[my-place] missing definition build fix.

Change-Id: I3fe0dbb1a6340237447225cbdc4986a7a4f0d8f8
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years agoMove json definitions(day of week, rank, and etc) to context-provider 66/78066/4
Somin Kim [Mon, 4 Jul 2016 07:12:53 +0000 (16:12 +0900)]
Move json definitions(day of week, rank, and etc) to context-provider

Change-Id: I03adba2cfa5f41029c835717689a63fbdd8cb04c
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoVersion 0.9.3 01/77801/1
Mu-Woong Lee [Fri, 1 Jul 2016 06:54:27 +0000 (15:54 +0900)]
Version 0.9.3

Change-Id: If482f7748e0646864fcf5073a084f2e0377ae346
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd Json::remove() member function 85/77785/1
Mu-Woong Lee [Thu, 30 Jun 2016 07:39:06 +0000 (16:39 +0900)]
Add Json::remove() member function

Change-Id: Ifa8dd11804ed2ee397b8a60fe1d6525178d66a4b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoMerge "Add ProviderTypes.h & SensorRecorderTypes.h" into devel/tizen_3.0
Mu-Woong Lee [Mon, 27 Jun 2016 07:04:58 +0000 (00:04 -0700)]
Merge "Add ProviderTypes.h & SensorRecorderTypes.h" into devel/tizen_3.0

8 years agoFix internal error code of ERR_INVALID_DATA 52/76752/1
Somin Kim [Mon, 27 Jun 2016 06:44:35 +0000 (15:44 +0900)]
Fix internal error code of ERR_INVALID_DATA

Change-Id: Iaee2af0b2181fb1e86d2bc40aac395efcc179f44
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoAdd ProviderTypes.h & SensorRecorderTypes.h 04/76704/2
Mu-Woong Lee [Mon, 27 Jun 2016 03:59:50 +0000 (12:59 +0900)]
Add ProviderTypes.h & SensorRecorderTypes.h

Change-Id: Ibe8bdade3f4e7f7f61052467f084cb164689dbdf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd a separated header containing internal error codes 92/76692/1
Mu-Woong Lee [Thu, 23 Jun 2016 07:27:31 +0000 (16:27 +0900)]
Add a separated header containing internal error codes

Change-Id: Ief34c1297641911f7ccc5686c8f261ccc06da35f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoDisclude Types.h from the dbus client headers 91/76691/1
Mu-Woong Lee [Thu, 23 Jun 2016 02:16:31 +0000 (11:16 +0900)]
Disclude Types.h from the dbus client headers

Cherry-picked from Tizen 2.3.2

Change-Id: Id96480e5dc1e4e3f13b55d788601d8d6c5a28cff
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAllow DB queries with NULL outparam for containing query result 74/75674/1
Mu-Woong Lee [Tue, 21 Jun 2016 02:55:40 +0000 (11:55 +0900)]
Allow DB queries with NULL outparam for containing query result

Change-Id: Ifad60aae43fc4745bc4dd55d5cba442934dbef5a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoApply LEGACY_SECURITY build feature to DBusClient 73/75673/1
Mu-Woong Lee [Tue, 21 Jun 2016 02:54:42 +0000 (11:54 +0900)]
Apply LEGACY_SECURITY build feature to DBusClient

Change-Id: Ib8793b0493053ce0b60c6b6a26905f6f9eec8b23
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoModified default row_id to rowId 02/75502/2
Somin Kim [Mon, 20 Jun 2016 06:32:40 +0000 (15:32 +0900)]
Modified default row_id to rowId

Change-Id: I8c879bdad1ee69346728f725240be1bea8b8c625
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoAdded CustomRegister Interface 20/73720/1
Somin Kim [Thu, 9 Jun 2016 08:19:22 +0000 (17:19 +0900)]
Added CustomRegister Interface

Change-Id: I0faf8c9efcd5439a03a41a43d6f9b9a40c4b1652
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoVersion 0.9.0 74/73274/1
Somin Kim [Tue, 7 Jun 2016 10:22:45 +0000 (19:22 +0900)]
Version 0.9.0

Change-Id: Iaaabeed7f6a9a652920b3663a13ff3b4fb4268b1
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoAdd missing SYSTEM_SERVICE build feature 25/72925/1
Mu-Woong Lee [Fri, 3 Jun 2016 05:34:27 +0000 (14:34 +0900)]
Add missing SYSTEM_SERVICE build feature

Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Conflicts:
packaging/context-common.spec

Change-Id: I047e4535a1178b9332938273eddbddd4b680d1e0

8 years agoMigrate DBusClient from context to context-common 95/72895/1
Mu-Woong Lee [Fri, 3 Jun 2016 02:26:39 +0000 (11:26 +0900)]
Migrate DBusClient from context to context-common

Change-Id: I4e088e4e023854debcf96f4c854e7dcafc1edf22
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoMerge two separated pkg config files into one 82/72882/1
Mu-Woong Lee [Fri, 3 Jun 2016 01:49:02 +0000 (10:49 +0900)]
Merge two separated pkg config files into one

Change-Id: I16c9b99cdaf5e9f852e80b3af27bb177853ed352
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years ago[my-place] Places comparison operator== fix. 55/72555/1
Marcin Masternak [Wed, 1 Jun 2016 11:42:44 +0000 (13:42 +0200)]
[my-place] Places comparison operator== fix.

Change-Id: I7c2ddcf41dfdb32e8e52070807292691baae3cbd
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years ago[my-place] Extend Place Wifi AP's list by network names. 60/72360/1
Marcin Masternak [Tue, 31 May 2016 14:28:13 +0000 (16:28 +0200)]
[my-place] Extend Place Wifi AP's list by network names.

Change-Id: I0fd849c7e6533edbd90142d3eff17196cab51716
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years ago[my-place] Move shared definitions to context-common. 24/72224/1
Marcin Masternak [Tue, 31 May 2016 07:52:11 +0000 (09:52 +0200)]
[my-place] Move shared definitions to context-common.

Change-Id: Ifb3bfb2efd7945ec9565d6ee387136d9428d5ea7
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years ago[my-place] Move shared types to context-common. 38/71938/2
Marcin Masternak [Mon, 30 May 2016 12:22:15 +0000 (14:22 +0200)]
[my-place] Move shared types to context-common.

Change-Id: I1abe302734ba09f3215ffc60dba4fe7c65cabd21
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years agoRe-implement floating point get/set methods of the Json to be more human-readable 82/71482/6
Mu-Woong Lee [Wed, 25 May 2016 12:24:00 +0000 (21:24 +0900)]
Re-implement floating point get/set methods of the Json to be more human-readable

Floating point numbers are stored as decimal format strings, not hexadecimal.
It will be more human-readable & SQLite-friendly, but may cause some precision issues.

Note that, this patch allows maximum 15 significant digits for double-precision floating point numbers.
If you need more than 15 significant figures, use int64_t instead.

Change-Id: I0f957a863e69a060a879d90b88341a9945f469c1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd LEGACY_FILE_PATH & LEGACY_PERIODIC_ALARM build features to support build on Tizen... 74/70974/2
Mu-Woong Lee [Mon, 23 May 2016 12:06:02 +0000 (21:06 +0900)]
Add LEGACY_FILE_PATH & LEGACY_PERIODIC_ALARM build features to support build on Tizen 2.3.x

By setting LEGACY_FILE_PATH & LEGACY_PERIODIC_ALARM as 1, it can be built on Tizen 2.3.x

Change-Id: I7b3dbcbfab7b95a2c0410d55f5117ef8c5710849
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd version check for json-glib library 73/70973/1
Mu-Woong Lee [Mon, 23 May 2016 12:04:39 +0000 (21:04 +0900)]
Add version check for json-glib library

Older versions of json-glib do not support conversions from/to GVariant

Change-Id: Ie3d78602eb7a85ea12b2ef6290a6a654cee048e0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoVersion 0.8.1 62/70862/1
Mu-Woong Lee [Mon, 23 May 2016 05:49:11 +0000 (14:49 +0900)]
Version 0.8.1

Change-Id: I6a952551d2c883e72f2d985f6fd1ac7ee56ce5ab
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoDefine DBus methods for privilege checking 30/70730/1
Mu-Woong Lee [Fri, 20 May 2016 08:21:27 +0000 (17:21 +0900)]
Define DBus methods for privilege checking

Cynara-based privilege checking needs to be done in server-client manner.
To be able to test app launch, call, notification privileges from the API side, three new DBus methods are implemented.

Change-Id: I80bf039d10f875d2fe475ea3661c87949a8f6a40
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoVersion 0.8.0 70/68170/1
Mu-Woong Lee [Tue, 3 May 2016 01:31:39 +0000 (10:31 +0900)]
Version 0.8.0

Change-Id: I1520040069b7458b0ef63230bfa4b981f94c2565
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd ContextProvider::unloadable() to control unloadability of shared objects 97/67797/1
Mu-Woong Lee [Thu, 28 Apr 2016 08:56:37 +0000 (17:56 +0900)]
Add ContextProvider::unloadable() to control unloadability of shared objects

Change-Id: I308eea9325a36ce59ca98f879e568ce5ed75d876
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoDatabaseManager::DatabaseManager() returns immediately after raising SIGTERM 80/67680/1
Mu-Woong Lee [Thu, 28 Apr 2016 03:53:35 +0000 (12:53 +0900)]
DatabaseManager::DatabaseManager() returns immediately after raising SIGTERM

Change-Id: I43fa78e78871bd6e80e8d0a7a89a49da1cdf9833
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoModify the return type of ContextProvider::getPrivilege() to void 24/67524/1
Mu-Woong Lee [Wed, 27 Apr 2016 06:53:17 +0000 (15:53 +0900)]
Modify the return type of ContextProvider::getPrivilege() to void

Change-Id: Ia69d18307753a678d260378c735effb9cdac0139
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCleanup ContextProvider & IContextManager declarations 96/66996/2
Mu-Woong Lee [Fri, 22 Apr 2016 11:05:35 +0000 (20:05 +0900)]
Cleanup ContextProvider & IContextManager declarations

Change-Id: Id07b5bf188f971efc91d5e6cca29cffa28e61efd
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoUpdate License text & boilerplates 80/66680/2
Mu-Woong Lee [Wed, 20 Apr 2016 08:58:28 +0000 (17:58 +0900)]
Update License text & boilerplates

Change-Id: Ied6f71b4f6cbf57b7a7febe434bdc198c519a1c5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoDisable TV profile build explicitly 50/66550/1
Mu-Woong Lee [Tue, 19 Apr 2016 10:59:18 +0000 (19:59 +0900)]
Disable TV profile build explicitly

Change-Id: Ic1eda5371f19f7d8abacd0bf4f6ed50e2aa1376e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCleanup ContextProvider and ContextManager interfaces 27/66227/6
Mu-Woong Lee [Mon, 18 Apr 2016 03:08:23 +0000 (12:08 +0900)]
Cleanup ContextProvider and ContextManager interfaces

Change-Id: I2395ed984f7b21a67b324c9f4472a8ea7a893906
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoFix GMutex initialization issue in DatabaseThread 63/66363/1
Mu-Woong Lee [Mon, 18 Apr 2016 11:20:38 +0000 (20:20 +0900)]
Fix GMutex initialization issue in DatabaseThread

Change-Id: Icfaa15e4f45aa1a5c992aa1cf1b21a8aaab2633e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRename symbol visibility macro to SO_EXPORT 21/66221/1
Mu-Woong Lee [Mon, 18 Apr 2016 02:40:58 +0000 (11:40 +0900)]
Rename symbol visibility macro to SO_EXPORT

Change-Id: I4b0b648a3758a20cb2d0b8db80e4e37a70963655
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoSplit types_internal.h to Types.h and DBusTypes.h 98/66098/1
Mu-Woong Lee [Fri, 15 Apr 2016 07:23:55 +0000 (16:23 +0900)]
Split types_internal.h to Types.h and DBusTypes.h

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