#define BLUETOOTH_AUDIOCALL_FEATURE "http://tizen.org/feature/network.bluetooth.audio.call"
#define BLUETOOTH_LE_FEATURE "http://tizen.org/feature/network.bluetooth.le"
#define BLUETOOTH_OOB_FEATURE "http://tizen.org/feature/network.bluetooth.oob"
+#define BLUETOOTH_LE5_FEATURE "http://tizen.org/feature/network.bluetooth.le.5_0"
bool g_bBluetoothInit;
return 0;
}
+
+//& purpose: To check if LE 2M PHY feature is supported or not.
+//& type: auto
+/**
+ * @testcase ITc_bt_adapter_le_is_2m_phy_supported_p
+ * @since_tizen 5.0
+ * @author SRID(karanam.s)
+ * @reviewer SRID(nibha.sharma)
+ * @type Positive
+ * @description To check if LE 2M PHY feature is supported or not
+ * @scenario Call bt_adapter_le_is_2m_phy_supported_p
+ * @apicovered bt_adapter_le_is_2m_phy_supported_p
+ * @passcase If target API bt_adapter_le_is_2m_phy_supported_p return 0
+ * @failcase If target API bt_adapter_le_is_2m_phy_supported_p return non-zero
+ * @precondition Bluetooth must be initialized
+ * @postcondition Bluetooth must be deinitialized
+ */
+int ITc_bt_adapter_le_is_2m_phy_supported_p(void)
+{
+ START_TEST;
+
+ bool bIsSupported = false;
+ bool bBluetoothLE5IsSupported = false;
+ if ( TCTCheckSystemInfoFeatureSupported(BLUETOOTH_LE5_FEATURE, API_NAMESPACE) )
+ {
+ bBluetoothLE5IsSupported = true;
+ }
+
+ int nRet = bt_adapter_le_is_2m_phy_supported(&bIsSupported);
+ if ( !bBluetoothLE5IsSupported )
+ {
+ PRINT_RESULT(BT_ERROR_NOT_SUPPORTED, nRet, "bt_adapter_le_is_2m_phy_supported", BluetoothGetError(nRet));
+ return 0;
+ }
+
+ PRINT_RESULT(BT_ERROR_NONE, nRet, "bt_adapter_le_is_2m_phy_supported", BluetoothGetError(nRet));
+ return 0;
+}
+
+//& purpose: To check if LE CODED PHY feature is supported or not.
+//& type: auto
+/**
+ * @testcase ITc_bt_adapter_le_is_coded_phy_supported_p
+ * @since_tizen 5.0
+ * @author SRID(karanam.s)
+ * @reviewer SRID(nibha.sharma)
+ * @type Positive
+ * @description To check if LE CODED PHY feature is supported or not
+ * @scenario Call bt_adapter_le_is_coded_phy_supported
+ * @apicovered bt_adapter_le_is_coded_phy_supported
+ * @passcase If target API bt_adapter_le_is_coded_phy_supported return 0
+ * @failcase If target API bt_adapter_le_is_coded_phy_supported return non-zero
+ * @precondition Bluetooth must be initialized
+ * @postcondition Bluetooth must be deinitialized
+ */
+int ITc_bt_adapter_le_is_coded_phy_supported_p(void)
+{
+ START_TEST;
+
+ bool bIsSupported = false;
+ bool bBluetoothLE5IsSupported = false;
+ if ( TCTCheckSystemInfoFeatureSupported(BLUETOOTH_LE5_FEATURE, API_NAMESPACE) )
+ {
+ bBluetoothLE5IsSupported = true;
+ }
+
+ int nRet = bt_adapter_le_is_coded_phy_supported(&bIsSupported);
+ if ( !bBluetoothLE5IsSupported )
+ {
+ PRINT_RESULT(BT_ERROR_NOT_SUPPORTED, nRet, "bt_adapter_le_is_coded_phy_supported", BluetoothGetError(nRet));
+ return 0;
+ }
+ PRINT_RESULT(BT_ERROR_NONE, nRet, "bt_adapter_le_is_coded_phy_supported", BluetoothGetError(nRet));
+
+ return 0;
+}
/** @} */
/** @} */
extern int ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p(void);
extern int ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p(void);
extern int ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p(void);
+extern int ITc_bt_adapter_le_is_2m_phy_supported_p(void);
+extern int ITc_bt_adapter_le_is_coded_phy_supported_p(void);
testcase tc_array[] = {
{"ITc_bluetooth_audio_bt_audio_initialize_deinitialize_p",ITc_bluetooth_audio_bt_audio_initialize_deinitialize_p,ITs_bluetooth_audio_startup,ITs_bluetooth_audio_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p", ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p", ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p", ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
+ {"ITc_bt_adapter_le_is_2m_phy_supported_p", ITc_bt_adapter_le_is_2m_phy_supported_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
+ {"ITc_bt_adapter_le_is_coded_phy_supported_p", ITc_bt_adapter_le_is_coded_phy_supported_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{NULL, NULL}
};
extern int ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p(void);
extern int ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p(void);
extern int ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p(void);
+extern int ITc_bt_adapter_le_is_2m_phy_supported_p(void);
+extern int ITc_bt_adapter_le_is_coded_phy_supported_p(void);
testcase tc_array[] = {
{"ITc_bluetooth_audio_bt_audio_initialize_deinitialize_p",ITc_bluetooth_audio_bt_audio_initialize_deinitialize_p,ITs_bluetooth_audio_startup,ITs_bluetooth_audio_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p", ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p", ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p", ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
+ {"ITc_bt_adapter_le_is_2m_phy_supported_p", ITc_bt_adapter_le_is_2m_phy_supported_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
+ {"ITc_bt_adapter_le_is_coded_phy_supported_p", ITc_bt_adapter_le_is_coded_phy_supported_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{NULL, NULL}
};
extern int ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p(void);
extern int ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p(void);
extern int ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p(void);
+extern int ITc_bt_adapter_le_is_2m_phy_supported_p(void);
+extern int ITc_bt_adapter_le_is_coded_phy_supported_p(void);
testcase tc_array[] = {
{"ITc_bluetooth_audio_bt_audio_initialize_deinitialize_p",ITc_bluetooth_audio_bt_audio_initialize_deinitialize_p,ITs_bluetooth_audio_startup,ITs_bluetooth_audio_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p", ITc_bt_adapter_le_scan_filter_set_service_data_with_mask_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p", ITc_bt_adapter_le_scan_filter_set_manufacturer_data_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{"ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p", ITc_bt_adapter_le_scan_filter_set_manufacturer_data_with_mask_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
+ {"ITc_bt_adapter_le_is_2m_phy_supported_p", ITc_bt_adapter_le_is_2m_phy_supported_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
+ {"ITc_bt_adapter_le_is_coded_phy_supported_p", ITc_bt_adapter_le_is_coded_phy_supported_p, ITs_bluetooth_adapter_le_startup, ITs_bluetooth_adapter_le_cleanup},
{NULL, NULL}
};