From: Inhong Han Date: Tue, 6 Aug 2024 06:59:19 +0000 (+0900) Subject: [UTC][capi-ui-inputmethod][ACR-1845] Add APIs to move and resize the floating input... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F87%2F315687%2F1;p=test%2Ftct%2Fnative%2Fapi.git [UTC][capi-ui-inputmethod][ACR-1845] Add APIs to move and resize the floating input panel Change-Id: I11e16624ed1a942e0630379756ee5f6dbe1a5cca --- diff --git a/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_mobile.h b/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_mobile.h index 4d8a569b2..bce7c7d64 100755 --- a/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_mobile.h +++ b/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_mobile.h @@ -44,6 +44,8 @@ extern int utc_ime_event_set_option_window_created_cb_p(void); extern int utc_ime_event_set_option_window_destroyed_cb_p(void); extern int utc_ime_event_set_input_hint_set_cb_p(void); extern int utc_ime_event_unset_input_hint_set_cb_p(void); +extern int utc_ime_event_set_position_align_set_cb_p(void); +extern int utc_ime_event_unset_position_align_set_cb_p(void); extern int utc_ime_send_key_event_p(void); extern int utc_ime_commit_string_p(void); extern int utc_ime_show_preedit_string_p(void); @@ -71,6 +73,7 @@ extern int utc_ime_event_set_prediction_hint_data_set_cb_p(void); extern int utc_ime_update_input_panel_event_p(void); extern int utc_ime_event_set_process_key_event_with_keycode_cb_p(void); extern int utc_ime_set_candidate_visibility_state_p(void); +extern int utc_ime_move_resize_floating_window_p(void); extern int utc_ime_run_n(void); extern int utc_ime_run_n2(void); extern int utc_ime_event_set_focus_in_cb_n(void); @@ -93,6 +96,7 @@ extern int utc_ime_event_set_accessibility_state_changed_cb_n(void); extern int utc_ime_event_set_option_window_created_cb_n(void); extern int utc_ime_event_set_option_window_destroyed_cb_n(void); extern int utc_ime_event_set_input_hint_set_cb_n(void); +extern int utc_ime_event_set_position_align_set_cb_n(void); extern int utc_ime_send_key_event_n(void); extern int utc_ime_commit_string_n(void); extern int utc_ime_commit_string_n2(void); @@ -159,6 +163,7 @@ extern int utc_ime_event_set_prediction_hint_data_set_cb_n(void); extern int utc_ime_update_input_panel_event_n(void); extern int utc_ime_event_set_process_key_event_with_keycode_cb_n(void); extern int utc_ime_set_candidate_visibility_state_n(void); +extern int utc_ime_move_resize_floating_window_n(void); extern int utc_ime_event_set_process_input_device_event_cb_n(void); extern int utc_ime_input_device_rotary_get_direction_n(void); @@ -185,6 +190,8 @@ testcase tc_array[] = { {"utc_ime_event_set_option_window_destroyed_cb_p",utc_ime_event_set_option_window_destroyed_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_input_hint_set_cb_p",utc_ime_event_set_input_hint_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_unset_input_hint_set_cb_p",utc_ime_event_unset_input_hint_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_set_position_align_set_cb_p",utc_ime_event_set_position_align_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_unset_position_align_set_cb_p",utc_ime_event_unset_position_align_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_send_key_event_p",utc_ime_send_key_event_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_p",utc_ime_commit_string_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_show_preedit_string_p",utc_ime_show_preedit_string_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -212,6 +219,7 @@ testcase tc_array[] = { {"utc_ime_update_input_panel_event_p",utc_ime_update_input_panel_event_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_key_event_with_keycode_cb_p",utc_ime_event_set_process_key_event_with_keycode_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_set_candidate_visibility_state_p",utc_ime_set_candidate_visibility_state_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_move_resize_floating_window_p",utc_ime_move_resize_floating_window_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_run_n",utc_ime_run_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_run_n2",utc_ime_run_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_focus_in_cb_n",utc_ime_event_set_focus_in_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -234,6 +242,7 @@ testcase tc_array[] = { {"utc_ime_event_set_option_window_created_cb_n",utc_ime_event_set_option_window_created_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_option_window_destroyed_cb_n",utc_ime_event_set_option_window_destroyed_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_input_hint_set_cb_n",utc_ime_event_set_input_hint_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_set_position_align_set_cb_n",utc_ime_event_set_position_align_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_send_key_event_n",utc_ime_send_key_event_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_n",utc_ime_commit_string_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_n2",utc_ime_commit_string_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -300,6 +309,7 @@ testcase tc_array[] = { {"utc_ime_update_input_panel_event_n",utc_ime_update_input_panel_event_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_key_event_with_keycode_cb_n",utc_ime_event_set_process_key_event_with_keycode_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_set_candidate_visibility_state_n",utc_ime_set_candidate_visibility_state_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_move_resize_floating_window_n",utc_ime_move_resize_floating_window_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_input_device_event_cb_n",utc_ime_event_set_process_input_device_event_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_input_device_rotary_get_direction_n",utc_ime_input_device_rotary_get_direction_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {NULL, NULL} diff --git a/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_tizeniot.h b/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_tizeniot.h index 4d8a569b2..bce7c7d64 100755 --- a/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_tizeniot.h +++ b/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_tizeniot.h @@ -44,6 +44,8 @@ extern int utc_ime_event_set_option_window_created_cb_p(void); extern int utc_ime_event_set_option_window_destroyed_cb_p(void); extern int utc_ime_event_set_input_hint_set_cb_p(void); extern int utc_ime_event_unset_input_hint_set_cb_p(void); +extern int utc_ime_event_set_position_align_set_cb_p(void); +extern int utc_ime_event_unset_position_align_set_cb_p(void); extern int utc_ime_send_key_event_p(void); extern int utc_ime_commit_string_p(void); extern int utc_ime_show_preedit_string_p(void); @@ -71,6 +73,7 @@ extern int utc_ime_event_set_prediction_hint_data_set_cb_p(void); extern int utc_ime_update_input_panel_event_p(void); extern int utc_ime_event_set_process_key_event_with_keycode_cb_p(void); extern int utc_ime_set_candidate_visibility_state_p(void); +extern int utc_ime_move_resize_floating_window_p(void); extern int utc_ime_run_n(void); extern int utc_ime_run_n2(void); extern int utc_ime_event_set_focus_in_cb_n(void); @@ -93,6 +96,7 @@ extern int utc_ime_event_set_accessibility_state_changed_cb_n(void); extern int utc_ime_event_set_option_window_created_cb_n(void); extern int utc_ime_event_set_option_window_destroyed_cb_n(void); extern int utc_ime_event_set_input_hint_set_cb_n(void); +extern int utc_ime_event_set_position_align_set_cb_n(void); extern int utc_ime_send_key_event_n(void); extern int utc_ime_commit_string_n(void); extern int utc_ime_commit_string_n2(void); @@ -159,6 +163,7 @@ extern int utc_ime_event_set_prediction_hint_data_set_cb_n(void); extern int utc_ime_update_input_panel_event_n(void); extern int utc_ime_event_set_process_key_event_with_keycode_cb_n(void); extern int utc_ime_set_candidate_visibility_state_n(void); +extern int utc_ime_move_resize_floating_window_n(void); extern int utc_ime_event_set_process_input_device_event_cb_n(void); extern int utc_ime_input_device_rotary_get_direction_n(void); @@ -185,6 +190,8 @@ testcase tc_array[] = { {"utc_ime_event_set_option_window_destroyed_cb_p",utc_ime_event_set_option_window_destroyed_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_input_hint_set_cb_p",utc_ime_event_set_input_hint_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_unset_input_hint_set_cb_p",utc_ime_event_unset_input_hint_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_set_position_align_set_cb_p",utc_ime_event_set_position_align_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_unset_position_align_set_cb_p",utc_ime_event_unset_position_align_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_send_key_event_p",utc_ime_send_key_event_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_p",utc_ime_commit_string_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_show_preedit_string_p",utc_ime_show_preedit_string_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -212,6 +219,7 @@ testcase tc_array[] = { {"utc_ime_update_input_panel_event_p",utc_ime_update_input_panel_event_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_key_event_with_keycode_cb_p",utc_ime_event_set_process_key_event_with_keycode_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_set_candidate_visibility_state_p",utc_ime_set_candidate_visibility_state_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_move_resize_floating_window_p",utc_ime_move_resize_floating_window_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_run_n",utc_ime_run_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_run_n2",utc_ime_run_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_focus_in_cb_n",utc_ime_event_set_focus_in_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -234,6 +242,7 @@ testcase tc_array[] = { {"utc_ime_event_set_option_window_created_cb_n",utc_ime_event_set_option_window_created_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_option_window_destroyed_cb_n",utc_ime_event_set_option_window_destroyed_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_input_hint_set_cb_n",utc_ime_event_set_input_hint_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_set_position_align_set_cb_n",utc_ime_event_set_position_align_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_send_key_event_n",utc_ime_send_key_event_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_n",utc_ime_commit_string_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_n2",utc_ime_commit_string_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -300,6 +309,7 @@ testcase tc_array[] = { {"utc_ime_update_input_panel_event_n",utc_ime_update_input_panel_event_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_key_event_with_keycode_cb_n",utc_ime_event_set_process_key_event_with_keycode_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_set_candidate_visibility_state_n",utc_ime_set_candidate_visibility_state_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_move_resize_floating_window_n",utc_ime_move_resize_floating_window_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_input_device_event_cb_n",utc_ime_event_set_process_input_device_event_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_input_device_rotary_get_direction_n",utc_ime_input_device_rotary_get_direction_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {NULL, NULL} diff --git a/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_tv.h b/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_tv.h index d2b39018f..5abc10c49 100755 --- a/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_tv.h +++ b/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_tv.h @@ -42,6 +42,8 @@ extern int utc_ime_event_set_rotation_degree_changed_cb_p(void); extern int utc_ime_event_set_accessibility_state_changed_cb_p(void); extern int utc_ime_event_set_option_window_created_cb_p(void); extern int utc_ime_event_set_option_window_destroyed_cb_p(void); +extern int utc_ime_event_set_position_align_set_cb_p(void); +extern int utc_ime_event_unset_position_align_set_cb_p(void); extern int utc_ime_send_key_event_p(void); extern int utc_ime_commit_string_p(void); extern int utc_ime_show_preedit_string_p(void); @@ -68,6 +70,7 @@ extern int utc_ime_event_set_prediction_hint_data_set_cb_p(void); extern int utc_ime_update_input_panel_event_p(void); extern int utc_ime_event_set_process_key_event_with_keycode_cb_p(void); extern int utc_ime_set_candidate_visibility_state_p(void); +extern int utc_ime_move_resize_floating_window_p(void); extern int utc_ime_run_n(void); extern int utc_ime_run_n2(void); extern int utc_ime_event_set_focus_in_cb_n(void); @@ -89,6 +92,7 @@ extern int utc_ime_event_set_rotation_degree_changed_cb_n(void); extern int utc_ime_event_set_accessibility_state_changed_cb_n(void); extern int utc_ime_event_set_option_window_created_cb_n(void); extern int utc_ime_event_set_option_window_destroyed_cb_n(void); +extern int utc_ime_event_set_position_align_set_cb_n(void); extern int utc_ime_send_key_event_n(void); extern int utc_ime_commit_string_n(void); extern int utc_ime_commit_string_n2(void); @@ -154,6 +158,7 @@ extern int utc_ime_event_set_prediction_hint_data_set_cb_n(void); extern int utc_ime_update_input_panel_event_n(void); extern int utc_ime_event_set_process_key_event_with_keycode_cb_n(void); extern int utc_ime_set_candidate_visibility_state_n(void); +extern int utc_ime_move_resize_floating_window_n(void); extern int utc_ime_event_set_process_input_device_event_cb_n(void); extern int utc_ime_input_device_rotary_get_direction_n(void); @@ -178,6 +183,8 @@ testcase tc_array[] = { {"utc_ime_event_set_accessibility_state_changed_cb_p",utc_ime_event_set_accessibility_state_changed_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_option_window_created_cb_p",utc_ime_event_set_option_window_created_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_option_window_destroyed_cb_p",utc_ime_event_set_option_window_destroyed_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_set_position_align_set_cb_p",utc_ime_event_set_position_align_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_unset_position_align_set_cb_p",utc_ime_event_unset_position_align_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_send_key_event_p",utc_ime_send_key_event_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_p",utc_ime_commit_string_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_show_preedit_string_p",utc_ime_show_preedit_string_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -204,6 +211,7 @@ testcase tc_array[] = { {"utc_ime_update_input_panel_event_p",utc_ime_update_input_panel_event_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_key_event_with_keycode_cb_p",utc_ime_event_set_process_key_event_with_keycode_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_set_candidate_visibility_state_p",utc_ime_set_candidate_visibility_state_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_move_resize_floating_window_p",utc_ime_move_resize_floating_window_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_run_n",utc_ime_run_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_run_n2",utc_ime_run_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_focus_in_cb_n",utc_ime_event_set_focus_in_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -225,6 +233,7 @@ testcase tc_array[] = { {"utc_ime_event_set_accessibility_state_changed_cb_n",utc_ime_event_set_accessibility_state_changed_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_option_window_created_cb_n",utc_ime_event_set_option_window_created_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_option_window_destroyed_cb_n",utc_ime_event_set_option_window_destroyed_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_set_position_align_set_cb_n",utc_ime_event_set_position_align_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_send_key_event_n",utc_ime_send_key_event_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_n",utc_ime_commit_string_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_n2",utc_ime_commit_string_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -290,6 +299,7 @@ testcase tc_array[] = { {"utc_ime_update_input_panel_event_n",utc_ime_update_input_panel_event_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_key_event_with_keycode_cb_n",utc_ime_event_set_process_key_event_with_keycode_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_set_candidate_visibility_state_n",utc_ime_set_candidate_visibility_state_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_move_resize_floating_window_n",utc_ime_move_resize_floating_window_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_input_device_event_cb_n",utc_ime_event_set_process_input_device_event_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_input_device_rotary_get_direction_n",utc_ime_input_device_rotary_get_direction_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {NULL, NULL} diff --git a/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_wearable.h b/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_wearable.h index 108129d32..363d7ce2b 100755 --- a/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_wearable.h +++ b/src/utc/capi-ui-inputmethod/tct-capi-ui-inputmethod-core_wearable.h @@ -44,6 +44,8 @@ extern int utc_ime_event_set_option_window_created_cb_p(void); extern int utc_ime_event_set_option_window_destroyed_cb_p(void); extern int utc_ime_event_set_input_hint_set_cb_p(void); extern int utc_ime_event_unset_input_hint_set_cb_p(void); +extern int utc_ime_event_set_position_align_set_cb_p(void); +extern int utc_ime_event_unset_position_align_set_cb_p(void); extern int utc_ime_send_key_event_p(void); extern int utc_ime_commit_string_p(void); extern int utc_ime_show_preedit_string_p(void); @@ -71,6 +73,7 @@ extern int utc_ime_event_set_prediction_hint_data_set_cb_p(void); extern int utc_ime_update_input_panel_event_p(void); extern int utc_ime_event_set_process_key_event_with_keycode_cb_p(void); extern int utc_ime_set_candidate_visibility_state_p(void); +extern int utc_ime_move_resize_floating_window_p(void); extern int utc_ime_run_n(void); extern int utc_ime_run_n2(void); extern int utc_ime_event_set_focus_in_cb_n(void); @@ -93,6 +96,7 @@ extern int utc_ime_event_set_accessibility_state_changed_cb_n(void); extern int utc_ime_event_set_option_window_created_cb_n(void); extern int utc_ime_event_set_option_window_destroyed_cb_n(void); extern int utc_ime_event_set_input_hint_set_cb_n(void); +extern int utc_ime_event_set_position_align_set_cb_n(void); extern int utc_ime_send_key_event_n(void); extern int utc_ime_commit_string_n(void); extern int utc_ime_commit_string_n2(void); @@ -161,6 +165,7 @@ extern int utc_ime_event_set_prediction_hint_data_set_cb_n(void); extern int utc_ime_update_input_panel_event_n(void); extern int utc_ime_event_set_process_key_event_with_keycode_cb_n(void); extern int utc_ime_set_candidate_visibility_state_n(void); +extern int utc_ime_move_resize_floating_window_n(void); testcase tc_array[] = { {"utc_ime_run_p",utc_ime_run_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -185,6 +190,8 @@ testcase tc_array[] = { {"utc_ime_event_set_option_window_destroyed_cb_p",utc_ime_event_set_option_window_destroyed_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_input_hint_set_cb_p",utc_ime_event_set_input_hint_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_unset_input_hint_set_cb_p",utc_ime_event_unset_input_hint_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_set_position_align_set_cb_p",utc_ime_event_set_position_align_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_unset_position_align_set_cb_p",utc_ime_event_unset_position_align_set_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_send_key_event_p",utc_ime_send_key_event_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_p",utc_ime_commit_string_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_show_preedit_string_p",utc_ime_show_preedit_string_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -212,6 +219,7 @@ testcase tc_array[] = { {"utc_ime_update_input_panel_event_p",utc_ime_update_input_panel_event_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_key_event_with_keycode_cb_p",utc_ime_event_set_process_key_event_with_keycode_cb_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_set_candidate_visibility_state_p",utc_ime_set_candidate_visibility_state_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_move_resize_floating_window_p",utc_ime_move_resize_floating_window_p,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_run_n",utc_ime_run_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_run_n2",utc_ime_run_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_focus_in_cb_n",utc_ime_event_set_focus_in_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -234,6 +242,7 @@ testcase tc_array[] = { {"utc_ime_event_set_option_window_created_cb_n",utc_ime_event_set_option_window_created_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_option_window_destroyed_cb_n",utc_ime_event_set_option_window_destroyed_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_input_hint_set_cb_n",utc_ime_event_set_input_hint_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_event_set_position_align_set_cb_n",utc_ime_event_set_position_align_set_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_send_key_event_n",utc_ime_send_key_event_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_n",utc_ime_commit_string_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_commit_string_n2",utc_ime_commit_string_n2,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, @@ -302,6 +311,7 @@ testcase tc_array[] = { {"utc_ime_update_input_panel_event_n",utc_ime_update_input_panel_event_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_event_set_process_key_event_with_keycode_cb_n",utc_ime_event_set_process_key_event_with_keycode_cb_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {"utc_ime_set_candidate_visibility_state_n",utc_ime_set_candidate_visibility_state_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, + {"utc_ime_move_resize_floating_window_n",utc_ime_move_resize_floating_window_n,utc_capi_ui_inputmethod_startup,utc_capi_ui_inputmethod_cleanup}, {NULL, NULL} }; diff --git a/src/utc/capi-ui-inputmethod/utc-capi-ui-inputmethod.c b/src/utc/capi-ui-inputmethod/utc-capi-ui-inputmethod.c index 973b086e9..505e80ca4 100755 --- a/src/utc/capi-ui-inputmethod/utc-capi-ui-inputmethod.c +++ b/src/utc/capi-ui-inputmethod/utc-capi-ui-inputmethod.c @@ -107,6 +107,10 @@ static void _input_hint_set_cb(Ecore_IMF_Input_Hints input_hint, void *user_data } #endif +static void _position_align_set_cb(int x, int y, Ecore_IMF_Input_Panel_Align align, void *user_data) +{ +} + static int g_ret = -1; static void _ime_exit() @@ -234,6 +238,12 @@ static void _ime_set_candidate_visibility_state() elm_exit(); } +static void _ime_move_resize_floating_window() +{ + g_ret = ime_move_resize_floating_window(0, 0, 100, 100); + elm_exit(); +} + #ifndef TV static void _ime_update_preedit_cursor() { @@ -571,6 +581,30 @@ int utc_ime_event_unset_input_hint_set_cb_p(void) } #endif +/** + * @testcase utc_ime_event_set_position_align_set_cb_p + * @since_tizen 9.0 + * @description Positive UTC of the function that sets @c position_align_set event callback function. + */ +int utc_ime_event_set_position_align_set_cb_p(void) +{ + int ret = ime_event_set_position_align_set_cb(_position_align_set_cb, NULL); + assert_eq(ret, IME_ERROR_NONE); + return 0; +} + +/** + * @testcase utc_ime_event_unset_position_align_set_cb_p + * @since_tizen 9.0 + * @description Positive UTC of the function that unsets @c position_align_set event callback function. + */ +int utc_ime_event_unset_position_align_set_cb_p(void) +{ + int ret = ime_event_unset_position_align_set_cb(); + assert_eq(ret, IME_ERROR_NONE); + return 0; +} + /** * @testcase utc_ime_send_key_event_p * @since_tizen 2.4 @@ -915,6 +949,19 @@ int utc_ime_set_candidate_visibility_state_p(void) return 0; } +/** + * @testcase utc_ime_move_resize_floating_window_p + * @since_tizen 9.0 + * @description Positive UTC of the function that moves and resizes the floating input panel window. + */ +int utc_ime_move_resize_floating_window_p(void) +{ + int ret = ime_run(&basic_callback, (void *)_ime_move_resize_floating_window); + assert_eq(ret, IME_ERROR_NONE); + assert_eq(g_ret, IME_ERROR_NONE); + return 0; +} + #ifndef TV /** * @testcase utc_ime_update_preedit_cursor_p @@ -1198,6 +1245,18 @@ int utc_ime_event_set_input_hint_set_cb_n(void) } #endif +/** + * @testcase utc_ime_event_set_position_align_set_cb_n + * @since_tizen 9.0 + * @description Negative UTC of the function that sets @c position_align_set event callback function. + */ +int utc_ime_event_set_position_align_set_cb_n(void) +{ + int ret = ime_event_set_position_align_set_cb(NULL, NULL); + assert_eq(ret, IME_ERROR_INVALID_PARAMETER); + return 0; +} + /** * @testcase utc_ime_send_key_event_n * @since_tizen 2.4 @@ -2011,6 +2070,18 @@ int utc_ime_set_candidate_visibility_state_n(void) return 0; } +/** + * @testcase utc_ime_move_resize_floating_window_n + * @since_tizen 9.0 + * @description Negative UTC of the function that moves and resizes the floating input panel window. + */ +int utc_ime_move_resize_floating_window_n(void) +{ + int ret = ime_move_resize_floating_window(0, 0, 100, 100); + assert_eq(ret, IME_ERROR_NOT_RUNNING); + return 0; +} + #ifndef TV /** * @testcase utc_ime_update_preedit_cursor_n