-
New Feature
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
None
-
None
Sample implementation for CES2019 Demo (#2 VR) is available on sandbox.
Repositories
- Window Manager (Must be updated)
sandbox/ruke47/lifecycle
- LibWindowManager (Sample implementation of C++ API)
sandbox/ruke47/lifecycle
- Runxdg (Sample implementation of using API)
sandbox/ruke47/lifecycle
To run runxdg on GG, this patch is also necessary.API
Sample implementation extend Window Manager API as POI of Life Cycle Management(LCM) API for short term solution. (For long term, LCM should become independent service.) Following the brief description of API.
API: registerActivityObserver { "target": $appid } unregisterActivityObserver { "target": $appid } getActivityStatus { "target" : $appid } reply { "response": { "api": "getActivityStatus", "target": $appid, "state": $activity_status } Event: statusChanged { "jtype": "afb-event", "event": "windowmanager/statusChanged", "data": { "state": "CREATED|DESTROYED|STARTED|STOPPED|FOREGROUND|BACKGROUND", "target": $appid } }
How to try new API using runxdg (example wgt: SimpleEGL and LifeCycle)
- Build xdg-launcher of sandbox/ruke47/lifecycle
$ mkdir build $ cd build $ cmake .. $ make $ make widget
- Copy simpleegl.wgt and/or lifecycle.wgt to target board
- Install simpleegl.wgt and/or lifecycle.wgt
- Launch SimpleEGL or LifeCycle, then launch HVAC
- You can see following logs
$ journalctl | grep simpleegl | grep -i status Dec 09 13:01:16 m3ulcb afbd-simpleegl@0.1[4113]: DEBUG: REPLY:json { "response": { "api": "getActivityStatus", "target": "hvac", "state": "NOTEXISTS" }, "jtype": "afb-reply", "request": { "status": "success", "info": "success" } } ... Dec 09 13:01:22 m3ulcb afbd-simpleegl@0.1[4113]: DEBUG: Get Event_StatusChanged(CREATED, hvac) Dec 09 13:01:22 m3ulcb afbd-simpleegl@0.1[4113]: DEBUG: REPLY:json { "response": { "api": "getActivityStatus", "target": "hvac", "state": "CREATED" }, "jtype": "afb-reply", "request": { "status": "success", "info": "success" } } ... Dec 09 13:01:22 m3ulcb afbd-simpleegl@0.1[4113]: DEBUG: Get Event_StatusChanged(STARTED, hvac) Dec 09 13:01:22 m3ulcb afbd-simpleegl@0.1[4113]: DEBUG: Get Event_StatusChanged(FOREGROUND, hvac) Dec 09 13:01:24 m3ulcb afbd-simpleegl@0.1[4113]: DEBUG: Get Event_StatusChanged(BACKGROUND, hvac)