* @privilege %http://tizen.org/privilege/bluetooth.admin
*
* @param[in] value - BT Allow value.
- * BT_DPM_ERROR = -1, < bluetooth allowance error
- * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed
- * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only
- * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted
+ * BT_DPM_ERROR = -1, < bluetooth allowance error
+ * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed
+ * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only
+ * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted
* @retval #BT_ERROR_NONE Successful
* @retval #BT_ERROR_INVALID_PARAMETER invalid paramter
* @retval #BT_ERROR_NOT_SUPPORTED Not suported
BT_DPM_ENABLE = 1, /**< DPM Policy status enabled. */
BT_DPM_DISABLE = 0, /**< DPM Policy status disabled. */
- BT_DPM_FALSE = 0, /**< DPM Policy status false. */
- BT_DPM_TRUE = 1, /**< DPM Policy status true. */
+ BT_DPM_FALSE = 0, /**< DPM Policy status false. */
+ BT_DPM_TRUE = 1, /**< DPM Policy status true. */
} bt_dpm_status_e;
/**
* @privilege %http://tizen.org/privilege/bluetooth.admin
*
* @param[in] value - BT Allow value.
- * BT_DPM_ERROR = -1, < bluetooth allowance error
- * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed
- * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only
- * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted
+ * BT_DPM_ERROR = -1, < bluetooth allowance error
+ * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed
+ * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only
+ * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted
* @retval #BT_ERROR_NONE Successful
* @retval #BT_ERROR_INVALID_PARAMETER invalid paramter
* @retval #BT_ERROR_NOT_SUPPORTED Not suported
BT_DPM_DISABLE = 0, /**< DPM Policy status disabled. */
BT_DPM_FALSE = 0, /**< DPM Policy status false. */
- BT_DPM_TRUE = 1, /**< DPM Policy status true. */
+ BT_DPM_TRUE = 1, /**< DPM Policy status true. */
} bt_dpm_status_e;
/**
* @privilege %http://tizen.org/privilege/bluetooth.admin
*
* @param[in] value - BT Allow value.
- * BT_DPM_ERROR = -1, < bluetooth allowance error
- * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed
- * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only
- * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted
+ * BT_DPM_ERROR = -1, < bluetooth allowance error
+ * BT_DPM_BT_ALLOWED, < bluetooth allowance allowed
+ * BT_DPM_HANDSFREE_ONLY, < bluetooth allowance handsfree only
+ * BT_DPM_BT_RESTRICTED, < bluetooth allowance restricted
* @retval #BT_ERROR_NONE Successful
* @retval #BT_ERROR_INVALID_PARAMETER invalid paramter
* @retval #BT_ERROR_NOT_SUPPORTED Not suported
BT_DPM_DISABLE = 0, /**< DPM Policy status disabled. */
BT_DPM_FALSE = 0, /**< DPM Policy status false. */
- BT_DPM_TRUE = 1, /**< DPM Policy status true. */
+ BT_DPM_TRUE = 1, /**< DPM Policy status true. */
} bt_dpm_status_e;
/**
_bt_convert_address_to_hex(&addr_hex, address);
error_code = _bt_get_error_code(bluetooth_pbap_connect(&addr_hex));
- if (error_code != BT_ERROR_NONE) {
+ if (error_code != BT_ERROR_NONE)
BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
- }
return error_code;
}
_bt_convert_address_to_hex(&addr_hex, address);
error_code = _bt_get_error_code(bluetooth_pbap_disconnect(&addr_hex));
- if (error_code != BT_ERROR_NONE) {
+ if (error_code != BT_ERROR_NONE)
BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error_code), error_code);
- }
return error_code;
}
TC_PRT("Remote Device: %s", remote_address);
TC_PRT("vCard Count: %d", count);
- for (i = 0; i <count; i++)
+ for (i = 0; i < count; i++)
TC_PRT("vCard[%d]: %s", vcard_info[i].index, vcard_info[i].contact_name);
TC_PRT("Listing Status: %s",
return 0;
}
switch (param_index) {
- case 0:
- TC_PRT("Input Profile Type (avail. : \n0.BT_DPM_POLICY_A2DP_PROFILE_STATE, \
- \n1.BT_DPM_POLICY_AVRCP_PROFILE_STATE, \
- \n2.BT_DPM_POLICY_BPP_PROFILE_STATE, \
- \n3.BT_DPM_POLICY_DUN_PROFILE_STATE, \
- \n4.BT_DPM_POLICY_FTP_PROFILE_STATE, \
- \n5.BT_DPM_POLICY_HFP_PROFILE_STATE, \
- \n6.BT_DPM_POLICY_HSP_PROFILE_STATE, \
- \n7.BT_DPM_POLICY_PBAP_PROFILE_STATE, \
- \n8.BT_DPM_POLICY_SAP_PROFILE_STATE, \
- \n9.BT_DPM_POLICY_SPP_PROFILE_STATE, \
- \n10.BT_DPM_PROFILE_NONE");
- break;
- case 1:
- TC_PRT("Input Value Type (avail. : \n0.BT_DPM_BT_ALLOWED, \n1.BT_DPM_RESTRICTED");
- break;
+ case 0:
+ TC_PRT("Input Profile Type (avail. : \n0.BT_DPM_POLICY_A2DP_PROFILE_STATE, \
+ \n1.BT_DPM_POLICY_AVRCP_PROFILE_STATE, \
+ \n2.BT_DPM_POLICY_BPP_PROFILE_STATE, \
+ \n3.BT_DPM_POLICY_DUN_PROFILE_STATE, \
+ \n4.BT_DPM_POLICY_FTP_PROFILE_STATE, \
+ \n5.BT_DPM_POLICY_HFP_PROFILE_STATE, \
+ \n6.BT_DPM_POLICY_HSP_PROFILE_STATE, \
+ \n7.BT_DPM_POLICY_PBAP_PROFILE_STATE, \
+ \n8.BT_DPM_POLICY_SAP_PROFILE_STATE, \
+ \n9.BT_DPM_POLICY_SPP_PROFILE_STATE, \
+ \n10.BT_DPM_PROFILE_NONE");
+ break;
+ case 1:
+ TC_PRT("Input Value Type (avail. : \n0.BT_DPM_BT_ALLOWED, \n1.BT_DPM_RESTRICTED");
+ break;
}
TC_PRT("Input param(%d) type:%s",
param_index + 1, param_type);
__bt_get_error_message(ret));
if (device_list) {
TC_PRT("list len %d", device_list->count);
- for (i = 0; i<device_list->count; i++) {
+ for (i = 0; i < device_list->count; i++) {
str = g_strdup((const gchar*)device_list->devices[i]);
TC_PRT("%d: %s\n", i, str);
g_free(str);
if (device_list) {
TC_PRT("list len %d", device_list->count);
- for (i = 0; i<device_list->count; i++) {
+ for (i = 0; i < device_list->count; i++) {
str = g_strdup((const gchar*)device_list->devices[i]);
TC_PRT("%d: %s\n", i, str);
g_free(str);
if (uuids_list) {
TC_PRT("list len %d", uuids_list->count);
- for (i = 0; i<uuids_list->count; i++) {
+ for (i = 0; i < uuids_list->count; i++) {
str = g_strdup(uuids_list->uuids[i]);
TC_PRT("%d: %s\n", i, str);
g_free(str);
if (uuids_list) {
TC_PRT("list len %d", uuids_list->count);
- for (i = 0; i<uuids_list->count; i++) {
+ for (i = 0; i < uuids_list->count; i++) {
str = g_strdup(uuids_list->uuids[i]);
TC_PRT("%d: %s\n", i, str);
g_free(str);