src/libhomescreen.git
5 years agoFix not to release json_object on Event(Reply) 95/15795/2
Kazumasa Mitsunari [Thu, 26 Jul 2018 10:26:46 +0000 (19:26 +0900)]
Fix not to release json_object on Event(Reply)

libafbwsc releases json_object on behalf of application.
Then calling json_object in this library may cause
double free, so fix it.

Bug-AGL: SPEC-1471

Change-Id: I1bb3109c80891718f7bfd69e67688c1c880e95de
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
6 years agoMerge sandbox source code to master 15/12315/2 5.99.1 5.99.2 flounder/5.99.1 flounder/5.99.2 flounder_5.99.1 flounder_5.99.2
zheng_wenlong [Tue, 5 Dec 2017 03:46:31 +0000 (12:46 +0900)]
Merge sandbox source code to master

    Modify libwindowmanager's requestSurface api.
    Change failed log to HMI_ERROR.
    Delete global variable gWindow.
    Delete split window code.

Change-Id: I83df68f2ae3d34d7589370df4010f5b297662f69
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoSet default debug level to error 67/11767/2
zheng_wenlong [Thu, 9 Nov 2017 04:05:19 +0000 (13:05 +0900)]
Set default debug level to error

    Default enable HMI_ERROR output.
    Remove afb-binding.h and add necessary header files.

    [Patch Set 2]
    Change LOG_LEVEL_MAX value equal LOG_LEVEL_DEBUG.

Change-Id: Ie8c4902f13b600c2b3f5c7d2e924bfa3a22dfc52
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoRemove afb-binding.h inclusion 89/11589/3
Yuta Doi [Fri, 27 Oct 2017 13:35:51 +0000 (22:35 +0900)]
Remove afb-binding.h inclusion

In libhomescreen, afb-binding.h inclusion occurres a lots of compile error.
Only use afb/afb-wsj1.h and afb/afb-ws-client.h.

Change-Id: I8f606206cf0f833c765c85eb8e91aab008dac116
Signed-off-by: Yuta Doi <yuta-d@witz-inc.co.jp>
6 years agoAdd libhomescreen.hpp to install destination 63/11563/5
zheng_wenlong [Thu, 26 Oct 2017 09:06:40 +0000 (18:06 +0900)]
Add libhomescreen.hpp to install destination

    Applications need include libhomescreen.hpp,
    so add it into install destination.

BUG-AGL: SPEC-991
Change-Id: I7f1640a847b3ab57d0e7e6e1ea8ce4c44a0806eb
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoAdd debug message macros controlled by environment variable 61/11561/6
zheng_wenlong [Thu, 26 Oct 2017 08:56:33 +0000 (17:56 +0900)]
Add debug message macros controlled by environment variable

    Add a HMI_DEBUG macro to print debug messages.
    It is controlled by the USE_HMI_DEBUG environment variable.

BUG-AGL: SPEC-998
Change-Id: Ic1a3c8267e736def4456204f14bdac38ad105fe8
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoUse correct windowmanager api calling sequence 57/11557/6
zheng_wenlong [Thu, 26 Oct 2017 08:10:31 +0000 (17:10 +0900)]
Use correct windowmanager api calling sequence

    For an application which doesn't use qt, but wants to use the windowmanager-service,
    the application needs to call the windowmanager api in the correct sequence.
    Change this sample application to use the correct sequence.

    Rule1:
        Between activeSurface and syncDraw, application should not
        draw anything.
    Rule2:
        An application can change the window size when it received a syncDraw event,
        it does not need to do it in ivi_surface configuration.

    [Patch Sets 2]
    Miss a drawing control flag code, fix it.

BUG-AGL: SPEC-988
Change-Id: I913d80653c864b5c1039da9a15b616666bdde6e3
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoUse new OnScreenReply API in libhomescreen 53/11453/8
zheng_wenlong [Mon, 23 Oct 2017 05:48:42 +0000 (14:48 +0900)]
Use new OnScreenReply API in libhomescreen

    As homescreen-service added the OnScreenReply function,
    we can add the OnScreenReply to libhomescreen
    so applications can use this api easily.

BUG-AGL: SPEC-985
Change-Id: I8038fea7471d1ae0777dcbff19e45c38fb6f614f
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoModify function argument from char to json 49/11449/9
zheng_wenlong [Mon, 23 Oct 2017 05:46:17 +0000 (14:46 +0900)]
Modify function argument from char to json

    Change libhomescreen event api from char to json.
    Also modify samples who use this.

BUG-AGL: SPEC-992
Change-Id: Id3986d413f9494019f6b175488dd73de226ba020
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoRemove the redundant thread loop 47/11447/8
zheng_wenlong [Mon, 23 Oct 2017 05:42:50 +0000 (14:42 +0900)]
Remove the redundant thread loop

    Because libhomescreen already has a thread to receive events,
    we can remove the thread loop in libhomescreen.
    Related Commit:
        https://gerrit.automotivelinux.org/gerrit/#/c/11403/

BUG-AGL: SPEC-989
Change-Id: I32d65efcf32f3395719837339659ff94b3e64889
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoMove sample from agl-service-homescreen-2017 45/11445/6
zheng_wenlong [Mon, 23 Oct 2017 05:38:56 +0000 (14:38 +0900)]
Move sample from agl-service-homescreen-2017

    This sample is using libhomescren with homescreen sevice,
    So better move inside of libhomescreen.
    Related Commit:
        https://gerrit.automotivelinux.org/gerrit/#/c/11429/
    [Patch Sets 2]
    Rebased to c0e6b4d9496eacabeffc4115fad7c1a288de60c8

    [Patch Sets 3]
    Delete ivi-application-client-protocol.h and some trailing whitespace.

    [Patch Sets 4]
    Change temlate/README to README.md

    [Patch Sets 5]
    Rebased to 572023336d9573d3d5636d7e61a8dd3ed8878b0d

    [Patch Sets 6]
    Add LICENSE.APL-2.0 and LICENSE.MIT to sample.
    Modify config.xml license to APL 2.0 + MIT.

BUG-AGL: SPEC-988
Change-Id: Id9a1a2401a9a0a42442ce84025213036a4fccd78
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoAdd debug message control by environment variable 43/11443/5
zheng_wenlong [Mon, 23 Oct 2017 05:35:58 +0000 (14:35 +0900)]
Add debug message control by environment variable

    Add HMI_DEBUG to print debug message,
    It is controlled by the USE_HMI_DEBUG environment variable.

BUG-AGL: SPEC-998
Change-Id: I4b948f3af0d3a1b5e8707518e5b83a1029df3667
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
6 years agoSplit libhomescreen from agl-homescreen-service-2017
zheng_wenlong [Mon, 23 Oct 2017 05:29:20 +0000 (14:29 +0900)]
Split libhomescreen from agl-homescreen-service-2017

    Split libhomescreen library from agl-homescreen-service-2017.
    Relative commit:
        https://gerrit.automotivelinux.org/gerrit/#/c/11413/

Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
7 years agoAdd .mailmap file to clean up stats 3.99.1 4.99.1 4.99.2 4.99.3 dab/3.99.1 dab_3.99.1 eel/4.99.1 eel/4.99.2 eel/4.99.3 eel_4.99.1 eel_4.99.2 eel_4.99.3
Bocklage, Jens [Tue, 14 Feb 2017 18:37:49 +0000 (19:37 +0100)]
Add .mailmap file to clean up stats

Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
7 years agoAdd LICENSE file
Bocklage, Jens [Thu, 19 Jan 2017 15:32:03 +0000 (16:32 +0100)]
Add LICENSE file

Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
7 years agoInitial source commit
Bocklage, Jens [Wed, 18 Jan 2017 14:29:11 +0000 (15:29 +0100)]
Initial source commit

Taken from https://gerrit.automotivelinux.org/gerrit/p/staging/HomeScreen.git

Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
7 years agoAdd .gitignore and .gitreview
Bocklage, Jens [Tue, 17 Jan 2017 16:21:52 +0000 (17:21 +0100)]
Add .gitignore and .gitreview

Signed-off-by: Bocklage, Jens <Jens_Bocklage@mentor.com>
7 years agoInitial empty repository
Jan-Simon Moeller [Mon, 16 Jan 2017 15:16:28 +0000 (15:16 +0000)]
Initial empty repository