Merge branch 'tizen' into tizen_dev 90/63990/1
authorIgor Olshevskyi <i.olshevskyi@samsung.com>
Mon, 28 Mar 2016 14:35:48 +0000 (17:35 +0300)
committerIgor Olshevskyi <i.olshevskyi@samsung.com>
Tue, 29 Mar 2016 07:23:11 +0000 (10:23 +0300)
Conflicts:
inc/callui-view-layout.h
src/callui-common.c
src/callui-view-active-incoming-call.c
src/callui-view-circle.c
src/callui-view-elements.c
src/callui-view-incoming-lock.c
src/callui.c

Change-Id: Ic744b62772347213606788555d9335ff46c1c643

1  2 
SDK-Project/call-ui/.cproject
inc/callui-view-layout.h
res/edje_src/edc/call_edc/callui_view_incoming_active.edc
src/callui-common.c
src/callui-view-circle.c
src/callui.c

Simple merge
  
  #define MTLOCK_REJECT_MSG_TOP_VISIBLE_AREA_W  (MTLOCK_REJECT_MSG_TEXT_HEIGHT+MTLOCK_REJECT_MSG_ARW_HEIGHT)
  
- // TODO: need to check and correct if is needed
- #define MTLOCK_ACTIVE_NOTI_CALL_HEIGHT 360
 -#define MTLOCK_ACTIVE_CALL_HEIGHT 350
++#define MTLOCK_ACTIVE_NOTI_CALL_HEIGHT 350
  
  #define ITEM_SIZE_H 120
  
  #include <system_settings.h>
  #include <efl_util.h>
  #include <app_common.h>
- #include <Ecore_Wayland.h>
 +#include <msg.h>
 +#include <msg_transport.h>
+ // TODO: needed for functionality of switch window types that currently does not work
+ //#include <Ecore_Wayland.h>
  
  #include "callui-common.h"
 +#include "callui-debug.h"
  #include "callui-view-elements.h"
  #include "callui.h"
  #include "callui-view-dialing.h"
@@@ -220,28 -324,94 +221,26 @@@ int _callui_common_unlock_swipe_lock(vo
        return 0;
  }
  
 -long _callui_common_get_uptime(void)
 -{
 -      struct sysinfo info;
 -
 -      if (sysinfo(&info) == 0) {
 -              return info.uptime;
 -      }
 -      return 0;
 -}
 -
  void _callui_common_win_set_noti_type(void *appdata, int bwin_noti)
  {
-       dbg("_callui_common_win_set_noti_type START");
-       callui_app_data_t *ad = (callui_app_data_t *)appdata;
-       Ecore_Wl_Window *win = elm_win_wl_window_get(ad->win);
-       if (bwin_noti == EINA_FALSE) {
-               dbg("window type: NORMAL");
-               /* Set Normal window */
-               ecore_wl_window_type_set(win, ECORE_WL_WINDOW_TYPE_TOPLEVEL);
-       } else {
-               dbg("window type: NOTI-HIGH");
-               /* Set Notification window */
-               ecore_wl_window_type_set(win, ECORE_WL_WINDOW_TYPE_NOTIFICATION);
-               /* Set Notification's priority to LEVEL_HIGH */
-               efl_util_set_notification_window_level(ad->win, EFL_UTIL_NOTIFICATION_LEVEL_TOP);
-       }
-       dbg("_callui_common_win_set_noti_type END");
-       return;
+       dbg("_callui_common_win_set_noti_type");
+       // TODO: commented until functionality of switch window types will be fixed
+ //    callui_app_data_t *ad = (callui_app_data_t *)appdata;
+ //
+ //    Ecore_Wl_Window *win = elm_win_wl_window_get(ad->win);
+ //    if (bwin_noti == EINA_FALSE) {
+ //            dbg("window type: NORMAL");
+ //            /* Set Normal window */
+ //            ecore_wl_window_type_set(win, ECORE_WL_WINDOW_TYPE_TOPLEVEL);
+ //    } else {
+ //            dbg("window type: NOTI-HIGH");
+ //            /* Set Notification window */
+ //            ecore_wl_window_type_set(win, ECORE_WL_WINDOW_TYPE_NOTIFICATION);
+ //            /* Set Notification's priority to LEVEL_HIGH */
+ //            efl_util_set_notification_window_level(ad->win, EFL_UTIL_NOTIFICATION_LEVEL_TOP);
+ //    }
  }
  
 -void _callui_common_get_contact_info(int person_id, call_contact_data_t *ct_info)
 -{
 -      dbg("_callui_common_get_contact_info");
 -      contacts_error_e err = CONTACTS_ERROR_NONE;
 -      contacts_record_h person_record = NULL;
 -
 -      if (person_id == -1) {
 -              err("Invalid contact index!!!");
 -              return;
 -      }
 -
 -      if (ct_info == NULL) {
 -              err("Empty contact info!!!");
 -              return;
 -      }
 -
 -      err = contacts_connect();
 -      if (CONTACTS_ERROR_NONE != err) {
 -              err("contacts_connect is error : %d", err);
 -              return;
 -      }
 -
 -      ct_info->person_id = person_id;
 -      err = contacts_db_get_record(_contacts_person._uri, person_id, &person_record);
 -      if (CONTACTS_ERROR_NONE != err) {
 -              err("contacts_db_get_record error %d", err);
 -      } else {
 -              char *name = NULL;
 -              char *img_path = NULL;
 -
 -              /* Get display name */
 -              err = contacts_record_get_str(person_record, _contacts_person.display_name, &name);
 -              if (CONTACTS_ERROR_NONE != err) {
 -                      err("contacts_record_get_str(display name) error %d", err);
 -              } else {
 -                      g_strlcpy(ct_info->call_disp_name, name, CALLUI_DISPLAY_NAME_LENGTH_MAX);
 -                      free(name);
 -              }
 -
 -              /* Get caller id path */
 -              err = contacts_record_get_str(person_record, _contacts_person.image_thumbnail_path, &img_path);
 -              if (CONTACTS_ERROR_NONE != err) {
 -                      err("contacts_record_get_str(caller id path) error %d", err);
 -              } else {
 -                      g_strlcpy(ct_info->caller_id_path, img_path, CALLUI_IMAGE_PATH_LENGTH_MAX);
 -                      free(img_path);
 -              }
 -              contacts_record_destroy(person_record, TRUE);
 -      }
 -
 -      dbg("contact index:[%d]", ct_info->person_id);
 -      dbg("display name:[%s]", ct_info->call_disp_name);
 -      dbg("img path:[%s]", ct_info->caller_id_path);
 -
 -      contacts_disconnect();
 -      return;
 -}
 -
  void _callui_common_launch_contacts(void *appdata)
  {
        dbg("..");
@@@ -228,11 -294,13 +232,13 @@@ static void __callui_view_circle_accept
                point_distance = __callui_view_circle_get_distance(ad, accept_button_center_x, x, y);
                if (point_distance >= outer_circle_radius) {
                        evas_object_move(circle_bg, accept_outer_circle_x, outer_circle_y);
-                       evas_object_resize(circle_bg, outer_circle_width, outer_circle_height);
-                       evas_object_image_fill_set(circle_bg, 0, 0, outer_circle_width, outer_circle_height);
+                       evas_object_resize(circle_bg,
+                                       ELM_SCALE_SIZE(outer_circle_width), ELM_SCALE_SIZE(outer_circle_height));
+                       evas_object_image_fill_set(circle_bg, 0, 0,
+                                       ELM_SCALE_SIZE(outer_circle_width), ELM_SCALE_SIZE(outer_circle_height));
  
                        dbg("__callui_view_circle_handle_accept");
 -                      __callui_view_circle_handle_accept(vd, ad);
 +                      __callui_view_circle_handle_accept(ad);
                } else {
                        elm_object_signal_emit(lock_accept, "outer_circle,hide", "outer-circle");
                }
@@@ -331,9 -406,11 +341,11 @@@ static void __callui_view_circle_reject
                point_distance = __callui_view_circle_get_distance(ad, reject_button_center_x, x, y);
                if (point_distance >= outer_circle_radius) {
                        evas_object_move(circle_bg, reject_outer_circle_x, outer_circle_y);
-                       evas_object_resize(circle_bg, outer_circle_width, outer_circle_height);
-                       evas_object_image_fill_set(circle_bg, 0, 0, outer_circle_width, outer_circle_height);
+                       evas_object_resize(circle_bg,
+                                       ELM_SCALE_SIZE(outer_circle_width), ELM_SCALE_SIZE(outer_circle_height));
+                       evas_object_image_fill_set(circle_bg, 0, 0,
+                                       ELM_SCALE_SIZE(outer_circle_width), ELM_SCALE_SIZE(outer_circle_height));
 -                      __callui_view_circle_handle_reject(vd, ad);
 +                      __callui_view_circle_handle_reject(ad);
                } else {
                        elm_object_signal_emit(lock_reject, "outer_circle,hide", "outer-circle");
                        elm_object_signal_emit(lock_reject, "inner_circle,show", "inner-circle");
diff --cc src/callui.c
@@@ -214,10 -378,18 +214,11 @@@ static void __callui_win_delete_request
  
  static Evas_Object *__callui_create_main_win(callui_app_data_t *ad)
  {
 -      /*
 -       * Widget Tree
 -       * Window
 -       *  - conform
 -       *   - layout main
 -       *    - naviframe */
 -
        dbg("Create window");
        Evas_Object *eo = elm_win_add(NULL, PACKAGE, ELM_WIN_BASIC);
 -      elm_win_alpha_set(eo, EINA_TRUE);
+       elm_win_aux_hint_add(eo, "wm.policy.win.user.geometry", "1");
        elm_win_fullscreen_set(eo, EINA_FALSE);
 +      elm_win_alpha_set(eo, EINA_TRUE);
  
        if (eo) {
                elm_win_title_set(eo, PACKAGE);