platform/core/context/context-provider.git
6 years agoRemove redefinition warning of context 07/137307/1 accepted/tizen_4.0_unified accepted/tizen_unified tizen tizen_4.0 accepted/tizen/4.0/unified/20170816.012554 accepted/tizen/4.0/unified/20170816.015340 accepted/tizen/4.0/unified/20170828.223447 accepted/tizen/unified/20170711.180836 submit/tizen/20170710.122951 submit/tizen_4.0/20170811.094300 submit/tizen_4.0/20170814.115522 submit/tizen_4.0/20170828.100003 submit/tizen_4.0_unified/20170814.115522
Somin Kim [Wed, 5 Jul 2017 07:28:55 +0000 (16:28 +0900)]
Remove redefinition warning of context
- IS_FAILED defined in context-common has changed, and it caused redefinition warning in context.
So changed definition of legacy IS_FAILED as same as IS_FAILED of context-common.

Change-Id: I0975519c4b403cec575b0bf82e91e3eb1ed0f364
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
6 years agoRename the class Json to avoid symbol conflicts with Jsoncpp 72/132972/2 accepted/tizen/unified/20170609.204945 submit/tizen/20170609.130020
Mu-Woong Lee [Thu, 8 Jun 2017 12:22:05 +0000 (21:22 +0900)]
Rename the class Json to avoid symbol conflicts with Jsoncpp

Plus, my-place detector has been removed.

Change-Id: Ic1d11300cc1d185ff7a47bc06e1ce1a37ce3f0e3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
6 years agoMove .so namelinks to the devel package 01/131401/2
Mu-Woong Lee [Mon, 29 May 2017 03:46:46 +0000 (12:46 +0900)]
Move .so namelinks to the devel package

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

* devel/tizen:
  Enable the legacy app/social stats providers
  Disable WiFi context provider
  Modified secure log macro
  Remove a redundant member variable from message.h
  Integrate the legacy context-common code and headers (2/2)
  Integrate the legacy context-common code and headers (1/2)

Change-Id: Ia63327a6e4fd9ce70a7e3ee422034c6a5a9977fb
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoEnable the legacy app/social stats providers 87/124587/2
Mu-Woong Lee [Wed, 12 Apr 2017 01:26:13 +0000 (10:26 +0900)]
Enable the legacy app/social stats providers

Change-Id: Ia85db0d4c46985c4aaad05cfc8eac8aa12e01bdd
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDisable WiFi context provider 48/124348/2
Mu-Woong Lee [Tue, 11 Apr 2017 06:59:23 +0000 (15:59 +0900)]
Disable WiFi context provider

It uses deprecated wifi APIs, and they will be obsoleted.
Anyway, the new job-scheduler will replace all of this package,
I thus simply disable the wifi-related code for now.

Change-Id: I28fcb768db78ab09ad4441ccdc96bbc7ef214310
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoModified secure log macro 49/124249/2
Somin Kim [Tue, 11 Apr 2017 02:30:47 +0000 (11:30 +0900)]
Modified secure log macro

Change-Id: Ia16f7628255fc20fdc8b9162ecbab4a802e8e864
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoRemove a redundant member variable from message.h 35/124235/1
Mu-Woong Lee [Tue, 11 Apr 2017 02:02:38 +0000 (11:02 +0900)]
Remove a redundant member variable from message.h

Change-Id: I95875ce94a41bb5a1280cb791abcdc5f71c2b430
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoIntegrate the legacy context-common code and headers (2/2) 55/122055/1
Mu-Woong Lee [Thu, 30 Mar 2017 04:49:02 +0000 (13:49 +0900)]
Integrate the legacy context-common code and headers (2/2)

This patch enables to build the imported legacy code and
include built libraries and headers to the produced RPMs.

Change-Id: I1103fcea1ab1891a00995609b1ae05a0a8612359
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoIntegrate the legacy context-common code and headers (1/2) 53/122053/1
Mu-Woong Lee [Thu, 30 Mar 2017 04:46:58 +0000 (13:46 +0900)]
Integrate the legacy context-common code and headers (1/2)

This patch just imports the legacy code files.

Change-Id: I6acd7303a4792faf864ef3e77e84bff35217fe64
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoDisable my-place detection 18/115718/1
Mu-Woong Lee [Tue, 21 Feb 2017 06:12:53 +0000 (15:12 +0900)]
Disable my-place detection

Change-Id: I3c506c2fdd4e734f0fdd019be59dcf6f2afa0ff7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 58/113058/1
Mu-Woong Lee [Mon, 6 Feb 2017 02:01:14 +0000 (11:01 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Add defence code for duration calculation when time manually changed
  Add a cache for application display types

Change-Id: I9fdf754c635fe822c68d1d0ded939c762e11b2fc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoAdd defence code for duration calculation when time manually changed 03/111003/3
Somin Kim [Thu, 19 Jan 2017 06:22:11 +0000 (15:22 +0900)]
Add defence code for duration calculation when time manually changed

Change-Id: I0f575e97cfc7fbd8f2e6e56a7f637898945f6073
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoAdd a cache for application display types 57/110557/1
Mu-Woong Lee [Tue, 17 Jan 2017 04:13:30 +0000 (13:13 +0900)]
Add a cache for application display types

Change-Id: I4e49ae6e9161ac4d4db6f539499de249bb998243
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 69/108669/1 accepted/tizen_common accepted/tizen_ivi accepted/tizen_mobile accepted/tizen_wearable accepted/tizen/common/20170105.172641 accepted/tizen/ivi/20170105.223850 accepted/tizen/mobile/20170105.223755 accepted/tizen/unified/20170309.032523 accepted/tizen/wearable/20170105.223831 submit/tizen/20170105.120901 submit/tizen_unified/20170308.100406
Mu-Woong Lee [Thu, 5 Jan 2017 10:20:42 +0000 (19:20 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  "profile_common" virtual package is provided by the extension

Change-Id: I995f39bcee2f57c34646a66425e353aafe689398
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago"profile_common" virtual package is provided by the extension 68/108668/1
Mu-Woong Lee [Thu, 5 Jan 2017 10:14:39 +0000 (19:14 +0900)]
"profile_common" virtual package is provided by the extension

Change-Id: I4730b92efb738c55ba129a97d6be8a89a2094820
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 57/108157/1 accepted/tizen/common/20170103.135713 accepted/tizen/ivi/20170103.225223 accepted/tizen/mobile/20170103.225137 accepted/tizen/wearable/20170103.225208 submit/tizen/20170103.072008
Mu-Woong Lee [Tue, 3 Jan 2017 07:10:26 +0000 (16:10 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Remove profile build dependencies
  Sync with 2.3.2's sensor timestamp compensation
  [battery-usage] add defence code for time changes & Version 0.9.13
  [battery-stats] Changed heart sync policy (after rebooting, fully charged ...) & Version 0.9.12
  [battery-stats] Remove expired log & Version 0.9.11
  [battery-stats] Request heart db sync
  [battery-stats] modified to provide data while charging
  Remove build warnings of sensor logger
  Fix svace issue
  Changed battery usage normalization logic & Version 0.9.10
  Improvement in battery statistics algorithm Spread battery consumption of an open app across all the battery percentages it was open.
  Writing last battery infos periodically rather than just at end To ensure no loss of info in case of sudden shutdown
  Fixed to compare pid, instead of using cpu time difference, when an app is re-launced.

Change-Id: I93bd37a6e9faffc93f49c900d4f1205148ec49a7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove profile build dependencies 99/94599/7
MyungJoo Ham [Tue, 20 Sep 2016 05:22:24 +0000 (05:22 +0000)]
Remove profile build dependencies

The previous spec/build scripts stated that it will add more libraries
if the profile macro is mobile while the other libraries and devel
packages were identical.

The patch allows this package to become profile agnostic by seperating
the additional mobile libraries (context-provider-extended), which
can be optionally installed at any time, at any profile, while they
can share the same build project. (Yay!)

NOTE:

  When this commit is being SR'ed, maintainers need to create JIRA-TRE of:

- Add context-provider-profile_mobile for mobile profile.

Change-Id: Ie646dc6fcfab7251e43149dfbe43fa972aee8784
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoSync with 2.3.2's sensor timestamp compensation 87/107787/1
Mu-Woong Lee [Fri, 30 Dec 2016 01:41:16 +0000 (10:41 +0900)]
Sync with 2.3.2's sensor timestamp compensation

Change-Id: I5aef796e98e1159daa4d6ac3a226fc8e5dd13ef5
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago[battery-usage] add defence code for time changes & Version 0.9.13 62/107662/4
Mu-Woong Lee [Thu, 29 Dec 2016 05:52:42 +0000 (14:52 +0900)]
[battery-usage] add defence code for time changes & Version 0.9.13

Change-Id: I97470e5f0cb4d3b011e5d44060b8d50ce3527c33
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago[battery-stats] Changed heart sync policy (after rebooting, fully charged ...) &... 29/107029/3
Somin Kim [Mon, 26 Dec 2016 07:22:42 +0000 (16:22 +0900)]
[battery-stats] Changed heart sync policy (after rebooting, fully charged ...) & Version 0.9.12

Change-Id: I72136a878c40bcd30942c218bc83c32b4a54e04c
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years ago[battery-stats] Remove expired log & Version 0.9.11 72/106572/3
Somin Kim [Thu, 22 Dec 2016 05:36:58 +0000 (14:36 +0900)]
[battery-stats] Remove expired log & Version 0.9.11

Change-Id: I95508ae62154f37c88a02d5748c46580776e6ef3
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years ago[battery-stats] Request heart db sync 56/106456/8
Somin Kim [Wed, 21 Dec 2016 15:05:36 +0000 (00:05 +0900)]
[battery-stats] Request heart db sync

Change-Id: I1e76bfa2ef8f64322f80eb61339445a15b604ae9
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years ago[battery-stats] modified to provide data while charging 08/106408/7
Somin Kim [Wed, 21 Dec 2016 12:30:46 +0000 (21:30 +0900)]
[battery-stats] modified to provide data while charging

Change-Id: Ib3c0e62bdda97bec3dc7960da376bd1dc235d9d9
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoRemove build warnings of sensor logger 39/105739/1
Somin Kim [Mon, 19 Dec 2016 10:31:12 +0000 (19:31 +0900)]
Remove build warnings of sensor logger

Change-Id: I95c406121642eb614a8745f31df0c216e541edc6
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoFix svace issue 80/105680/1
Somin Kim [Mon, 19 Dec 2016 08:45:08 +0000 (17:45 +0900)]
Fix svace issue

Change-Id: I05d65c71448a150f1cf7c15ed7c58dd946201343
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoMerge "Improvement in battery statistics algorithm Spread battery consumption of...
Mu-Woong Lee [Sat, 17 Dec 2016 04:49:46 +0000 (20:49 -0800)]
Merge "Improvement in battery statistics algorithm Spread battery consumption of an open app across all the battery percentages it was open." into devel/tizen

7 years agoChanged battery usage normalization logic & Version 0.9.10 09/105409/2
Somin Kim [Fri, 16 Dec 2016 11:24:08 +0000 (20:24 +0900)]
Changed battery usage normalization logic & Version 0.9.10

Change-Id: Ic27d93caf1322276d93da199cf19d5fc9cc9aae3
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoImprovement in battery statistics algorithm 04/105204/3
Kunal [Fri, 16 Dec 2016 03:41:44 +0000 (12:41 +0900)]
Improvement in battery statistics algorithm
Spread battery consumption of an open app across all the battery percentages it was open.

Change-Id: Iff189f4968154d480fc46ab5fcc311507c86e99b
Signed-off-by: Kunal <kunal.chawla@samsung.com>
7 years agoWriting last battery infos periodically rather than just at end 53/104153/6
Kunal [Mon, 12 Dec 2016 11:58:26 +0000 (20:58 +0900)]
Writing last battery infos periodically rather than just at end
To ensure no loss of info in case of sudden shutdown

Change-Id: Ifc2d3f18acab5d99c3ffe53578b17dcfbb91cb1b
Signed-off-by: Kunal <kunal.chawla@samsung.com>
7 years agoFixed to compare pid, instead of using cpu time difference, when an app is re-launced. 27/103727/3
Kunal [Fri, 9 Dec 2016 08:14:00 +0000 (17:14 +0900)]
Fixed to compare pid, instead of using cpu time difference, when an app is re-launced.

Change-Id: Ib2c72bd5634d2555ccdf517985c6711e4818325c
Signed-off-by: Kunal <kunal.chawla@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 45/102145/1
Somin Kim [Mon, 5 Dec 2016 05:34:35 +0000 (14:34 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 0.9.9
  Modified RecentBetteryUsage to deliver UsedTime
  Fix svace issues (possible memory leaks)

Change-Id: I86f3cbfe4756106eba7278153ed2c5f3162dae53
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoVersion 0.9.9 25/102125/1
Somin Kim [Mon, 5 Dec 2016 05:03:08 +0000 (14:03 +0900)]
Version 0.9.9

Change-Id: I83341de2ac6091d1b87fcf7e0a4ab1fb9c045f02
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoModified RecentBetteryUsage to deliver UsedTime 13/102113/2
Somin Kim [Mon, 5 Dec 2016 04:42:13 +0000 (13:42 +0900)]
Modified RecentBetteryUsage to deliver UsedTime

Change-Id: I5a426ddbcf82351619a59e4edc6802f2f12ff5dd
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoFix svace issues (possible memory leaks) 99/101899/1
Mu-Woong Lee [Fri, 2 Dec 2016 10:07:28 +0000 (19:07 +0900)]
Fix svace issues (possible memory leaks)

Change-Id: Ic1fc5047424c0fb97f60c35bd262795d51c9315e
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 34/101134/1
Mu-Woong Lee [Wed, 30 Nov 2016 09:59:56 +0000 (18:59 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  Version 0.9.8
  Added code to query HeartDB every 10 minutes
  Modify recnet battery usage to return data after booting, if device never fully charged.
  Resolved a bug which gives negative battery values on process being killed and re-launched When an app is killed and re-launched,the CPU times are reset, the difference is negative, so checked for non-negative differences
  [my-place] DEBUG_MODE simplification.
  [my-place] Change db queries async -> sync.
  [my-place] Change debug flag from TIZEN_ENGINEER_MODE to DEBUG_MODE.

Change-Id: I87bcae5a15147c04cffa61b025a9bc3d9f10ba97
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.9.8 32/101132/1
Somin Kim [Wed, 30 Nov 2016 09:57:24 +0000 (18:57 +0900)]
Version 0.9.8

Change-Id: If35b39342b368903970ccb37b262035093d48188
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoAdded code to query HeartDB every 10 minutes 04/101104/3
Kunal [Wed, 30 Nov 2016 08:49:13 +0000 (17:49 +0900)]
Added code to query HeartDB every 10 minutes

Change-Id: I62086cb8a5b1f92d5434956e9e5213477cb2910d
Signed-off-by: Kunal <kunal.chawla@samsung.com>
7 years agoModify recnet battery usage to return data after booting, if device never fully charged. 68/101068/2
Somin Kim [Wed, 30 Nov 2016 06:37:54 +0000 (15:37 +0900)]
Modify recnet battery usage to return data after booting, if device never fully charged.

Change-Id: I01f9e9f62271094a6e10f4fec00eeba71fda1fb4
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoMerge "Resolved a bug which gives negative battery values on process being killed...
Mu-Woong Lee [Wed, 30 Nov 2016 09:30:07 +0000 (01:30 -0800)]
Merge "Resolved a bug which gives negative battery values on process being killed and re-launched When an app is killed and re-launched,the CPU times are reset, the difference is negative, so checked for non-negative differences" into devel/tizen

7 years agoResolved a bug which gives negative battery values on process being killed and re... 05/101105/1
Kunal [Wed, 30 Nov 2016 08:51:38 +0000 (17:51 +0900)]
Resolved a bug which gives negative battery values on process being killed and re-launched
When an app is killed and re-launched,the CPU times are reset, the difference is negative, so checked for non-negative differences

Change-Id: Ib1611fcb5ea05295990bd3f127a24abf7a2df5c4
Signed-off-by: Kunal <kunal.chawla@samsung.com>
7 years ago[my-place] DEBUG_MODE simplification. 96/97296/3
Marcin Masternak [Tue, 29 Nov 2016 15:27:34 +0000 (16:27 +0100)]
[my-place] DEBUG_MODE simplification.

Change-Id: If9c1be9ff546b6fc15a5390dee704ff29d9eebd0
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Change db queries async -> sync. 95/99695/1
Marcin Masternak [Wed, 23 Nov 2016 17:40:10 +0000 (18:40 +0100)]
[my-place] Change db queries async -> sync.

Change-Id: Id7d450f23b050121529da41fef89574359c19ee9
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Change debug flag from TIZEN_ENGINEER_MODE to DEBUG_MODE. 94/99694/1
Marcin Masternak [Wed, 23 Nov 2016 17:43:04 +0000 (18:43 +0100)]
[my-place] Change debug flag from TIZEN_ENGINEER_MODE to DEBUG_MODE.

Change-Id: I9744d8a8698807e9e42ee9a3203a05bbbc586cff
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen_3.0 77/95477/1 accepted/tizen/3.0/common/20161114.082332 accepted/tizen/3.0/ivi/20161104.103719 accepted/tizen/3.0/mobile/20161104.103649 accepted/tizen/3.0/wearable/20161104.103712 submit/tizen_3.0/20161103.101627 submit/tizen_3.0_common/20161110.084657
Mu-Woong Lee [Thu, 3 Nov 2016 10:12:00 +0000 (19:12 +0900)]
Merge branch 'devel/tizen' into tizen_3.0

* devel/tizen:
  [my-place] Place Recognition engine support on.
  [my-place] Table creations change to synchronous.

Change-Id: I21bd4d16d1d56917238f882d324f68496cce2ff3
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 75/95475/1 accepted/tizen/common/20161103.160210 accepted/tizen/ivi/20161103.232122 accepted/tizen/mobile/20161103.232031 accepted/tizen/wearable/20161103.232103 submit/tizen/20161103.101809
Mu-Woong Lee [Thu, 3 Nov 2016 10:11:20 +0000 (19:11 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  [my-place] Place Recognition engine support on.
  [my-place] Table creations change to synchronous.

Change-Id: Icf2de0dfd9cdef25c2821eec7d3e1ee8a71216d9
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago[my-place] Place Recognition engine support on. 08/95308/1
Marcin Masternak [Wed, 2 Nov 2016 17:27:45 +0000 (18:27 +0100)]
[my-place] Place Recognition engine support on.

Change-Id: Ibb2d8dc50bc3f258bcab8e2861e90062acda8b65
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Table creations change to synchronous. 07/95307/1
Marcin Masternak [Wed, 2 Nov 2016 17:26:00 +0000 (18:26 +0100)]
[my-place] Table creations change to synchronous.

Change-Id: I672539d4e1c2eb5c936552c6842cdbdde148ca07
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen_3.0 27/94927/1 accepted/tizen/3.0/ivi/20161102.075459 accepted/tizen/3.0/mobile/20161102.075415 accepted/tizen/3.0/wearable/20161102.075445 submit/tizen_3.0/20161102.044607
Mu-Woong Lee [Wed, 2 Nov 2016 04:28:58 +0000 (13:28 +0900)]
Merge branch 'devel/tizen' into tizen_3.0

* devel/tizen:
  [4.0] Remove ExcludeArch and dead copmiler definitions
  [my-place] Forgotten data to detected places database add.
  [my-place] Make PlacesDetector pure static.
  [my-place] PlacesDetector::detectPlaces() fix.
  [my-place] Submodules dynamic loading bug fix (utils static library).
  hardcoded so files path fix
  Battery Stats Algorithm modified to include CPU Usage of both background and foreground app events Applied code review comments and coding rules, and bug fixes
  Remove the macro for the hard-coded so file path
  Version 0.9.7

Change-Id: I1981f49e4a597072191878ebc041a23b7fa7d6f4
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen' into tizen 18/94918/1
Mu-Woong Lee [Wed, 2 Nov 2016 04:20:09 +0000 (13:20 +0900)]
Merge branch 'devel/tizen' into tizen

* devel/tizen:
  [4.0] Remove ExcludeArch and dead copmiler definitions

Change-Id: I9a19e31aeab3619b4a38cac5013d1d233fab4410
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago[4.0] Remove ExcludeArch and dead copmiler definitions 11/88611/4
MyungJoo Ham [Tue, 20 Sep 2016 04:03:13 +0000 (04:03 +0000)]
[4.0] Remove ExcludeArch and dead copmiler definitions

If TV-profile should not include this package, it should be removed from
the ks file (meta-tv.git). As we are trying to merge build projects,
trying not to build for a specific profile will become meaningless soon.
Thus, the ExcludeArch statement in the specfile is useless and confuses
the system. So, it is removed.

CMakeLists.txt states as if there are code with compiler definitions of
"_MOBILE_" and "_WEARABLE". However, grep on the source code has revealed
that there are no such code. Therefore, these two definitions are deadcode.

We have not yet completely removed profile build dependencies.

There will be another patch following this soon from me.

Change-Id: I59025327e0ca933fd5599388b13939973a81081a
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 29/94429/1 accepted/tizen/common/20161031.122044 accepted/tizen/ivi/20161101.005041 accepted/tizen/mobile/20161101.004948 accepted/tizen/wearable/20161101.005018 submit/tizen/20161031.062309
Mu-Woong Lee [Mon, 31 Oct 2016 01:57:17 +0000 (10:57 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  [my-place] Forgotten data to detected places database add.
  [my-place] Make PlacesDetector pure static.
  [my-place] PlacesDetector::detectPlaces() fix.
  [my-place] Submodules dynamic loading bug fix (utils static library).
  hardcoded so files path fix
  Battery Stats Algorithm modified to include CPU Usage of both background and foreground app events Applied code review comments and coding rules, and bug fixes
  Remove the macro for the hard-coded so file path
  Version 0.9.7

Change-Id: I15bf69e7449b4c1ccd5803539935cdf9769058c0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago[my-place] Forgotten data to detected places database add. 06/94406/1
Marcin Masternak [Fri, 28 Oct 2016 15:13:32 +0000 (17:13 +0200)]
[my-place] Forgotten data to detected places database add.

Change-Id: I6df5a35b1ea04c4d820bd04460bc0b668749e6ad
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Make PlacesDetector pure static. 18/94018/1
Marcin Masternak [Wed, 26 Oct 2016 17:29:07 +0000 (19:29 +0200)]
[my-place] Make PlacesDetector pure static.

Change-Id: Iaaef19e42b8af8480acae24f1dd397ae7ac16ed6
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] PlacesDetector::detectPlaces() fix. 17/94017/1
Marcin Masternak [Wed, 26 Oct 2016 17:14:46 +0000 (19:14 +0200)]
[my-place] PlacesDetector::detectPlaces() fix.

Change-Id: I6849d1ace7f4d27bc74ab645149805e23a63d7b4
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] Submodules dynamic loading bug fix (utils static library). 16/94016/1
Marcin Masternak [Wed, 26 Oct 2016 17:13:53 +0000 (19:13 +0200)]
[my-place] Submodules dynamic loading bug fix (utils static library).

Change-Id: I872e137d3f44c4093ee0a0cecb0448e636601f79
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years agohardcoded so files path fix 15/94015/1
Marcin Masternak [Wed, 26 Oct 2016 16:31:24 +0000 (18:31 +0200)]
hardcoded so files path fix

Change-Id: I0265a54487111e6e10bbc435f01531a691b81bab
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years agoBattery Stats Algorithm modified to include CPU Usage of both background and foregrou... 78/89078/14
Kunal [Thu, 29 Sep 2016 06:53:56 +0000 (15:53 +0900)]
Battery Stats Algorithm modified to include CPU Usage of both background and foreground app events
Applied code review comments and coding rules, and bug fixes

Change-Id: I264d5b8350da9b6322b5fcbccb265130ffa9b86d
Signed-off-by: Kunal <kunal.chawla@samsung.com>
7 years agoRemove the macro for the hard-coded so file path 56/92256/3
Marcin Masternak [Fri, 14 Oct 2016 10:59:42 +0000 (12:59 +0200)]
Remove the macro for the hard-coded so file path

Change-Id: I2450e87001b3d64858e3f91b64e1ac6491336698
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.9.7 43/92243/1
Mu-Woong Lee [Fri, 14 Oct 2016 06:14:29 +0000 (15:14 +0900)]
Version 0.9.7

Change-Id: Ie7ecfb0eed82c059f2b1ad9d5b9c9e348a15df6c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 83/89983/1 accepted/tizen/3.0/ivi/20161011.043749 accepted/tizen/3.0/mobile/20161015.032629 accepted/tizen/3.0/wearable/20161015.081825 accepted/tizen/common/20160928.164044 accepted/tizen/ivi/20160929.001926 accepted/tizen/mobile/20160929.001811 accepted/tizen/wearable/20160929.001936 submit/tizen/20160928.054547 submit/tizen_3.0_common/20161104.104000 submit/tizen_3.0_ivi/20161010.000001 submit/tizen_3.0_mobile/20161015.000001 submit/tizen_3.0_wearable/20161015.000001
Mu-Woong Lee [Wed, 28 Sep 2016 02:47:31 +0000 (11:47 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Remove unnecessary build macros
  [my-place] Small SVACE fixes.
  Fix coding rule violations

Change-Id: Icad585e348fc3edfd840ea33160fa85a2386a2b0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoRemove unnecessary build macros 99/89899/1
Mu-Woong Lee [Tue, 27 Sep 2016 10:22:15 +0000 (19:22 +0900)]
Remove unnecessary build macros

Change-Id: I5848f82f9426e6d5f26302dabb3e9294d0a9e034
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago[my-place] Small SVACE fixes. 63/88463/1
Marcin Masternak [Wed, 14 Sep 2016 15:31:21 +0000 (17:31 +0200)]
[my-place] Small SVACE fixes.

Change-Id: Iceb1c004934a013021a0bae5bcaa8b3ad726b41c
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years agoFix coding rule violations 52/87752/2
Somin Kim [Fri, 9 Sep 2016 08:44:00 +0000 (17:44 +0900)]
Fix coding rule violations

Change-Id: Ifed0d9c3accdb5f1de3957591fa86ce9d85708e7
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 59/87359/1 accepted/tizen/common/20160907.154907 accepted/tizen/ivi/20160908.044443 accepted/tizen/mobile/20160908.044333 accepted/tizen/wearable/20160908.044416 submit/tizen/20160907.123648
Mu-Woong Lee [Wed, 7 Sep 2016 12:26:13 +0000 (21:26 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Version 0.9.6
  Per app battery usage (Only foreground app duration considered - based on HEART cpu db)
  Custom types are modified
  Enable MyPlace detector
  [my-place] User consent starts/stops UserPlaces engine.
  [my-place] VisitDetector memory fix.
  [my-place] User consent transfer from client (location-setting) to internal db and back.
  [my-place] PlaceRecognitionProvider::isSupported() implementation.
  [my-place] UserPlaces facade refactoring to static methods.
  [my-place] DatabaseManager usage refactoring.
  sensor: add queryRaw function for pedometer

Change-Id: Ie0d60eacc2445f279289be32f022692655b3ca1b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.9.6 53/87353/1
Mu-Woong Lee [Wed, 7 Sep 2016 12:18:33 +0000 (21:18 +0900)]
Version 0.9.6

Change-Id: I5282c2984a524aa14bf9a067a3b5510ec076f179
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoPer app battery usage (Only foreground app duration considered - based on HEART cpu db) 71/86771/13
Somin Kim [Fri, 2 Sep 2016 20:52:55 +0000 (05:52 +0900)]
Per app battery usage (Only foreground app duration considered - based on HEART cpu db)

Change-Id: I857e83ae8a20796865a056bd11106fa3254c54d9
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoCustom types are modified 46/84746/1
Somin Kim [Mon, 22 Aug 2016 07:25:55 +0000 (16:25 +0900)]
Custom types are modified

Change-Id: I9c895c1a879e057bc8cda5fbda0d0ecff26b38a9
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoEnable MyPlace detector 81/83581/2
Mu-Woong Lee [Fri, 12 Aug 2016 00:47:06 +0000 (09:47 +0900)]
Enable MyPlace detector

Change-Id: Ibafac614bbce3f86a4152283d929d5e04318ff90
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years ago[my-place] User consent starts/stops UserPlaces engine. 95/82995/3
Marcin Masternak [Tue, 9 Aug 2016 11:31:50 +0000 (13:31 +0200)]
[my-place] User consent starts/stops UserPlaces engine.

Change-Id: I54e8525e127efa5713e415beebb99d8775805a8c
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] VisitDetector memory fix. 94/82994/1
Marcin Masternak [Mon, 8 Aug 2016 12:50:08 +0000 (14:50 +0200)]
[my-place] VisitDetector memory fix.

Change-Id: I11bc198e8223eda2a91548cba4b98dc78832eda5
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] User consent transfer from client (location-setting) to internal db and... 95/82795/1
Marcin Masternak [Fri, 5 Aug 2016 16:41:04 +0000 (18:41 +0200)]
[my-place] User consent transfer from client (location-setting) to internal db and back.

Change-Id: Ic5fd8833347c3c2c67ca4970b61fcdb9760c80e8
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] PlaceRecognitionProvider::isSupported() implementation. 24/82624/1
Marcin Masternak [Thu, 4 Aug 2016 10:09:18 +0000 (12:09 +0200)]
[my-place] PlaceRecognitionProvider::isSupported() implementation.

Change-Id: I53e7246cc8b9b54c1ca070e29ec7fbd47a916e1d
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] UserPlaces facade refactoring to static methods. 23/82623/1
Marcin Masternak [Thu, 4 Aug 2016 09:06:20 +0000 (11:06 +0200)]
[my-place] UserPlaces facade refactoring to static methods.

Change-Id: Ie0e3edd970cf4e9cb2d6de424a8c776d811ac103
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years ago[my-place] DatabaseManager usage refactoring. 22/82622/1
Marcin Masternak [Thu, 4 Aug 2016 09:03:50 +0000 (11:03 +0200)]
[my-place] DatabaseManager usage refactoring.

Change-Id: If5a72b53d053882277866989502d5c96d24924f5
Signed-off-by: Marcin Masternak <m.masternak@samsung.com>
7 years agosensor: add queryRaw function for pedometer 29/79929/1
kibak.yoon [Wed, 13 Jul 2016 12:09:43 +0000 (21:09 +0900)]
sensor: add queryRaw function for pedometer

Signed-off-by: kibak.yoon <kibak.yoon@samsung.com>
Change-Id: Ie63d52845004d08a3bc57be448368cd65b60a991

7 years agoMerge branch 'devel/tizen_3.0' into tizen 51/79051/1 accepted/tizen/common/20160708.141017 accepted/tizen/ivi/20160709.015006 accepted/tizen/mobile/20160709.014939 accepted/tizen/wearable/20160709.014956 submit/tizen/20160708.084014
Mu-Woong Lee [Fri, 8 Jul 2016 03:51:55 +0000 (12:51 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Applying C++ coding style to app inactive detector
  sensor: ignore anchor & interval of queries if the provider does not support them
  Version 0.9.4
  sensor: add option parameter checking routine
  sensor: add HeartRate recorder

Change-Id: I9a1537bdd7648514f4ed8e004e00ae9156efdfe0
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoApplying C++ coding style to app inactive detector 82/66682/2
Somin Kim [Wed, 20 Apr 2016 05:31:41 +0000 (14:31 +0900)]
Applying C++ coding style to app inactive detector

Change-Id: Ibe7fd394872d14c113f332843b589834e374d140
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agosensor: ignore anchor & interval of queries if the provider does not support them 11/78711/1
Mu-Woong Lee [Wed, 6 Jul 2016 12:23:08 +0000 (21:23 +0900)]
sensor: ignore anchor & interval of queries if the provider does not support them

Change-Id: I214e6344ea56a2b20204e72c721f765d889b5c25
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoVersion 0.9.4 83/78683/1
Mu-Woong Lee [Wed, 6 Jul 2016 11:55:54 +0000 (20:55 +0900)]
Version 0.9.4

Change-Id: I4eba093b69cf7516d6ef7d9e0678fbab2a73d4c2
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: add option parameter checking routine 63/78663/1
Mu-Woong Lee [Wed, 6 Jul 2016 10:42:48 +0000 (19:42 +0900)]
sensor: add option parameter checking routine

Change-Id: I67c79fb520762290631e32688fbfe45be60d3892
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: add HeartRate recorder 43/78643/1
Mu-Woong Lee [Wed, 6 Jul 2016 09:24:09 +0000 (18:24 +0900)]
sensor: add HeartRate recorder

Change-Id: Ib3e0ce16e34c5429715cd6095eed3de2f31ffed7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 59/78259/1 accepted/tizen/common/20160705.170009 accepted/tizen/ivi/20160705.045045 accepted/tizen/mobile/20160705.045104 accepted/tizen/wearable/20160705.045029 submit/tizen/20160705.023110
Mu-Woong Lee [Tue, 5 Jul 2016 02:29:48 +0000 (11:29 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  sensor: fix the group-by statements of SQL queries to split the timeline properly

Change-Id: I3c893cf2539208e22d1c4ffedcf20dfacea69748
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: fix the group-by statements of SQL queries to split the timeline properly 03/78203/1
Mu-Woong Lee [Mon, 4 Jul 2016 12:29:11 +0000 (21:29 +0900)]
sensor: fix the group-by statements of SQL queries to split the timeline properly

In SQL, deviding an integer by an integer produces an integer.
The integers need to be casted into real.

Change-Id: I71d407f94fb00503a67255e4935df405e766d757
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoMerge branch 'devel/tizen_3.0' into tizen 02/78102/1
Mu-Woong Lee [Mon, 4 Jul 2016 09:07:17 +0000 (18:07 +0900)]
Merge branch 'devel/tizen_3.0' into tizen

* devel/tizen_3.0:
  Modified item definition format
  Version 0.9.3
  sensor: update app uninstall event dbus signal
  sensor: try to record one tuple per one minute to reduce the pedometer DB table size
  sensor: re-sample pressure data and perform lazy insertions to reduce DB overhead
  sensor: align recording request json format with sensor api
  sensor: cascade its recording requests if an app is uninstalled
  sensor: set the maximum retention period (1 month)
  sensor: remove necessity of dynamic_cast in SleepLogger
  sensor: add the sensor recorder for sleep monitor
  sensor: define sleep monitor & hrm record table names
  sensor: rename SensorProxy::start() and stop() to listen() and unlisten()
  sensor: change SensorProxy::isRunning() to a public member
  sensor: split the time-related functions into TimeUtil class
  sensor: reorganize the folder structure

Change-Id: Ifb8a525437899c6abae2ef061a14ea715249f7e7
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agoModified item definition format 65/78065/3
Somin Kim [Mon, 4 Jul 2016 07:14:52 +0000 (16:14 +0900)]
Modified item definition format

Change-Id: Ie0aee0745a6de15062ee6969843056b64f806216
Signed-off-by: Somin Kim <somin926.kim@samsung.com>
7 years agoVersion 0.9.3 68/77868/1
Mu-Woong Lee [Fri, 1 Jul 2016 10:00:40 +0000 (19:00 +0900)]
Version 0.9.3

Change-Id: Iaeebaecaa0a964abaed8a655751244a2f353035a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: update app uninstall event dbus signal 66/77866/1
Mu-Woong Lee [Fri, 1 Jul 2016 09:59:38 +0000 (18:59 +0900)]
sensor: update app uninstall event dbus signal

Change-Id: I4bfa66dae349d07d5e3bcc33b3fbbeb8c929bba1
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: try to record one tuple per one minute to reduce the pedometer DB table size 21/77821/1
Mu-Woong Lee [Fri, 1 Jul 2016 06:46:33 +0000 (15:46 +0900)]
sensor: try to record one tuple per one minute to reduce the pedometer DB table size

Change-Id: I546bb46802bc51b9e0b7dab491638228e1c12003
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: re-sample pressure data and perform lazy insertions to reduce DB overhead 20/77820/1
Mu-Woong Lee [Fri, 1 Jul 2016 06:46:14 +0000 (15:46 +0900)]
sensor: re-sample pressure data and perform lazy insertions to reduce DB overhead

Change-Id: I77250bda622784e3adc522b41b90755105fb220a
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: align recording request json format with sensor api 19/77819/1
Mu-Woong Lee [Fri, 1 Jul 2016 06:45:58 +0000 (15:45 +0900)]
sensor: align recording request json format with sensor api

Change-Id: Ief0236c20797bdd14fa327cbd3a085c93ff1a0bc
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: cascade its recording requests if an app is uninstalled 18/77818/1
Mu-Woong Lee [Fri, 1 Jul 2016 06:45:42 +0000 (15:45 +0900)]
sensor: cascade its recording requests if an app is uninstalled

Change-Id: I17f2c453896107721cad74b6136b16f4eaf0ba4d
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: set the maximum retention period (1 month) 17/77817/1
Mu-Woong Lee [Fri, 1 Jul 2016 06:45:00 +0000 (15:45 +0900)]
sensor: set the maximum retention period (1 month)

Change-Id: Id37d909394ad1db7b8aafad4f673f7e9ef326f67
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: remove necessity of dynamic_cast in SleepLogger 16/77816/1
Mu-Woong Lee [Fri, 1 Jul 2016 06:44:31 +0000 (15:44 +0900)]
sensor: remove necessity of dynamic_cast in SleepLogger

Change-Id: I8d9579b7650ebcdaffeab3808968db065a35e97f
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: add the sensor recorder for sleep monitor 53/77453/1
Mu-Woong Lee [Thu, 30 Jun 2016 01:20:10 +0000 (10:20 +0900)]
sensor: add the sensor recorder for sleep monitor

Change-Id: Ifc16ed955e9bce1284de202c1983626a68a4c675
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: define sleep monitor & hrm record table names 52/77452/1
Mu-Woong Lee [Thu, 30 Jun 2016 01:19:55 +0000 (10:19 +0900)]
sensor: define sleep monitor & hrm record table names

Change-Id: I4b867daf235c28f1108c5b7e757fb373794d813c
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: rename SensorProxy::start() and stop() to listen() and unlisten() 51/77451/1
Mu-Woong Lee [Thu, 30 Jun 2016 01:19:41 +0000 (10:19 +0900)]
sensor: rename SensorProxy::start() and stop() to listen() and unlisten()

start() and stop() are being used by logger classes with different meanings,
thus it would be better to rename them to avoid ambiguity.

Change-Id: Iaeb1aea86997f0659a768a31d88d47a371bda653
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: change SensorProxy::isRunning() to a public member 50/77450/1
Mu-Woong Lee [Thu, 30 Jun 2016 01:19:25 +0000 (10:19 +0900)]
sensor: change SensorProxy::isRunning() to a public member

Change-Id: Id92e10fa303ba779289f9e0d633f02d4fd93184b
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: split the time-related functions into TimeUtil class 49/77449/1
Mu-Woong Lee [Thu, 30 Jun 2016 01:19:02 +0000 (10:19 +0900)]
sensor: split the time-related functions into TimeUtil class

Change-Id: I27c72a76d55aa606b11e94f31a192586f2926e55
Signed-off-by: Mu-Woong Lee <muwoong.lee@samsung.com>
7 years agosensor: reorganize the folder structure 48/77448/1
Mu-Woong Lee [Thu, 30 Jun 2016 01:18:02 +0000 (10:18 +0900)]
sensor: reorganize the folder structure

Sub-folders for pedometer & pressure recorders are created.

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