display: change sleep reason to DISPLAY_OFF_TIMEOUT 45/288245/1
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:29:01 +0000 (05:29 +0000)
commit8b2263abbc126c47d6c311d2eda4fd90050e2a71
tree804a088d6f55d4921bf4d3e23c0d69f5b5a15e6d
parent239951c5fe549926404d2ae93f10889371d3f533
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>
(cherry picked from commit 918acdfef05bde8242672031c7c10430a1e6c165)
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c