platform/core/api/webapi-plugins.git
6 years agoMerge branch 'tizen_3.0' into tizen_4.0 00/161400/1 accepted/tizen/4.0/unified/20171124.063700 submit/tizen_4.0/20171123.103301
Piotr Kosko [Wed, 22 Nov 2017 13:49:17 +0000 (14:49 +0100)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I1d0e1011a39025df17d98be6a7d903e7cc0dad6c

6 years ago[version] 2.09 03/161303/1 accepted/tizen/3.0/common/20171127.084418 accepted/tizen/3.0/mobile/20171127.041617 accepted/tizen/3.0/tv/20171127.041621 accepted/tizen/3.0/wearable/20171127.041625 submit/tizen_3.0/20171123.103244
Piotr Kosko [Wed, 22 Nov 2017 13:48:04 +0000 (14:48 +0100)]
[version] 2.09

Change-Id: I53fba98b16652feeabc5285b0bfba978767c2350
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[Messaging] Refactor singleton managers into instance's fields 12/160912/2
Pawel Kaczmarczyk [Mon, 20 Nov 2017 10:39:32 +0000 (11:39 +0100)]
[Messaging] Refactor singleton managers into instance's fields
to prevent crash

Callback could be called even after MessagingInstance
object was destroyed.

[Verification] Passrate didn't change

Change-Id: I3ac0db270f9f7a07613a9bd53e18f3b954952944
Signed-off-by: Pawel Kaczmarczyk <p.kaczmarczy@partner.samsung.com>
6 years agoMerge "[Docs] Updating docs/src for Tizen 4.0" into tizen_4.0 accepted/tizen/4.0/unified/20171120.064709 submit/tizen_4.0/20171117.110318
Piotr Kosko [Fri, 17 Nov 2017 10:55:07 +0000 (10:55 +0000)]
Merge "[Docs] Updating docs/src for Tizen 4.0" into tizen_4.0

6 years agoMerge branch 'tizen_3.0' into tizen_4.0 65/160665/1
Piotr Kosko [Fri, 17 Nov 2017 10:28:43 +0000 (11:28 +0100)]
Merge branch 'tizen_3.0' into tizen_4.0

Conflicts:
src/humanactivitymonitor/humanactivitymonitor_manager.cc

Change-Id: Iae74a00bd144f06f0bd6aed5ee881019c5a0bc1e

6 years ago[version] 2.08 64/160664/1 accepted/tizen/3.0/common/20171120.094037 accepted/tizen/3.0/mobile/20171119.231603 accepted/tizen/3.0/tv/20171119.231607 accepted/tizen/3.0/wearable/20171119.231634 submit/tizen_3.0/20171117.110035
Piotr Kosko [Fri, 17 Nov 2017 10:14:10 +0000 (11:14 +0100)]
[version] 2.08

Change-Id: Ic0dd5f3b4fb5f004f3b3f7d993bbae2761f84392
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[humanactivitymonitor] Fix generating query for recording 61/160661/2
Rafal Walczyna [Mon, 23 Oct 2017 13:19:47 +0000 (15:19 +0200)]
[humanactivitymonitor] Fix generating query for recording

[Verification] 100% passrate on TW1

Before fix function readRecorderData() returned only one value,
now it returns multiple values - as expected

Change-Id: I2d0de2633e2e7fd55aa6f04aadad4a0fb3569d4a
Signed-off-by: Rafal Walczyna <r.walczyna@partner.samsung.com>
6 years agoMerge "[DataControl] Crash when changeListener was not removed properly fixed" into...
Lukasz Bardeli [Fri, 17 Nov 2017 07:56:27 +0000 (07:56 +0000)]
Merge "[DataControl] Crash when changeListener was not removed properly fixed" into tizen_4.0

6 years ago[DataControl] Crash when changeListener was not removed properly fixed 42/160442/4
Rafal Walczyna [Thu, 16 Nov 2017 06:52:50 +0000 (07:52 +0100)]
[DataControl] Crash when changeListener was not removed properly fixed

[Verification] Passrate 100%

Change-Id: Ie9e5fd96a215a30e2ff53d9bfb4b9ed8a16406a8
Signed-off-by: Rafal Walczyna <r.walczyna@partner.samsung.com>
6 years ago[Power][Common] Calling "lockstate" instead "lockstate_nopt" 68/160468/5
Michal Bistyga [Thu, 16 Nov 2017 08:25:39 +0000 (09:25 +0100)]
[Power][Common] Calling "lockstate" instead "lockstate_nopt"

Native API reverted its changes. Now we should call "lockstate" again.
With this change API can request DIM brightness again.

[Native changes]
https://review.tizen.org/gerrit/#/c/159981/
https://review.tizen.org/gerrit/#/c/159994/
https://review.tizen.org/gerrit/#/c/159993/
https://review.tizen.org/gerrit/#/c/159980/

[Verification] 100% pass rate on power manual and automatic tests

Change-Id: I2ec53da7d9f79d5f583603a0f75f3fd7ce35fb91
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
6 years ago[Docs] Updating docs/src for Tizen 4.0 07/159507/3
Szymon Jastrzebski [Thu, 9 Nov 2017 09:28:52 +0000 (10:28 +0100)]
[Docs] Updating docs/src for Tizen 4.0

+ adding conversion table
+ adding guide for example WIDL code style

Change-Id: I59a6d885b567a848c546f0ef3e660057558bfa58
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years agoMerge "[PROJECT] Removing deprecated logs" into tizen_4.0
Lukasz Bardeli [Mon, 13 Nov 2017 12:52:05 +0000 (12:52 +0000)]
Merge "[PROJECT] Removing deprecated logs" into tizen_4.0

6 years ago[PROJECT] Removing deprecated logs 68/158068/7
Michal Bistyga [Fri, 27 Oct 2017 13:36:50 +0000 (15:36 +0200)]
[PROJECT] Removing deprecated logs

[Verification] 1) Code compiles
2) Exif package 100% passrate
3) NFC automatic package 100% passrate

Change-Id: I97e40576fa0551905ef84befee2996b93eb678bf
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
6 years ago[spec] enabled sensor for wearable profile 33/159533/3 accepted/tizen/4.0/unified/20171113.161412 submit/tizen_4.0/20171110.102410
Piotr Kosko [Thu, 9 Nov 2017 11:32:10 +0000 (12:32 +0100)]
[spec] enabled sensor for wearable profile

[Requester] 20171109
 1. [정군왕 / GunWang Jeong]
    Sensor module is a very important feature of wearable device. So it should be added and verified for wearable profile.
 2. [정석원 / SEOKWON JEONG]
    just enable feature only without api behavior change or add new api something?

[Verification] code compiles without errors.
  web-tct_4.0_r1_rc33:
  - with manually enabled sensor TCT for wearable:
    tct-namespace-tizen-tests (31/31 - 100%)
    tct-sensor-tizen-tests (A:97/97 M:6/6 - 100%)
    tct-capability-tests (32/32 - 100%)
  webWidgetTCT_4.0_r5 for sensor 100%

Change-Id: If6bac42bddfd51a2179878c1e0d47010067291b0
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[spec] fixing build for wearable 00/159500/1
Piotr Kosko [Thu, 9 Nov 2017 08:33:58 +0000 (09:33 +0100)]
[spec] fixing build for wearable

Change-Id: I27d8bf258d19c961d10266a2354f99fe6d1fd74d
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years agoMerge branch 'tizen_3.0' into tizen_4.0 36/159336/1 accepted/tizen/4.0/unified/20171109.065855 submit/tizen_4.0/20171108.104235
Piotr Kosko [Wed, 8 Nov 2017 07:24:44 +0000 (08:24 +0100)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I863b34ebe42e5cb07021d2265b31ba3879dd6ae6

6 years ago[version] 2.07 21/159321/1 accepted/tizen/3.0/common/20171109.103509 accepted/tizen/3.0/mobile/20171108.221511 accepted/tizen/3.0/tv/20171108.221531 accepted/tizen/3.0/wearable/20171108.221536 submit/tizen_3.0/20171108.104119
Piotr Kosko [Wed, 8 Nov 2017 07:20:25 +0000 (08:20 +0100)]
[version] 2.07

Change-Id: Ia8d9706056bab38aabd9d5cda41980b8bd527b33
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years agoMerge "[Documentation] Add license information for tools in doc" into tizen_3.0
Piotr Kosko [Wed, 8 Nov 2017 07:10:25 +0000 (07:10 +0000)]
Merge "[Documentation] Add license information for tools in doc" into tizen_3.0

6 years agoMerge "[Spec] fix privilege engine to common profile" into tizen_4.0
Piotr Kosko [Wed, 8 Nov 2017 06:09:13 +0000 (06:09 +0000)]
Merge "[Spec] fix privilege engine to common profile" into tizen_4.0

6 years ago[Documentation] Add license information for tools in doc 49/159249/1
Jakub Skowron [Tue, 7 Nov 2017 17:28:52 +0000 (18:28 +0100)]
[Documentation] Add license information for tools in doc

Some parts of automatically generated documentation was missing
license information.

Change-Id: I1df6f3145050800d5fbd6babcc5234bd76128d6b

6 years agoMerge "[Exif] Fixing warning: control reaches end of non-void function" into tizen_4.0
Piotr Kosko [Tue, 7 Nov 2017 12:59:18 +0000 (12:59 +0000)]
Merge "[Exif] Fixing  warning: control reaches end of non-void function" into tizen_4.0

6 years ago[Exif] Fixing warning: control reaches end of non-void function 42/159042/3
Szymon Jastrzebski [Tue, 7 Nov 2017 10:44:27 +0000 (11:44 +0100)]
[Exif] Fixing  warning: control reaches end of non-void function

[Verification] Code compiles

Change-Id: I8d89d09dc864bfa4b43f2aec78327a38a0960c81
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[Spec] fix privilege engine to common profile 16/159216/2
Lukasz Bardeli [Tue, 7 Nov 2017 11:47:49 +0000 (12:47 +0100)]
[Spec] fix privilege engine to common profile

Change-Id: I3cb42546442911adbf46394b8a492d79f23c971a
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years ago[Documentation] Remove unnecessary file logo.png 72/159172/1
Jakub Skowron [Mon, 6 Nov 2017 13:36:22 +0000 (14:36 +0100)]
[Documentation] Remove unnecessary file logo.png

This is a logo for documentation generator. Not used in documentation

Change-Id: I508793c952bd35ede3ec95b31e6876f942f2dab5

6 years agoMerge "[Exif] remove unnecessary semicolon" into tizen_3.0
Piotr Kosko [Tue, 7 Nov 2017 07:16:29 +0000 (07:16 +0000)]
Merge "[Exif] remove unnecessary semicolon" into tizen_3.0

6 years ago[Exif] remove unnecessary semicolon 46/159146/1
Lukasz Bardeli [Tue, 7 Nov 2017 07:14:13 +0000 (08:14 +0100)]
[Exif] remove unnecessary semicolon

Change-Id: If8ad91e6faf4be242067278b611d260b5d967e84
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years agoMerge "[PROJECT] Refactoring entering logs into ScopeLogger" into tizen_4.0
Piotr Kosko [Tue, 7 Nov 2017 06:45:26 +0000 (06:45 +0000)]
Merge "[PROJECT] Refactoring entering logs into ScopeLogger" into tizen_4.0

6 years agoMerge "[Project] Fixing formatting + errors found by cpplint" into tizen_4.0
Piotr Kosko [Tue, 7 Nov 2017 06:44:04 +0000 (06:44 +0000)]
Merge "[Project] Fixing formatting + errors found by cpplint" into tizen_4.0

6 years ago[PROJECT] Refactoring entering logs into ScopeLogger 31/159031/2
Szymon Jastrzebski [Mon, 6 Nov 2017 13:02:09 +0000 (14:02 +0100)]
[PROJECT] Refactoring entering logs into ScopeLogger

[Verification] Code compiles

Change-Id: I2733b7a7bcafa50f5a6a87195ec9efbcec97c574
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years agoMerge branch 'tizen_3.0' into tizen_4.0 06/159006/2
Piotr Kosko [Mon, 6 Nov 2017 09:03:17 +0000 (10:03 +0100)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I14a16192e54058421fb745bcdbd8a78adc1fb8ff

6 years agoMerge "[version] 2.06" into tizen_3.0
Piotr Kosko [Mon, 6 Nov 2017 09:02:08 +0000 (09:02 +0000)]
Merge "[version] 2.06" into tizen_3.0

6 years ago[version] 2.06 05/159005/1
Piotr Kosko [Mon, 6 Nov 2017 09:01:24 +0000 (10:01 +0100)]
[version] 2.06

Change-Id: I6076c3c5b8269e4c27b7cdcb1f4437f36e5821a5
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years agoMerge "[Tools] Added scripts for code style validation and auto fixing" into tizen_3.0
Piotr Kosko [Mon, 6 Nov 2017 07:53:22 +0000 (07:53 +0000)]
Merge "[Tools] Added scripts for code style validation and auto fixing" into tizen_3.0

6 years ago[Project] Fixing formatting + errors found by cpplint 92/158992/1
Szymon Jastrzebski [Mon, 6 Nov 2017 07:39:40 +0000 (08:39 +0100)]
[Project] Fixing formatting + errors found by cpplint

[Verification] Code compiles

Change-Id: I9a501c568d7da8348284977ec5d1f58837170e70

6 years agoMerge "[Logger] Removing warning from code analysis" into tizen_3.0
Piotr Kosko [Fri, 3 Nov 2017 11:24:16 +0000 (11:24 +0000)]
Merge "[Logger] Removing warning from code analysis" into tizen_3.0

6 years ago[Logger] Removing warning from code analysis 16/158716/2
Michal Bistyga [Thu, 2 Nov 2017 13:59:11 +0000 (14:59 +0100)]
[Logger] Removing warning from code analysis

[Verification] Code compiles, random packages pass their tests

Change-Id: Ibfa0053c23faa5b4b6a1e49da633289719af1bd7
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
6 years agoMerge "[Content] Crash in CreateThumbnail fixed" into tizen_3.0
Piotr Kosko [Fri, 3 Nov 2017 10:33:47 +0000 (10:33 +0000)]
Merge "[Content] Crash in CreateThumbnail fixed" into tizen_3.0

6 years ago[Content] Crash in CreateThumbnail fixed 20/158820/2
Rafal Walczyna [Thu, 2 Nov 2017 14:08:00 +0000 (15:08 +0100)]
[Content] Crash in CreateThumbnail fixed

[verification] 100% passrate on TM1 target and emulator

Change-Id: Ia2f8fe4ab6996ba872573235cfccc600282cc8f0
Signed-off-by: Rafal Walczyna <r.walczyna@partner.samsung.com>
6 years agoMerge "[Sensor] Fix for HRM_RAW sensor" into tizen_4.0
Piotr Kosko [Fri, 3 Nov 2017 09:32:30 +0000 (09:32 +0000)]
Merge "[Sensor] Fix for HRM_RAW sensor" into tizen_4.0

6 years ago[Callhistory] Fix for find method 96/158396/6
Pawel Kaczmarczyk [Tue, 31 Oct 2017 12:53:47 +0000 (13:53 +0100)]
[Callhistory] Fix for find method

[Bug] LoadPhoneNumbers must be called before FindThread.
  Because of critical section of LoadPhoneNumbers lasts for
  whole scope, so they can be called sequentially.

[Verification] Passrate 100%

Change-Id: I8207f488f0f4926d70d2289d42b1a46d2b98ee75
Signed-off-by: Pawel Kaczmarczyk <p.kaczmarczy@partner.samsung.com>
6 years agoMerge branch 'tizen_3.0' into tizen_4.0 04/158804/1
Piotr Kosko [Thu, 2 Nov 2017 13:39:09 +0000 (14:39 +0100)]
Merge branch 'tizen_3.0' into tizen_4.0

Conflicts:
src/application/application_manager.cc
src/exif/exif_gps_location.cc
src/exif/rational.cc
src/humanactivitymonitor/humanactivitymonitor_instance.cc
src/nfc/nfc_util.cc
src/notification/notification_instance.cc
src/notification/notification_manager.cc
src/notification/status_notification.cc
src/systeminfo/systeminfo_manager.cc
src/systeminfo/systeminfo_properties_manager.cc

Change-Id: I1e6dffb7fb8bc7a088b55a18bee700887550d03f

6 years ago[PROJECT] Refactoring entering logs into ScopeLogger 11/150711/12
Szymon Jastrzebski [Mon, 18 Sep 2017 09:30:34 +0000 (11:30 +0200)]
[PROJECT] Refactoring entering logs into ScopeLogger

Removing logs in trivial function and adding when they are missed will be part of another commit

PS2 Rebase
PS3 Change some left Loggers
PS4 After using clang
PS5 Utilizing changes in ScopeLogger
PS6 Cleaning up
PS8 Adding missing logs - not formatted
PS9 Clang
PS10 Rebase

[Verification] Code compiles
10 random packages has 100% passrate:
alarm, systemsetting, systeminfo, security, content, filesystem, iotcon,
push, capability, privillege

Change-Id: I7972fee44dd13277d9ef7693433aad7b0321dd68
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
6 years ago[Notification] Remove warning: 'visibility' attribute ignored [-Wattributes] 89/158389/1
Jakub Skowron [Tue, 31 Oct 2017 11:59:56 +0000 (12:59 +0100)]
[Notification] Remove warning: 'visibility' attribute ignored [-Wattributes]

typedef does not need to be exported from shared object

[Verification] TCT Pass 100% (alarm, notification)

Change-Id: I0ea19c255f03e62fb16ee01c956acc183327a9ee

6 years ago[Tools] Added scripts for code style validation and auto fixing 98/154498/3
Piotr Kosko [Mon, 9 Oct 2017 11:57:35 +0000 (13:57 +0200)]
[Tools] Added scripts for code style validation and auto fixing

[Feature] Added below scripts:
  - tools/codestyle/code_formatter.sh - common formatter for both C and JS
    (changes files)
  - tools/codestyle/code_validation.sh - common validator for both C and JS
    (does not change files)
  - tools/codestyle/c++_clang_formatter.sh - for auto formating C++ files
  - tools/codestyle/js_clang_formatter.sh - for auto formating JS files
  - tools/codestyle/cpplint_tizen_160919.py and tools/codestyle/cpplint_tizen_dir.sh
    scripts for C++ code style validation, provided by HQ
  - tools/codestyle/eslint_config_mandatory_length90.js - coding rules for
    JS sources validation - provided by HQ
  - code_format and code_validate - links to scripts for easier access

[Help] You can check usage for code_format and code_validate using '-h' option

[Verification] Checked manually. Analysis seem to be done properly.
  Since now, we should reformat new code using:
   ./code_format -c <path/to/changed/module>
  and validate:
   ./code_validate -c <path/to/changed/module>
  Using scripts for JS sources is not recommended for now.

Change-Id: I4af01a1f23c93547cd140ba7e5fed6294726c161
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[Systeminfo] Fix unregister callback functions 97/158197/2
Jakub Skowron [Mon, 30 Oct 2017 11:22:11 +0000 (12:22 +0100)]
[Systeminfo] Fix unregister callback functions

Ensure all callbacks are unregistered, even in case
of previous error in unregister function.

[Verification] TCT Tests: 100% Pass

Change-Id: If0bc0342b77985ecfa09c99111298c7d62e51dab

6 years agoMerge "[PPM] requestPermission implementation" into tizen_4.0 accepted/tizen/4.0/unified/20171026.153040 submit/tizen_4.0/20171026.082852 tizen_4.0.m2_release
Piotr Kosko [Thu, 26 Oct 2017 08:30:09 +0000 (08:30 +0000)]
Merge "[PPM] requestPermission implementation" into tizen_4.0

6 years agoMerge "[PPM] stubs implementation and checkPermission implementation" into tizen_4.0
Piotr Kosko [Thu, 26 Oct 2017 08:29:49 +0000 (08:29 +0000)]
Merge "[PPM] stubs implementation and checkPermission implementation" into tizen_4.0

6 years ago[PPM] requestPermission implementation 65/157765/3
Lukasz Bardeli [Thu, 26 Oct 2017 07:51:47 +0000 (09:51 +0200)]
[PPM] requestPermission implementation

[Verification] Code compiles without error. Tested in chrome console.

Change-Id: I2515dd8c5e8e10e3f92da8104d519ccc81fea970
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years ago[PPM] stubs implementation and checkPermission implementation 21/157621/5
Lukasz Bardeli [Wed, 25 Oct 2017 13:18:26 +0000 (15:18 +0200)]
[PPM] stubs implementation and checkPermission implementation

[Verification] Code compiles without error

Change-Id: I865ba4c1b60050faa685891283567cdd696bd2fb
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years ago[Datacontrol] Fix SVACE issue 37/157637/2
Pawel Kaczmarczyk [Wed, 25 Oct 2017 09:32:21 +0000 (11:32 +0200)]
[Datacontrol] Fix SVACE issue

[Verification] Passrate didn't change

Change-Id: I3c30d9d913bd0048c127b4e2435998a936542e4a
Signed-off-by: Pawel Kaczmarczyk <p.kaczmarczy@partner.samsung.com>
6 years ago[version] 2.06 67/157467/1 submit/tizen_4.0/20171024.133713
Piotr Kosko [Tue, 24 Oct 2017 13:33:20 +0000 (15:33 +0200)]
[version] 2.06

Change-Id: Id2815094c6f831cfafcb26913585313b8091ae9a
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years agoMerge "[humanactivitymonitor] Fix generating query for recording" into tizen_4.0
Piotr Kosko [Tue, 24 Oct 2017 12:00:17 +0000 (12:00 +0000)]
Merge "[humanactivitymonitor] Fix generating query for recording" into tizen_4.0

6 years agoMerge "[DataControl] fix for callback in addChangeListener" into tizen_4.0
Piotr Kosko [Tue, 24 Oct 2017 09:47:14 +0000 (09:47 +0000)]
Merge "[DataControl] fix for callback in addChangeListener" into tizen_4.0

6 years ago[DataControl] fix for callback in addChangeListener 84/157384/2
Lukasz Bardeli [Tue, 24 Oct 2017 09:30:34 +0000 (11:30 +0200)]
[DataControl] fix for callback in addChangeListener

[Verification] Code compiles without error. Tested in chrome console.
               TCT passrate didn't change

Change-Id: Ic03b2edc005ca2d6b609b2b36d641615ad5f861d
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years ago[humanactivitymonitor] Fix generating query for recording 58/157158/2
Rafal Walczyna [Mon, 23 Oct 2017 13:19:47 +0000 (15:19 +0200)]
[humanactivitymonitor] Fix generating query for recording

[Verification] Passrate changed from 86.11% to 98.15%

Change-Id: If66bccc0df9e10d7ac8aad14934cc1e0b58ace4e
Signed-off-by: Rafal Walczyna <r.walczyna@partner.samsung.com>
6 years ago[Sensor] Fixed some bugs 37/157037/3
Piotr Kosko [Wed, 4 Oct 2017 07:45:45 +0000 (09:45 +0200)]
[Sensor] Fixed some bugs

[Bug]
  - listener interval in case of multiple setListener calls was not updated
  - start/stop/setListener/unsetListener was not protected against multithread access
  - different behaviour in below scenarios:
    a.> HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
      > HRMrawsensor.stop()
      undefined   /// nothing happen

    b.> HRMrawsensor = tizen.sensorservice.getDefaultSensor("HRM_RAW");
      > HRMrawsensor.start(function(s){console.log(s)}, function(s){console.log(s)})
        WebAPIException {code: 9, name: "NotSupportedError", message: "None HRM LED sensor is supported."}
      > HRMrawsensor.stop()
        Uncaught WebAPIException {code: 9, name: "NotSupportedError", message: "None HRM LED sensor is supported."}

[Verification] Manual and Auto TCT passed 100% (s.jastrzebsk)

Change-Id: I4862823f84fc386d05eabfeb3dabb7345e9c592c
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[Common] Fixing expectation of datatypes warnings in Logger methods 15/157015/1
Arkadiusz Pietraszek [Thu, 19 Oct 2017 17:02:47 +0000 (19:02 +0200)]
[Common] Fixing expectation of datatypes warnings in Logger methods

Either formats %_ corrected to expect correct datatype or dytatype
casting while passing it to Logger method.

[Verification] Code compiles without warnings regarding datatypes passed
to Logger methods.

Change-Id: I8bf50728aee0c09b4b998614f3854972ef178aa5
Signed-off-by: Arkadiusz Pietraszek <a.pietraszek@partner.samsung.com>
6 years ago[Sensor] Fix for HRM_RAW sensor 07/156607/1
Szymon Jastrzebski [Tue, 26 Sep 2017 11:24:19 +0000 (13:24 +0200)]
[Sensor] Fix for HRM_RAW sensor

The getDefaultSensor method should throw exception while getting the
'HRM_RAW' sensor, if it is not supported.

Change-Id: Ib55d5088df6462a96a167103d3b9d76a4eade130
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years agoMerge branch 'tizen_3.0' into tizen_4.0 74/156474/1 accepted/tizen/4.0/unified/20171018.232138 submit/tizen_4.0/20171018.120310
Piotr Kosko [Wed, 18 Oct 2017 11:38:48 +0000 (13:38 +0200)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I5f9b5954fd3767856b4e4d9b23a9d77f6c1582e5

6 years ago[version] 2.05 66/156466/1 accepted/tizen/3.0/common/20171019.135605 accepted/tizen/3.0/mobile/20171019.104608 accepted/tizen/3.0/tv/20171019.104623 accepted/tizen/3.0/wearable/20171019.104640 submit/tizen_3.0/20171018.113206
Piotr Kosko [Wed, 18 Oct 2017 11:27:07 +0000 (13:27 +0200)]
[version] 2.05

Change-Id: I26e4d40ed0d09cbcf4c55f1c0e19082d3c6c6262
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[VoiceControl] Refactoring/reformatting module 26/156426/3
Szymon Jastrzebski [Wed, 18 Oct 2017 09:48:32 +0000 (11:48 +0200)]
[VoiceControl] Refactoring/reformatting module

+ refactor the code and replace static VoiceControlClient into member of
    VoiceControlInstace to prevent possible crashes
+ moving VcConvertCmdType function into the vc_utils

[Verification] Code compiles

Change-Id: Ibe76be9af93df3825917c7fb2115afb0d8826d76
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[VoiceControl] Add new web APIs for voice control 85/156385/1
Suyeon Hwang [Mon, 19 Jun 2017 02:43:03 +0000 (11:43 +0900)]
[VoiceControl] Add new web APIs for voice control

Change-Id: I497d96e45158b398189761952953cfc6253c7698
Signed-off-by: Suyeon Hwang <stom.hwang@samsung.com>
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[Iotcon] fix to prevent crash. 17/155917/3
Lukasz Bardeli [Tue, 17 Oct 2017 09:38:26 +0000 (11:38 +0200)]
[Iotcon] fix to prevent crash.

         Store data in vector and check in every call
         RemoteResourceResponseCallback if wasn't free earlier.

[Verification] Code compiles without errors. TCT passrate 100%

Change-Id: Ia3feb69460de99a0ad70915ae4b7098980fecb91
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years ago[Iotcon] fix to prevent crash. 89/155789/5
Lukasz Bardeli [Tue, 17 Oct 2017 09:38:26 +0000 (11:38 +0200)]
[Iotcon] fix to prevent crash.

         Store data in vector and check in every call
         RemoteResourceResponseCallback if wasn't free earlier.

[Verification] Code compiles without errors. TCT passrate 100%

Change-Id: Ia3feb69460de99a0ad70915ae4b7098980fecb91
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years agoMerge branch 'tizen_3.0' into tizen_4.0 47/154947/1 accepted/tizen/4.0/unified/20171012.074442 submit/tizen_4.0/20171011.122933 tizen_4.0.IoT.p1_release
Piotr Kosko [Wed, 11 Oct 2017 10:42:48 +0000 (12:42 +0200)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I4da4b84922e6acc2c5259508221017da5a47ea61

6 years ago[Application] Extending Native Context History API usage to wearable profile 26/154726/3
Szymon Jastrzebski [Wed, 11 Oct 2017 07:32:02 +0000 (09:32 +0200)]
[Application] Extending Native Context History API usage to wearable profile

Currently getBatteryUsageInfo() and getAppsUsageInfo() methods are
available only on mobile profile.

[Verification] Tested manually in console. Both methods seem to work properly.

Change-Id: Ifc1835054281d995ade4859546aa981e5d289bdf
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[version] 2.04 77/154877/1
Piotr Kosko [Wed, 11 Oct 2017 09:43:14 +0000 (11:43 +0200)]
[version] 2.04

Change-Id: Ica388eef8319574e89f2c0c7f586d8a1f7ef0f98
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[Download] Added information about HTTP status in error message 05/153905/3
Piotr Kosko [Tue, 3 Oct 2017 06:29:50 +0000 (08:29 +0200)]
[Download] Added information about HTTP status in error message

[Feature] Error message of onfailed callback of start method, return only
  Unknown error. Now information about HTTP status was added into message.

[Verification] Checked in chrome console.
  TCT passrate - 100%.

Change-Id: I157053d10a1e770c070b55465f1a7351c0c80cce
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years agoRevert "[version] 2.04" 76/154876/1
Piotr Kosko [Wed, 11 Oct 2017 09:41:37 +0000 (11:41 +0200)]
Revert "[version] 2.04"

This reverts commit 89b277b80e408f1527ce145e9cb79a4a128f6b5f.

Change-Id: I9aac524a3b19a54c92a30436a77f4ed5dcff0d26

6 years ago[version] 2.04 35/154835/1
Piotr Kosko [Wed, 11 Oct 2017 09:27:55 +0000 (11:27 +0200)]
[version] 2.04

Change-Id: Ieae2c1837b41a866fa3288270b674305b643a9c7
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years agoRevert "[Iotcon] Prevent posible crash." 34/154834/1
Piotr Kosko [Wed, 11 Oct 2017 09:21:48 +0000 (11:21 +0200)]
Revert "[Iotcon] Prevent posible crash."

This reverts commit 7d553b6906feb5205c93da6e3ed0428a3d2c1edd.

Change-Id: I42eec0d4ce0f24dea8895aed3a8bbda4ca1d6426

6 years agoMerge "[DataControl] Change return error from errorCallback to synchronous way" into...
Piotr Kosko [Mon, 9 Oct 2017 07:35:20 +0000 (07:35 +0000)]
Merge "[DataControl] Change return error from errorCallback to synchronous way" into tizen_4.0

6 years agoMerge "[DataControl] Refactor js file" into tizen_4.0
Piotr Kosko [Mon, 9 Oct 2017 07:29:05 +0000 (07:29 +0000)]
Merge "[DataControl] Refactor js file" into tizen_4.0

6 years agoMerge "[Iotcon] Prevent posible crash." into tizen_3.0
Piotr Kosko [Thu, 5 Oct 2017 09:53:02 +0000 (09:53 +0000)]
Merge "[Iotcon] Prevent posible crash." into tizen_3.0

6 years ago[DataControl] Refactor js file 63/153863/4
Lukasz Bardeli [Thu, 5 Oct 2017 09:41:12 +0000 (11:41 +0200)]
[DataControl] Refactor js file

[Verification] TCT passrate didn't change

Change-Id: I5d62fec4dca6b48da9d03ae3bfc29d681256e9b7
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years ago[Iotcon] Prevent posible crash. 25/154025/4
Lukasz Bardeli [Thu, 5 Oct 2017 09:12:24 +0000 (11:12 +0200)]
[Iotcon] Prevent posible crash.

[Feature] If Timeout was returned then it is possible to call
RemoteResourceResponseCallback again.
In this case data is deleted, but not set to null.
Call data->fun causes crash.

[Verification] Code compiles without error. Auto tests 100% passrate.

Change-Id: I07a3d1e38c933506620184f811b571d60e4b59fd
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years ago[Common] Upgrading ScopeLogger 90/153990/2
Michal Bistyga [Wed, 4 Oct 2017 11:01:35 +0000 (13:01 +0200)]
[Common] Upgrading ScopeLogger

This is cherry-pick from tizen_3.0 branch

[Verification] Code compiles

Change-Id: Id8824d5a91df54c9cb97f02b501e0da8f49852a2
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
6 years ago[Common] Upgrading ScopeLogger 72/153972/4
Michal Bistyga [Wed, 4 Oct 2017 11:01:35 +0000 (13:01 +0200)]
[Common] Upgrading ScopeLogger

Changes:
- Extra argument to entering logs is not written at the end of scope

Change-Id: Id8824d5a91df54c9cb97f02b501e0da8f49852a2
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
6 years ago[DataControl] Change return error from errorCallback to synchronous way 86/151286/3
Lukasz Bardeli [Mon, 2 Oct 2017 12:22:32 +0000 (14:22 +0200)]
[DataControl] Change return error from errorCallback to synchronous way

[Verification] Code compiles without error. Tested in chrome console.

Change-Id: I3be37c65bdf083e5b190314c29dc83306cf0f640
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
6 years agoMerge "[Systeminfo] fix error message in RegisterDeviceOrientationListener" into...
Piotr Kosko [Mon, 2 Oct 2017 06:42:29 +0000 (06:42 +0000)]
Merge "[Systeminfo] fix error message in RegisterDeviceOrientationListener" into tizen_4.0

6 years ago[Systeminfo] fix error message in RegisterDeviceOrientationListener 69/152969/2
Jakub Skowron [Wed, 27 Sep 2017 10:29:47 +0000 (12:29 +0200)]
[Systeminfo] fix error message in RegisterDeviceOrientationListener

Change-Id: I4b662b5160d175664ff34bd62c4474d125d39574
Signed-off-by: Jakub Skowron <j.skowron@samsung.com>
6 years agoMerge branch 'tizen_3.0' into tizen_4.0 65/152965/1 accepted/tizen/4.0/unified/20170929.075732 submit/tizen_4.0/20170927.114247
Piotr Kosko [Wed, 27 Sep 2017 11:26:28 +0000 (13:26 +0200)]
Merge branch 'tizen_3.0' into tizen_4.0

Conflicts:
packaging/webapi-plugins.spec

Change-Id: I4396c1ca3a1415cfbe4cd9ca0edc9351b5053615

6 years agoMerge "[Notification] Fix for getNotification and UserNotification constructor" into...
Piotr Kosko [Wed, 27 Sep 2017 11:04:49 +0000 (11:04 +0000)]
Merge "[Notification] Fix for getNotification and UserNotification constructor" into tizen_4.0

6 years ago[version] 2.03 45/152945/1
Piotr Kosko [Wed, 27 Sep 2017 10:56:29 +0000 (12:56 +0200)]
[version] 2.03

Change-Id: I940a2aa78782ddcba3c5031442d8821f9c932c8a
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[Notification] Fix for getNotification and UserNotification constructor 56/152856/1
Pawel Kaczmarczyk [Wed, 27 Sep 2017 08:33:04 +0000 (10:33 +0200)]
[Notification] Fix for getNotification and UserNotification constructor

[Bug] progressValue wasn't stored propperly, getNotification was requesting for StatusNotification object

[Verification] Tested in Chrome console

Change-Id: I12b221988bf6d984cd79a4ab28a1fe09bb0bcbe7
Signed-off-by: Pawel Kaczmarczyk <p.kaczmarczy@partner.samsung.com>
6 years ago[Convergence] Removing Convergence API 58/152158/3
Szymon Jastrzebski [Mon, 25 Sep 2017 09:29:22 +0000 (11:29 +0200)]
[Convergence] Removing Convergence API

  segwon.han has requested to remove Convergence API.

  Code compiles.

Change-Id: I89ab9f753de111277e444ca1b659ce301a13ae1a
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[PROJECT][C++] Reformatting the whole project 25/150125/3
Szymon Jastrzebski [Thu, 14 Sep 2017 10:10:53 +0000 (12:10 +0200)]
[PROJECT][C++] Reformatting the whole project

The refactoring was requested by yj99.shin.
With this change, the cpplint does not find any more errors.
The change has been applied to C++ files only.

[Verification] Code compiles.

Conflicts:
src/callhistory/callhistory.cc
src/callhistory/callhistory.h
src/download/download_instance.cc
src/mediacontroller/mediacontroller_types.cc
src/sensor/sensor_service.cc

Change-Id: I83e99c735d6dcc473d064c140c0e12b01ea9789a
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years agoMerge branch 'tizen_3.0' into tizen_4.0 55/152455/1
Piotr Kosko [Tue, 26 Sep 2017 06:29:10 +0000 (08:29 +0200)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: Idd4328ebce4c4086fcbbc20be8e5fbcace1383c1

6 years ago[Convergence] Removing Convergence API 46/152146/3
Szymon Jastrzebski [Mon, 25 Sep 2017 09:28:02 +0000 (11:28 +0200)]
[Convergence] Removing Convergence API

  segwon.han has requested to remove Convergence API.

  Code compiles.

Change-Id: I89ab9f753de111277e444ca1b659ce301a13ae1a
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years agoMerge branch 'tizen_3.0' into 'tizen_4.0' 93/152293/2
Piotr Kosko [Mon, 25 Sep 2017 12:44:33 +0000 (14:44 +0200)]
Merge branch 'tizen_3.0' into 'tizen_4.0'

Change-Id: I6e036cb66c8642b15c2096505cdd32d471cf3891

6 years ago[PROJECT][C++] Reformatting the whole project 26/150326/3
Szymon Jastrzebski [Mon, 25 Sep 2017 12:54:56 +0000 (14:54 +0200)]
[PROJECT][C++] Reformatting the whole project

The refactoring was requested by yj99.shin.
With this change, the cpplint does not find any more errors.
The change has been applied to C++ files only.

[Verification] Code compiles.

Change-Id: I03534fa2140a98b78099c78a1a915f9917c3927d
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[Utils] Fixing typo 84/152284/1
Szymon Jastrzebski [Mon, 25 Sep 2017 12:14:23 +0000 (14:14 +0200)]
[Utils] Fixing typo

Change-Id: I853c37c6f0ba6039ed1bce64b61bab86f0aa962e
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[Sensor] fixing listener behaviours 77/151677/2 accepted/tizen_3.0_ivi accepted/tizen/3.0/common/20170929.203111 accepted/tizen/3.0/ivi/20170922.023214 accepted/tizen/3.0/mobile/20170922.023152 accepted/tizen/3.0/tv/20170922.023143 accepted/tizen/3.0/wearable/20170922.023113 submit/tizen_3.0/20170921.132449
Piotr Kosko [Thu, 21 Sep 2017 10:13:10 +0000 (12:13 +0200)]
[Sensor] fixing listener behaviours

[Bug] Listeners are not called in deterministic way,
  several "api calls order" issues are fixed.

[Verification] Code compiles properly
  TCT passrate 100% - auto & manual
  Web widget service tests of sensor - 119 pass - 100% passrate

Change-Id: I720e23e0f23a9a849fb2d507e8721f196578ac48
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years agoMerge "[Download] Checking if device is connected before" into tizen_3.0
Piotr Kosko [Wed, 20 Sep 2017 07:40:40 +0000 (07:40 +0000)]
Merge "[Download] Checking if device is connected before" into tizen_3.0

6 years ago[version] 2.02 49/151149/1 accepted/tizen/3.0/ivi/20170920.094005 accepted/tizen/3.0/mobile/20170920.094235 accepted/tizen/3.0/tv/20170920.094239 accepted/tizen/3.0/wearable/20170920.094305 submit/tizen_3.0/20170920.055526
Piotr Kosko [Wed, 20 Sep 2017 05:07:18 +0000 (07:07 +0200)]
[version] 2.02

Change-Id: I80ac163b28617a3aa31400acd7042f57fdc06af2
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[Download] Checking if device is connected before 86/150386/4
Michal Bistyga [Fri, 15 Sep 2017 09:46:00 +0000 (11:46 +0200)]
[Download] Checking if device is connected before

When wi-fi has been disconnected, plugins would throw not intuitive error description.
It was especially important on XU3, where short disconnect occurs more often.

[Verification] 100% TCT pass rate on TM1

Change-Id: I22712dd8e815ac810b8fec5549c370e91498ed85
Signed-off-by: Michal Bistyga <m.bistyga@samsung.com>
6 years agoMerge "[Sensor] Not using ECMAScript6 code" into tizen_3.0 submit/tizen_3.0/20170919.131120
Piotr Kosko [Tue, 19 Sep 2017 11:42:31 +0000 (11:42 +0000)]
Merge "[Sensor] Not using ECMAScript6 code" into tizen_3.0

6 years ago[Sensor] Not using ECMAScript6 code 27/151027/1
Piotr Kosko [Tue, 19 Sep 2017 11:06:47 +0000 (13:06 +0200)]
[Sensor] Not using ECMAScript6 code

[Bug] Web Widget Engine does not support ECMAScript6,
  so it is needed to workaround internal code which used it.

[Verification] Code compiles without errors.
  TCT passrate of sensors is 100%.
  Some Web Widget tests passed without error.

Change-Id: I2110b35ce0ed9a4a8e3660b9c77b2a687585063f
Signed-off-by: Piotr Kosko <p.kosko@samsung.com>
6 years ago[MediaController] Fixing typo 22/151022/1
Szymon Jastrzebski [Tue, 19 Sep 2017 11:03:20 +0000 (13:03 +0200)]
[MediaController] Fixing typo

Change-Id: Iff3d210bafb9bbf98c44511910c38f6ffc0c266d
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
6 years ago[MediaControler] Adding missing enum mapping 79/150979/1
Szymon Jastrzebski [Tue, 19 Sep 2017 08:18:10 +0000 (10:18 +0200)]
[MediaControler] Adding missing enum mapping

  Native API uses MC_SERVER_STATE_NONE, which must be mapped to 'INACTIVE'
  Web API enum. The 'NONE' state is the default state for native MC server.

[Verification] Code compiles, MC TCT passed 100%.

Change-Id: Ida2acbad265dfa7b9a91d79e64e90bccb6632e56
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>