platform/core/context/context-provider.git
7 years agoMerge branch 'devel/tizen_3.0' into tizen 94/73294/1
Somin Kim [Tue, 7 Jun 2016 10:47:59 +0000 (19:47 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Version 0.9.0
  Update build dependency w.r.t. the change of context-common
  [my-place][places)detector] Refactor getting location from visit json.
  [my-place] Locations accuracy in visit and places fix.
  [my-place] Output JSON places fix.
  [my-place] Refactoring: hide internal methods to private.
  [my-place] Debug files paths fix.
  [my-place] Extend Place Wifi AP's list by network names.
  [my-place][places_detector] Refactor getting place from Json.
  [my-place][visit_detector] Put Wifi network names into database.
  [my-place][wifi_logger] Extend last scans pool expand by network name.
  [my-place] Tizen coding convention - Omit brackets ("{", "}") in one-line "if" statements.
  [my-place] Move shared definitions to context-common.
  [my-place] Move shared types to context-common.
  [my-place] Hide internal UserPlaces engine methods.
  [my-place] Move Place print2Stream to DebugUtils
  [my-place] Extend WifiLogger of network name (ESSID) logging.
  [my-place] Testing possibilities fix / simplification.
  Support build on Tizen 2.3.1 & Tizen 2.4
  [my-place] Update WifiLogger to use WifiWrapper instead the Wifi Native API directly

Change-Id: Ic1045a8fe439369ee4aecd577dac6301d0d0d76c
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoVersion 0.9.0 76/73276/1
Somin Kim [Tue, 7 Jun 2016 10:24:41 +0000 (19:24 +0900)]
Version 0.9.0

Change-Id: Ie05c8a2b749fb4431b060cc241534557d3f86cec
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoUpdate build dependency w.r.t. the change of context-common 86/72886/1
Mu-Woong Lee [Fri, 3 Jun 2016 01:51:46 +0000 (10:51 +0900)]
Update build dependency w.r.t. the change of context-common

Change-Id: I6eaa337dfc405eb00bb3a9fb9866e65435ea8f3b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago[my-place][places)detector] Refactor getting location from visit json. 03/72603/1
Marcin Masternak [Wed, 1 Jun 2016 18:16:07 +0000 (20:16 +0200)]
[my-place][places)detector] Refactor getting location from visit json.

Change-Id: Ifad943d5a0c8db5c188b5ff439986026add773a8
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Locations accuracy in visit and places fix. 02/72602/1
Marcin Masternak [Wed, 1 Jun 2016 18:14:15 +0000 (20:14 +0200)]
[my-place] Locations accuracy in visit and places fix.

Change-Id: I5dbfb12cada1fdc93454fbeaee2014c8430cd70f
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Output JSON places fix. 01/72601/1
Marcin Masternak [Wed, 1 Jun 2016 11:47:24 +0000 (13:47 +0200)]
[my-place] Output JSON places fix.

Change-Id: I66fd171c20ff6a3de47ec0c342e472578384c915
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Refactoring: hide internal methods to private. 97/72397/1
Marcin Masternak [Tue, 31 May 2016 18:09:57 +0000 (20:09 +0200)]
[my-place] Refactoring: hide internal methods to private.

Change-Id: Ifd0dd501b45055d1b61c9453bc9ccc5c5da928a1
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Debug files paths fix. 88/72388/1
Marcin Masternak [Tue, 31 May 2016 17:26:12 +0000 (19:26 +0200)]
[my-place] Debug files paths fix.

Change-Id: I8fd81cc6a303257c4692881ef4fb5a431741aca1
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Extend Place Wifi AP's list by network names. 87/72387/1
Marcin Masternak [Tue, 31 May 2016 17:25:05 +0000 (19:25 +0200)]
[my-place] Extend Place Wifi AP's list by network names.

Change-Id: I556f4dfaf238e482ca05bf4694068e123219f50e
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place][places_detector] Refactor getting place from Json. 54/72354/1
Marcin Masternak [Tue, 31 May 2016 14:19:44 +0000 (16:19 +0200)]
[my-place][places_detector] Refactor getting place from Json.

Change-Id: Ie67cf431797e68313348407fb03f9cd149d702de
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place][visit_detector] Put Wifi network names into database. 39/72339/2
Marcin Masternak [Tue, 31 May 2016 13:57:05 +0000 (15:57 +0200)]
[my-place][visit_detector] Put Wifi network names into database.

Change-Id: Ia2c91e7f08a83f49f4afd9f4fc185c99e9bb3591
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place][wifi_logger] Extend last scans pool expand by network name. 03/72303/1
Marcin Masternak [Tue, 31 May 2016 10:10:18 +0000 (12:10 +0200)]
[my-place][wifi_logger] Extend last scans pool expand by network name.

Change-Id: Ic4308dabdcf224676e9474f2d238f083f7d5aa29
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Tizen coding convention - Omit brackets ("{", "}") in one-line "if" statem... 02/72302/1
Marcin Masternak [Tue, 31 May 2016 10:02:13 +0000 (12:02 +0200)]
[my-place] Tizen coding convention - Omit brackets ("{", "}") in one-line "if" statements.

Change-Id: I04ce028c825bd8d762554836ccca0e5828aabb07
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Move shared definitions to context-common. 32/72232/1
Marcin Masternak [Tue, 31 May 2016 08:11:35 +0000 (10:11 +0200)]
[my-place] Move shared definitions to context-common.

Change-Id: Idd0c2ac5652bf57988ee5bc5396ce7feaa95b560
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Move shared types to context-common. 37/71937/1
Marcin Masternak [Fri, 27 May 2016 17:39:35 +0000 (19:39 +0200)]
[my-place] Move shared types to context-common.

Change-Id: I3fbed99328a88246ce14922cdf2038f3ec4d04e8
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Hide internal UserPlaces engine methods. 36/71936/1
Marcin Masternak [Fri, 27 May 2016 17:35:38 +0000 (19:35 +0200)]
[my-place] Hide internal UserPlaces engine methods.

Change-Id: I63af99deaf288ebb3e8afb362e9c86ea36cf3f98
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Move Place print2Stream to DebugUtils 35/71935/1
Marcin Masternak [Fri, 27 May 2016 17:31:29 +0000 (19:31 +0200)]
[my-place] Move Place print2Stream to DebugUtils

Change-Id: I940190b13719fe1bc5283232b5bba9bc75bc326d
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Extend WifiLogger of network name (ESSID) logging. 06/70806/2
Marcin Masternak [Fri, 20 May 2016 16:52:40 +0000 (18:52 +0200)]
[my-place] Extend WifiLogger of network name (ESSID) logging.

Change-Id: I543ba3492dc8b77730873c44cfb878f8fc7f872f
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Testing possibilities fix / simplification. 05/70805/2
Marcin Masternak [Fri, 20 May 2016 16:40:58 +0000 (18:40 +0200)]
[my-place] Testing possibilities fix / simplification.

Change-Id: I77e4e4870575190fe9014cd3416eb75bc62458ae
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years agoSupport build on Tizen 2.3.1 & Tizen 2.4 75/70975/1
Mu-Woong Lee [Mon, 23 May 2016 12:09:28 +0000 (21:09 +0900)]
Support build on Tizen 2.3.1 & Tizen 2.4

Change-Id: I1e1394a5c50a4c585e27520cb5c12bcbd674c61f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years ago[my-place] Update WifiLogger to use WifiWrapper instead the Wifi Native API directly 91/70591/1
Marcin Masternak [Thu, 19 May 2016 15:39:08 +0000 (17:39 +0200)]
[my-place] Update WifiLogger to use WifiWrapper instead the Wifi Native API directly

Change-Id: I2329f9860eb5113210fdb854f2a85efb6d26aae8
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 99/69799/1 accepted/tizen/common/20160517.174100 accepted/tizen/ivi/20160517.032909 accepted/tizen/mobile/20160517.033215 accepted/tizen/wearable/20160517.033005 submit/tizen/20160517.020001
Somin Kim [Tue, 17 May 2016 01:32:16 +0000 (10:32 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  [my-place] SVACE issues fix (usage of localtime, gmtime -> XX_r versions).
  Remove memory leak
  Update WifiStateProvider to use WifiWrapper instead the Wifi Native API directly
  Add WifiWrapper class to support multiple callbacks in one process
  Make the geofence event provider not unloadable
  Rename the factory functions 'create' to 'CreateProvider'

Change-Id: Iea1f50a94183255096e2115d14fa0285381de072
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years ago[my-place] SVACE issues fix (usage of localtime, gmtime -> XX_r versions). 28/69728/1
Marcin [Mon, 16 May 2016 11:15:50 +0000 (13:15 +0200)]
[my-place] SVACE issues fix (usage of localtime, gmtime -> XX_r versions).

Change-Id: I7ec8c72efaaedd627aec55ee170f759599c6e344
Signed-off-by: Marcin <m.masternak@samsung.com>
8 years agoMerge "Update WifiStateProvider to use WifiWrapper instead the Wifi Native API direct...
Mu-Woong Lee [Mon, 16 May 2016 10:59:58 +0000 (03:59 -0700)]
Merge "Update WifiStateProvider to use WifiWrapper instead the Wifi Native API directly" into devel/tizen_3.0

8 years agoMerge "Add WifiWrapper class to support multiple callbacks in one process" into devel...
Mu-Woong Lee [Mon, 16 May 2016 10:59:53 +0000 (03:59 -0700)]
Merge "Add WifiWrapper class to support multiple callbacks in one process" into devel/tizen_3.0

8 years agoRemove memory leak 22/69622/1
Somin Kim [Mon, 16 May 2016 07:16:48 +0000 (16:16 +0900)]
Remove memory leak

Change-Id: I3c03d25d1079d79b0d6f27dbc8975766e4b66198
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoUpdate WifiStateProvider to use WifiWrapper instead the Wifi Native API directly 11/69611/1
Mu-Woong Lee [Mon, 16 May 2016 06:24:19 +0000 (15:24 +0900)]
Update WifiStateProvider to use WifiWrapper instead the Wifi Native API directly

Wifi Native API does not support multiple sessions in one process.
The wrapper is a walkaround of this limitation.

Change-Id: I249294e6675446979a74a9877507e408cb1ff3ac
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd WifiWrapper class to support multiple callbacks in one process 93/69593/2
Mu-Woong Lee [Mon, 16 May 2016 04:50:50 +0000 (13:50 +0900)]
Add WifiWrapper class to support multiple callbacks in one process

Wifi Native API assumes single session in one process.
This wrapper walkarounds this limitation.

Change-Id: Ibd5227d9ce24a76f719d05a8a709b832afb5e2ed
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoMake the geofence event provider not unloadable 46/69046/2
Mu-Woong Lee [Wed, 11 May 2016 08:29:23 +0000 (17:29 +0900)]
Make the geofence event provider not unloadable

The geofence event provider should not be unloaded, even if it is not used anymore.
Dynamically unloading it may cause some glib-related issues.

Change-Id: Iafa6251feac361742a2eae332f92b2d24a11f43c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRename the factory functions 'create' to 'CreateProvider' 29/69029/1
Mu-Woong Lee [Wed, 11 May 2016 07:23:27 +0000 (16:23 +0900)]
Rename the factory functions 'create' to 'CreateProvider'

It seems that the geofence manager library has a symbol conflict issue with 'create'.
This patch fixes this symbol conflict issue.

Change-Id: I2956abcd8c96b8a4b3d810d9f96f51a96a33c7ac
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 77/68177/1 accepted/tizen/common/20160504.125333 accepted/tizen/ivi/20160503.093127 accepted/tizen/mobile/20160503.093032 accepted/tizen/wearable/20160503.093107 submit/tizen/20160503.015801
Mu-Woong Lee [Tue, 3 May 2016 01:51:14 +0000 (10:51 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0: (34 commits)
  Version 0.8.0
  Add the missing trigger template for wifi state
  Mark contacts, headphone, message providers as non-unloadable.
  Switch to gmodule from linux dl functions
  Temporally disable my-place detector before merging into tizen branch
  Break the direct dependency to media-content from the media stats provider
  Remove daily timer of the social stats logger
  Fix the linking issue of libctx-prvd-social-stats.so to _contacts_phone_log
  Add comments on the subscribe/unsubscribe functions of PlaceRecognitionProvider
  Implement getPrivilege() functions
  Re-implement 'create' functions to support dynamic loading
  Align the lib directory path with the header path
  Add a header file for listing so file names & trigger templates
  Split the .a file into .so files
  Code cleanup: merge geofence-related macros into ProviderTypes.h
  Code cleanup: update provider class names
  Code cleanup: merge activity-related macros into ProviderTypes.h
  Code cleanup: merge common, system, social types into one provider types header
  Code cleanup: activity providers
  Separate util functions in BasicProvider to the namespace ctx::util
  ...

Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
Conflicts:
src/device/CMakeLists.txt

Change-Id: I87ae2cd629eea79987652728efc7ea4f71a18fe1

8 years agoVersion 0.8.0 71/68171/1
Mu-Woong Lee [Tue, 3 May 2016 01:32:44 +0000 (10:32 +0900)]
Version 0.8.0

Change-Id: I401ba6c3f65e8f51c4c3786169f4283df4ffd87f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd the missing trigger template for wifi state 43/67943/1
Mu-Woong Lee [Fri, 29 Apr 2016 08:46:49 +0000 (17:46 +0900)]
Add the missing trigger template for wifi state

Change-Id: If0ef0b556b073618521a3baf01d8e72ab9ebe400
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoMark contacts, headphone, message providers as non-unloadable. 99/67799/1
Mu-Woong Lee [Thu, 28 Apr 2016 08:59:52 +0000 (17:59 +0900)]
Mark contacts, headphone, message providers as non-unloadable.

These providers cause issues when loaded and unloaded multiple times...

Change-Id: I295eca8bc65a8f4f0b975249091554834b997840
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoSwitch to gmodule from linux dl functions 79/67779/1
Mu-Woong Lee [Thu, 28 Apr 2016 08:00:44 +0000 (17:00 +0900)]
Switch to gmodule from linux dl functions

Change-Id: Ia754d27ff650ad393ca8a3ec6d958bb9ab793341
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoTemporally disable my-place detector before merging into tizen branch 94/67694/1
Mu-Woong Lee [Thu, 28 Apr 2016 05:23:53 +0000 (14:23 +0900)]
Temporally disable my-place detector before merging into tizen branch

Change-Id: I54b5252b14da02a70c89160ef14be0d77a04a64c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoBreak the direct dependency to media-content from the media stats provider 19/67619/2
Mu-Woong Lee [Wed, 27 Apr 2016 12:04:54 +0000 (21:04 +0900)]
Break the direct dependency to media-content from the media stats provider

If necessary, the provider dynamically load another so to use the media content API.

Change-Id: Id7f1fab0e956ee7702382328b981860f5fa6c9fc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRemove daily timer of the social stats logger 90/67590/1
Mu-Woong Lee [Wed, 27 Apr 2016 10:16:20 +0000 (19:16 +0900)]
Remove daily timer of the social stats logger

Call log mirroring only occurs when a client request is raised

Change-Id: Ifc79b00b1cd0ecd8a10004e94de6fd08dde0c88d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoFix the linking issue of libctx-prvd-social-stats.so to _contacts_phone_log 71/67571/1
Mu-Woong Lee [Wed, 27 Apr 2016 08:42:14 +0000 (17:42 +0900)]
Fix the linking issue of libctx-prvd-social-stats.so to _contacts_phone_log

Change-Id: Ia99de7ad9401f096419d75649178715b7b4d4efb
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd comments on the subscribe/unsubscribe functions of PlaceRecognitionProvider 59/67559/1
Mu-Woong Lee [Wed, 27 Apr 2016 08:19:34 +0000 (17:19 +0900)]
Add comments on the subscribe/unsubscribe functions of PlaceRecognitionProvider

Change-Id: Ia6a36c2e11761e1e76ceedb528a5b7dc94f85366
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoImplement getPrivilege() functions 28/67528/1
Mu-Woong Lee [Wed, 27 Apr 2016 07:17:21 +0000 (16:17 +0900)]
Implement getPrivilege() functions

Change-Id: I7fc00fe8c1542d4943376f92b7d36c7c926533e7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRe-implement 'create' functions to support dynamic loading 59/67259/2
Mu-Woong Lee [Tue, 26 Apr 2016 05:33:43 +0000 (14:33 +0900)]
Re-implement 'create' functions to support dynamic loading

Obsoluted trigger registration functions are removed.

Change-Id: I89b950d7b996653a8ae64e3c2f8e29df9619d164
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAlign the lib directory path with the header path 44/67244/1
Mu-Woong Lee [Tue, 26 Apr 2016 04:41:35 +0000 (13:41 +0900)]
Align the lib directory path with the header path

Change-Id: I3b8142d82f83e954ce74d28c96e6f7c1d07e3ff5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoAdd a header file for listing so file names & trigger templates 20/67220/3
Mu-Woong Lee [Tue, 26 Apr 2016 02:10:01 +0000 (11:10 +0900)]
Add a header file for listing so file names & trigger templates

Change-Id: Ia73e288620653fdbec1e060a23c7a5b286a70b73
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoSplit the .a file into .so files 66/66966/4
Mu-Woong Lee [Fri, 22 Apr 2016 09:04:14 +0000 (18:04 +0900)]
Split the .a file into .so files

Each .so provides create() function, and contextd will the function for each so.
Later, the create() will be updated to support on-demand loading of providers.

Change-Id: Icc9f204941500c5e9d95f39644d4001fba36c76b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCode cleanup: merge geofence-related macros into ProviderTypes.h 02/66902/1
Mu-Woong Lee [Fri, 22 Apr 2016 02:31:32 +0000 (11:31 +0900)]
Code cleanup: merge geofence-related macros into ProviderTypes.h

Change-Id: Ibb731bfdc6c34c6ba999c0798bda9c48142afc7c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCode cleanup: update provider class names 21/66821/1
Mu-Woong Lee [Thu, 21 Apr 2016 08:07:04 +0000 (17:07 +0900)]
Code cleanup: update provider class names

Change-Id: Icbfd404caae4cc3fedc13936fd3a9b18b850d63a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCode cleanup: merge activity-related macros into ProviderTypes.h 12/66812/1
Mu-Woong Lee [Thu, 21 Apr 2016 07:20:58 +0000 (16:20 +0900)]
Code cleanup: merge activity-related macros into ProviderTypes.h

Change-Id: I79350b4d5e3894a8b134357884dca6bc9c918033
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCode cleanup: merge common, system, social types into one provider types header 09/66809/1
Mu-Woong Lee [Thu, 21 Apr 2016 07:08:43 +0000 (16:08 +0900)]
Code cleanup: merge common, system, social types into one provider types header

Change-Id: I96e74636b9d2e4ce62a959f170e1e168d6ac1b2f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCode cleanup: activity providers 93/66793/1
Mu-Woong Lee [Thu, 21 Apr 2016 05:50:29 +0000 (14:50 +0900)]
Code cleanup: activity providers

Change-Id: I652e9847753c61b53b78bcce436bb90923e9c0b4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoSeparate util functions in BasicProvider to the namespace ctx::util 90/66790/1
Mu-Woong Lee [Thu, 21 Apr 2016 05:31:05 +0000 (14:31 +0900)]
Separate util functions in BasicProvider to the namespace ctx::util

Change-Id: I42239d9277ae346dda1a3d4241d392d67c194587
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRename DeviceProviderBase as BasicProvider 75/66775/1
Mu-Woong Lee [Thu, 21 Apr 2016 05:07:49 +0000 (14:07 +0900)]
Rename DeviceProviderBase as BasicProvider

Change-Id: I0d7e97a0d988ce3d619585ad4cbfd81e08b9af85
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoUpdate License text & boilerplates 09/66709/1
Mu-Woong Lee [Wed, 20 Apr 2016 11:21:01 +0000 (20:21 +0900)]
Update License text & boilerplates

Change-Id: I54d0f60dbdd56d31d873d4a63b49c84a7a03a4c4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoReorganize the directory structure of source files 56/66556/1
Mu-Woong Lee [Tue, 19 Apr 2016 11:02:53 +0000 (20:02 +0900)]
Reorganize the directory structure of source files

Source directories are roughly separated by their dependencies.
Later, the build script will be updated to produce one shared object per one directory, and a dynamic loading routine will be applied.

Change-Id: Iceaae6740cebc15a89ce0631f13b1254640b12c4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRefactor provider instance initialization routines 08/66308/10
Mu-Woong Lee [Mon, 18 Apr 2016 08:53:10 +0000 (17:53 +0900)]
Refactor provider instance initialization routines

Change-Id: I552e9278ebbfbc408ef76f6a5a5a913fa2d128f1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoReplace the macro EXTAPI with SO_EXPORT 26/66326/1
Mu-Woong Lee [Mon, 18 Apr 2016 10:14:50 +0000 (19:14 +0900)]
Replace the macro EXTAPI with SO_EXPORT

Change-Id: Id4418789b8e408cd1cd30f6c412574f105e503f5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRename app inactive detector in C++ style 11/66111/2
Somin Kim [Fri, 15 Apr 2016 08:24:43 +0000 (17:24 +0900)]
Rename app inactive detector in C++ style

Change-Id: I6129687b83c38f6d9221d4bbeffff1f409384849
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoReplace types_internal.h with Types.h 00/66100/1
Mu-Woong Lee [Fri, 15 Apr 2016 07:27:17 +0000 (16:27 +0900)]
Replace types_internal.h with Types.h

Change-Id: I0c33aba00bd9194b6420cdac9d8ebdd47da3b423
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoApplying Tizen C++ coding style to statistics context provider(except prediction) 69/65769/4
Somin Kim [Thu, 7 Apr 2016 01:12:25 +0000 (10:12 +0900)]
Applying Tizen C++ coding style to statistics context provider(except prediction)

Change-Id: If4cb6ec05b0775691d5c82df3e6ce9dc8a2dba7d
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoRemove unnecessary explicit dependency to libcontext-shared 92/66092/1
Mu-Woong Lee [Fri, 15 Apr 2016 06:42:07 +0000 (15:42 +0900)]
Remove unnecessary explicit dependency to libcontext-shared

Change-Id: I93b403dd61a6febcd0717c7952e5366a883c0170
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoReplace db_manager with DatabaseManager 03/66003/2
Mu-Woong Lee [Thu, 14 Apr 2016 11:55:43 +0000 (20:55 +0900)]
Replace db_manager with DatabaseManager

Change-Id: Ifc736963fbe1a1cdce917c163f19c93ea01b0d5b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoMerge "Modified GeofenceMonitorHandle, DeviceProviderBase to apply Tizen C++ coding...
Mu-Woong Lee [Thu, 14 Apr 2016 11:05:17 +0000 (04:05 -0700)]
Merge "Modified GeofenceMonitorHandle, DeviceProviderBase to apply Tizen C++ coding style" into devel/tizen_3.0

8 years agoModified GeofenceMonitorHandle, DeviceProviderBase to apply Tizen C++ coding style 49/65449/4
Somin Kim [Fri, 8 Apr 2016 05:07:36 +0000 (14:07 +0900)]
Modified GeofenceMonitorHandle, DeviceProviderBase to apply Tizen C++ coding style

Change-Id: Ia3b663a0c1527a719d621053a35753f84a3fad9d
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoInactive Application detector engine add 96/61696/5
Andrey Glushkov [Thu, 10 Mar 2016 01:58:15 +0000 (10:58 +0900)]
Inactive Application detector engine add

Change-Id: I409ec771a2287c66f406f7af3c4959a029e37079
Signed-off-by: Andrey Glushkov <a.glushkov@samsung.com>
8 years agoApplying Tizen C++ coding style to place context provider(recognition) part 2. 16/65616/3
Marcin Masternak [Tue, 12 Apr 2016 15:23:35 +0000 (17:23 +0200)]
Applying Tizen C++ coding style to place context provider(recognition) part 2.

Change-Id: Ic8c198dc776eae2261ced0e48b0814ecd0419a5b
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years agoApplying Tizen C++ coding style to place context provider(recognition) 63/65363/1
Marcin Masternak [Fri, 8 Apr 2016 16:05:49 +0000 (18:05 +0200)]
Applying Tizen C++ coding style to place context provider(recognition)

Change-Id: I7b6afc5838c13dd2098cbeaccca5d6f508ddd030
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 62/65262/1 accepted/tizen/common/20160408.185621 accepted/tizen/ivi/20160411.004931 accepted/tizen/mobile/20160411.004853 accepted/tizen/wearable/20160411.004905 submit/tizen/20160408.073002
Mu-Woong Lee [Fri, 8 Apr 2016 06:53:27 +0000 (15:53 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Version 0.7.5
  Applying Tizen C++ coding style to place context provider(geofence)
  Applying Tizen C++ coding style to custom context provider
  Applying Tizen C++ coding style to device context provider
  Applying Tizen C++ coding style to provider initialization
  Build a static library, instead of a shared object
  Apply Tizen C++ coding style based on context-common changes - ContextManager, IContextManager, ContextProviderBase(context_provider_iface)
  [place-recognition] Change database asynchronous queries to synchronous.
  [place-recognition] SVACE buffer overflow warning fix.
  [place-recognition] Small SVACE defects fix.
  [place-recognition] Redundant mutex protection remove.

Change-Id: I87e7b43dab54acc63c6e5157dc4ab1381aafe5b0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoVersion 0.7.5 06/65206/1
Somin Kim [Fri, 8 Apr 2016 01:55:36 +0000 (10:55 +0900)]
Version 0.7.5

Change-Id: Ib8b9d452b443ddc929d2d1d5471061ec1d8e0fea
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoApplying Tizen C++ coding style to place context provider(geofence) 22/65122/5
Somin Kim [Thu, 7 Apr 2016 09:28:07 +0000 (18:28 +0900)]
Applying Tizen C++ coding style to place context provider(geofence)

Change-Id: Ic81ae68d2e39dcea8adf4e7fbdbad6bafa9919aa
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoApplying Tizen C++ coding style to custom context provider 25/65025/2
Somin Kim [Wed, 6 Apr 2016 04:21:03 +0000 (13:21 +0900)]
Applying Tizen C++ coding style to custom context provider

Change-Id: I7cdbed7358584669caef5eb7ffc5a59c08b70734
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoApplying Tizen C++ coding style to device context provider 80/64780/3
Somin Kim [Tue, 5 Apr 2016 08:55:55 +0000 (17:55 +0900)]
Applying Tizen C++ coding style to device context provider

Change-Id: I1d3b75c1192f58facb200dee7f92062b9dbe7ba8
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoApplying Tizen C++ coding style to provider initialization 69/64869/1
Somin Kim [Wed, 6 Apr 2016 02:17:31 +0000 (11:17 +0900)]
Applying Tizen C++ coding style to provider initialization

Change-Id: Icb44282ca2adf5309471e11ef93198ed6220a082
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoBuild a static library, instead of a shared object 21/64621/1
Mu-Woong Lee [Mon, 4 Apr 2016 08:25:29 +0000 (17:25 +0900)]
Build a static library, instead of a shared object

The library is only being used by contextd, thus it does not need to be a shared object.

Change-Id: I0dd3acd582070b946053f87b54f924288c75b8a9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoApply Tizen C++ coding style based on context-common changes 91/64591/2
Somin Kim [Mon, 4 Apr 2016 04:21:59 +0000 (13:21 +0900)]
Apply Tizen C++ coding style based on context-common changes
- ContextManager, IContextManager, ContextProviderBase(context_provider_iface)

Change-Id: Icfbdfaaf570a98aba2115cb3c169722a3f01b7ab
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years ago[place-recognition] Change database asynchronous queries to synchronous. 71/64571/1
Marcin Masternak [Fri, 1 Apr 2016 16:46:29 +0000 (18:46 +0200)]
[place-recognition] Change database asynchronous queries to synchronous.

Change-Id: Ibde511e03c713008ca731acd65da27ec6dfb5b28
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years ago[place-recognition] SVACE buffer overflow warning fix. 59/64359/2
Marcin Masternak [Fri, 1 Apr 2016 11:59:34 +0000 (13:59 +0200)]
[place-recognition] SVACE buffer overflow warning fix.

Change-Id: I7fca0ab40c652c78968880883c05209b4a48b81a
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years ago[place-recognition] Small SVACE defects fix. 31/64331/2
Marcin Masternak [Thu, 31 Mar 2016 12:18:44 +0000 (14:18 +0200)]
[place-recognition] Small SVACE defects fix.

Change-Id: I64f9551a55bf97c0dd16792b999e659871e5b02b
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years ago[place-recognition] Redundant mutex protection remove. 24/64324/1
Marcin Masternak [Thu, 31 Mar 2016 10:57:42 +0000 (12:57 +0200)]
[place-recognition] Redundant mutex protection remove.

Change-Id: I437ead59b6c9dbf6577650d25dc1493c82c2abae
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 67/62267/1 accepted/tizen_tv accepted/tizen/common/20160316.155744 accepted/tizen/ivi/20160315.121305 accepted/tizen/mobile/20160315.121159 accepted/tizen/tv/20160315.121221 accepted/tizen/wearable/20160315.121242 submit/tizen/20160315.040147
Mu-Woong Lee [Tue, 15 Mar 2016 06:37:58 +0000 (15:37 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Changed attribute key & value for EVENT_CONTACTS

Change-Id: Ia2dbf84ed7483697abefc2af159cc9e4c26f0312
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoChanged attribute key & value for EVENT_CONTACTS 61/62261/2
Somin Kim [Tue, 15 Mar 2016 06:23:19 +0000 (15:23 +0900)]
Changed attribute key & value for EVENT_CONTACTS

Change-Id: I6de90e5bb5664ccc7948ccad22dbeb799515edb4
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 37/62237/1
Mu-Woong Lee [Tue, 15 Mar 2016 03:20:28 +0000 (12:20 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Version 0.7.4
  Contacts db changed provider added
  Version 0.7.3

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

Change-Id: Ie6b0c18ad51f580d83f43dfd3690074cf8f0f18b

8 years agoVersion 0.7.4 34/62234/1
Mu-Woong Lee [Tue, 15 Mar 2016 03:14:48 +0000 (12:14 +0900)]
Version 0.7.4

Change-Id: I0fc1b01f9d55e209b952a7e7823017d675a21b2f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoContacts db changed provider added 12/62112/5
Somin Kim [Mon, 14 Mar 2016 05:27:40 +0000 (14:27 +0900)]
Contacts db changed provider added

Change-Id: Ie09bf1ed628486dd763e6b69aa80c46d1512cf49
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoVersion 0.7.3 23/62023/1 accepted/tizen/common/20160315.220849 accepted/tizen/ivi/20160314.104755 accepted/tizen/mobile/20160314.104656 accepted/tizen/tv/20160314.104711 accepted/tizen/wearable/20160314.104735 submit/tizen/20160314.020719
Somin Kim [Mon, 14 Mar 2016 01:46:10 +0000 (10:46 +0900)]
Version 0.7.3

Change-Id: I85b5aa8f68cfb86d7f2ae0dfa61f8736f1b5edc5
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
(cherry picked from commit 1bb76f75ee204c199e82ebfa0fa61e729ae6f8c7)

8 years agoVersion 0.7.3 18/62018/1
Somin Kim [Mon, 14 Mar 2016 01:46:10 +0000 (10:46 +0900)]
Version 0.7.3

Change-Id: I85b5aa8f68cfb86d7f2ae0dfa61f8736f1b5edc5
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 32/61632/1
Somin Kim [Wed, 9 Mar 2016 08:51:29 +0000 (17:51 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Replace timer_manager & timer_util with TimerManager
  Remove GEO_LOCATION_PRECISION parameter from Json::set()
  Replace ctx::json with ctx:Json
  device: update cmake script to support common profile
  cmake: switch the dependencies variable to list, from space separated string
  Replace namespace ctx::shared with class ctx::SharedVars
  Create one unified so instead of one so for each provider
  Replace build dependency context-common with libcontext-shared & server
  Custom item recovery logic added when initialized (Uninstalled provider's item handling is still needed)
  Added custom provider
  Remove mutexing from device_status_alarm

Signed-off-by: Somin Kim <somin926.kim@samsung.com>
Conflicts:
src/device/CMakeLists.txt

Change-Id: I1105750bb9c0753defd1e6ce2b4d71d7acc86be8

8 years agoReplace timer_manager & timer_util with TimerManager 99/60199/2
Mu-Woong Lee [Wed, 24 Feb 2016 06:24:36 +0000 (15:24 +0900)]
Replace timer_manager & timer_util with TimerManager

Change-Id: I5dc43ccbfb90ef3025c495f0c350327d0e27aafe
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoRemove GEO_LOCATION_PRECISION parameter from Json::set() 35/60535/1
Mu-Woong Lee [Mon, 29 Feb 2016 01:50:05 +0000 (10:50 +0900)]
Remove GEO_LOCATION_PRECISION parameter from Json::set()

Change-Id: I0a4d3d8e66b31484c8ee8d749ceddc8461938096
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoReplace ctx::json with ctx:Json 80/60080/1
Mu-Woong Lee [Tue, 23 Feb 2016 07:41:24 +0000 (16:41 +0900)]
Replace ctx::json with ctx:Json

Change-Id: I71196345c2b860cca85701bd8d949f2a43b73e2d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agodevice: update cmake script to support common profile 62/60062/1
Mu-Woong Lee [Tue, 23 Feb 2016 05:01:16 +0000 (14:01 +0900)]
device: update cmake script to support common profile

Change-Id: I35044ae9039f0bf2e08808aa239b59a195875c11
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agocmake: switch the dependencies variable to list, from space separated string 89/59889/2
Mu-Woong Lee [Fri, 19 Feb 2016 07:37:27 +0000 (16:37 +0900)]
cmake: switch the dependencies variable to list, from space separated string

Change-Id: Ic503d5f361902314af83c23e8edb939d343cb23c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agodevice: fix build script to support common profile 59/59859/1 accepted/tizen/ivi/20160302.081846 accepted/tizen/mobile/20160219.090207 accepted/tizen/tv/20160219.090223 accepted/tizen/wearable/20160219.090240 submit/tizen_common/20160218.142243 submit/tizen_ivi/20160302.072932 submit/tizen_mobile/20160219.063657 submit/tizen_tv/20160219.063704 submit/tizen_wearable/20160219.063711
Mu-Woong Lee [Fri, 19 Feb 2016 04:39:42 +0000 (13:39 +0900)]
device: fix build script to support common profile

Change-Id: I72725bd2287a5c9e0f14d0174656622c12a8e8fe
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoReplace namespace ctx::shared with class ctx::SharedVars 90/59790/1
Mu-Woong Lee [Thu, 18 Feb 2016 12:14:47 +0000 (21:14 +0900)]
Replace namespace ctx::shared with class ctx::SharedVars

Change-Id: I2ec7511ddaa05eea4ff0a885a8a069d6701f2c7e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCreate one unified so instead of one so for each provider 99/59699/1
Mu-Woong Lee [Wed, 17 Feb 2016 13:08:05 +0000 (22:08 +0900)]
Create one unified so instead of one so for each provider

Change-Id: I6da5e80c83ca926b47e7d0639c725c304dfcaee9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoReplace build dependency context-common with libcontext-shared & server 87/59587/2
Mu-Woong Lee [Tue, 16 Feb 2016 12:41:41 +0000 (21:41 +0900)]
Replace build dependency context-common with libcontext-shared & server

Change-Id: I8bdcb6e90f29fa579cbc03f5b098a8a98037367d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoCustom item recovery logic added when initialized 78/58578/6
Somin Kim [Tue, 2 Feb 2016 04:47:51 +0000 (13:47 +0900)]
Custom item recovery logic added when initialized
(Uninstalled provider's item handling is still needed)

Change-Id: I7e020b28174bbf2f868cd9c255fbe65dbcd1fbc2
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoAdded custom provider 49/57549/8
Somin Kim [Thu, 21 Jan 2016 04:58:06 +0000 (13:58 +0900)]
Added custom provider

Change-Id: I4fee414b0d952b02e0256bf71f6e4a7c05593167
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
8 years agoRemove mutexing from device_status_alarm 72/59372/2
Mu-Woong Lee [Mon, 15 Feb 2016 06:29:45 +0000 (15:29 +0900)]
Remove mutexing from device_status_alarm

Change-Id: Ic27042b77ada3ce4f7696afd92f87897f384cbfe
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoMerge branch 'devel/tizen_3.0' into tizen 59/59159/1 accepted/tizen/ivi/20160218.023342 accepted/tizen/mobile/20160211.083519 accepted/tizen/tv/20160211.083537 accepted/tizen/wearable/20160211.083558 submit/tizen/20160211.055628 submit/tizen_ivi/20160217.000000 submit/tizen_ivi/20160217.000002
Mu-Woong Lee [Thu, 11 Feb 2016 05:24:45 +0000 (14:24 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Version 0.7.2
  Cleanup compile warning flags
  Replace dbus_server with DBusSignalWatcher

Change-Id: I68591ec7809c021000aefb51dac1127541f82d92
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
8 years agoVersion 0.7.2 55/59155/1
Mu-Woong Lee [Thu, 11 Feb 2016 05:13:45 +0000 (14:13 +0900)]
Version 0.7.2

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