Manage application state: foreground, background, terminated 94/247394/14
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 10 Nov 2020 09:22:45 +0000 (18:22 +0900)
committerlokilee73 <changjoo.lee@samsung.com>
Mon, 16 Nov 2020 08:31:44 +0000 (17:31 +0900)
commit1e6745de813f943b1a2aa5e881490bb68de5a4d0
tree5404c5aeb617eeb1eb032f20d6d4eb04d3737adf
parent7952f9f960397d8d0f8965a0cb517505b7f6e2c3
Manage application state: foreground, background, terminated

Foreground / Background
  An application's lock is managed more strictly from the point when the
  application requires it. Now determine the memeber variable 'background'
  of PmLockNode based on the application's fg/bg state when adding lock
  as a new PmLockNode.

Terminated
  When an application is terminated without releasing lock, deviced unlocks
  it right away. At the same time, deviced decides whether to change state
  or not. At before, for this situation, it was responsible
  for pmlock_check() to release lingering lock of terminated application.

Change-Id: I70e66b69a5f3cdbfa54a2deb2e53ddf15d5456e1
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
12 files changed:
plugins/iot/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/apps/apps.c
src/apps/apps.h
src/core/device-notifier.c
src/core/device-notifier.h
src/display/core.h
src/display/display-dbus.c
src/display/display-lock.c
src/display/display-lock.h