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 c515b4f..8eedf11 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 a5970ca..9713fa3 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 2dfed3a..f1eede9 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 73b2238..9c2636d 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 134ac87..6646c55 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();