Handle robot app type 43/312043/2
authorHwankyu Jhun <h.jhun@samsung.com>
Mon, 3 Jun 2024 06:50:35 +0000 (15:50 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Mon, 3 Jun 2024 08:30:33 +0000 (17:30 +0900)
To support robot profile, amd handles 'robotapp' type.

Change-Id: I5a436de2215ca2da77d7e84effe806f083feb93d
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/lib/amd_appinfo.h
src/lib/api/amd_api_app_status.h
src/lib/api/amd_api_appinfo.h
src/lib/app_status/app_status.cc

index 22e6814a25d8950de4ca62fd6bc7639018367a2e..ec9fea60c2d53caf7d38bcb2792da1acce18b061 100644 (file)
@@ -73,6 +73,8 @@ typedef enum appinfo_type {
 
 #define APP_TYPE_COMPONENT_BASED        "componentbasedapp"
 
+#define APP_TYPE_ROBOT                  "robotapp"
+
 #define APP_ENABLEMENT_MASK_ACTIVE     0x1
 
 #define APP_ENABLEMENT_MASK_REQUEST    0x2
index d3eaff24a7164d72be5c972993a0887537453ca0..46b15849d60f2ce6000f32ae9f1754cbfe654b59 100644 (file)
@@ -32,6 +32,7 @@ typedef enum {
        AMD_AT_WIDGET_APP,
        AMD_AT_WATCH_APP,
        AMD_AT_COMPONENT_BASED_APP,
+       AMD_AT_ROBOT_APP,
 } amd_app_type_e;
 
 typedef void *amd_app_status_h;
index 1e5630adde4dc66463b43134dc317a7244bbd439..87ed8dc8bb5d5b073eb4369fe494e1e6e1c277fe 100644 (file)
@@ -34,6 +34,8 @@ extern "C" {
 
 #define APP_TYPE_COMPONENT_BASED        "componentbasedapp"
 
+#define APP_TYPE_ROBOT                  "robotapp"
+
 #define APP_ENABLEMENT_MASK_ACTIVE      0x1
 
 typedef enum _amd_appinfo_type {
index 7e102180b66ed2b7a1ba46b886f613937473da76..865794970c4abc8ef67469c1c5135b667a61e578 100644 (file)
@@ -44,6 +44,7 @@ typedef enum {
   AT_WIDGET_APP,
   AT_WATCH_APP,
   AT_COMPONENT_BASED_APP,
+  AT_ROBOT_APP,
 } app_type_e;
 
 int ConvertAppType(const std::string& app_type) {
@@ -57,6 +58,8 @@ int ConvertAppType(const std::string& app_type) {
     return AT_WATCH_APP;
   else if (app_type == APP_TYPE_COMPONENT_BASED)
     return AT_COMPONENT_BASED_APP;
+  else if (app_type == APP_TYPE_ROBOT)
+    return AT_ROBOT_APP;
 
   return -1;
 }