display: Add init direction in rotation angle 27/286527/1
authorTaeminYeom <taemin.yeom@samsung.com>
Tue, 3 Jan 2023 10:53:48 +0000 (19:53 +0900)
committerTaeminYeom <taemin.yeom@samsung.com>
Mon, 9 Jan 2023 08:29:33 +0000 (17:29 +0900)
commit6ee7cf599a6a0b87739497b6481d771efa16749b
tree1a4be1ccf1bf40c15ff2ed33e2f0e0daf6204ca8
parent298a500d304c494cec216b131951028a147327d2
display: Add init direction in rotation angle

init direction means the display direction of degree 0.
It is needed to know physical display state by app.

When deviced boot, it parses the conf file "/etc/deviced/display.conf"
and it saves the initial display is horizontal or vertical.

changed dbus method:
dbus_getrotationangle
  path: "/Org/Tizen/System/DeviceD/Display"
  interace: "org.tizen.system.deviced.display"
  member: "GetRotationAngle"
  paremeter: "(i)", display index to get rotation angle.
  return: "(iii)", 0 on success, negative on error.
enum display rotation angle to get.
enum display initial direction.

added configuration property:
  DisplayInitDirection : "horizontal" or "vertical"

Change-Id: I9a45d06b712a04d79e8614bac5880d4be6fe4fd3
Signed-off-by: TaeminYeom <taemin.yeom@samsung.com>
conf/display-profile-iot-headed.conf
plugins/iot-headed/display/core.c
plugins/mobile/display/core.c
plugins/tv/display/core.c
plugins/wearable/display/core.c
src/display/core.h
src/display/display-dbus.c
src/display/display.c
src/display/display.h