*/
int bt_avrcp_control_set_absolute_volume(unsigned int value);
+/**
+ * @ingroup CAPI_NETWORK_BLUETOOTH_AVRCP_CONTROL_MODULE
+ * @brief Sends the delay report to the remote device.
+ * @since_tizen 5.0
+ * @privlevel platform
+ * @privilege %http://tizen.org/privilege/bluetooth.admin
+ * @param[in] value The new delay level
+ * @return 0 on success, otherwise a negative error value.
+ * @retval #BT_ERROR_NONE Successful
+ * @retval #BT_ERROR_NOT_INITIALIZED Not initialized
+ * @retval #BT_ERROR_INVALID_PARAMETER Invalid parameter
+ * @retval #BT_ERROR_NOT_ENABLED Not enabled
+ * @retval #BT_ERROR_OPERATION_FAILED Operation failed
+ * @retval #BT_ERROR_REMOTE_DEVICE_NOT_CONNECTED Remote device is not connected
+ * @retval #BT_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #BT_ERROR_NOT_SUPPORTED Not supported
+ *
+ * @pre The remote device must be connected.
+ * @see bt_avrcp_target_connection_state_changed_cb()
+ * @see bt_avrcp_target_initialize()
+ */
+int bt_avrcp_control_send_delay_report(unsigned int value);
+
/**
* @ingroup CAPI_NETWORK_BLUETOOTH_PROXIMITY_MODULE
* @brief Creates the Proximity Profile Reporter Role.
return error;
}
+int bt_avrcp_control_send_delay_report(unsigned int value)
+{
+ int error;
+
+ BT_CHECK_AVRCP_CONTROL_SUPPORT();
+ BT_CHECK_INIT_STATUS();
+ BT_CHECK_AVRCP_CONTROL_INIT_STATUS();
+ error = bluetooth_media_transport_set_property(DELAY, value);
+ error = _bt_convert_avrcp_error_code(error);
+ error = _bt_get_error_code(error);
+ if (BT_ERROR_NONE != error)
+ BT_ERR("%s(0x%08x)", _bt_convert_error_to_string(error), error); /* LCOV_EXCL_LINE */
+
+ return error;
+}
+
int bt_avrcp_control_set_equalizer_state(bt_avrcp_equalizer_state_e state)
{
int error;
TC_PRT("returns %s\n", __bt_get_error_message(ret));
break;
}
+ case BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_SEND_DELAY_REPORT: {
+ static unsigned int delay_level = 1;
+ ret = bt_avrcp_control_send_delay_report(delay_level++);
+ TC_PRT("returns %s\n", __bt_get_error_message(ret));
+ break;
+ }
case BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_GET_REPEAT: {
bt_avrcp_repeat_mode_e mode = BT_AVRCP_REPEAT_MODE_GROUP;
ret = bt_avrcp_control_get_repeat_mode(&mode);
BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_NEXT,
BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_PREV,
BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_SET_ABSOLUTE_VOLUME,
+ BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_SEND_DELAY_REPORT,
BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_GET_REPEAT,
BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_SET_REPEAT,
BT_UNIT_TEST_FUNCTION_AVRCP_CONTROL_GET_SHUFFLE,