platform/core/context/context-common.git
4 years ago[Non-ACR]Coverity fixes 47/225247/2 accepted/tizen_6.0_unified accepted/tizen_6.0_unified_hotfix tizen_6.0 tizen_6.0_hotfix accepted/tizen/6.0/unified/20201030.120712 accepted/tizen/6.0/unified/hotfix/20201103.051135 accepted/tizen/unified/20200302.125831 submit/tizen/20200226.082715 submit/tizen/20200227.043418 submit/tizen_6.0/20201029.205103 submit/tizen_6.0_hotfix/20201102.192503 submit/tizen_6.0_hotfix/20201103.114803 tizen_6.0.m2_release
Abhishek Vijay [Tue, 18 Feb 2020 09:52:04 +0000 (15:22 +0530)]
[Non-ACR]Coverity fixes

Change-Id: I7af9722e41dc562a495b6cebe89bbae9146a7dd8
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
5 years agoDeprication of sd_get_uid_type() 81/201381/2 accepted/tizen_5.5_unified accepted/tizen_5.5_unified_mobile_hotfix accepted/tizen_5.5_unified_wearable_hotfix tizen_5.5_mobile_hotfix tizen_5.5_tv tizen_5.5_wearable_hotfix accepted/tizen/5.5/unified/20191031.024540 accepted/tizen/5.5/unified/mobile/hotfix/20201027.083647 accepted/tizen/5.5/unified/wearable/hotfix/20201027.115149 accepted/tizen/unified/20190424.040737 submit/tizen/20190412.032943 submit/tizen/20190423.061729 submit/tizen_5.5/20191031.000003 submit/tizen_5.5_mobile_hotfix/20201026.185103 submit/tizen_5.5_wearable_hotfix/20201026.184303 tizen_5.5.m2_release
Dewal Agarwal [Wed, 13 Mar 2019 09:19:56 +0000 (14:49 +0530)]
Deprication of sd_get_uid_type()

Change-Id: I1dd3795a42eb8e2c601532a8709bc044e9efb3f6
Signed-off-by: Dewal Agarwal <d1.agarwal@samsung.com>
5 years ago[Non-ACR][SQL Injection Attack - Static Query] 96/180096/1 accepted/tizen/unified/20181217.142042 submit/tizen/20181214.061228
Abhishek Vijay [Thu, 24 May 2018 15:55:26 +0000 (21:25 +0530)]
[Non-ACR][SQL Injection Attack - Static Query]

Change-Id: I73ce9a3c8864e9236a308d281c3b364c2669e4d7
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
6 years ago[Non-ACR][Removing Security Log] 66/177666/1 accepted/tizen_5.0_unified tizen_5.0 accepted/tizen/5.0/unified/20181102.014842 accepted/tizen/unified/20180504.063622 submit/tizen/20180503.081304 submit/tizen_4.0/20180503.041220 submit/tizen_5.0/20181101.000003
Abhishek Vijay [Wed, 2 May 2018 14:30:34 +0000 (20:00 +0530)]
[Non-ACR][Removing Security Log]

Change-Id: Ia0a5d1007686a9b4c68121b0b3f1f18065124950
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
6 years ago[Non-ACR][Change Agent Socket File Path] 04/175404/1 accepted/tizen/unified/20180412.073750 submit/tizen/20180410.083915
Abhishek Vijay [Tue, 10 Apr 2018 05:50:51 +0000 (11:20 +0530)]
[Non-ACR][Change Agent Socket File Path]

Change-Id: I678d69813a84d1fd4b6dac0344e6ff01627353f6
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
6 years ago[Coverity Fixes][Context Common] 34/173734/1
Abhishek Vijay [Fri, 23 Mar 2018 12:28:53 +0000 (17:58 +0530)]
[Coverity Fixes][Context Common]

Change-Id: I129f07df0322252519f0a1179d1e1d6008ed0093
Signed-off-by: Abhishek Vijay <abhishek.v@samsung.com>
6 years agoMerge branch 'tizen' into tizen_4.0 75/149575/1 accepted/tizen/4.0/unified/20170913.153006 submit/tizen_4.0/20170911.104826 tizen_4.0.IoT.p1_release tizen_4.0.IoT.p2_release tizen_4.0.m2_release
Somin Kim [Tue, 12 Sep 2017 12:56:05 +0000 (21:56 +0900)]
Merge branch 'tizen' into tizen_4.0

* tizen:
  Fix coding rule violations

Change-Id: I4416b35b766b3ab3aea497eddbb2e52f930a7736
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 90/149490/1 accepted/tizen/unified/20170913.070855 submit/tizen/20170911.104439
Somin Kim [Tue, 12 Sep 2017 09:40:31 +0000 (18:40 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Fix coding rule violations

Change-Id: Ie1242d15809d09ceb949bc67610557f62ed5bfec
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoFix coding rule violations 03/149103/1 devel/tizen
Somin Kim [Mon, 11 Sep 2017 12:10:49 +0000 (21:10 +0900)]
Fix coding rule violations

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

* devel/tizen:
  Version 4.0.3
  Add DBusCaller::callAsync()

Change-Id: I8546bbeb474ad424a1b24249c4b638422a6a124d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoVersion 4.0.3 33/143033/2
Mu-Woong Lee [Tue, 8 Aug 2017 08:04:07 +0000 (17:04 +0900)]
Version 4.0.3

Change-Id: Ie3051e1a73c687a4a30a90ba2e0ce43c63dabbd8
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd DBusCaller::callAsync() 63/142663/1
Mu-Woong Lee [Mon, 7 Aug 2017 03:13:42 +0000 (12:13 +0900)]
Add DBusCaller::callAsync()

Change-Id: Idf4716ee4bb6af392c0e95e62dd09f6c2da6de4c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 13/141913/1 accepted/tizen/4.0/unified/20170816.011702 accepted/tizen/4.0/unified/20170816.014644 accepted/tizen/unified/20170802.151538 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:02:30 +0000 (13:02 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 4.0.2
  Add defence code to handle socket write failure
  Declare IAgentPlugin::isIdle() to implement exit-on-idle of the context-agent
  Add AgentCommander for sending commands to the contextd-agent
  Fix the missed name spaces
  Implement WakeLock and DBusCaller helpper classes

Change-Id: I85881304ead72cb0617840053c6c8fc89d20eafd
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoVersion 4.0.2 07/141907/1
Mu-Woong Lee [Wed, 2 Aug 2017 03:48:20 +0000 (12:48 +0900)]
Version 4.0.2

Change-Id: Ice92fb31c8f3021c22fced39a281eef9165edfee
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd defence code to handle socket write failure 95/141795/3
Mu-Woong Lee [Tue, 1 Aug 2017 11:31:11 +0000 (20:31 +0900)]
Add defence code to handle socket write failure

Change-Id: Ia31d1b138fefb8bb89d61ad9515b9eca2918ed61
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoDeclare IAgentPlugin::isIdle() to implement exit-on-idle of the context-agent 73/141773/1
Mu-Woong Lee [Tue, 1 Aug 2017 10:30:45 +0000 (19:30 +0900)]
Declare IAgentPlugin::isIdle() to implement exit-on-idle of the context-agent

Change-Id: Ia9e8916b6d6ea2ac45cc5a16337651c9d3d0de10
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd AgentCommander for sending commands to the contextd-agent 73/141273/9
Mu-Woong Lee [Sat, 29 Jul 2017 17:06:19 +0000 (02:06 +0900)]
Add AgentCommander for sending commands to the contextd-agent

Change-Id: I25feea55db4fd7cfbe03abb8836c4bdb2164a3d9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoFix the missed name spaces 76/141276/1
Mu-Woong Lee [Sun, 30 Jul 2017 03:23:04 +0000 (12:23 +0900)]
Fix the missed name spaces

Change-Id: I0b179635e5d68fdd7c6e49b305adeb90cebd1df0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoImplement WakeLock and DBusCaller helpper classes 98/141198/6
Mu-Woong Lee [Fri, 28 Jul 2017 12:35:15 +0000 (21:35 +0900)]
Implement WakeLock and DBusCaller helpper classes

Change-Id: Ica7faa0c497f09946d1965f30a04d238d2db1d9b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 58/140358/1 accepted/tizen/unified/20170725.174020 submit/tizen/20170725.022613
Mu-Woong Lee [Tue, 25 Jul 2017 00:57:02 +0000 (09:57 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Add the skeleton of WakeLock, which keeps the AP awake iff at least one instance exists

Change-Id: I103a9c9d4a5ebdfa5bad01589375028802a29c0c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd the skeleton of WakeLock, which keeps the AP awake iff at least one instance... 91/139891/3
Mu-Woong Lee [Fri, 21 Jul 2017 02:30:13 +0000 (11:30 +0900)]
Add the skeleton of WakeLock, which keeps the AP awake iff at least one instance exists

Change-Id: I0acba5ca9340b2135cd310b9150571735e6c78ec
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 56/138956/1 accepted/tizen/unified/20170717.170705 submit/tizen/20170714.105655
Mu-Woong Lee [Fri, 14 Jul 2017 10:49:45 +0000 (19:49 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Type-cast all E_* error codes to int
  Cleanup non-class function names

Change-Id: I4fe901d74505b865f47154c25cb2c3cfe79a3eda
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoType-cast all E_* error codes to int 27/138827/1
Mu-Woong Lee [Fri, 14 Jul 2017 02:57:09 +0000 (11:57 +0900)]
Type-cast all E_* error codes to int

This allows to remove explicit casting of E_* codes when throwing & catching them as int.

Change-Id: Ic8b566a7f5ff9013b15cb957c3a01f78a7c90e77
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoCleanup non-class function names 30/138530/1 accepted/tizen/unified/20170713.153436 submit/tizen/20170712.122138
Mu-Woong Lee [Wed, 12 Jul 2017 09:38:09 +0000 (18:38 +0900)]
Cleanup non-class function names

Change-Id: I367b1592c494a037235126cbb99dc9c5a71455e7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
(cherry picked from commit 329af9a81a4ac54d3e74ea787a0da615055569d6)

6 years agoCleanup non-class function names 90/138490/3
Mu-Woong Lee [Wed, 12 Jul 2017 09:38:09 +0000 (18:38 +0900)]
Cleanup non-class function names

Change-Id: I367b1592c494a037235126cbb99dc9c5a71455e7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 73/137973/1 accepted/tizen/unified/20170711.180839 submit/tizen/20170710.122951
Mu-Woong Lee [Mon, 10 Jul 2017 12:23:34 +0000 (21:23 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 4.0.0r2
  Add IClient::getName() for getting the package id (or the executable path) of  client

Change-Id: I17cb9d6d22f04f830369bcbf67d58fd5246599b8
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoVersion 4.0.0r2 68/137968/2
Mu-Woong Lee [Mon, 10 Jul 2017 12:04:19 +0000 (21:04 +0900)]
Version 4.0.0r2

Change-Id: I63138615349f703fe76eb2285b86c11c5064d372
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd IClient::getName() for getting the package id (or the executable path) of client 10/137310/2
Mu-Woong Lee [Wed, 5 Jul 2017 07:42:08 +0000 (16:42 +0900)]
Add IClient::getName() for getting the package id (or the executable path) of  client

Change-Id: I1f627f7cc93b59fad1127d88f260267ac83e7f16
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 03/137203/1 accepted/tizen/unified/20170705.162912 submit/tizen/20170705.022841
Mu-Woong Lee [Wed, 5 Jul 2017 01:49:49 +0000 (10:49 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Add conditional exception-throwing macros for error handling
  Remove json-glib from the spec & cmake scripts
  Remove the glib-json wrapper CtxJson

Change-Id: I13e2a99c6134f0780c6f766fb49c5fc39ada0ed9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoAdd conditional exception-throwing macros for error handling 01/136901/2
Mu-Woong Lee [Mon, 3 Jul 2017 11:11:47 +0000 (20:11 +0900)]
Add conditional exception-throwing macros for error handling

Change-Id: I4d1c6334b882a53e8ae4dad5821f32ad796dffbb
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoRemove json-glib from the spec & cmake scripts 84/136784/1
Mu-Woong Lee [Mon, 3 Jul 2017 07:04:37 +0000 (16:04 +0900)]
Remove json-glib from the spec & cmake scripts

Change-Id: I67cfcbaea12ebd77210892d2d27aa71ba0e167da
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 06/136706/1 submit/tizen/20170703.044536
Mu-Woong Lee [Mon, 3 Jul 2017 04:17:03 +0000 (13:17 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 4.0.0 release 1
  Subdivide the interface IService to ISystemService & IUserService
  Remove IMethodCallHandler::setCaller()
  Add the default constructor to Timer
  Make the user path creation function atomic
  ServiceProxy signals to contextd if an instance of it is created

Change-Id: I904cc299f6c5d48bee977cad127cd25ad2e092bf
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoRemove the glib-json wrapper CtxJson 75/136675/1
Mu-Woong Lee [Sat, 1 Jul 2017 14:20:18 +0000 (23:20 +0900)]
Remove the glib-json wrapper CtxJson

Change-Id: I1e2dbd85f3fab2a35c15413f8c3186bcd70d910a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoVersion 4.0.0 release 1 78/136478/2
Mu-Woong Lee [Fri, 30 Jun 2017 02:15:47 +0000 (11:15 +0900)]
Version 4.0.0 release 1

Change-Id: I90e8382142711dfb24cdc1a8366c1482acb9614c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoSubdivide the interface IService to ISystemService & IUserService 90/136290/2
Mu-Woong Lee [Thu, 29 Jun 2017 04:35:02 +0000 (13:35 +0900)]
Subdivide the interface IService to ISystemService & IUserService

Change-Id: I74ad1e7a94dcda44e933a4e2f2f5efaa587ef435
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoRemove IMethodCallHandler::setCaller() 63/136263/1
Mu-Woong Lee [Thu, 29 Jun 2017 01:45:45 +0000 (10:45 +0900)]
Remove IMethodCallHandler::setCaller()

Change-Id: I2e028f12e5da91655feacd9c385eaf49ca2c2c5a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge "Add the default constructor to Timer" into devel/tizen
Mu-Woong Lee [Mon, 26 Jun 2017 09:12:25 +0000 (09:12 +0000)]
Merge "Add the default constructor to Timer" into devel/tizen

6 years agoAdd the default constructor to Timer 19/135719/1
Mu-Woong Lee [Mon, 26 Jun 2017 05:43:18 +0000 (14:43 +0900)]
Add the default constructor to Timer

Change-Id: I4113e58219c33744de17cbd6d23feb05cbe0383d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMake the user path creation function atomic 87/135687/2
Mu-Woong Lee [Mon, 26 Jun 2017 01:10:33 +0000 (10:10 +0900)]
Make the user path creation function atomic

Change-Id: I2ceb68ccb4bc13d1a8a96c30ef14b871e2111725
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoServiceProxy signals to contextd if an instance of it is created 82/135682/2
Mu-Woong Lee [Mon, 26 Jun 2017 01:02:29 +0000 (10:02 +0900)]
ServiceProxy signals to contextd if an instance of it is created

Change-Id: If5b095979485b98fa78e81689520b06b045526de
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 94/133294/1 accepted/tizen/unified/20170609.204938 submit/tizen/20170609.130020
Mu-Woong Lee [Fri, 9 Jun 2017 12:53:28 +0000 (21:53 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Dependency cleanup: remove service & client base implementations
  Rename the class Json to avoid symbol conflicts with Jsoncpp

Change-Id: Ie4bf74ae7551ccd80fe1a34d21efddf8b392add6
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoDependency cleanup: remove service & client base implementations 58/133158/4
Mu-Woong Lee [Fri, 9 Jun 2017 05:20:50 +0000 (14:20 +0900)]
Dependency cleanup: remove service & client base implementations

Change-Id: I890b3080dedb0fa6db30d737ddc02882870ab660
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoRename the class Json to avoid symbol conflicts with Jsoncpp 73/132973/2
Mu-Woong Lee [Thu, 8 Jun 2017 12:24:06 +0000 (21:24 +0900)]
Rename the class Json to avoid symbol conflicts with Jsoncpp

The class CtxJson, which is a wrapper of glib-json, will be removed later.

Change-Id: I357d49fa836f4541d46ef4ee7425f993780ad9e7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMerge branch 'devel/tizen' into tizen 93/131893/1 accepted/tizen/unified/20170605.150526 submit/tizen/20170531.082615
Mu-Woong Lee [Wed, 31 May 2017 06:09:27 +0000 (15:09 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Rename a private struct ServiceBase::ClientInfo to __ClientInfo

Change-Id: I7c3ff25db2ca2d6b5b28daec3f14df9d8b42e6ae
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoRename a private struct ServiceBase::ClientInfo to __ClientInfo 46/130246/1
Mu-Woong Lee [Fri, 19 May 2017 13:53:35 +0000 (22:53 +0900)]
Rename a private struct ServiceBase::ClientInfo to __ClientInfo

Change-Id: If49557efacb439d5d33f284ec19a754a1c010d68
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 40/127940/1 accepted/tizen/unified/20170504.062635 submit/tizen/20170503.060126 tizen_4.0.m1_release
Mu-Woong Lee [Tue, 2 May 2017 11:55:53 +0000 (20:55 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 1.0.3
  Integrate the database so into the server so

Change-Id: Id87bb89736777df6b8fe51cf6100b5af72751701
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 1.0.3 38/127938/1
Mu-Woong Lee [Tue, 2 May 2017 11:50:47 +0000 (20:50 +0900)]
Version 1.0.3

Change-Id: I21d9578dc5eea4af13238a87cb464b496f3a1537
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoIntegrate the database so into the server so 30/127930/1
Mu-Woong Lee [Tue, 2 May 2017 11:30:29 +0000 (20:30 +0900)]
Integrate the database so into the server so

We will not support api-side database creations (at least in Tizen 4.0).

Change-Id: I3048c8ea8f95169124572ed1128131c62ee56837
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 02/127402/1 accepted/tizen/unified/20170428.032557 submit/tizen/20170427.071620
Mu-Woong Lee [Thu, 27 Apr 2017 07:01:22 +0000 (16:01 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 1.0.2
  server: refactor Timer to accept GSourceFunc as callback points
  Add Tuple::getType() to check the types of attributes
  server: add a util function to get the list of files in a directory

Change-Id: Ide7b2ea9a57f09085b920d5f22e3787eb362873b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 1.0.2 84/127384/1
Mu-Woong Lee [Thu, 27 Apr 2017 06:33:43 +0000 (15:33 +0900)]
Version 1.0.2

Change-Id: I5a8d534703a41cafb303fa18cdb4dd1532d3298f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoserver: refactor Timer to accept GSourceFunc as callback points 99/127299/3
Mu-Woong Lee [Thu, 27 Apr 2017 04:12:48 +0000 (13:12 +0900)]
server: refactor Timer to accept GSourceFunc as callback points

Change-Id: I7465cf32491c3c648e55e2811c3181ffaa4c7c50
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd Tuple::getType() to check the types of attributes 23/126723/1
Mu-Woong Lee [Tue, 25 Apr 2017 03:19:10 +0000 (12:19 +0900)]
Add Tuple::getType() to check the types of attributes

Database uses the type checker to strictly bind the attribute values to SQL queries.

Change-Id: I761cdaef508313de46c70ba4c2bf51d8e168fb72
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoserver: add a util function to get the list of files in a directory 79/126579/1
Mu-Woong Lee [Mon, 24 Apr 2017 08:00:21 +0000 (17:00 +0900)]
server: add a util function to get the list of files in a directory

Change-Id: I4759cdfad87c239062944b1d4fca4dad4b15c3a3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 79/126179/1 accepted/tizen/unified/20170420.155838 submit/tizen/20170420.102501
Somin Kim [Thu, 20 Apr 2017 09:50:11 +0000 (18:50 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 1.0.1
  Fix svace issue
  Add compile options to suppress verbose messages and enable colored diagnostics

Change-Id: I11a9157bc5a57a04ab016f7547a1a9a734bc43b9
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoVersion 1.0.1 72/126172/1
Somin Kim [Thu, 20 Apr 2017 09:33:37 +0000 (18:33 +0900)]
Version 1.0.1

Change-Id: I3c01def6a5cb1a7d537edd02d5024407d82806a5
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoFix svace issue 09/126109/1
Somin Kim [Thu, 20 Apr 2017 06:44:32 +0000 (15:44 +0900)]
Fix svace issue

Change-Id: Ic98f016ce5a98ac91083e1d12213710db0838142
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoAdd compile options to suppress verbose messages and enable colored diagnostics 58/125258/1
Mu-Woong Lee [Fri, 14 Apr 2017 08:46:36 +0000 (17:46 +0900)]
Add compile options to suppress verbose messages and enable colored diagnostics

Change-Id: I419861e3392c417a3eefa01b77d41c6d3fa3b775
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 28/124728/1 accepted/tizen/unified/20170414.163458 submit/tizen/20170413.031950
Mu-Woong Lee [Wed, 12 Apr 2017 08:05:05 +0000 (17:05 +0900)]
Merge branch 'devel/tizen' into tizen

This applies the newly implemented context-common for 4.0

Change-Id: I6224911a8ac9724533f2f5725269037954d221f3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove Tuple::duplicate() 37/124637/1
Mu-Woong Lee [Wed, 12 Apr 2017 04:31:21 +0000 (13:31 +0900)]
Remove Tuple::duplicate()

Change-Id: Idb954136c518c12a07535044232938e54e835edc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd two parameterized constructors of Timer for specifying the main context 98/123498/1
Mu-Woong Lee [Thu, 6 Apr 2017 01:54:12 +0000 (10:54 +0900)]
Add two parameterized constructors of Timer for specifying the main context

Normally, a Timer object will be used within a main context,
thus it is OK to create a Timer without specifying the main context.
However, in the case that a service creates more threads,
this parameterized constructors would be convenient.

Change-Id: I835d56f220de2afc1f364ea7c816f74cd11610ce
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd the error code E_UNKNOWN 45/123345/1
Mu-Woong Lee [Wed, 5 Apr 2017 08:17:28 +0000 (17:17 +0900)]
Add the error code E_UNKNOWN

It can be used to denote any unclear errors.

Change-Id: Ic70265f860f5fcf735940d74404879f7dd1b4c15
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix the build script typos and nonconventional so symlink locations 99/123299/1
Mu-Woong Lee [Wed, 5 Apr 2017 07:12:45 +0000 (16:12 +0900)]
Fix the build script typos and nonconventional so symlink locations

Change-Id: I2cb6e86251baffd1d46ae8ccc20b8be42da3fc4d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd macros for OOM errors and remove redundant nothrows 20/123220/3
Mu-Woong Lee [Wed, 5 Apr 2017 04:12:19 +0000 (13:12 +0900)]
Add macros for OOM errors and remove redundant nothrows

Change-Id: Id2348ea92e30bca8dc618c8fbc76d8a7328d17c1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoFix util::tokenizeString() to work in a similar manner of strtok 37/122837/1
Mu-Woong Lee [Mon, 3 Apr 2017 13:32:23 +0000 (22:32 +0900)]
Fix util::tokenizeString() to work in a similar manner of strtok

Change-Id: I0970308a1de7751f6daec829ef9c6b0bad64d564
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoApply shared_ptr to Tuple pointers handled by Tuple & Datbase 01/122701/1
Mu-Woong Lee [Mon, 3 Apr 2017 07:20:42 +0000 (16:20 +0900)]
Apply shared_ptr to Tuple pointers handled by Tuple & Datbase

Change-Id: I2830382970a147648860c309e9137a26b38557e5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoLoosen tuple type checking between numeric types 30/122130/1
Somin Kim [Thu, 30 Mar 2017 08:29:26 +0000 (17:29 +0900)]
Loosen tuple type checking between numeric types

Change-Id: I98425ba02f510104a27ad1e62b08ea2917742290
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoRemove AP wake-lock control from Timer 19/121919/1
Mu-Woong Lee [Wed, 29 Mar 2017 10:26:52 +0000 (19:26 +0900)]
Remove AP wake-lock control from Timer

Wake-locking will be managed by the job scheduler.

Change-Id: Ia8a63eabf20216400f55ec7a2d32dfd2ebbfabf6
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
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>