src/libhomescreen.git
4 years agoadd event sandbox/wangzhiqiang/als2019
wang_zhiqiang [Tue, 25 Jun 2019 03:03:17 +0000 (11:03 +0800)]
add event

Change-Id: Ib54394d6cb9debc6077eefceea37a570cff65525

4 years agofix issue
wang_zhiqiang [Tue, 28 May 2019 06:24:24 +0000 (14:24 +0800)]
fix issue

Change-Id: Ib42eccdb0585eceebe89013d8e78d2d8aac57ab8

4 years agomodify register/update shortcut
wang_zhiqiang [Tue, 28 May 2019 03:04:24 +0000 (11:04 +0800)]
modify register/update shortcut

Change-Id: I235a9fb234f3e98eb3342948f7f6cb336d9ae1d8

4 years agoadd register/update shortcut
wang_zhiqiang [Sat, 25 May 2019 02:47:36 +0000 (10:47 +0800)]
add register/update shortcut

Change-Id: If0f4095ce405fb89831cec7e18dfa63aec78717b

4 years agochange seq
wang_zhiqiang [Mon, 20 May 2019 04:56:06 +0000 (12:56 +0800)]
change seq

Change-Id: I2526fd304c96773c422ef42f7d54659943f450fe

4 years agomodify simple-egl
wang_zhiqiang [Thu, 16 May 2019 08:41:53 +0000 (16:41 +0800)]
modify simple-egl

Change-Id: I9cc08c5cb39774c790f4856958b71b55cb8949a2

4 years agomodify subscribe opportunity
wang_zhiqiang [Thu, 16 May 2019 06:20:09 +0000 (14:20 +0800)]
modify subscribe opportunity

Change-Id: I47ff97e4eab37e4b942c1721560f8b381ce14592

5 years agoStart app and get runnables list by homescreen 15/20215/2
wang_zhiqiang [Wed, 20 Feb 2019 05:42:43 +0000 (13:42 +0800)]
Start app and get runnables list by homescreen

1.add getRunnables interface.
2.add Event_AppListChanged event.
3.delete area defination in libhomescreen.hpp

Bug-AGL: SPEC-2188

Change-Id: I8344067ecadc09e917610eb0a6e191924106f012
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
5 years agoImprove safety of link to event loop 27/19627/3 sandbox/knimitz/rev_19627 7.90.0 halibut/7.90.0 halibut_7.90.0
José Bollo [Sat, 5 Jan 2019 20:22:20 +0000 (21:22 +0100)]
Improve safety of link to event loop

Instead of using the default one that depends on the
current thread and that might be shared with other
items, use an explicit new one running in a dedicated
thread.

Bug-AGL: SPEC-2130

Change-Id: Ie609d19157a5dcaf6e5fa3896dc91d88ba5f214a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
5 years agoadd new features in homescreen-service and homescreen 31/17931/3 6.99.1 6.99.2 6.99.3 6.99.4 guppy/6.99.1 guppy/6.99.2 guppy/6.99.3 guppy/6.99.4 guppy_6.99.1 guppy_6.99.2 guppy_6.99.3 guppy_6.99.4
wang_zhiqiang [Wed, 14 Nov 2018 03:14:04 +0000 (11:14 +0800)]
add new features in homescreen-service and homescreen

homescreen-service: add five verbs.
1.showWindow: instead of tap_shortcut and show onscreen.
2.hideWindow: used when want to hide onscreen.
3.replyShowWindow: used when post onscreen reply information to application.
4.showNotification: used by application who want to display notification on homescreen top area.
5.showInformation: used by application who want to display information on homescreen botton area.

homescreen:
1.add fullscreen transfer button.
2.display notification and information.

Bug-AGL: SPEC-1931

Change-Id: Ie0753fe0656282b1ff8c04dcef625f2a4154edde
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
5 years agouse appid instead of appname in "tap_shortcut" 35/17735/1
wang_zhiqiang [Tue, 6 Nov 2018 02:17:27 +0000 (10:17 +0800)]
use appid instead of appname in "tap_shortcut"

Now In homescreen-service used application_id to identify
different application, so use appid instead of appname
in "tap_shortcut" parameter.

Bug-AGL: SPEC-1764

Change-Id: I46af214cf25108ca0c2983a54547ab1f64f9ab59
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
5 years agoemit event to one application 11/17011/4
wang_zhiqiang [Tue, 9 Oct 2018 02:11:34 +0000 (10:11 +0800)]
emit event to one application

  changed agl-service-homescreen and libhomescreen to make
  agl-service-homescreen emit event to one application only.

BUG-AGL: SPEC-1764

Change-Id: If595c6043b559d64dff62bd826482c651e9ae808
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
5 years agoRemove compile warning 75/16675/1 6.90.0 guppy/6.90.0 guppy_6.90.0
wang_zhiqiang [Tue, 18 Sep 2018 08:48:41 +0000 (16:48 +0800)]
Remove compile warning

change from deprecated function 'json_object_object_get' to 'json_object_object_get_ex'.

Change-Id: I3ae6f1e39d1f05033568662bff9a2a35e2da5879
Signed-off-by: wang_zhiqiang <wang_zhiqiang@dl.cn.nexty-ele.com>
5 years agoUpdate sample code using simple libwindowmanager API 53/16153/2 5.99.5 5.99.6 flounder/5.99.5 flounder/5.99.6 flounder_5.99.5 flounder_5.99.6
Kazumasa Mitsunari [Thu, 30 Aug 2018 11:35:44 +0000 (20:35 +0900)]
Update sample code using simple libwindowmanager API

Use simple APIs of libwindowmanager.

Related commit:
https://gerrit.automotivelinux.org/gerrit/#/c/16109/

Change-Id: I58e23cb999d128e157379592040922f924ffd9f3
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
5 years agoRevert "Use appid between homescreen-service and apps" 91/16291/2 5.99.4 flounder/5.99.4 flounder_5.99.4
Tadao Tanikawa [Fri, 24 Aug 2018 04:42:40 +0000 (04:42 +0000)]
Revert "Use appid between homescreen-service and apps"

This reverts commit 58d5aa69c638b5e6d59f858516385e01fe248031.

Bug-AGL: SPEC-1685

Change-Id: I166edba9dcc41a7f2e5d9c7a9a6bd75216a27be8
Signed-off-by: Tadao Tanikawa <tanikawa.tadao@jp.panasonic.com>
5 years agoUse appid between homescreen-service and apps 11/16011/3 5.99.3 flounder/5.99.3 flounder_5.99.3
zheng_wenlong [Mon, 6 Aug 2018 03:00:28 +0000 (12:00 +0900)]
Use appid between homescreen-service and apps

    Use appid between hss and apps, and check event destination in libhomescreen.
    So these is no need compare code when recived Event_TapShortcut Event.

    [Patch Sets 2]
    Make a copy of the string returned by getenv.

BUG-AGL: SPEC-1645

Change-Id: I042015ee92c4c142418b1ac15d51a9408e219757
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
Signed-off-by: Scott Murray <scott.murray@konsulko.com>
5 years agoFix make widget bug for sample source 49/15849/1 sandbox/ruke47/flounder_RPi3
zheng_wenlong [Mon, 30 Jul 2018 03:17:52 +0000 (12:17 +0900)]
Fix make widget bug for sample source

    There is a install error for sample code,
    because of missing with mkdir root/bin.

Change-Id: Ia168a6b59213c7a83f36486bbe0b3f3ffc928ec9
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
5 years agoFix problem when pointer is nullptr. 47/15847/1
zheng_wenlong [Mon, 30 Jul 2018 01:31:58 +0000 (10:31 +0900)]
Fix problem when pointer is nullptr.

    When event_only pointer is nullptr,
    print out a warning log and return.

Change-Id: I1115cc1d17a1cbfa4b9a2cdee57fe56069a3fe81
Signed-off-by: zheng_wenlong <wenlong_zheng@nexty-ele.com>
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