Fix the coding style errors 90/71990/1
authorDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 May 2016 06:19:46 +0000 (15:19 +0900)
committerDoHyun Pyun <dh79.pyun@samsung.com>
Mon, 30 May 2016 06:19:46 +0000 (15:19 +0900)
Change-Id: I56a59b41b6f05bcb612b11a8564b8dce6ebe78b1
Signed-off-by: DoHyun Pyun <dh79.pyun@samsung.com>
include/mobile/bluetooth_internal.h
include/mobile/bluetooth_type_internal.h
include/tv/bluetooth_internal.h
include/tv/bluetooth_type_internal.h
include/wearable/bluetooth_internal.h
include/wearable/bluetooth_type_internal.h
src/bluetooth-pbap.c
test/bt_unit_test.c

index cdca4ea64b1a6a49753f6d93e52ab083c68cb0aa..ed6ce9379ec61bc0ce2e6ac3f9cd792809f5a3ce 100644 (file)
@@ -2769,10 +2769,10 @@ int bt_hid_device_reply_to_report(const char *remote_address,
  * @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
index 84582eeacd98ceb26a9461399a17181a51358659..3c594127af1e4728c270216d0ad319dd3e6ea1bb 100644 (file)
@@ -194,8 +194,8 @@ typedef enum {
        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;
 
 /**
index 05ec4f30c1681a21494c372110839e886e12f539..cedf9dcbe59ba3bf28850b8ab8acc991e80e57c0 100644 (file)
@@ -2770,10 +2770,10 @@ int bt_hid_device_reply_to_report(const char *remote_address,
  * @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
index 84582eeacd98ceb26a9461399a17181a51358659..85159c4da6679740b51bced55bf29bc04fb5b562 100644 (file)
@@ -195,7 +195,7 @@ typedef enum {
        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;
 
 /**
index 626b6defaa1dd95a2d9d134130ee74a1e0ad5c32..8815bf3beba40795730b7a9246e899288959deda 100644 (file)
@@ -3116,10 +3116,10 @@ int bt_hid_device_reply_to_report(const char *remote_address,
  * @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
index 9acb80866b8b09bc2845d2d741dff00f2465c4c2..eef15ed1300a6e9d2a45008ca4d8b826d1ed1150 100644 (file)
@@ -336,7 +336,7 @@ typedef enum {
        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;
 
 /**
index a34b8399e5d2a498d9ee0e573a6986a9f4b3f5c7..deda90c57487d19f5c2efc18b2a7bc508ec0a874 100644 (file)
@@ -90,9 +90,8 @@ int bt_pbap_client_connect(const char *address)
        _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;
 }
@@ -109,9 +108,8 @@ int bt_pbap_client_disconnect(const char *address)
        _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;
 }
index 1b5be640d94439f6a5185130c587c03fa9d62e52..47518a7ba8a182cea62093a6e3d7548e3133e292 100644 (file)
@@ -2764,7 +2764,7 @@ void __bt_pbap_vcard_list_cb(int result, const char *remote_address,
        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",
@@ -3839,22 +3839,22 @@ int test_set_params(int test_id, char *param)
                                        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);
@@ -7764,7 +7764,7 @@ int test_input_callback(void *data)
                                                __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);
@@ -7784,7 +7784,7 @@ int test_input_callback(void *data)
 
                        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);
@@ -7804,7 +7804,7 @@ int test_input_callback(void *data)
 
                        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);
@@ -7824,7 +7824,7 @@ int test_input_callback(void *data)
 
                        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);