display: change sleep reason to DISPLAY_OFF_TIMEOUT 14/288214/2 accepted/tizen/unified/20230215.100730
authorYoungjae Cho <y0.cho@samsung.com>
Tue, 14 Feb 2023 01:11:34 +0000 (10:11 +0900)
committerYoungjae Cho <y0.cho@samsung.com>
Tue, 14 Feb 2023 05:14:58 +0000 (14:14 +0900)
commit918acdfef05bde8242672031c7c10430a1e6c165
tree804a088d6f55d4921bf4d3e23c0d69f5b5a15e6d
parenteaf497a3ba352347fa41c1e30ebac125a4f213cd
display: change sleep reason to DISPLAY_OFF_TIMEOUT

Technically, the sleep request of display plugin is triggered by timer,
not by display off itself.
  1. Display off, display state is changed to S_LCDOFF.
  2. Start timer, 300ms.
  3. On expiring the timer, display state is changed to S_SLEEP.
  4. The display plugin requests power module to change its state to
     DEVICED_POWER_STATE_SLEEP.
Therefore, it is proper to use enum DISPLAY_OFF_TIMEOUT instead of
just DISPLAY_OFF.

Change-Id: I93e6d092ebcc23e09db61f65d8f0b7e4dc5aac7e
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c