Uploaded image for project: ' AGL Development'
  1. AGL Development
  2. SPEC-2035

Life Cycle Management of Apps/Activity/GUI

XMLWordPrintable

    • Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Icon: Major Major
    • None
    • None
    • None
    • None

      Sample implementation for CES2019 Demo (#2 VR) is available on sandbox.

      Repositories

      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)

      1. Build xdg-launcher of sandbox/ruke47/lifecycle
             $ mkdir build
             $ cd build
             $ cmake ..
             $ make
             $ make widget 
      1. Copy simpleegl.wgt and/or lifecycle.wgt to target board
      2. Install simpleegl.wgt and/or lifecycle.wgt
      3. Launch SimpleEGL or LifeCycle, then launch HVAC
      4. 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)

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            ruke47 Tadao Tanikawa
            ruke47 Tadao Tanikawa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: