platform/core/api/webapi-plugins.git
4 years agoMerge "[tizen] Bundle constructor fix." into tizen accepted/tizen/unified/20190715.223901 submit/tizen/20190715.093630
Piotr Kosko [Thu, 11 Jul 2019 10:56:15 +0000 (10:56 +0000)]
Merge "[tizen] Bundle constructor fix." into tizen

4 years ago[tizen] Bundle constructor fix. 27/209827/1
Michal Michalski [Thu, 11 Jul 2019 10:13:53 +0000 (12:13 +0200)]
[tizen] Bundle constructor fix.

xwalk.utils.validator replaced with xwalk.utils.type.

[Verification] All tests passed.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: I2a7a8d4c1c2fb81ab8750a122596378d3af975f3

4 years ago[version] 2.46 43/209643/1 accepted/tizen/unified/20190717.115233 submit/tizen/20190709.123714
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Tue, 9 Jul 2019 12:35:15 +0000 (14:35 +0200)]
[version] 2.46

Change-Id: I5347699a9a3eab4210560a5e96ac212886954a53
Signed-off-by: Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 <p.kosko@samsung.com>
4 years ago[UT][SPEC] Fixed passing tizen_ut_build defined value 06/209606/2
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Tue, 9 Jul 2019 08:41:31 +0000 (10:41 +0200)]
[UT][SPEC] Fixed passing tizen_ut_build defined value

[Bug] Build fails when building different profile than mobile

[Verification] Build successfully for unified build and each profile

Change-Id: I37b2f9e8517e7cd9db7956812c39bb57bdff5a42

4 years ago[common][tizen][utils] Common Bundle implementation. 29/207729/21
Michal Michalski [Thu, 4 Jul 2019 14:16:05 +0000 (16:16 +0200)]
[common][tizen][utils] Common Bundle implementation.

http://suprem.sec.samsung.net/jira/browse/TWDAPI-225

Unified the way native bundle objects are used
by WebAPI plugins.

[Verification] unittests pass rate 100%.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: I501880daee29f878e4af9fb9b20e386905fbdc0c

4 years ago[utils][webapi-plugins.spec][common][tizen-wrt.gyp][tizen] Common bundle tests. 02/208802/3
Michal Michalski [Fri, 28 Jun 2019 11:23:21 +0000 (13:23 +0200)]
[utils][webapi-plugins.spec][common][tizen-wrt.gyp][tizen] Common bundle tests.

http://suprem.sec.samsung.net/jira/browse/TWDAPI-225

Tests for common Bundle implementation.

[Verification] Pass rate 100%.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: Ib8ae4415b45f018efc3406c071115782920798f9

4 years ago[version] 2.45 77/209277/1 accepted/tizen/unified/20190704.115630 submit/tizen/20190704.075556
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Thu, 4 Jul 2019 07:54:16 +0000 (09:54 +0200)]
[version] 2.45

Change-Id: I6272b2f933c4bd97e2c7963938a6356afb1cc1f3
Signed-off-by: Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 <p.kosko@samsung.com>
4 years agoMerge "[MediaController] Fix for custom command without data" into tizen
Piotr Kosko [Fri, 28 Jun 2019 10:30:57 +0000 (10:30 +0000)]
Merge "[MediaController] Fix for custom command without data" into tizen

4 years ago[MediaController] Fix for custom command without data 67/208767/5
Rafal Walczyna [Fri, 28 Jun 2019 06:37:13 +0000 (08:37 +0200)]
[MediaController] Fix for custom command without data

If custom command was sent without additional data then
command was not parsed at all.

[Verification] Tested manually

Change-Id: Id35a5852a7fa61aff48fc181926e77ee01f65ff8
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years ago[Mediacontroller] Added callIfPossible safeguards in ServerPlaybackInfoListener. 28/208728/4
Arkadiusz Pietraszek [Thu, 27 Jun 2019 12:12:21 +0000 (14:12 +0200)]
[Mediacontroller] Added callIfPossible safeguards in ServerPlaybackInfoListener.

[verification] TCT 100% passrate

Change-Id: Ic77f57e39b73acc77c67c3f1cff0352a94315206
Signed-off-by: Arkadiusz Pietraszek <a.pietraszek@partner.samsung.com>
4 years ago[Mediacontroller] Setter fixes for shuffleMode, repeatMode end position in MediaContr... 16/208716/1
Arkadiusz Pietraszek [Thu, 27 Jun 2019 09:14:58 +0000 (11:14 +0200)]
[Mediacontroller] Setter fixes for shuffleMode, repeatMode end position in MediaControllerPlaybackInfo

Previous implementation intended to check for null and undefined and in reality didn't allow for setting 'false' or '0' values.

Change-Id: I03194e81d5d0bd5ef97a88d01a014f758a6ca49d

4 years ago[common] Handle nullptr output args in platform_enum. 66/208166/1
Michal Michalski [Wed, 19 Jun 2019 06:18:38 +0000 (08:18 +0200)]
[common] Handle nullptr output args in platform_enum.

Methods in platform_enum were not handling a nullptr output argument
case. This could lead to dereferencing of nullptr and to a crash.
Now they will return InvalidValuesError.

[Verification] No verification.

Change-Id: I756cf1495369143eaca78d249fd83229383907fc
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
4 years agoMerge "[mediacontroller] Get/set server icon API." into tizen
Piotr Kosko [Thu, 13 Jun 2019 09:05:01 +0000 (09:05 +0000)]
Merge "[mediacontroller] Get/set server icon API." into tizen

4 years ago[mediacontroller] Get/set server icon API. 92/204692/10
Michal Michalski [Thu, 25 Apr 2019 14:16:37 +0000 (16:16 +0200)]
[mediacontroller] Get/set server icon API.

http://suprem.sec.samsung.net/jira/browse/TWDAPI-221

+ readonly attribute MediaControllerServerInfo::iconURI
+ attribute MediaControllerServer::iconURI
+ MediaControllerServer::updateIconURI()

[Verification] Manual testing.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: If587a5958c74c224699345ef0ab7ff2575dd12ec

4 years ago[version] 2.44 42/207642/1 accepted/tizen/unified/20190611.110434 submit/tizen/20190610.112040
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Mon, 10 Jun 2019 11:14:53 +0000 (13:14 +0200)]
[version] 2.44

Change-Id: I413db071eb1dcbe8256d2368e8628b3345e9cf00
Signed-off-by: Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 <p.kosko@samsung.com>
4 years agoMerge "[googletest][googlemock] Add googletest sources to the project." into tizen
Lukasz Bardeli [Thu, 6 Jun 2019 08:31:07 +0000 (08:31 +0000)]
Merge "[googletest][googlemock] Add googletest sources to the project." into tizen

4 years ago[googletest][googlemock] Add googletest sources to the project. 61/206561/8
Michal Michalski [Tue, 21 May 2019 08:52:35 +0000 (10:52 +0200)]
[googletest][googlemock] Add googletest sources to the project.

Binaries available at tizen repository were causing SEGFAULTS
when tests were executed so we decided to build it from more
recent sources. Added googletest license to the rpm package
containing unit tests.

[Verification] SEGFAULT does not occur when sample tests were
executed.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: I9d028ca14dfcfa1d134afc7da733a7b4853c95f1

4 years agoMerge "[SystemInfo] Add SERVICE_COUNTRY property" into tizen
Piotr Kosko [Tue, 28 May 2019 05:19:13 +0000 (05:19 +0000)]
Merge "[SystemInfo] Add SERVICE_COUNTRY property" into tizen

4 years agoMerge changes Idb5bec64,I1f140bb8 into tizen
Piotr Kosko [Mon, 27 May 2019 07:45:26 +0000 (07:45 +0000)]
Merge changes Idb5bec64,I1f140bb8 into tizen

* changes:
  [mediacontroller] Get/set playback content type.
  [mediacontroller] Declare MediaControllerContentType enum.

5 years agoMerge "[Utils][fix] Privileges check" into tizen
Piotr Kosko [Wed, 22 May 2019 12:06:07 +0000 (12:06 +0000)]
Merge "[Utils][fix] Privileges check" into tizen

5 years agoMerge "[common] Native bundle to json converter." into tizen
Piotr Kosko [Wed, 22 May 2019 11:59:27 +0000 (11:59 +0000)]
Merge "[common] Native bundle to json converter." into tizen

5 years ago[common] Native bundle to json converter. 86/206586/1
Michal Michalski [Tue, 21 May 2019 13:26:11 +0000 (15:26 +0200)]
[common] Native bundle to json converter.

Function which converts native bundle object into json.

[Verification] Code compiles without error.

Change-Id: I932971d40309017c7ba7be9d677a41147ac5b3c2
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
5 years ago[Utils][fix] Privileges check 53/206053/9
Dawid Juszczak [Mon, 13 May 2019 15:07:34 +0000 (17:07 +0200)]
[Utils][fix] Privileges check

http://suprem.sec.samsung.net/jira/browse/XWALK-1909

Added new function to check if value passed to function
checkPrivilegeAccess is privilege
Also changed value of CONTENT_READ to proper

[verification]
tested on chrome console

Change-Id: I9213055621b4627d56f49c4b12227512c9d0c9d0
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[Alarm][DataControl] Change console.log to xwalk.utils.log 49/206549/1
Lukasz Bardeli [Tue, 21 May 2019 06:49:42 +0000 (08:49 +0200)]
[Alarm][DataControl] Change console.log to xwalk.utils.log

[Verification] Code compiles properly.

Change-Id: Icfafa4c2b88d382a050f3b3f8ad9aa8884f5ebdb
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
5 years ago[SystemInfo] Add SERVICE_COUNTRY property 23/206323/3
Lukasz Bardeli [Fri, 17 May 2019 11:34:35 +0000 (13:34 +0200)]
[SystemInfo] Add SERVICE_COUNTRY property

ACR: http://suprem.sec.samsung.net/jira/browse/TWDAPI-223

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

Change-Id: I449c57fdf6ba1ef884f766a397e950a1c0fdb4cd
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
5 years ago[mediacontroller] Get/set playback content type. 19/204019/8
Michal Michalski [Thu, 18 Apr 2019 11:43:29 +0000 (13:43 +0200)]
[mediacontroller] Get/set playback content type.

http://suprem.sec.samsung.net/jira/browse/TWDAPI-219

+ enum MediaControllerContentType
+ MediaControllerPlaybackInfo::contentType
+ MediaControllerServer::updateContentType()

[Verification] Manual tests in js console.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: Idb5bec64fac631fa92825920a745abfe02861edf

5 years ago[mediacontroller] Declare MediaControllerContentType enum. 42/205942/4
Michal Michalski [Fri, 10 May 2019 10:09:45 +0000 (12:09 +0200)]
[mediacontroller] Declare MediaControllerContentType enum.

Extracted into separate commit from adding ContentType WebAPI
because it is needed by Search API implementation as well.

[Verification] Code compiles. Both ContentType API implementation and Search API
implementation compile as well with this commit as a parent.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: I1f140bb8dd608887b90a1d7b5a202c493e5fd3e4

5 years ago[messaging] Fix synchronization issues 33/205833/7 accepted/tizen/unified/20190512.221908 submit/tizen/20190510.110853
Pawel Wasowski [Thu, 9 May 2019 11:31:49 +0000 (13:31 +0200)]
[messaging] Fix synchronization issues

Due to the delay between updating email with native C API functions and
updates of the corresponding message/thread records in the mail
database, race conditions occured in the previous implementation,
resulting in inconsitencies between thread_ids in the DB and those of
messages in JS layer. Active waits have been added to mitigate this
problems.

[Verification] tct-tizen-messaging-email pass rate: 100%

Change-Id: Ie0771ffc40e6cdee696756a8e831ae56bbe8f84d
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
5 years ago[filesystem] Fix svace issue 06/205906/3
Rafal Walczyna [Fri, 10 May 2019 08:07:12 +0000 (10:07 +0200)]
[filesystem] Fix svace issue

strerror caused PROC_USE.VULNERABLE SVACE error

Change-Id: I1020097d2f0cace1e585c0bb04f0b9336aad1372
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
5 years ago[mediacontroller] Fix sendCommand callbacks. 43/205843/1
Michal Michalski [Thu, 9 May 2019 15:04:05 +0000 (17:04 +0200)]
[mediacontroller] Fix sendCommand callbacks.

sendCommand callbacks were not triggered due to problem
with requestId. This commit fixes this bug.

[Verification] MC TCT 100% pass.

Change-Id: Ibb4fbe146dcb8c20d623ac27924377d4097bb67d
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
5 years ago[mediacontroller][common] Use PlatformEnum in MediaController. 52/205552/9
Michal Michalski [Tue, 7 May 2019 08:59:32 +0000 (10:59 +0200)]
[mediacontroller][common] Use PlatformEnum in MediaController.

Refactor enums in MediaController module using PlatformEnum
template class.

[Verification] Code compiles + MC TCT passed.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: Ie861d1c0aca7651a2f9ce45b966773082abf6045

5 years ago[common] Define PlatformEnum class template. 51/205551/4
Michal Michalski [Tue, 7 May 2019 08:36:56 +0000 (10:36 +0200)]
[common] Define PlatformEnum class template.

Will replace current way enums are defined in webapi-plugins.

[Verification] Code compiles.

Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
Change-Id: Id8c53df46ae9039e81d699884494b72c20d5cba8

5 years agoMerge branch 'tizen_5.0' into tizen 26/205326/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Thu, 2 May 2019 09:27:36 +0000 (11:27 +0200)]
Merge branch 'tizen_5.0' into tizen

Change-Id: I80139d08dab29ce640b5fe830bbf22d00d8b773f

5 years agoMerge branch 'tizen_4.0' into tizen_5.0 24/205324/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Thu, 2 May 2019 09:00:18 +0000 (11:00 +0200)]
Merge branch 'tizen_4.0' into tizen_5.0

Change-Id: Ie11b3d545d450613ecf61ccee824744108218c73

5 years agoMerge branch 'tizen_3.0' into tizen_4.0 17/205317/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Thu, 2 May 2019 07:56:41 +0000 (09:56 +0200)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I0d282d007e89b4c761fa74d9b0737ca35c29ec57

5 years ago[mediacontroller] Fix error handling in ReplyCommand. 40/203640/3
Michal Michalski [Tue, 16 Apr 2019 10:26:16 +0000 (12:26 +0200)]
[mediacontroller] Fix error handling in ReplyCommand.

MediaControllerServerReplyCommand function did not
handle errors returned by MediaControllerServer::CommandReply()
call. This commit handles those errors.

[Verification]
Code compiles.

Change-Id: Ibc5acacc32ff23a6d8fa7cac096ade0e40e2b697
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
5 years agoMerge "[fix][Content] readonly atributes since 5.5" into tizen
Piotr Kosko [Thu, 25 Apr 2019 08:36:22 +0000 (08:36 +0000)]
Merge "[fix][Content] readonly atributes since 5.5" into tizen

5 years agoMerge "[MediaController] getItems and getAllPlaylists implemented." into tizen
Piotr Kosko [Thu, 25 Apr 2019 08:33:37 +0000 (08:33 +0000)]
Merge "[MediaController] getItems and getAllPlaylists implemented." into tizen

5 years agoMerge "[MediaController] Add listener playlist updated." into tizen
Piotr Kosko [Thu, 25 Apr 2019 08:33:30 +0000 (08:33 +0000)]
Merge "[MediaController] Add listener playlist updated." into tizen

5 years agoMerge "[MediaController] Adding, updating and sending item." into tizen
Piotr Kosko [Thu, 25 Apr 2019 08:33:23 +0000 (08:33 +0000)]
Merge "[MediaController] Adding, updating and sending item." into tizen

5 years agoMerge "[Mediacontroller] Add playlist methods" into tizen
Piotr Kosko [Thu, 25 Apr 2019 08:33:17 +0000 (08:33 +0000)]
Merge "[Mediacontroller] Add playlist methods" into tizen

5 years ago[filesystem] Fix invalid errno usage. 58/204558/2 accepted/tizen/unified/20190425.111707 submit/tizen/20190424.132732
Michal Michalski [Wed, 24 Apr 2019 08:08:05 +0000 (10:08 +0200)]
[filesystem] Fix invalid errno usage.

http://suprem.sec.samsung.net/jira/browse/TFDF-1624

Fix for failing cordova filesystem tests.
Issue occured because errno value was not tested
right away after readdir() system function call
and other library functions were overriding errno.

[Verification] Cordova file tests pass.

Change-Id: If84de57e994b5255b1d51006803254f4fe90811b
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
5 years ago[MediaController] getItems and getAllPlaylists implemented. 77/202277/10
Lukasz Bardeli [Wed, 24 Apr 2019 08:54:56 +0000 (10:54 +0200)]
[MediaController] getItems and getAllPlaylists implemented.

- getItems
- server getAllPlaylists
- client getAllPlaylists

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

ACR: TWDAPI-199

Change-Id: Idd6594b76d52eeb6e96574f2fbcd5bf82a2245dc
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
5 years ago[fix][Content] readonly atributes since 5.5 25/204125/1
Dawid Juszczak [Fri, 19 Apr 2019 08:52:17 +0000 (10:52 +0200)]
[fix][Content] readonly atributes since 5.5

this change prevents user from modify
content.geolocation attributes

[Verification]
- tested on chrome console

Change-Id: Ia5e887d6029124e8eb3c0830391506632db16813
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[Content] isFavorite added to editableAttributes array 21/204021/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Thu, 18 Apr 2019 11:54:27 +0000 (13:54 +0200)]
[Content] isFavorite added to editableAttributes array

[Bug] Since 2.3 isFavorite is an editableAttribute, which was missing
in editableAttributes array. Now added it there.

[Verification] Code compiles without errors.

Change-Id: Ib5266a66920f0050fd5c25287602514bc4ea3762

5 years ago[MediaController] Add listener playlist updated. 54/200154/10
Lukasz Bardeli [Thu, 18 Apr 2019 05:46:26 +0000 (07:46 +0200)]
[MediaController] Add listener playlist updated.

Add methods
- addPlaylistUpdatedListener
- removePlaylistUpdatedListener

[Verification] Code compiles without error. Tested in chrome console
ACR: TWDAPI-199

Change-Id: Iec717785c4e12ad464d9a302d1b1ccc98ff16acf
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
5 years ago[fix][content] Deprecate filtering attributes 74/203774/2 accepted/tizen/unified/20190418.145720 submit/tizen/20190418.053050
Dawid Juszczak [Wed, 17 Apr 2019 15:09:15 +0000 (17:09 +0200)]
[fix][content] Deprecate filtering attributes

fixed error with printing deprecation warning

[verification]
builded succesfully
tested on mobile device - everything looks fine

Change-Id: If6bc3cab368696d1a74e35805b78b35572669c2b
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[version] 2.43 67/203767/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Wed, 17 Apr 2019 12:42:36 +0000 (14:42 +0200)]
[version] 2.43

Change-Id: I25d5811f20d31f4034841ed106ab43c249fb0c59
Signed-off-by: Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 <p.kosko@samsung.com>
5 years agoMerge "[Content] Some attributes are readonly since 5.5" into tizen
Piotr Kosko [Wed, 17 Apr 2019 11:53:50 +0000 (11:53 +0000)]
Merge "[Content] Some attributes are readonly since 5.5" into tizen

5 years ago[Content] Some attributes are readonly since 5.5 27/203727/4
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Wed, 17 Apr 2019 06:55:20 +0000 (08:55 +0200)]
[Content] Some attributes are readonly since 5.5

[Feature] name, description, rating, geolocation and orientation attributes are
  readonly since 5.5.
  For backward compatibility, the attributes are allowed for modifications for
  apps with required version lower than 5.5

  modified editableAttributes member also to remove readonly attributes from this array.

[ACR] http://suprem.sec.samsung.net/jira/browse/TWDAPI-203

[Verification]
  TCT passrate 100% when running with 5.0 TCT - backward compatibility.
  14 fails on latest TCT, TCT passrate 100% with TCT fixed by TCT team.

Change-Id: I8382372c51105fb7e11c3037d5994e2de76d59fa
Signed-off-by: Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 <p.kosko@samsung.com>
5 years agoMerge "[Project][Codeformat] Added prettier as partial formatter for JS" into tizen_3.0
Piotr Kosko [Wed, 17 Apr 2019 10:35:16 +0000 (10:35 +0000)]
Merge "[Project][Codeformat] Added prettier as partial formatter for JS" into tizen_3.0

5 years agoMerge "[Project][code_formatter] Added u options and changed JS formatting and valida...
Piotr Kosko [Wed, 17 Apr 2019 10:34:30 +0000 (10:34 +0000)]
Merge "[Project][code_formatter] Added u options and changed JS formatting and validating tools" into tizen_3.0

5 years ago[MediaController] Adding, updating and sending item. 47/200047/11
Lukasz Bardeli [Wed, 17 Apr 2019 05:38:44 +0000 (07:38 +0200)]
[MediaController] Adding, updating and sending item.

Add methods
- addItem
- updatePlaybackItem
- sendPlaybackItem
Add callback
- onplaybackitemrequest

[Verification] Code compiles without error. Tested in chrome console
ACR: TWDAPI-199

Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
Change-Id: Iffeec9bc0473f9a9df54d3fbd5a57dfc3ca21913

5 years ago[Content] Deprecate filtering attribute 87/202887/7
Dawid Juszczak [Fri, 5 Apr 2019 11:16:45 +0000 (13:16 +0200)]
[Content] Deprecate filtering attribute

[ACR] http://suprem.sec.samsung.net/jira/browse/TWDAPI-210

Change-Id: Ib0ebdee662d7dbb57ad29e98d2b7e427911f9182
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[Mediacontroller] Add playlist methods 35/199135/8
Lukasz Bardeli [Fri, 12 Apr 2019 07:59:39 +0000 (09:59 +0200)]
[Mediacontroller] Add playlist methods

Add methods
- CreatePlaylist
- SavePlaylist
- DeletePlaylist
Define interfaces
- MediaControllerPlaylist
- MediaControllerPlaylistItem

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

ACR: TWDAPI-199

Change-Id: Icf9b043c00b23a29c0e3d13d0c3a3dbcba8c0762
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
5 years ago[mediacontroller] Fix pointer-related bug. 87/203387/1 accepted/tizen/unified/20190415.132628 submit/tizen/20190415.072715
Michal Michalski [Fri, 12 Apr 2019 07:15:48 +0000 (09:15 +0200)]
[mediacontroller] Fix pointer-related bug.

[Verification] Code builds and testted sendCommand function in chrome console.

Change-Id: I3045684b11e85a756854f999ed42c74721bb0ae5
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
5 years agoMerge "[mediacontroller] Get/set content age rating API implementation." into tizen
Piotr Kosko [Wed, 10 Apr 2019 12:10:02 +0000 (12:10 +0000)]
Merge "[mediacontroller] Get/set content age rating API implementation." into tizen

5 years ago[Project][Codeformat] Added prettier as partial formatter for JS 79/203179/2
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Wed, 10 Apr 2019 09:00:29 +0000 (11:00 +0200)]
[Project][Codeformat] Added prettier as partial formatter for JS

[Feature] Existing solution check the format using eslint and fix
some issues with predefined rules (which match the requirements
of review.tizen.org CodingRule_Auto bot rules.
However the tool checks the validity, it does not provide auto
formating of too long lines issues.
To ensure such feature, the new tool was introduced and executed before
eslint validation.
Thanks to prettier, the line breaks are unified and handled the same
way in whole project.

Change-Id: I077036521307ef28fda5388ecab01b8d850ad3e3

5 years agoMerge branch 'tizen_5.0' into tizen 85/203085/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Tue, 9 Apr 2019 11:47:36 +0000 (13:47 +0200)]
Merge branch 'tizen_5.0' into tizen

Change-Id: Iff948d1e34e86ebd21401e59a12f5d805e4eb2ac

5 years agoMerge branch 'tizen_4.0' into tizen_5.0 83/203083/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Tue, 9 Apr 2019 11:04:03 +0000 (13:04 +0200)]
Merge branch 'tizen_4.0' into tizen_5.0

Change-Id: I42897295af557b4844c1b9c4a16a687e96045cc5

5 years agoMerge branch 'tizen_3.0' into tizen_4.0 78/203078/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Tue, 9 Apr 2019 10:10:15 +0000 (12:10 +0200)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I8f28e19de69751b7b92328491366aa0b8c7c6847

5 years ago[version] 2.32 72/203072/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Tue, 9 Apr 2019 10:08:45 +0000 (12:08 +0200)]
[version] 2.32

Change-Id: Idb24a1afa087aa101cebcfde7d46d283d459c956

5 years ago[Filesystem] listFiles method of File ignores files without access 71/203071/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Mon, 8 Apr 2019 08:18:05 +0000 (10:18 +0200)]
[Filesystem] listFiles method of File ignores files without access

[Bug] Files with invalid SMACK labels (not allowed to be accessed by app)
caused exception about missing member ("location is required argument").

Fix ignores the files that cannot be accessed.

[Verification] Manually checked with Chrome console and trying to list files
with invalid SMACK label. Files are being ignored.
100% passrate for filesystem module.

Change-Id: I48ed83ebbba5d0c6cfa0e597f083a7a1abce17fa

5 years ago[version] 2.41 93/202993/1 accepted/tizen/unified/20190410.002140 submit/tizen/20190408.122141
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Mon, 8 Apr 2019 12:06:53 +0000 (14:06 +0200)]
[version] 2.41

Change-Id: Ib06ff3c123c7763b5b0234827ef8a8f74cc052d7

5 years ago[Content][fix] related to change in db 81/202981/2
Dawid Juszczak [Mon, 8 Apr 2019 09:06:05 +0000 (11:06 +0200)]
[Content][fix] related to change in db

changed play_order to value compatible with database.
related to: http://suprem.sec.samsung.net/jira/browse/TFDF-1354

[verification] tct-content-tizen-tests - 100% PASS

Change-Id: I910bddd25ad5654c19565b136f29dea2a5e1dc1f
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[Project][code_formatter] Added u options and changed JS formatting and validating... 70/202370/5
Arkadiusz Pietraszek [Wed, 27 Mar 2019 14:29:37 +0000 (15:29 +0100)]
[Project][code_formatter] Added u options and changed JS formatting and validating tools

Now eslint is used to format js files.
Not all issues can be fixed by eslint, so it prints list of issues for user to fix.
All 'u' options in formatter format appropriate files, that was changed from last commit.
Since files to format are not commited, this script backs up those files.

[Verification] Script executes without errors and proper files are chosen to format. Formated .js files have 4 spaces of indentation.

Change-Id: I10509ce3f639b25cca7e68e95e7c9419d9d82304
Signed-off-by: Arkadiusz Pietraszek <a.pietraszek@partner.samsung.com>
5 years ago[messageport][common] Move BundleJsonIterator to common. 35/202735/5
Michal Michalski [Wed, 3 Apr 2019 10:52:21 +0000 (12:52 +0200)]
[messageport][common] Move BundleJsonIterator to common.

It will be used in mediacontroller search API.

[Verification]

tct-messageport-tizen-tests 100% pass rate.

Change-Id: I1ef945697c16cc21801cb53e2bb13a389f777e9a

5 years ago[mediacontroller] Get/set content age rating API implementation. 12/201112/9
Michal Michalski [Thu, 7 Mar 2019 11:04:36 +0000 (12:04 +0100)]
[mediacontroller] Get/set content age rating API implementation.

http://suprem.sec.samsung.net/jira/browse/TWDAPI-207

[Verification] Manual testing.

Change-Id: I8ecea29c13f4cf97c08edfe2d6fd3a07799459d9
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
5 years ago[version] 2.40 13/202413/1 accepted/tizen/unified/20190328.234715 submit/tizen/20190328.074934
Piotr Kosko/Native/Web API (PLT) /SRPOL/Professional/삼성전자 [Wed, 27 Mar 2019 13:00:11 +0000 (14:00 +0100)]
[version] 2.40

Change-Id: I00ae696384378c21bb1e384ac1604b90e6ef81f0

5 years agoMerge "[messaging] fixed bug with foldersupdate callback" into tizen
Piotr Kosko [Wed, 27 Mar 2019 10:14:38 +0000 (10:14 +0000)]
Merge "[messaging] fixed bug with foldersupdate callback" into tizen

5 years ago[bluetooth] fixed bug with BluetoothProfileHandler 78/202278/4
Dawid Juszczak [Tue, 26 Mar 2019 15:22:21 +0000 (16:22 +0100)]
[bluetooth] fixed bug with BluetoothProfileHandler

Refactored implementation of BluetoothProfileHandler constructor.

[Verification] (automated) tct-bluetooth-tizen-tests passed 100%

Change-Id: Iff1d3117f7a893da31ce4e6068e7886c4a21ff78
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years agoMerge "[mediacontroller] Use request_id for listener matching in SendCommand." into...
Piotr Kosko [Fri, 22 Mar 2019 11:30:24 +0000 (11:30 +0000)]
Merge "[mediacontroller] Use request_id for listener matching in SendCommand." into tizen

5 years agoMerge "[MediaController] Change InvalidState to UnknownError." into tizen
Piotr Kosko [Fri, 22 Mar 2019 08:25:46 +0000 (08:25 +0000)]
Merge "[MediaController] Change InvalidState to UnknownError." into tizen

5 years agoMerge "[KeyManager] Add possibility to check whether alias is password protected...
Piotr Kosko [Fri, 22 Mar 2019 08:16:29 +0000 (08:16 +0000)]
Merge "[KeyManager] Add possibility to check whether alias is password protected" into tizen

5 years ago[mediacontroller] Use request_id for listener matching in SendCommand. 98/201898/3
Michal Michalski [Wed, 20 Mar 2019 17:19:15 +0000 (18:19 +0100)]
[mediacontroller] Use request_id for listener matching in SendCommand.

SendCommand method was using watchId to identify CommandReply callback which
should be called. It was passed in bundle object to mc_client_send_custom_cmd
function. Now instead of passing watchId we use already available request_id
to perform the same matching for command reply listeners.

[Verification]

Manual test.
tct-mediacontroller-tizen-tests - pass 100%

Change-Id: I57e90dbe36d7726f2e2f66866b11910d5d1d5d0d
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
5 years ago[messaging] fixed bug with foldersupdate callback 88/201888/2
Dawid Juszczak [Wed, 20 Mar 2019 12:42:20 +0000 (13:42 +0100)]
[messaging] fixed bug with foldersupdate callback

foldersupdated callback in method addFoldersChangeListener was not
invoked when renamed folder

[Verification] Tested on device, works fine. Also tested with new
testcase added in commit:
https://review.tizen.org/gerrit/#/c/test/tct/web/api/+/201889/

Change-Id: Ic48f0740da9c73ef676d30eedf72226c7f4d5699
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[messaging] fixed bug with foldersupdate callback 77/201877/2
Dawid Juszczak [Wed, 20 Mar 2019 11:19:48 +0000 (12:19 +0100)]
[messaging] fixed bug with foldersupdate callback

foldersupdated callback in method addFoldersChangeListener was not
invoked when renamed folder

[Verification] Tested on device, works fine. Also tested with new
testcase added in commit:
https://review.tizen.org/gerrit/#/c/test/tct/web/api/+/201880/

Change-Id: I26f3ae8991218e97d1a55cf6a0abffba622ed25f
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[messaging] fixed bug with foldersupdate callback 08/201808/2
Dawid Juszczak [Tue, 19 Mar 2019 15:30:43 +0000 (16:30 +0100)]
[messaging] fixed bug with foldersupdate callback

foldersupdated callback in method addFoldersChangeListener was not
invoked when renamed folder

[Verification] Tested on device, works fine. Also tested with new
testcase added in commit:
https://review.tizen.org/gerrit/#/c/test/tct/web/api/+/201807/

Change-Id: I1389ab8e2ba4bcddada69fead783071626eda12d
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[messaging] fixed bug with foldersupdate callback 90/201890/2
Dawid Juszczak [Wed, 20 Mar 2019 13:55:22 +0000 (14:55 +0100)]
[messaging] fixed bug with foldersupdate callback

foldersupdated callback in method addFoldersChangeListener was not
invoked when renamed folder

[Verification] Tested on device, works fine. Also tested with new
testcase added in commit:
https://review.tizen.org/gerrit/#/c/test/tct/web/api/+/201891/

Change-Id: Ia5efe12e79b7f388c2a967a7f118c33edc34d06f
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
5 years ago[widgetservice][utils] Fix CommonListenerManager implementation. 65/201565/3
Michal Michalski [Fri, 15 Mar 2019 11:42:35 +0000 (12:42 +0100)]
[widgetservice][utils] Fix CommonListenerManager implementation.

CommonListenerManager implementation used native.getResultObject
on listener input before passing it to the callback. This behavior
is widgetservice specific and so it was moved outside
CommonListenerManager implementation.

[Verification]

Manual tests.

Change-Id: Ied82281a660562c2697f4f6c298ec11a2e2d5549
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
5 years ago[version] 2.39 64/201564/1 accepted/tizen/unified/20190318.150635 submit/tizen/20190315.163126
Piotr Kosko/Native/Web API (SWP) /SRPOL/Professional/삼성전자 [Fri, 15 Mar 2019 15:08:41 +0000 (16:08 +0100)]
[version] 2.39

Change-Id: Iace319e63260810fe4d26f5d166c3bdbb629ce21
Signed-off-by: Piotr Kosko/Native/Web API (SWP) /SRPOL/Professional/삼성전자 <p.kosko@samsung.com>
5 years agoRevert "[messaging] Refactor commonly used functions" 24/201524/2
Lukasz Bardeli [Fri, 15 Mar 2019 07:50:06 +0000 (07:50 +0000)]
Revert "[messaging] Refactor commonly used functions"

This reverts commit b3b63e72ae9d1b4d909e5c213830427e8ecc6ed6.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ief8acc66b387fc8783978e8ce8b2f0474a8511fa

5 years agoMerge "Revert "[messaging] Refactor functions used to get email converations from...
Lukasz Bardeli [Fri, 15 Mar 2019 08:29:14 +0000 (08:29 +0000)]
Merge "Revert "[messaging] Refactor functions used to get email converations from DB"" into tizen

5 years agoRevert "[messaging] Refactor functions used to get email converations from DB" 23/201523/1
Lukasz Bardeli [Fri, 15 Mar 2019 07:49:48 +0000 (07:49 +0000)]
Revert "[messaging] Refactor functions used to get email converations from DB"

This reverts commit 452dfff3c3eecd63e38295ad0455b961d400d1cb.

Reason for revert: <INSERT REASONING HERE>

Change-Id: I2373c1fc684ff879af16e08ba9f92d26c4ca77da

5 years agoMerge "[Content] Adding comments in code and adding deprecation log" into tizen
Piotr Kosko [Thu, 14 Mar 2019 06:16:11 +0000 (06:16 +0000)]
Merge "[Content] Adding comments in code and adding deprecation log" into tizen

5 years ago[MediaController] Change InvalidState to UnknownError. 33/201333/2
Lukasz Bardeli [Tue, 12 Mar 2019 12:43:18 +0000 (13:43 +0100)]
[MediaController] Change InvalidState to UnknownError.

[Verification] Code compiles without error.

Change-Id: Ibda8a419257caf071c7ed8e08e5b496b5c0efe2e
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
5 years agoMerge "[Mediacontroller] Added new methods, enums, events" into tizen
Piotr Kosko [Wed, 13 Mar 2019 06:59:04 +0000 (06:59 +0000)]
Merge "[Mediacontroller] Added new methods, enums, events" into tizen

5 years ago[messaging] Refactor functions used to get email converations from DB 37/199337/8
Pawel Wasowski [Sat, 9 Feb 2019 14:30:47 +0000 (15:30 +0100)]
[messaging] Refactor functions used to get email converations from DB

Implementation of the functions has been simplified.

[Verification] tct-messaging-email-tests pass rate did not
change after the change was applied

Change-Id: Id1e28b4c94b502d801dc5674a3fa7cf5f2844e16
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
5 years ago[messaging] Refactor commonly used functions 36/199336/10
Pawel Wasowski [Sat, 9 Feb 2019 09:01:20 +0000 (10:01 +0100)]
[messaging] Refactor commonly used functions

Functions for sorting and filtering are now more general.
Dedicated function for making SQL clause, comprising
only offset and limit was made to replace addFilters usage.

[Verification] tct-messaging-email-tests pass rate did not
change after the change was applied

Change-Id: Id73331631ff2e8cd17723cb7acd882c19f0be5be
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
5 years ago[KeyManager] Add possibility to check whether alias is password protected 72/186272/9
Rafal Walczyna [Wed, 8 Aug 2018 11:45:24 +0000 (13:45 +0200)]
[KeyManager] Add possibility to check whether alias is password protected

[ACR] TWDAPI-194

[Verification] TCT KeyManager tests on 5.5 TM1 - 100% pass
               New features was tested manually in Chrome Dev Tools

Change-Id: I7ace3984746b56d186dd05d99f836d65116a741a
Signed-off-by: Rafal Walczyna <r.walczyna@partner.samsung.com>
5 years agoMerge "[Bluetooth] Marking classes as deprecated." into tizen
Piotr Kosko [Wed, 6 Mar 2019 07:32:16 +0000 (07:32 +0000)]
Merge "[Bluetooth] Marking classes as deprecated." into tizen

5 years ago[Content] Adding comments in code and adding deprecation log 10/198310/2
Szymon Jastrzebski [Wed, 23 Jan 2019 14:06:31 +0000 (15:06 +0100)]
[Content] Adding comments in code and adding deprecation log

http://suprem.sec.samsung.net/jira/browse/ACR-1249

[Verification] Content TCT 100%

Change-Id: Ie3c2450e46c343b2db350475b0ec679d485e2d70
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
5 years ago[messaging] Enable more filter types 53/199153/14
Pawel Wasowski [Wed, 6 Feb 2019 11:01:11 +0000 (12:01 +0100)]
[messaging] Enable more filter types

This commit:
- enables filtering by not yet supported Message, MessageConversation,
  MessageFolder attributes.
  For detailed info, please consult ACR: TWDAPI-205
- replaces the use of enum tizen::FilterMatchFlag, specific to Messaging, to
  enum common::AttributeMatchFlag, used among all Web API modules

[Verification] Code compiles. findConversations (E-Mail) tested in
               Chrome DevTools console works properly

Change-Id: I3f6d604b68c7c8889374ae77611dc96f7f48ee6f
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
5 years ago[Bluetooth] Marking classes as deprecated. 17/197617/5
Arkadiusz Pietraszek [Mon, 14 Jan 2019 11:56:41 +0000 (12:56 +0100)]
[Bluetooth] Marking classes as deprecated.

BluetoothHealthProfileHandler and BluetoothHealthChannel will be deprecated since tizen 5.5

[Verification] TCT Pass rate: 100%

ACR: TWDAPI-196

Change-Id: I965e910a8d5fb71a5c98bdb62a3a757eb98777e0
Signed-off-by: Arkadiusz Pietraszek <a.pietraszek@partner.samsung.com>
5 years ago[Mediacontroller] Added new methods, enums, events 91/184691/7
Szymon Jastrzebski [Thu, 3 Jan 2019 13:47:11 +0000 (14:47 +0100)]
[Mediacontroller] Added new methods, enums, events

+ Added support for value MC_REPEAT_MODE_ONE_MEDIA of mc_repeat_mode_e
  enum.
+ Added clientName parameter in
  MediaControllerChangeRequestPlaybackInfoCallback listeners.

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

ACR: TWDAPI-204

Change-Id: I2f5a61607b5c9bd467aa21a0fc843d0c63034411
Signed-off-by: Szymon Jastrzebski <s.jastrzebsk@partner.samsung.com>
5 years agoMerge branch 'tizen_5.0' into tizen 76/198876/1 accepted/tizen/unified/20190131.161426 submit/tizen/20190130.123633
Piotr Kosko/Native/Web API (SWP) /SRPOL/Professional/삼성전자 [Wed, 30 Jan 2019 12:10:52 +0000 (13:10 +0100)]
Merge branch 'tizen_5.0' into tizen

Change-Id: If22b0877f7802232c7c783cf9107f7be4cf31b43

5 years ago[version] 2.38 71/198871/1 accepted/tizen/5.0/unified/20190319.115547 submit/tizen_5.0/20190130.120958 submit/tizen_5.0/20190318.101254
Piotr Kosko/Native/Web API (SWP) /SRPOL/Professional/삼성전자 [Wed, 30 Jan 2019 12:07:46 +0000 (13:07 +0100)]
[version] 2.38

Change-Id: If39fca0d841550a2b4d36489374276686adcf14d
Signed-off-by: Piotr Kosko/Native/Web API (SWP) /SRPOL/Professional/삼성전자 <p.kosko@samsung.com>
5 years ago[Common] Fix preventing crash in argument validator 67/198867/1
Lukasz Bardeli [Mon, 7 Jan 2019 10:24:28 +0000 (11:24 +0100)]
[Common] Fix preventing crash in argument validator

If to method which takes object as parameter, array with one element
of this object will be passed them applicaiton will crash. This fix prevent
such situations and will throw TypeMissmatch

[Verification] Code compiles without error. Tested in chrome console and
execute automatic TCT (modules which have methods taking platform object as parameter -
account, alarm, application, bluetooth, bookmark, calendar, callhistory, contact,
content, download, exif, filesystem, iotcon, mediacontroller, messageport,
messaging, nfc, notification, push, time)
100% passrate

Change-Id: Idfd9ad6f1acc0a6d5fd140dfd655d1cab7d2291a
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
(cherry picked from commit faaf457e2aa1307f0c3406208374d71d5c98827b)

5 years agoMerge "[Common] Fix preventing crash in argument validator" into tizen
Piotr Kosko [Wed, 30 Jan 2019 11:37:44 +0000 (11:37 +0000)]
Merge "[Common] Fix preventing crash in argument validator" into tizen

5 years agoFix build break for icu 63.1 88/198488/1 accepted/tizen/unified/20190128.031628 submit/tizen/20190125.032258
DongHun Kwak [Fri, 25 Jan 2019 01:08:07 +0000 (10:08 +0900)]
Fix build break for icu 63.1

Added U_USING_ICU_NAMESPACE macro for adding
use namespace icu;

Change-Id: Ib80c463401b998c9c773208e638f236005347023
Signed-off-by: DongHun Kwak <dh0128.kwak@samsung.com>