int changed_ang = elm_win_rotation_get(obj);
BT_INFO("New angle: %d, old angle: %d", changed_ang,
ad->rotation);
- if (changed_ang == ad->rotation) {
+ if (changed_ang == ad->rotation)
return;
- } else {
+ else
ad->rotation = changed_ang;
- }
BT_INFO("Rotation: %d", ad->rotation);
player_stop(sound_player);
player_unprepare(sound_player);
}
- if (state == PLAYER_STATE_READY) {
+
+ if (state == PLAYER_STATE_READY)
player_unprepare(sound_player);
- }
}
player_destroy(sound_player);
static void
__bluetooth_sound_stream_focus_state_changed_cb(sound_stream_info_h stream_info, sound_stream_focus_mask_e focus_mask,
- sound_stream_focus_state_e focus_state, sound_stream_focus_change_reason_e reason,
- int sound_behavior, const char *extra_info, void *user_data)
+ sound_stream_focus_state_e focus_state, sound_stream_focus_change_reason_e reason,
+ int sound_behavior, const char *extra_info, void *user_data)
{
retm_if(user_data == NULL, "invalid parameter");
struct bt_popup_appdata *ad = user_data;
if (*stream_info != NULL) {
sndRet = sound_manager_destroy_stream_information(*stream_info);
- if (sndRet != SOUND_MANAGER_ERROR_NONE) {
+ if (sndRet != SOUND_MANAGER_ERROR_NONE)
BT_ERR("sound_manager_destroy_stream_information() get failed : %x", ret);
- }
}
sndRet = sound_manager_create_stream_information(SOUND_STREAM_TYPE_NOTIFICATION, __bluetooth_sound_stream_focus_state_changed_cb, (void*)(&ad->player), stream_info);
#ifdef TIZEN_REDWOOD
elm_object_style_set(ad->popup, "transparent");
#endif
- if (title != NULL) {
+ if (title != NULL)
elm_object_part_text_set(ad->popup, "title,text", title);
- }
if (text != NULL) {
char *markup_text = NULL;
Eina_Bool state = elm_check_state_get(obj);
BT_INFO("Check %d", state);
- if (state) {
+
+ if (state)
elm_entry_password_set((Evas_Object *)data, EINA_FALSE);
- } else {
+ else
elm_entry_password_set((Evas_Object *)data, EINA_TRUE);
- }
+
elm_entry_cursor_end_set((Evas_Object *)data);
FN_END;
elm_check_state_set(ck, !state);
- if (ad->entry) {
+ if (ad->entry)
__bluetooth_pin_check_clicked_cb(ad->entry, ck, NULL);
- }
FN_END;
}
/*set window level to HIGH*/
// __bluetooth_set_win_level(ad->popup);
- if (title != NULL) {
+ if (title != NULL)
elm_object_part_text_set(ad->popup, "title,text", title);
- }
/* layout */
layout = elm_layout_add(ad->popup);
BT_DBG("Setting window type");
ecore_x_netwm_window_type_set(xwin,
ECORE_X_WINDOW_TYPE_NOTIFICATION);
- if (vconf_get_int(VCONFKEY_IDLE_LOCK_STATE, &lock_state) != 0) {
+ if (vconf_get_int(VCONFKEY_IDLE_LOCK_STATE, &lock_state) != 0)
BT_ERR("Fail to get the lock_state value");
- }
/*
Issue: Pairing request pop appears in the Lock screen when DUT is locked
__bluetooth_vconf_change_cb, ad);
if (ret != 0)
BT_ERR("vconf_notify_key_changed fail!");
- if (bt_initialize() != BT_ERROR_NONE) {
+
+ if (bt_initialize() != BT_ERROR_NONE)
BT_ERR("bt_initialize is failed");
- }
return true;
}
{
struct bt_popup_appdata *ad = data;
- if (bt_deinitialize() != BT_ERROR_NONE) {
+ if (bt_deinitialize() != BT_ERROR_NONE)
BT_ERR("bt_deinitialize is failed");
- }
+
__bluetooth_ime_hide();
if (ad->conn) {
callback.app_control = __bluetooth_reset;
BT_DBG("ui_app_main() is called.");
+
int ret = ui_app_main(argc, argv, &callback, &ad);
- if (ret != APP_ERROR_NONE) {
+
+ if (ret != APP_ERROR_NONE)
BT_ERR("ui_app_main() is failed. err = %d", ret);
- }
BT_DBG("End bt-syspopup main()");
return ret;
enable = elm_check_state_get(ad->popup_check);
style = elm_object_style_get(obj);
- if (!g_strcmp0(style, "popup/circle/right")) {
+ if (!g_strcmp0(style, "popup/circle/right"))
reply_val = enable ? BT_AGENT_ACCEPT_ALWAYS : BT_AGENT_ACCEPT;
- } else {
+ else
reply_val = BT_AGENT_CANCEL;
- }
g_dbus_proxy_call(ad->agent_proxy,
"ReplyAuthorize",
elm_object_focus_set(ad->popup, EINA_TRUE);
ao = elm_access_object_register(ad->popup, ad->win_main);
- if (ao != NULL) {
+ if (ao != NULL)
elm_access_info_set(ao, ELM_ACCESS_INFO, txt);
- } else {
+ else
BT_ERR("elm_access_object_register error!");
- }
if (txt)
free(txt);
elm_object_focus_set(ad->popup, EINA_TRUE);
ao = elm_access_object_register(ad->popup, ad->win_main);
- if (ao != NULL) {
+ if (ao != NULL)
elm_access_info_set(ao, ELM_ACCESS_INFO, msg);
- } else {
+ else
BT_ERR("elm_access_object_register error!");
- }
if (txt != NULL)
free(txt);
Evas_Object *editfield = data;
Ecore_IMF_Context *imf_context =
(Ecore_IMF_Context *)elm_entry_imf_context_get(editfield);
- if (imf_context) {
+
+ if (imf_context)
ecore_imf_context_input_panel_event_callback_clear(imf_context);
- }
+
FN_END;
}
char *dev_name = (char *)data;
char temp[100] = {'\0',};
char *stms_str = NULL;
-
+
if (!strcmp(part, "elm.text")) {
stms_str = BT_STR_ENTER_PIN_TO_PAIR_WITH_PS;
snprintf(temp, sizeof(temp) - 1, stms_str, dev_name);
__bluetooth_set_color_table(ad);
__bluetooth_session_init(ad);
- if (bt_initialize() != BT_ERROR_NONE) {
+ if (bt_initialize() != BT_ERROR_NONE)
BT_ERR("bt_initialize is failed");
- }
return true;
}
struct bt_popup_appdata *ad = data;
- if (bt_deinitialize() != BT_ERROR_NONE) {
+ if (bt_deinitialize() != BT_ERROR_NONE)
BT_ERR("bt_deinitialize is failed");
- }
+
__bluetooth_ime_hide();
if (ad->conn) {