From 4519860f6b652ee0d9a742746e658dd2a8db7012 Mon Sep 17 00:00:00 2001 From: Marius Vlad Date: Wed, 22 Feb 2023 18:29:42 +0200 Subject: 01_Application_Framework: Add an extended version of app startup And activation, that describes in more detail how that is handled. Bug-AGL: SPEC-4700 Signed-off-by: Marius Vlad Change-Id: I5f9a2764d66947c06bf8dc346dfaef72d993733f (cherry picked from commit 440ceea55588e2e59e1defd892d29c094798c47a) Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/documentation/+/28542 Reviewed-by: Jan-Simon Moeller Tested-by: Jan-Simon Moeller --- .../images/application_switching.msc | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100755 docs/04_Developer_Guides/images/application_switching.msc (limited to 'docs/04_Developer_Guides/images/application_switching.msc') diff --git a/docs/04_Developer_Guides/images/application_switching.msc b/docs/04_Developer_Guides/images/application_switching.msc new file mode 100755 index 0000000..ceeab7c --- /dev/null +++ b/docs/04_Developer_Guides/images/application_switching.msc @@ -0,0 +1,29 @@ +#!/usr/bin/mscgen -Tpng + +msc { + hscale="1.5"; + + u [label = "touch/pointer event" ], + l [label = "launcher app" ], + s [label = "runtime/shell-client"], + a [label = "applaunchd" ], + g [label = "gRPC-proxy" ], + c [label = "compositor" ], + d [label = "libsystemd"]; + + |||; + + --- [label = "initial phase - subscribe for signal/status events, assume app_id already started" ]; + + s >> a [label = "subscribe for applaunchd GetStatusEvents"]; + + --- [label = "handling of application switching" ]; + + u => l [label = "tapShortCut(appid)" ]; + l => a [label = "StartApplication(appid)"]; + a => d [label = "start application's systemd unit"]; + d => a [label = "return status from starting systemd unit"]; + a => s [label = "StartResponse(status = TRUE)"]; + a => s [label = "StatusResponse(app_id, 'started')"]; + s => c [label = "activate_app(app_id)"]; +} -- cgit