From 27040f27e97a4cb743a38bb4eceb7c5d3b09fabd Mon Sep 17 00:00:00 2001 From: Thiep Ha Date: Fri, 13 Oct 2017 16:01:22 +0900 Subject: [PATCH] [UTC][efl-ext][ACR-1103][Add new apis for edit mode in rotary selector and more option] Change-Id: I61ec8d4822ba7cd2aae471890f84645c7d53f52f Signed-off-by: Thiep Ha --- src/utc/efl-ext/tct-efl-ext-core_wearable.h | 48 +++ src/utc/efl-ext/utc-efl-ext.c | 407 ++++++++++++++++++++ 2 files changed, 455 insertions(+) diff --git a/src/utc/efl-ext/tct-efl-ext-core_wearable.h b/src/utc/efl-ext/tct-efl-ext-core_wearable.h index fd9efde39..44bab581b 100755 --- a/src/utc/efl-ext/tct-efl-ext-core_wearable.h +++ b/src/utc/efl-ext/tct-efl-ext-core_wearable.h @@ -189,6 +189,18 @@ extern int utc_efl_ext_eext_more_option_opened_get_p(void); extern int utc_efl_ext_eext_more_option_opened_get_n(void); extern int utc_efl_ext_eext_more_option_items_get_p(void); extern int utc_efl_ext_eext_more_option_items_get_n(void); +extern int utc_efl_ext_eext_more_option_editing_enabled_get_n(void); +extern int utc_efl_ext_eext_more_option_editing_enabled_get_p(void); +extern int utc_efl_ext_eext_more_option_editing_enabled_set_n(void); +extern int utc_efl_ext_eext_more_option_editing_enabled_set_p(void); +extern int utc_efl_ext_eext_more_option_add_item_enabled_get_n(void); +extern int utc_efl_ext_eext_more_option_add_item_enabled_get_p(void); +extern int utc_efl_ext_eext_more_option_add_item_enabled_set_n(void); +extern int utc_efl_ext_eext_more_option_add_item_enabled_set_p(void); +extern int utc_efl_ext_eext_more_option_item_delete_enabled_get_p(void); +extern int utc_efl_ext_eext_more_option_item_delete_enabled_get_n(void); +extern int utc_efl_ext_eext_more_option_item_delete_enabled_set_p(void); +extern int utc_efl_ext_eext_more_option_item_delete_enabled_set_n(void); extern int utc_efl_ext_eext_circle_object_spinner_add_p(void); extern int utc_efl_ext_eext_circle_object_spinner_add_n(void); extern int utc_efl_ext_eext_circle_object_spinner_angle_set_p(void); @@ -234,6 +246,18 @@ extern int utc_efl_ext_eext_rotary_selector_selected_item_get_p(void); extern int utc_efl_ext_eext_rotary_selector_selected_item_get_n(void); extern int utc_efl_ext_eext_rotary_selector_items_get_p(void); extern int utc_efl_ext_eext_rotary_selector_items_get_n(void); +extern int utc_efl_ext_eext_rotary_selector_editing_enabled_get_n(void); +extern int utc_efl_ext_eext_rotary_selector_editing_enabled_get_p(void); +extern int utc_efl_ext_eext_rotary_selector_editing_enabled_set_n(void); +extern int utc_efl_ext_eext_rotary_selector_editing_enabled_set_p(void); +extern int utc_efl_ext_eext_rotary_selector_add_item_enabled_get_n(void); +extern int utc_efl_ext_eext_rotary_selector_add_item_enabled_get_p(void); +extern int utc_efl_ext_eext_rotary_selector_add_item_enabled_set_n(void); +extern int utc_efl_ext_eext_rotary_selector_add_item_enabled_set_p(void); +extern int utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_p(void); +extern int utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_n(void); +extern int utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_p(void); +extern int utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_n(void); testcase tc_array[] = { {"utc_efl_ext_popup_back_p",utc_efl_ext_popup_back_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, @@ -403,6 +427,18 @@ testcase tc_array[] = { {"utc_efl_ext_eext_more_option_opened_get_n",utc_efl_ext_eext_more_option_opened_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, {"utc_efl_ext_eext_more_option_items_get_p",utc_efl_ext_eext_more_option_items_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, {"utc_efl_ext_eext_more_option_items_get_n",utc_efl_ext_eext_more_option_items_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_editing_enabled_get_n",utc_efl_ext_eext_more_option_editing_enabled_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_editing_enabled_get_p",utc_efl_ext_eext_more_option_editing_enabled_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_editing_enabled_set_n",utc_efl_ext_eext_more_option_editing_enabled_set_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_editing_enabled_set_p",utc_efl_ext_eext_more_option_editing_enabled_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_add_item_enabled_get_p",utc_efl_ext_eext_more_option_add_item_enabled_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_add_item_enabled_get_n",utc_efl_ext_eext_more_option_add_item_enabled_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_add_item_enabled_set_p",utc_efl_ext_eext_more_option_add_item_enabled_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_add_item_enabled_set_n",utc_efl_ext_eext_more_option_add_item_enabled_set_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_item_delete_enabled_get_p",utc_efl_ext_eext_more_option_item_delete_enabled_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_item_delete_enabled_get_n",utc_efl_ext_eext_more_option_item_delete_enabled_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_item_delete_enabled_set_p",utc_efl_ext_eext_more_option_item_delete_enabled_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_more_option_item_delete_enabled_set_n",utc_efl_ext_eext_more_option_item_delete_enabled_set_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, {"utc_efl_ext_eext_circle_object_spinner_add_p",utc_efl_ext_eext_circle_object_spinner_add_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, {"utc_efl_ext_eext_circle_object_spinner_add_n",utc_efl_ext_eext_circle_object_spinner_add_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, {"utc_efl_ext_eext_circle_object_spinner_angle_set_p",utc_efl_ext_eext_circle_object_spinner_angle_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, @@ -448,6 +484,18 @@ testcase tc_array[] = { {"utc_efl_ext_eext_rotary_selector_selected_item_get_n",utc_efl_ext_eext_rotary_selector_selected_item_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, {"utc_efl_ext_eext_rotary_selector_items_get_p",utc_efl_ext_eext_rotary_selector_items_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, {"utc_efl_ext_eext_rotary_selector_items_get_n",utc_efl_ext_eext_rotary_selector_items_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_editing_enabled_get_n",utc_efl_ext_eext_rotary_selector_editing_enabled_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_editing_enabled_get_p",utc_efl_ext_eext_rotary_selector_editing_enabled_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_editing_enabled_set_n",utc_efl_ext_eext_rotary_selector_editing_enabled_set_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_editing_enabled_set_p",utc_efl_ext_eext_rotary_selector_editing_enabled_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_add_item_enabled_get_p",utc_efl_ext_eext_rotary_selector_add_item_enabled_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_add_item_enabled_get_n",utc_efl_ext_eext_rotary_selector_add_item_enabled_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_add_item_enabled_set_p",utc_efl_ext_eext_rotary_selector_add_item_enabled_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_add_item_enabled_set_n",utc_efl_ext_eext_rotary_selector_add_item_enabled_set_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_p",utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_n",utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_p",utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_p,utc_efl_ext_startup,utc_efl_ext_cleanup}, + {"utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_n",utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_n,utc_efl_ext_startup,utc_efl_ext_cleanup}, {NULL, NULL} }; diff --git a/src/utc/efl-ext/utc-efl-ext.c b/src/utc/efl-ext/utc-efl-ext.c index 08b547113..35a74bb53 100755 --- a/src/utc/efl-ext/utc-efl-ext.c +++ b/src/utc/efl-ext/utc-efl-ext.c @@ -3346,6 +3346,209 @@ int utc_efl_ext_eext_more_option_items_get_n(void) return 0; } +int utc_efl_ext_eext_more_option_editing_enabled_get_p(void) +{ + Evas_Object *win; + Evas_Object *more_option; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + more_option = eext_more_option_add(win); + assert(more_option); + + enabled = eext_more_option_editing_enabled_get(more_option); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_more_option_editing_enabled_get_n(void) +{ + Evas_Object *win; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + enabled = eext_more_option_editing_enabled_get(NULL); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_more_option_editing_enabled_set_p(void) +{ + Evas_Object *win; + Evas_Object *more_option; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + more_option = eext_more_option_add(win); + assert(more_option); + + enabled = eext_more_option_editing_enabled_get(more_option); + assert_eq(enabled, EINA_FALSE); + + eext_more_option_editing_enabled_set(more_option, EINA_TRUE); + enabled = eext_more_option_editing_enabled_get(more_option); + assert_eq(enabled, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_more_option_editing_enabled_set_n(void) +{ + Evas_Object *win; + Evas_Object *more_option; + + win = _create_win("window"); + assert(win); + + eext_more_option_editing_enabled_set(NULL, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_more_option_add_item_enabled_get_p(void) +{ + Evas_Object *win; + Evas_Object *more_option; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + more_option = eext_more_option_add(win); + assert(more_option); + + enabled = eext_more_option_add_item_enabled_get(more_option); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_more_option_add_item_enabled_get_n(void) +{ + Evas_Object *win; + Evas_Object *more_option; + + win = _create_win("window"); + assert(win); + + eext_more_option_add_item_enabled_set(NULL, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_more_option_add_item_enabled_set_p(void) +{ + Evas_Object *win; + Evas_Object *more_option; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + more_option = eext_more_option_add(win); + assert(more_option); + + eext_more_option_add_item_enabled_set(more_option, EINA_TRUE); + enabled = eext_more_option_add_item_enabled_get(more_option); + assert_eq(enabled, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_more_option_add_item_enabled_set_n(void) +{ + Evas_Object *win; + Evas_Object *more_option; + + win = _create_win("window"); + assert(win); + + eext_more_option_add_item_enabled_set(NULL, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_more_option_item_delete_enabled_get_p(void) +{ + Evas_Object *win; + Evas_Object *more_option; + Eina_Bool enabled; + Eext_Object_Item *item; + + win = _create_win("window"); + assert(win); + + more_option = eext_more_option_add(win); + assert(more_option); + + item = eext_more_option_item_append(more_option); + assert(item); + + enabled = eext_more_option_add_item_enabled_get(item); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_more_option_item_delete_enabled_get_n(void) +{ + Evas_Object *win; + Evas_Object *more_option; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + enabled = eext_more_option_item_delete_enabled_get(NULL); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_more_option_item_delete_enabled_set_p(void) +{ + Evas_Object *win; + Evas_Object *more_option; + Eina_Bool enabled; + Eext_Object_Item *item; + + win = _create_win("window"); + assert(win); + + more_option = eext_more_option_add(win); + assert(more_option); + + item = eext_more_option_item_append(more_option); + assert(item); + + eext_more_option_item_delete_enabled_set(item, EINA_TRUE); + enabled = eext_more_option_item_delete_enabled_get(item); + assert_eq(enabled, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_more_option_item_delete_enabled_set_n(void) +{ + Evas_Object *win; + Evas_Object *more_option; + + win = _create_win("window"); + assert(win); + + eext_more_option_item_delete_enabled_set(NULL, EINA_TRUE); + + return 0; +} + int utc_efl_ext_eext_circle_object_spinner_add_p(void) { Evas_Object *win; @@ -4281,4 +4484,208 @@ int utc_efl_ext_eext_rotary_selector_items_get_n(void) return 0; } + +int utc_efl_ext_eext_rotary_selector_editing_enabled_get_p(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + rotary_selector = eext_rotary_selector_add(win); + assert(rotary_selector); + + enabled = eext_rotary_selector_editing_enabled_get(rotary_selector); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_editing_enabled_get_n(void) +{ + Evas_Object *win; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + enabled = eext_rotary_selector_editing_enabled_get(NULL); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_editing_enabled_set_p(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + rotary_selector = eext_rotary_selector_add(win); + assert(rotary_selector); + + enabled = eext_rotary_selector_editing_enabled_get(rotary_selector); + assert_eq(enabled, EINA_FALSE); + + eext_rotary_selector_editing_enabled_set(rotary_selector, EINA_TRUE); + enabled = eext_rotary_selector_editing_enabled_get(rotary_selector); + assert_eq(enabled, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_editing_enabled_set_n(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + + win = _create_win("window"); + assert(win); + + eext_rotary_selector_editing_enabled_set(NULL, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_add_item_enabled_get_p(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + rotary_selector = eext_rotary_selector_add(win); + assert(rotary_selector); + + enabled = eext_rotary_selector_add_item_enabled_get(rotary_selector); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_add_item_enabled_get_n(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + + win = _create_win("window"); + assert(win); + + eext_rotary_selector_add_item_enabled_set(NULL, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_add_item_enabled_set_p(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + rotary_selector = eext_rotary_selector_add(win); + assert(rotary_selector); + + eext_rotary_selector_add_item_enabled_set(rotary_selector, EINA_TRUE); + enabled = eext_rotary_selector_add_item_enabled_get(rotary_selector); + assert_eq(enabled, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_add_item_enabled_set_n(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + + win = _create_win("window"); + assert(win); + + eext_rotary_selector_add_item_enabled_set(NULL, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_p(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + Eina_Bool enabled; + Eext_Object_Item *item; + + win = _create_win("window"); + assert(win); + + rotary_selector = eext_rotary_selector_add(win); + assert(rotary_selector); + + item = eext_rotary_selector_item_append(rotary_selector); + assert(item); + + enabled = eext_rotary_selector_add_item_enabled_get(item); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_item_delete_enabled_get_n(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + Eina_Bool enabled; + + win = _create_win("window"); + assert(win); + + enabled = eext_rotary_selector_item_delete_enabled_get(NULL); + assert_eq(enabled, EINA_FALSE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_p(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + Eina_Bool enabled; + Eext_Object_Item *item; + + win = _create_win("window"); + assert(win); + + rotary_selector = eext_rotary_selector_add(win); + assert(rotary_selector); + + item = eext_rotary_selector_item_append(rotary_selector); + assert(item); + + eext_rotary_selector_item_delete_enabled_set(item, EINA_TRUE); + enabled = eext_rotary_selector_item_delete_enabled_get(item); + assert_eq(enabled, EINA_TRUE); + + return 0; +} + +int utc_efl_ext_eext_rotary_selector_item_delete_enabled_set_n(void) +{ + Evas_Object *win; + Evas_Object *rotary_selector; + + win = _create_win("window"); + assert(win); + + eext_rotary_selector_item_delete_enabled_set(NULL, EINA_TRUE); + + return 0; +} + #endif -- 2.34.1