Add aod notified event 21/229621/2
authorhyunho <hhstark.kang@samsung.com>
Thu, 2 Apr 2020 08:58:05 +0000 (17:58 +0900)
committerhyunho <hhstark.kang@samsung.com>
Fri, 3 Apr 2020 01:11:34 +0000 (10:11 +0900)
Change-Id: Icbc479b1bb89c3ed038e02fb024ec7a0af54dbc3
Signed-off-by: hyunho <hhstark.kang@samsung.com>
ambient-viewer/include/ambient_viewer.h
ambient-viewer/src/ambient-viewer.hh
watch-holder/api/watch_holder.h
watch-holder/api/watch_mirror.h
watch-holder/src/ambient_listener.hh

index c515b4f2e5159b827e566d738e49acd2c22489ad..8eedf112ae61b514debc735daf54bcd147365d17 100644 (file)
@@ -39,6 +39,7 @@ typedef void *ambient_viewer_h;
 typedef enum {
        AMBIENT_VIEWER_EVENT_AOD_PREPARE, /**<AOD prepare */
        AMBIENT_VIEWER_EVENT_AOD_READY, /**<AOD ready */
+       AMBIENT_VIEWER_EVENT_AOD_NOTIFIED, /**<AOD notified */
        AMBIENT_VIEWER_EVENT_WATCH_CHANGED, /**<Watch changed */
 } ambient_event_type_e;
 
index a5970ca979108a9ff92212700168244e57f6eab0..9713fa3e0735adeaa7f4cf7a72158f9dad783165 100644 (file)
@@ -39,6 +39,7 @@ class EXPORT_API AmbientViewer : public IAmbientViewer {
   enum EventType {
     EVENT_AOD_PREPARE,
     EVENT_AOD_READY,
+    EVENT_AOD_NOTIFIED,
     EVENT_WATCH_CHANGED,
   };
 
index 2dfed3a757461c5fccace9684a7bb7f0ed6870a2..f1eede9228d2a1931452bad58c6b110d7d200e9a 100644 (file)
@@ -40,7 +40,8 @@ typedef struct watch_holder_s *watch_holder_h;
  */
 typedef enum {
        WATCH_HOLDER_AMBIENT_EVENT_PREPARE, /**< This event represents preparing state of aod applications or watch applications. */
-       WATCH_HOLDER_AMBIENT_EVENT_READY /**< This event represents every step to display AOD is ready by aod applications or watch applications. */
+       WATCH_HOLDER_AMBIENT_EVENT_READY, /**< This event represents every step to display AOD is ready by aod applications or watch applications. */
+       WATCH_HOLDER_AMBIENT_EVENT_NOTIFIED, /**< This event will be triggered right after the aod application or watch application's ambient changed callback is called with true value of enter parameter. */
 } watch_holder_ambient_event_e;
 
 /**
index 73b2238e4e31b9d783f36180355bc5eacbb5e0ae..9c2636d1e9ee60b11390000aa9f91120c04030c7 100644 (file)
@@ -31,7 +31,8 @@ typedef struct watch_mirror_s *watch_mirror_h;
 
 typedef enum {
        WATCH_MIRROR_AMBIENT_EVENT_PREPARE,
-       WATCH_MIRROR_AMBIENT_EVENT_READY
+       WATCH_MIRROR_AMBIENT_EVENT_READY,
+       WATCH_MIRROR_AMBIENT_EVENT_NOTIFIED
 } watch_mirror_ambient_event_e;
 
 typedef struct {
index 134ac87e835018752f8506767dd3f86a5cfd92c5..6646c55080ce0d9e38fa452b46b4efc8251d3ba7 100644 (file)
@@ -28,7 +28,8 @@ class AmbientListener {
  public:
   enum EventType {
     EVENT_AOD_PREPARE,
-    EVENT_AOD_READY
+    EVENT_AOD_READY,
+    EVENT_AOD_NOTIFIED
   };
   AmbientListener();
   ~AmbientListener();