if (!name)
name = address;
-#ifdef TIZEN_WEARABLE
- uint32_t major_class;
-
-
- major_class = (device_class & 0x1f00) >> 8;
-
- if (major_class == BLUETOOTH_DEVICE_MAJOR_CLASS_AUDIO) {
- DBG("Audio device. Launch passkey pop-up");
- _bt_hal_launch_system_popup(BT_HAL_AGENT_EVENT_PASSKEY_CONFIRM_REQUEST, name,
- str_passkey, NULL, _gap_agent_get_path(agent));
- goto done;
- }
-
- if (__is_reset_required(address)) {
- DBG("Launch system reset pop-up");
- _bt_hal_launch_system_popup(BT_HAL_AGENT_EVENT_SYSTEM_RESET_REQUEST, name,
- NULL, NULL, _gap_agent_get_path(agent));
- } else {
- DBG("Launch passkey pop-up");
- _bt_hal_launch_system_popup(BT_HAL_AGENT_EVENT_PASSKEY_AUTO_ACCEPTED, name,
- str_passkey, NULL, _gap_agent_get_path(agent));
-
- gap_agent_reply_confirmation(agent, GAP_AGENT_ACCEPT, NULL);
- }
-#else
#ifdef TIZEN_SYSPOPUP_SUPPORTED
DBG("Launch BT Syspopup");
__bt_hal_send_ssp_request_events(address, name, passkey,
device_class, BT_SSP_VARIANT_PASSKEY_CONFIRMATION);
#endif //TIZEN_SYSPOPUP_SUPPORTED
-#endif //TIZEN_WEARABLE
done:
g_variant_unref(reply);
case BT_HAL_AGENT_EVENT_MAP_REQUEST:
g_strlcpy(event_str, "message-request", sizeof(event_str));
break;
-#ifdef TIZEN_WEARABLE
- case BT_HAL_AGENT_EVENT_SYSTEM_RESET_REQUEST:
- __bt_register_popup_event_signal();
- g_strlcpy(event_str, "system-reset-request", sizeof(event_str));
- break;
-#endif
-
case BT_HAL_AGENT_EVENT_LEGACY_PAIR_FAILED_FROM_REMOTE:
g_strlcpy(event_str, "remote-legacy-pair-failed", sizeof(event_str));
break;
visible_timer.event_id = 0;
visible_timer.timeout = 0;
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (vconf_set_int(BT_FILE_VISIBLE_TIME, 0) != 0)
BT_ERR("Set vconf failed\n");
#endif
visible_timer.event_id = 0;
visible_timer.timeout = 0;
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
if (vconf_set_int(BT_FILE_VISIBLE_TIME, 0) != 0)
BT_ERR("Set vconf failed\n");
#endif
visible_timer.timeout = timeout;
-#ifndef TIZEN_WEARABLE
+#ifndef TIZEN_PROFILE_WEARABLE
#ifdef TIZEN_DPM_ENABLE
if (_bt_dpm_get_bluetooth_limited_discoverable_state() != DPM_RESTRICTED) {
#endif
#include "bt-service-a2dp-src.h"
#include "bt-service-hf.h"
+#ifdef TIZEN_SUPPORT_DUAL_HF
+#ifdef TIZEN_PROFILE_WEARABLE
+#define VCONF_KEY_BT_HOST_BT_MAC_ADDR "db/wms/host_bt_mac"
+#endif
+#endif
+
/* Static variables and Macros */
static GList *g_connected_list;
static bt_headset_wait_t *g_wait_data;
#ifdef TIZEN_SUPPORT_DUAL_HF
gboolean __bt_is_companion_device(const char *addr)
{
-#ifdef TIZEN_WEARABLE
+#ifdef TIZEN_PROFILE_WEARABLE
char *host_device_address = NULL;
host_device_address = vconf_get_str(VCONF_KEY_BT_HOST_BT_MAC_ADDR);