platform/core/api/webapi-plugins.git
4 years ago[messaging] Replace MessageFolder with json. 57/219757/4
Michal Michalski [Mon, 9 Dec 2019 15:37:30 +0000 (16:37 +0100)]
[messaging] Replace MessageFolder with json.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years ago[messaging] Make MessageFolder.attributes a picojson::value. 53/219753/4
Michal Michalski [Mon, 9 Dec 2019 14:36:27 +0000 (15:36 +0100)]
[messaging] Make MessageFolder.attributes a picojson::value.

Previously attributes were picojson::object. I decided to switch
to picojson::value to make the removal of MessageFolder class more
straightforward.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years ago[messaging] Remove MessageFolder(json) constructor. 51/219751/4
Michal Michalski [Mon, 9 Dec 2019 14:14:07 +0000 (15:14 +0100)]
[messaging] Remove MessageFolder(json) constructor.

Last step before removing MessageFolder class completely.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years ago[messaging] Remove MessageFolder constructor. 26/219626/5
Michal Michalski [Fri, 6 Dec 2019 10:42:03 +0000 (11:42 +0100)]
[messaging] Remove MessageFolder constructor.

+ Removed MessageFolder constructor from attributes.
+ MessageFolder(json) constructor is used to create folders.
+ Add createMessageFolder() -> json function.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years agoMerge branch 'tizen_5.5' into tizen 47/219747/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Mon, 9 Dec 2019 13:13:50 +0000 (14:13 +0100)]
Merge branch 'tizen_5.5' into tizen

Change-Id: I7a3b0ec2473d5524af05e2d842cda818e778c199

4 years agoMerge branch 'tizen_5.0' into tizen_5.5 46/219746/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Mon, 9 Dec 2019 13:11:21 +0000 (14:11 +0100)]
Merge branch 'tizen_5.0' into tizen_5.5

Change-Id: I140956e31d498f825947f58cb0c6990cb40c279f

4 years agoMerge branch 'tizen_4.0' into tizen_5.0 45/219745/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Mon, 9 Dec 2019 13:07:54 +0000 (14:07 +0100)]
Merge branch 'tizen_4.0' into tizen_5.0

Change-Id: Ib491adc102418f59ef279fc47d45a7ef3f867569

4 years agoMerge branch 'tizen_3.0' into tizen_4.0 44/219744/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Mon, 9 Dec 2019 12:57:25 +0000 (13:57 +0100)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I46b19761d8c18ed668e27a078c7e8094c1dde614

4 years ago[version] 2.39 42/219742/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Mon, 9 Dec 2019 12:55:38 +0000 (13:55 +0100)]
[version] 2.39

Change-Id: I4b83c04cba5ab218c11cefdbffd4e89054f54540

4 years ago[Messageport] Fixed listener issues 41/219741/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Mon, 9 Dec 2019 10:26:39 +0000 (11:26 +0100)]
[Messageport] Fixed listener issues

[Bugs]
* There was a problem with missing unregistration of
  listeners for local ports, it was added.
* There was invalid calling of listeners (only latest listener was called),
  now each registered listener is called properly.

[Verification] Messageport TCT passrate 100%.
Below scenario calls 3 different callbacks:

abc = tizen.messageport.requestLocalMessagePort("abc");
abc.addMessagePortListener((data, name) => {console.log(abc.messagePortName + " -> \"" + data + "\" : \"" + name + "\"")} );
abc.addMessagePortListener((data, name) => {console.log("2" + abc.messagePortName + " -> \"" + data + "\" : \"" + name + "\"")} );
abc.addMessagePortListener((data, name) => {console.log("3" + abc.messagePortName + " -> \"" + data + "\" : \"" + name + "\"")} );

abc_remote = tizen.messageport.requestRemoteMessagePort(tizen.application.getCurrentApplication().appInfo.id, "abc");
abc_remote.sendMessage([{key: "key1", value: "val1"}]);

Change-Id: If3a4b362de76599904c83737137c0d0cd4d023c7

4 years agoMerge changes If208ce7c,I10799622,I4e9cfc73,If4ea326e into tizen
Piotr Kosko [Fri, 6 Dec 2019 10:33:40 +0000 (10:33 +0000)]
Merge changes If208ce7c,I10799622,I4e9cfc73,If4ea326e into tizen

* changes:
  [messaging] MessageFolder no longer implements FilterableObject interface.
  [messaging] Implement isMatching(json) methods.
  [messaging] AbstractFilter::isMatching(json) interface.
  [messaging] Remove MessageFolder(email_mailbox_t) constructor.

4 years agoMerge "[messaging] EmailGetMailboxById native function wrapper." into tizen
Piotr Kosko [Fri, 6 Dec 2019 10:33:35 +0000 (10:33 +0000)]
Merge "[messaging] EmailGetMailboxById native function wrapper." into tizen

4 years agoMerge "[messaging] MessageFolderType as string." into tizen
Piotr Kosko [Fri, 6 Dec 2019 09:30:55 +0000 (09:30 +0000)]
Merge "[messaging] MessageFolderType as string." into tizen

4 years agoMerge "[messaging] Replacing MessageFolder with picojson part 2." into tizen
Piotr Kosko [Fri, 6 Dec 2019 09:00:26 +0000 (09:00 +0000)]
Merge "[messaging] Replacing MessageFolder with picojson part 2." into tizen

4 years agoMerge "[messaging] Move folder-related code to message_folder." into tizen
Piotr Kosko [Fri, 6 Dec 2019 08:57:01 +0000 (08:57 +0000)]
Merge "[messaging] Move folder-related code to message_folder." into tizen

4 years agoMerge "[messaging] Replace MessageFolder class with plain json part 1." into tizen
Piotr Kosko [Fri, 6 Dec 2019 08:54:25 +0000 (08:54 +0000)]
Merge "[messaging] Replace MessageFolder class with plain json part 1." into tizen

4 years ago[messaging] MessageFolder no longer implements FilterableObject interface. 28/219528/2
Michal Michalski [Thu, 5 Dec 2019 12:18:56 +0000 (13:18 +0100)]
[messaging] MessageFolder no longer implements FilterableObject interface.

Due to introduction of AbstractFilter::isMatching(json) method, MessageFolder no
longer needs to implement FilterableObject interface, because folders are filtered
using new implementation.

+ Remove MessageFolder::isMatchingAttribute()
+ Remove MessageFolder::isMatchingAttributeRange()
+ MessageFolder no longer inherits from FilterableObject

[Verification] Code compiles.

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

4 years ago[messaging] Implement isMatching(json) methods. 20/219520/2
Michal Michalski [Thu, 5 Dec 2019 11:16:41 +0000 (12:16 +0100)]
[messaging] Implement isMatching(json) methods.

+ Implement AttributeFilter::isMatching(const picojson::value&)
+ Implement AttributeRangeFilter::isMatching(const picojson::value&)
+ Implement CompositeFilter::isMatching(const picojson::value&)
+ Switch to new isMatching() method for MessageFolder objects.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years ago[messaging] EmailGetMailboxById native function wrapper. 18/219418/2
Michal Michalski [Wed, 4 Dec 2019 13:42:13 +0000 (14:42 +0100)]
[messaging] EmailGetMailboxById native function wrapper.

+ Created wrapper to native email_get_mailbox_by_mailbox_id() function.

[Verification]

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

4 years ago[messaging] AbstractFilter::isMatching(json) interface. 20/219420/2
Michal Michalski [Wed, 4 Dec 2019 15:02:09 +0000 (16:02 +0100)]
[messaging] AbstractFilter::isMatching(json) interface.

+ Created AbstractFilter::isMatching(picojson::value) method to prepare
for plain json filtering.

[Verification] Code compiles.

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

4 years ago[messaging] Remove MessageFolder(email_mailbox_t) constructor. 19/219419/2
Michal Michalski [Wed, 4 Dec 2019 13:45:51 +0000 (14:45 +0100)]
[messaging] Remove MessageFolder(email_mailbox_t) constructor.

+ Conversion from email_mailbox_t to MessageFolder is now performed inside native function wrappers.

[Verification] In progress.

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

4 years ago[messaging] MessageFolderType as string. 62/219162/6
Michal Michalski [Mon, 2 Dec 2019 16:34:10 +0000 (17:34 +0100)]
[messaging] MessageFolderType as string.

+ Remove getType() and getId() methods from MessageFolder.
+ Replace MessageFolderType enum with strings everywhere.
+ Remove unused messageFolderTypeToString() function.
+ Add MessageFolderTypeStr string array of folder type values.
+ Align code using old folder type implementation.
+ Inline MessageFolder::toJSON() calls and remove this method.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years ago[messaging] Replacing MessageFolder with picojson part 2. 54/219154/9
Michal Michalski [Mon, 2 Dec 2019 11:35:18 +0000 (12:35 +0100)]
[messaging] Replacing MessageFolder with picojson part 2.

+ FilterUtils::isMatching() overload for picojson::value.
+ Removed some getters/setters from MeessageFolder.
+ Removed unused FoldersChangeCallback::getFilter() method.
+ Simplified implementation of MessageFolder::isMatchingAttribute().
+ Removed stringToMessageFolderType() unused function.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years ago[messaging] Move folder-related code to message_folder. 12/219012/7
Michal Michalski [Fri, 29 Nov 2019 14:01:02 +0000 (15:01 +0100)]
[messaging] Move folder-related code to message_folder.

+ Moved FindFolderTaskParams to message_folder.h
+ Moved filterFolders() from folders_changed_callback to message_folder.
+ Moved MESSAGE_FOLDER_ATTRTIBUTE_* constants to message_folder.cc
+ Remove FolderPtr typedef.
+ Remove unneccessary extern declarations.

[Verification] Code compiles.

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

4 years ago[messaging] Replace MessageFolder class with plain json part 1. 84/218984/7
Michal Michalski [Fri, 29 Nov 2019 08:34:43 +0000 (09:34 +0100)]
[messaging] Replace MessageFolder class with plain json part 1.

+ MessageFolder::filterFolders() method converted to function and removed from the header.
+ Replace MessageUtils::folderToJson() with MessageFolder::toJSON() method.
+ Replace all MessageFolder attributes with single picojson object.
+ Move folder-related methods and types from messaging_util to message_folder module.
+ Replace jsonToFolder() method with MessageFolder(picojson::value) constructor.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years ago[6.0][mediacontroller] add methods to MediaControllerServerPlaybackInfo 14/217014/8
Dawid Juszczak [Mon, 4 Nov 2019 16:11:19 +0000 (17:11 +0100)]
[6.0][mediacontroller] add methods to MediaControllerServerPlaybackInfo

[acr]
http://suprem.sec.samsung.net/jira/browse/TWDAPI-246

[description]
>> refactor_03 <<
add methods to serverInfoPlaybackInfo interface:
+ sendPlaybackAction
+ sendPlaybackPosition
+ sendShuffleMode
+ sendRepeatState
+ addPlaybackInfoChangeListener
+ removePlaybackInfoChangeListener

[verification]
tested manually in chrome console
tct-mediacontroller-tizen-tests fails with 2 TC:
- MediaControllerServer_iconURI_attribute.html <- has to be modified,
  because attribute iconURI is no longer readonly
- MediaControllerServerInfo_iconURI_attribute.html <- has to be modified,
  because attribute iconURI is no longer readonly

Change-Id: I3b24e1e3d6bfee1ced8d24962a790ae9e71b445a
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
4 years ago[6.0][mediacontroller] add playback action enum, listeners to server pbInfo and chang... 13/217013/9
Dawid Juszczak [Thu, 31 Oct 2019 15:11:43 +0000 (16:11 +0100)]
[6.0][mediacontroller] add playback action enum, listeners to server pbInfo and change iconURI

[acr]
http://suprem.sec.samsung.net/jira/browse/TWDAPI-245

[description]
>> refactor_02 <<
+ change iconURI to NOT readonly
+ add listeners in serverPlaybackInfo
+ add playbackAction enum
+ add onplaybackactionrequest

[verification]
tested manually in chrome console
tct-mediacontroller-tizen-tests fails with 2 TC:
- MediaControllerServer_iconURI_attribute.html <- has to be modified,
  because attribute iconURI is no longer readonly
- MediaControllerServerInfo_iconURI_attribute.html <- has to be modified,
  because attribute iconURI is no longer readonly

Change-Id: I1a234adbab71be72ec6c24a7fec4e8b5d7fcc55c
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
4 years agoMerge "[6.0][mediacontroller] add new playback interfaces" into tizen
Piotr Kosko [Thu, 5 Dec 2019 15:53:34 +0000 (15:53 +0000)]
Merge "[6.0][mediacontroller] add new playback interfaces" into tizen

4 years agoMerge branch 'tizen_5.5' into tizen 38/219538/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 5 Dec 2019 15:40:03 +0000 (16:40 +0100)]
Merge branch 'tizen_5.5' into tizen

Change-Id: Iad45d3ae313f7966bca8f697f562411e0d6cfc2b

4 years agoMerge branch 'tizen_5.0' into tizen_5.5 37/219537/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 5 Dec 2019 15:33:44 +0000 (16:33 +0100)]
Merge branch 'tizen_5.0' into tizen_5.5

Change-Id: Idb060dbb650969c05e7ecdd193e551dc42cb070d

4 years agoMerge branch 'tizen_4.0' into tizen_5.0 36/219536/3
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 5 Dec 2019 14:18:12 +0000 (15:18 +0100)]
Merge branch 'tizen_4.0' into tizen_5.0

Change-Id: I6272ee91b469df02a70c0ddea192ef9cc46b0123

4 years ago[version] 2.39 34/219534/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 5 Dec 2019 14:10:34 +0000 (15:10 +0100)]
[version] 2.39

Change-Id: I06df52433c2f8c159d42ae7ad11e10531b13a60d

4 years ago[Code format] Fixed formatting issues 33/219533/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 5 Dec 2019 14:09:46 +0000 (15:09 +0100)]
[Code format] Fixed formatting issues

Change-Id: Ieb6000829e03777e709ecfa9e447185975828866

4 years ago[Code format] Fixed formating with auto-format tool 31/219531/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 5 Dec 2019 13:57:16 +0000 (14:57 +0100)]
[Code format] Fixed formating with auto-format tool

* added ignoring "src/google" directories in code_format script

Change-Id: If843a91d21bb558b8354c09e2832cb3d4934ea26

4 years ago[messaging] Get rid of FoldersDataCallback structure. 45/218745/7
Michal Michalski [Wed, 27 Nov 2019 15:13:10 +0000 (16:13 +0100)]
[messaging] Get rid of FoldersDataCallback structure.

[Verification] tct-messaging-*-tizen-tests 100% pass.

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

4 years ago[messaging] MessageStorageFindFolders simplified implementation. 73/218673/12
Michal Michalski [Wed, 4 Dec 2019 07:59:42 +0000 (08:59 +0100)]
[messaging] MessageStorageFindFolders simplified implementation.

+ reimplement MessageStorageFindFolders without using PostQueue
+ replace FoldersCallbackData with simpler FindFoldersTaskParams
+ improve code readability in other minor ways

[Verification] tct-messaging-*-tizen-tests 100% pass rate.

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

4 years ago[common] MessageStorageFindFolders simplified implementation. 42/219342/3
Michal Michalski [Wed, 4 Dec 2019 07:58:26 +0000 (08:58 +0100)]
[common] MessageStorageFindFolders simplified implementation.

+ add default constructor to PlatformResult
+ add tools::PostMessage overload for json message

[Verification] code compiles.

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

4 years agoMerge "[ham] Fixed sleep recorder, returned value" into tizen
Piotr Kosko [Mon, 2 Dec 2019 11:29:59 +0000 (11:29 +0000)]
Merge "[ham] Fixed sleep recorder, returned value" into tizen

4 years agoMerge "[ham] Fixed sleep recorder, returned value" into tizen_4.0
Piotr Kosko [Mon, 2 Dec 2019 11:21:50 +0000 (11:21 +0000)]
Merge "[ham] Fixed sleep recorder, returned value" into tizen_4.0

4 years ago[ham] Fixed sleep recorder, returned value 44/219144/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Wed, 27 Nov 2019 13:16:11 +0000 (14:16 +0100)]
[ham] Fixed sleep recorder, returned value

[Bug] there was missing conversion from numerical value from database to string value used in Web API

[Verification] TCT passrate 100% on wearable TW3.
Below code works when activity added manually to database.
var data = [];
date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
    query = {
        startTime: startTime/1000,
        endTime: endTime/1000,
        interval: 1440
    };
tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, (s) => console.log(data = s), (s) => console.log(s))

returns one of values of "ASLEEP", "AWAKE", or "UNKNOWN"

Change-Id: I86b6bead534638bafcb5abcb16512bb462c79374

4 years ago[ham] Fixed sleep recorder, returned value 43/219143/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Wed, 27 Nov 2019 13:16:11 +0000 (14:16 +0100)]
[ham] Fixed sleep recorder, returned value

[Bug] there was missing conversion from numerical value from database to string value used in Web API

[Verification] TCT passrate 100% on wearable TW3.
Below code works when activity added manually to database.
var data = [];
date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
    query = {
        startTime: startTime/1000,
        endTime: endTime/1000,
        interval: 1440
    };
tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, (s) => console.log(data = s), (s) => console.log(s))

returns one of values of "ASLEEP", "AWAKE", or "UNKNOWN"

Change-Id: I86b6bead534638bafcb5abcb16512bb462c79374

4 years ago[ham] Fixed sleep recorder, returned value 42/219142/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Wed, 27 Nov 2019 13:16:11 +0000 (14:16 +0100)]
[ham] Fixed sleep recorder, returned value

[Bug] there was missing conversion from numerical value from database to string value used in Web API

[Verification] TCT passrate 100% on wearable TW3.
Below code works when activity added manually to database.
var data = [];
date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
    query = {
        startTime: startTime/1000,
        endTime: endTime/1000,
        interval: 1440
    };
tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, (s) => console.log(data = s), (s) => console.log(s))

returns one of values of "ASLEEP", "AWAKE", or "UNKNOWN"

Change-Id: I86b6bead534638bafcb5abcb16512bb462c79374

4 years ago[ham] Fixed sleep recorder, returned value 41/219141/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Wed, 27 Nov 2019 13:16:11 +0000 (14:16 +0100)]
[ham] Fixed sleep recorder, returned value

[Bug] there was missing conversion from numerical value from database to string value used in Web API

[Verification] TCT passrate 100% on wearable TW3.
Below code works when activity added manually to database.
var data = [];
date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
    query = {
        startTime: startTime/1000,
        endTime: endTime/1000,
        interval: 1440
    };
tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, (s) => console.log(data = s), (s) => console.log(s))

returns one of values of "ASLEEP", "AWAKE", or "UNKNOWN"

Change-Id: I86b6bead534638bafcb5abcb16512bb462c79374

4 years ago[ham] Fixed sleep recorder, returned value 38/218738/5
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Wed, 27 Nov 2019 13:16:11 +0000 (14:16 +0100)]
[ham] Fixed sleep recorder, returned value

[Bug] there was missing conversion from numerical value from database to string value used in Web API

[Verification] TCT passrate 100% on wearable TW3.
Below code works when activity added manually to database.
var data = [];
date = new Date(), startTime = date.getTime(), endTime = date.setDate(date.getDate() + 1),
    query = {
        startTime: startTime/1000,
        endTime: endTime/1000,
        interval: 1440
    };
tizen.humanactivitymonitor.readRecorderData("SLEEP_MONITOR", query, (s) => console.log(data = s), (s) => console.log(s))

returns one of values of "ASLEEP", "AWAKE", or "UNKNOWN"

Change-Id: I86b6bead534638bafcb5abcb16512bb462c79374

4 years agoMerge "[MediaController] Fix removing invalid listener" into tizen_4.0
Piotr Kosko [Mon, 2 Dec 2019 07:21:30 +0000 (07:21 +0000)]
Merge "[MediaController] Fix removing invalid listener" into tizen_4.0

4 years ago[messaging] Remove unused code 30/212530/3
Pawel Wasowski [Thu, 22 Aug 2019 10:46:35 +0000 (12:46 +0200)]
[messaging] Remove unused code

Some class methods and fields were never used. This commit removes them.

[Verification] Code compiles

Change-Id: I978bc8e7ffc70f6ddb9c88ddb3dad33cdddd51ee
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
4 years agoMerge "[messaging] Fixed AttributeFilter for TO attribute." into tizen
Piotr Kosko [Tue, 26 Nov 2019 08:07:13 +0000 (08:07 +0000)]
Merge "[messaging] Fixed AttributeFilter for TO attribute." into tizen

4 years agoMerge "[HAM] Adding accumulative pedometer data to HumanActivityPedometerData" into...
Piotr Kosko [Tue, 26 Nov 2019 06:29:13 +0000 (06:29 +0000)]
Merge "[HAM] Adding accumulative pedometer data to HumanActivityPedometerData" into tizen

4 years agoMerge "[tizen] Remove unused _filter() methods." into tizen
Piotr Kosko [Fri, 22 Nov 2019 11:01:39 +0000 (11:01 +0000)]
Merge "[tizen] Remove unused _filter() methods." into tizen

4 years agoMerge "[tizen] Remove unused function." into tizen
Piotr Kosko [Fri, 22 Nov 2019 10:59:02 +0000 (10:59 +0000)]
Merge "[tizen] Remove unused function." into tizen

4 years agoMerge "[common] JsonFilter prototype implementation." into tizen
Piotr Kosko [Fri, 22 Nov 2019 10:58:15 +0000 (10:58 +0000)]
Merge "[common] JsonFilter prototype implementation." into tizen

4 years agoMerge branch 'tizen_5.5' into tizen 57/218357/1 accepted/tizen/unified/20191122.122403 submit/tizen/20191122.072959
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 21 Nov 2019 11:18:19 +0000 (12:18 +0100)]
Merge branch 'tizen_5.5' into tizen

Change-Id: I3a58e60aa1c56fc0716a54e38d9dead62621292e

4 years agoMerge branch 'tizen_5.0' into tizen_5.5 56/218356/1 tizen_5.5_tv accepted/tizen/5.5/unified/20191203.011405 submit/tizen_5.5/20191122.073018
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 21 Nov 2019 11:15:17 +0000 (12:15 +0100)]
Merge branch 'tizen_5.0' into tizen_5.5

Change-Id: I39e4601ffb169013301568e4b1631f1b5234664e

4 years ago[MediaController] Fix removing invalid listener 55/218355/1
Rafal Walczyna [Thu, 21 Nov 2019 08:31:42 +0000 (09:31 +0100)]
[MediaController] Fix removing invalid listener

CommandListener was removed instead of ChangeRequestPlaybackInfoListener.
It was impossible to add ChangeRequestPlaybackInfoListener again.

Verification: tct passrate 100%.
Tested in GoogleChrome console on TM1 and KantM2.

Change-Id: Iefec897b80c611421c9a7592df571ffe75588576
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years agoMerge branch 'tizen_4.0' into tizen_5.0 54/218354/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 21 Nov 2019 11:07:04 +0000 (12:07 +0100)]
Merge branch 'tizen_4.0' into tizen_5.0

Change-Id: I0e0154add6a286b1fb259a2d973210d3887c3a94

4 years agoMerge branch 'tizen_3.0' into tizen_4.0 53/218353/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 21 Nov 2019 11:01:36 +0000 (12:01 +0100)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: I19c718eb38545fda3bf0b49403e1cbd88960ec4f

4 years ago[version] 2.38 49/218349/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Thu, 21 Nov 2019 10:58:34 +0000 (11:58 +0100)]
[version] 2.38

Change-Id: Id74d1d21292bd36c33771009e5a6fac0bd50537b

4 years ago[MediaController] Fix removing invalid listener 48/218348/1
Rafal Walczyna [Thu, 21 Nov 2019 08:31:42 +0000 (09:31 +0100)]
[MediaController] Fix removing invalid listener

CommandListener was removed instead of ChangeRequestPlaybackInfoListener.
It was impossible to add ChangeRequestPlaybackInfoListener again.

Verification: tct passrate 100%.
Tested in GoogleChrome console on TM1 and KantM2.

Change-Id: Iefec897b80c611421c9a7592df571ffe75588576
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years ago[MediaController] Fix removing invalid listener 46/218346/1
Rafal Walczyna [Thu, 21 Nov 2019 10:46:10 +0000 (11:46 +0100)]
[MediaController] Fix removing invalid listener

CommandListener was removed instead of ChangeRequestPlaybackInfoListener.
It was impossible to add ChangeRequestPlaybackInfoListener again.

Verification: tct passrate 100%.
Tested in GoogleChrome console on TM1 and KantM2.

Change-Id: Iff0ea6026581b3649592ee5bde3bfb625ceb35e4
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years ago[MediaController] Fix removing invalid listener 43/218343/2
Rafal Walczyna [Thu, 21 Nov 2019 10:46:10 +0000 (11:46 +0100)]
[MediaController] Fix removing invalid listener

CommandListener was removed instead of ChangeRequestPlaybackInfoListener.
It was impossible to add ChangeRequestPlaybackInfoListener again.

Verification: tct passrate 100%.
Tested in GoogleChrome console on TM1 and KantM2.

Change-Id: Iff0ea6026581b3649592ee5bde3bfb625ceb35e4
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years ago[tizen] Remove unused _filter() methods. 01/217901/3
Michal Michalski [Fri, 15 Nov 2019 09:46:24 +0000 (10:46 +0100)]
[tizen] Remove unused _filter() methods.

AttributeFilter, AttributeRangeFilter and CompositeFilter
classes had undocumented _filter method which was not used
anywhere within WebAPI.

[Verification] grep.

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

4 years ago[tizen] Remove unused function. 97/217897/2
Michal Michalski [Fri, 15 Nov 2019 09:21:53 +0000 (10:21 +0100)]
[tizen] Remove unused function.

Function _is_tizen_filter() was not used anywhere in the API.

[Verification] grep

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

4 years ago[common] JsonFilter prototype implementation. 28/217828/2
Michal Michalski [Thu, 14 Nov 2019 16:54:50 +0000 (17:54 +0100)]
[common] JsonFilter prototype implementation.

In present WebAPI implementation, several modules implement their own
data filtering algorithms. This commit is an attempt to provide a common,
unified way to perform data filtering across entire API.

Design goal for this change was simplicity. I was not looking for ways
to optimize the performance, as this will require in-depth performance
testing in specific use cases.

[Verification] Unit tests for JsonFilter class has been implemented which validate
main logic.

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

4 years agoMerge "[messaging] Support new filtering options in findFolders (SMS/MMS)" into tizen
Piotr Kosko [Tue, 19 Nov 2019 10:27:15 +0000 (10:27 +0000)]
Merge "[messaging] Support new filtering options in findFolders (SMS/MMS)" into tizen

4 years agoMerge "[Tizen] Remove unused PERMISSION_DENIED_ERR from code" into tizen
Piotr Kosko [Tue, 19 Nov 2019 10:12:29 +0000 (10:12 +0000)]
Merge "[Tizen] Remove unused PERMISSION_DENIED_ERR from code" into tizen

4 years agoMerge "[Tizen] Remove unused DATABASE_ERROR from code" into tizen
Piotr Kosko [Tue, 19 Nov 2019 10:10:15 +0000 (10:10 +0000)]
Merge "[Tizen] Remove unused DATABASE_ERROR from code" into tizen

4 years ago[Tizen] Remove unused PERMISSION_DENIED_ERR from code 88/217988/1
Lukasz Bardeli [Mon, 18 Nov 2019 08:48:25 +0000 (09:48 +0100)]
[Tizen] Remove unused PERMISSION_DENIED_ERR from code

[Verification] Code compiles without error

Change-Id: Ib2a7bc19d493c7498ec9a03f11d6835d17fc8194
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
4 years ago[messaging] Support new filtering options in findFolders (email) 66/211866/3
Pawel Wasowski [Tue, 5 Mar 2019 16:38:11 +0000 (17:38 +0100)]
[messaging] Support new filtering options in findFolders (email)

Related ACR: TWDAPI-205

[Verification] tct-messaging-email-tests: pass rate
did not change after applying the commit

This commit has already been reviewed:
https://review.tizen.org/gerrit/#/c/platform/core/api/webapi-plugins/+/200909/
Change-Id of the original change was:
I911d1631d879fd805367f0837eec03e004b7167d

Change-Id: I75d057ba1ad12c760b455e040c41f0e143941e48
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
4 years ago[messaging] Support new filtering options in findFolders (SMS/MMS) 67/211867/3
Pawel Wasowski [Wed, 6 Mar 2019 17:11:57 +0000 (18:11 +0100)]
[messaging] Support new filtering options in findFolders (SMS/MMS)

Related ACR: TWDAPI-205

[Verification] tct-messaging-sms-tests & tct-messaging-mms-tests:
pass rate did not change after applying the commit

This commit has already been reviewed:
https://review.tizen.org/gerrit/#/c/platform/core/api/webapi-plugins/+/200975/
Change-Id of the original change was:
I8cea3b5cb0a0a19a827446c5bb34bce0e2710d7e

Change-Id: I88e7720dcbc6dd500d8bb27ae8aca4cd5d429655
Signed-off-by: Pawel Wasowski <p.wasowski2@samsung.com>
4 years ago[Tizen] Remove unused DATABASE_ERROR from code 04/217904/1
Lukasz Bardeli [Fri, 15 Nov 2019 11:38:30 +0000 (12:38 +0100)]
[Tizen] Remove unused DATABASE_ERROR from code

[Verification] Code compiles without error

Change-Id: Ic79afa711a55c9a50790242c5727a9a68f107c4f
Signed-off-by: Lukasz Bardeli <l.bardeli@samsung.com>
4 years ago[HAM] Adding accumulative pedometer data to HumanActivityPedometerData 19/217819/1
Arkadiusz Pietraszek [Thu, 14 Nov 2019 10:57:04 +0000 (11:57 +0100)]
[HAM] Adding accumulative pedometer data to HumanActivityPedometerData

[acr]
http://suprem.sec.samsung.net/jira/browse/TWDAPI-251

[verification]
100% tct pass rate.
Correctness of added data tested manually from console.

Change-Id: Ifad719572f4a20cef4f15a21a2e3e1bd918d1cce
Signed-off-by: Arkadiusz Pietraszek <a.pietraszek@partner.samsung.com>
4 years ago[6.0][mediacontroller] add new playback interfaces 12/217012/10
Dawid Juszczak [Wed, 30 Oct 2019 15:39:36 +0000 (16:39 +0100)]
[6.0][mediacontroller] add new playback interfaces

[acr]
http://suprem.sec.samsung.net/jira/browse/TWDAPI-249

[description]
>> refactor_01 <<
add new interfaces:
+ MediaControllerServerPlaybackInfo
+ MediaControllerServerInfoPlaybackInfo

[verification]
tct-mediacontroller-tizen-tests 100% PASS
tested manually in chrome console

Change-Id: I783b3912e0734020d9c715b36ad668e78f0e4404
Signed-off-by: Dawid Juszczak <d.juszczak@samsung.com>
4 years ago[messaging] Fixed AttributeFilter for TO attribute. 92/217692/1
Michal Michalski [Tue, 12 Nov 2019 12:57:27 +0000 (13:57 +0100)]
[messaging] Fixed AttributeFilter for TO attribute.

AttributeFilter in case of TO attribute accepts an array
of recipients instead of a single string, as was previously
incorrectly assumed in the implementation.

[Verification]
tct-messaging-email-tizen-tests 100%
tct-messaging-sms-tizen-tests 100%
tct-messaging-mms-tizen-tests 100%

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

4 years ago[messaging] Remove unnecessary assignment. 25/217525/1
Michal Michalski [Tue, 12 Nov 2019 07:31:21 +0000 (08:31 +0100)]
[messaging] Remove unnecessary assignment.

Related to SDL-83.

Change-Id: Ida4ef88c145e7d4a4e1a7cec5ba8f73b5a4b90c1
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
4 years ago[messaging] Autoformat changes in messaging. 91/217691/1
Michal Michalski [Fri, 8 Nov 2019 10:07:13 +0000 (11:07 +0100)]
[messaging] Autoformat changes in messaging.

Change-Id: I84cf3cc8c1a5b6d32c3d1b6f8f9eadc739960be8
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
4 years ago[messaging] Remove unused class MessageInit. 21/217221/2
Michal Michalski [Thu, 7 Nov 2019 14:48:03 +0000 (15:48 +0100)]
[messaging] Remove unused class MessageInit.

[Verification] tct-messaging-*-tizen-tests on tm1

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

4 years ago[messaging] Full names for Property' properties. 20/217220/1
Michal Michalski [Thu, 7 Nov 2019 10:23:03 +0000 (11:23 +0100)]
[messaging] Full names for Property' properties.

Change-Id: I3ab213ba72f379e9870a7b53b8f7c3ff021b798c
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
4 years ago[messaging] Remove useless comments. 19/217219/1
Michal Michalski [Thu, 7 Nov 2019 10:17:53 +0000 (11:17 +0100)]
[messaging] Remove useless comments.

Change-Id: I3b74b456b2a32a51fce8962c10edd60c1421749f
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
4 years ago[messaging] Remove unused throwException() function. 18/217218/1
Michal Michalski [Thu, 7 Nov 2019 10:13:46 +0000 (11:13 +0100)]
[messaging] Remove unused throwException() function.

Change-Id: Ica78a9bb1d2fc04576638262dd7cf9a7d82b64f8
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
4 years agoMerge branch 'tizen_5.5' into tizen 28/217028/1 accepted/tizen/unified/20191106.124625 submit/tizen/20191106.103536
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Tue, 5 Nov 2019 12:07:07 +0000 (13:07 +0100)]
Merge branch 'tizen_5.5' into tizen

Change-Id: Ib997566539925f328fd3475d0cdfeff85287e394

4 years agoMerge branch 'tizen_5.0' into tizen_5.5 27/217027/1 accepted/tizen/5.5/unified/20191106.124827 submit/tizen_5.5/20191105.125113
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Tue, 5 Nov 2019 11:59:41 +0000 (12:59 +0100)]
Merge branch 'tizen_5.0' into tizen_5.5

Change-Id: Idf6d2c38e14c84cdc16f79e33f2055f4e490e735

4 years agoMerge branch 'tizen_4.0' into tizen_5.0 25/217025/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Tue, 5 Nov 2019 11:42:32 +0000 (12:42 +0100)]
Merge branch 'tizen_4.0' into tizen_5.0

Change-Id: I2b03c54dc49d3de0aafbf08bd5f037ce97ecd2ec

4 years agoMerge branch 'tizen_3.0' into tizen_4.0 11/217011/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Tue, 5 Nov 2019 10:26:43 +0000 (11:26 +0100)]
Merge branch 'tizen_3.0' into tizen_4.0

Change-Id: Icba6eb40bb40a300befb71d01aa07320ea68b069

4 years ago[version] 2.37 06/217006/1
Piotr Kosko/Native/Web API (PLT) /SRPOL/Engineer/Samsung Electronics [Tue, 5 Nov 2019 10:10:03 +0000 (11:10 +0100)]
[version] 2.37

Change-Id: Ib1de6d53a704c6321d70c5202b5a5fcc3b055ead

4 years agoMerge "[filesystem] Fix getAllStorages" into tizen
Piotr Kosko [Tue, 5 Nov 2019 09:34:28 +0000 (09:34 +0000)]
Merge "[filesystem] Fix getAllStorages" into tizen

4 years ago[filesystem] Fix getAllStorages 96/216996/2
Rafal Walczyna [Tue, 29 Oct 2019 12:58:14 +0000 (13:58 +0100)]
[filesystem] Fix getAllStorages

Fixed bug which causes to show duplicated values of internal
and external storages

[verification] Filesystem and Archive tct - 100% pass.

Change-Id: Ic087583a906eecfa040d97cb903f4c99838c6591
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years ago[filesystem] Fix getAllStorages 99/216999/1
Rafal Walczyna [Tue, 29 Oct 2019 12:58:14 +0000 (13:58 +0100)]
[filesystem] Fix getAllStorages

Fixed bug which causes to show duplicated values of internal
and external storages

[verification] Filesystem and Archive tct - 100% pass.

Change-Id: Ic087583a906eecfa040d97cb903f4c99838c6591
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years ago[filesystem] Fix getAllStorages 98/216998/1
Rafal Walczyna [Tue, 29 Oct 2019 12:58:14 +0000 (13:58 +0100)]
[filesystem] Fix getAllStorages

Fixed bug which causes to show duplicated values of internal
and external storages

[verification] Filesystem and Archive tct - 100% pass.

Change-Id: Ic087583a906eecfa040d97cb903f4c99838c6591
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years ago[filesystem] Fix getAllStorages 97/216997/1
Rafal Walczyna [Tue, 29 Oct 2019 12:58:14 +0000 (13:58 +0100)]
[filesystem] Fix getAllStorages

Fixed bug which causes to show duplicated values of internal
and external storages

[verification] Filesystem and Archive tct - 100% pass.

Change-Id: Ic087583a906eecfa040d97cb903f4c99838c6591
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years agoMerge "[common] Check if external storage is supported." into tizen
Piotr Kosko [Tue, 5 Nov 2019 09:25:26 +0000 (09:25 +0000)]
Merge "[common] Check if external storage is supported." into tizen

4 years ago[common] Check if external storage is supported. 02/216902/3
Michal Michalski [Mon, 4 Nov 2019 16:19:47 +0000 (17:19 +0100)]
[common] Check if external storage is supported.

If external.storage feature is not supported on the device,
we shouldn't try to fetch external storage devices list.

[Verification]
On mobile devices external storages are fetched.
On wearable devices only internal storages are returned.

+ tct-filesystem-tizen-tests 100% pass rate (mobile, wearable)

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

4 years ago[mergejs] Restore disabled js minification. 03/216903/2
Michal Michalski [Mon, 4 Nov 2019 18:04:22 +0000 (19:04 +0100)]
[mergejs] Restore disabled js minification.

My previous change in mergejs.py and generate_api.py scripts
accidentally disabled javascript source minification, which resulted
in larger rpm packages sizes. This commit enables the minification.

[Verification] Packages contain minified sources.

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

4 years ago[filesystem] Fix getAllStorages 94/216894/1
Rafal Walczyna [Tue, 29 Oct 2019 12:58:14 +0000 (13:58 +0100)]
[filesystem] Fix getAllStorages

Fixed bug which causes to show duplicated values of internal
and external storages

[verification] Filesystem and Archive tct - 100% pass.

Change-Id: Ic087583a906eecfa040d97cb903f4c99838c6591
Signed-off-by: Rafal Walczyna <r.walczyna@samsung.com>
4 years agoMerge "[common] Simplify instance methods registration (5)" into tizen
Piotr Kosko [Thu, 31 Oct 2019 10:55:00 +0000 (10:55 +0000)]
Merge "[common] Simplify instance methods registration (5)" into tizen

4 years agoMerge "[common] Simplify instance methods registration (4)" into tizen
Piotr Kosko [Thu, 31 Oct 2019 10:42:27 +0000 (10:42 +0000)]
Merge "[common] Simplify instance methods registration (4)" into tizen

4 years agoMerge "[mediacontroller] Register Custom Events methods." into tizen
Piotr Kosko [Thu, 31 Oct 2019 10:36:51 +0000 (10:36 +0000)]
Merge "[mediacontroller] Register Custom Events methods." into tizen

4 years ago[common] Simplify instance methods registration (5) 89/216689/10
Michal Michalski [Wed, 30 Oct 2019 17:14:54 +0000 (18:14 +0100)]
[common] Simplify instance methods registration (5)

+ Macros REGISTER_(A)SYNC have been replaced with new macro
REGISTER_METHOD, which takes only the method name.
The string parameter is now created from the method name.

[Verification]
 + tct-sensor-tizen-tests 100% pass (mobile)
+ tct-sound-tizen-tests 100% pass (mobile)
+ tct-systeminfo-tizen-tests 100% pass (mobile)
+ tct-systemsetting-tizen-tests 100% pass (mobile)
+ tct-time-tizen-tests 100% pass (mobile)
+ !!! utils module has no tests !!!
+ tct-voicecontrol-tizen-tests 100% pass (mobile)
+ tct-widgetservice-tizen-tests 100% pass (tw3)

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

4 years ago[mediacontroller] Register Custom Events methods. 88/216688/1
Michal Michalski [Wed, 30 Oct 2019 16:56:00 +0000 (17:56 +0100)]
[mediacontroller] Register Custom Events methods.

Due to the conflict with recent refactoring efforts,
all MediaControllerInstance methods related to the
custom server events feature have not been registered
and thus inaccessible from JS API.

Recently TCT tests for this feature have been added,
uncovering this issue. This commit fixes the problem.

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

[Verification]

tct-mediacontroller-tizen-tests 100% pass rate
including custom events test cases.

Change-Id: I0a15848e1299ad8a07f6ff4e96d4062a69351026
Signed-off-by: Michal Michalski <m.michalski2@partner.samsung.com>
4 years ago[common] Simplify instance methods registration (4) 71/216671/6
Michal Michalski [Wed, 30 Oct 2019 11:28:49 +0000 (12:28 +0100)]
[common] Simplify instance methods registration (4)

+ Macros REGISTER_(A)SYNC have been replaced with new macro
REGISTER_METHOD, which takes only the method name.
The string parameter is now created from the method name.

[Verification] + tct-notification-tizen-tests 100% pass (mobile)
+ tct-package-tizen-tests 100% pass (mobile)
+ tct-playerutil-tizen-tests 100% pass (mobile)
+ tct-power-tizen-tests 100% pass (mobile)
+ tct-privacyprivilege-tizen-tests 100% pass (mobile)
+ tct-preference-tizen-tests 100% pass (mobile)
+ tct-push-tizen-tests 100% pass (mobile)
+ tct-fmradio-tizen-tests 100% pass (mobile)
+ tct-secureelement-tizen-tests 100% pass (mobile)

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

4 years ago[common] Simplify instance methods registration (3) 52/216552/9
Michal Michalski [Mon, 28 Oct 2019 12:53:26 +0000 (13:53 +0100)]
[common] Simplify instance methods registration (3)

+ Macros REGISTER_(A)SYNC have been replaced with new macro
REGISTER_METHOD, which takes only the method name.
The string parameter is now created from the method name.

+ Fixed SVACE detected missing break at the end of the case
in iotcon_instance.cc:1317

+ removed declaration-only method from NFCInstance class.

[Verification]
+ tct-iotcon-tizen-tests 100% pass rate (mobile)
+ tct-keymanager-tizen-tests 100% pass rate (mobile)
+ tct-mediakey-tizen-tests 100% pass rate (mobile)
+ tct-messageport-tizen-tests 100% pass rate (mobile)
+ tct-networkbearerselection-tizen-tests (mobile)

+ tct-messaging-tizen-tests (mobile SMS auto)
+ tct-nfc-tizen-tests (mobile, auto) 98% pass rate
    3 tests failed: NFCAdapter_setPreferredApp
    Even without this change.

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