}
}
-//& type: auto
-//& purpose: get the Integrated Circuit Card IDentification (ICC-ID).
-/**
-* @testcase ITc_telephony_sim_get_icc_id_p
-* @author SRID(saurabh.s9)
-* @reviewer SRID(gupta.sanjay)
-* @type auto
-* @since_tizen 2.3
-* @description to get the Integrated Circuit Card IDentification (ICC-ID)
-* @scenario get the Integrated Circuit Card IDentification (ICC-ID)
-* @apicovered telephony_sim_get_icc_id
-* @passcase if telephony_sim_get_icc_id returns success
-* @failcase if telephony_sim_get_icc_id returns failure
-* @precondition working SIM card must be present in device, network service state of SIM must be TELEPHONY_NETWORK_SERVICE_STATE_IN_SERVICE and SIM state must be TELEPHONY_SIM_STATE_AVAILABLE.
-* @postcondition NA
-*/
-int ITc_telephony_sim_get_icc_id_p(void)
-{
- START_TEST;
-
- char *pszGetValue = NULL;
- int nRet = 0;
- CHECK_SIM_STATE;
-
- // Target API
- nRet = telephony_sim_get_icc_id(g_pstTelephonySIMHandle, &pszGetValue);
- PRINT_RESULT(TELEPHONY_ERROR_NONE, nRet, "telephony_sim_get_icc_id", TelephonyGetError(nRet));
- CHECK_VALUE_STRING(pszGetValue, "telephony_sim_get_icc_id");
- return 0;
-}
-
//& type: auto
//& purpose: get the SIM Operator (MCC + MNC)
/**
return 0;
}
-//& type: auto
-//& purpose: get the IMEI (International Mobile Station Equipment Identity) of a mobile phone
-/**
-* @testcase ITc_telephony_modem_get_imei_p
-* @author SRID(saurabh.s9)
-* @reviewer SRID(gupta.sanjay)
-* @type auto
-* @since_tizen 2.3
-* @description to get the IMEI (International Mobile Station Equipment Identity) of a mobile phone
-* @scenario get the IMEI (International Mobile Station Equipment Identity) of a mobile phone
-* @apicovered telephony_modem_get_imei
-* @passcase if telephony_modem_get_imei returns success and IMEI number is not NULL
-* @failcase if telephony_modem_get_imei returns failure or IMEI number is NULL
-* @precondition working SIM card must be present in device
-* @postcondition NA
-*/
-int ITc_telephony_modem_get_imei_p(void)
-{
- START_TEST;
-
- char *pszGetValue = NULL;
-
- // Target API
- int nRet = telephony_modem_get_imei(g_pstTelephonySIMHandle, &pszGetValue);
- PRINT_RESULT(TELEPHONY_ERROR_NONE, nRet, "telephony_modem_get_imei", TelephonyGetError(nRet));
- CHECK_VALUE_STRING(pszGetValue, "telephony_modem_get_imei");
-
- return 0;
-}
-
-
//& type: auto
//& purpose: get the power status of the modem
/**
return 0;
}
-//& type: auto
-//& purpose: Gets the MEID (Mobile Equipment Identifier) of a mobile phone. (for CDMA)
-/**
-* @testcase ITc_telephony_modem_get_meid_p
-* @author SRID(nibha.sharma)
-* @reviewer SRID(parshant.v)
-* @type auto
-* @since_tizen 3.0
-* @description Gets the MEID (Mobile Equipment Identifier) of a mobile phone. (for CDMA)
-* @scenario Gets the MEID (Mobile Equipment Identifier) of a mobile phone. (for CDMA)
-* @apicovered telephony_modem_get_meid
-* @passcase if telephony_modem_get_meid returns success and IMEI number is not NULL
-* @failcase if telephony_modem_get_meid returns failure or IMEI number is NULL
-* @precondition working SIM card must be present in device
-* @postcondition NA
-*/
-int ITc_telephony_modem_get_meid_p(void)
-{
- START_TEST;
-
- char *pszMeId = NULL;
-
- telephony_network_type_e eNetworkInfoType;
-
- int nRet = telephony_network_get_type(g_pstTelephonySIMHandle, &eNetworkInfoType);
- PRINT_RESULT(TELEPHONY_ERROR_NONE, nRet, "telephony_network_get_type", TelephonyGetError(nRet));
- if ( eNetworkInfoType != TELEPHONY_NETWORK_TYPE_CDMA_1X )
- {
- FPRINTF("[Line : %d][%s] CDMA not supported,Leaving TestCase\\n", __LINE__, API_NAMESPACE);
- return 0;
- }
-
- //Target API
- nRet = telephony_modem_get_meid(g_pstTelephonySIMHandle, &pszMeId);
- PRINT_RESULT(TELEPHONY_ERROR_NONE, nRet, "telephony_modem_get_imei", TelephonyGetError(nRet));
- CHECK_VALUE_STRING(pszMeId, "telephony_modem_get_meid");
-
- FREE_MEMORY(pszMeId);
-
- return 0;
-}
-
/** @} */
/** @} */
extern int ITc_telephony_init_deinit_p(void);
extern int ITc_telephony_set_unset_noti_cb_p(void);
-extern int ITc_telephony_modem_get_imei_p(void);
extern int ITc_telephony_modem_get_power_status_p(void);
extern int ITc_telephony_get_state_p(void);
extern int ITc_telephony_set_unset_state_changed_cb_p(void);
-extern int ITc_telephony_modem_get_meid_p(void);
extern int ITc_telephony_call_get_preferred_voice_subscription_p(void);
extern int ITc_telephony_call_get_release_call_list_p(void);
extern int ITc_telephony_call_get_handle_id_p(void);
extern int ITc_telephony_network_get_base_station_latitude_p(void);
extern int ITc_telephony_network_get_base_station_longitude_p(void);
extern int ITc_telephony_network_get_signal_strength_p(void);
-extern int ITc_telephony_sim_get_icc_id_p(void);
extern int ITc_telephony_sim_get_operator_p(void);
extern int ITc_telephony_sim_get_msin_p(void);
extern int ITc_telephony_sim_get_spn_p(void);
testcase tc_array[] = {
{"ITc_telephony_init_deinit_p",ITc_telephony_init_deinit_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_set_unset_noti_cb_p",ITc_telephony_set_unset_noti_cb_p,ITs_telephony_startup,ITs_telephony_cleanup},
- {"ITc_telephony_modem_get_imei_p",ITc_telephony_modem_get_imei_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_modem_get_power_status_p",ITc_telephony_modem_get_power_status_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_get_state_p",ITc_telephony_get_state_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_set_unset_state_changed_cb_p",ITc_telephony_set_unset_state_changed_cb_p,ITs_telephony_startup,ITs_telephony_cleanup},
- {"ITc_telephony_modem_get_meid_p",ITc_telephony_modem_get_meid_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_call_get_preferred_voice_subscription_p",ITc_telephony_call_get_preferred_voice_subscription_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_call_get_release_call_list_p",ITc_telephony_call_get_release_call_list_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_call_get_handle_id_p",ITc_telephony_call_get_handle_id_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_network_get_base_station_latitude_p",ITc_telephony_network_get_base_station_latitude_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
{"ITc_telephony_network_get_base_station_longitude_p",ITc_telephony_network_get_base_station_longitude_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
{"ITc_telephony_network_get_signal_strength_p",ITc_telephony_network_get_signal_strength_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
- {"ITc_telephony_sim_get_icc_id_p",ITc_telephony_sim_get_icc_id_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_operator_p",ITc_telephony_sim_get_operator_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_msin_p",ITc_telephony_sim_get_msin_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_spn_p",ITc_telephony_sim_get_spn_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
extern int ITc_telephony_init_deinit_p(void);
extern int ITc_telephony_set_unset_noti_cb_p(void);
-extern int ITc_telephony_modem_get_imei_p(void);
extern int ITc_telephony_modem_get_power_status_p(void);
extern int ITc_telephony_get_state_p(void);
extern int ITc_telephony_set_unset_state_changed_cb_p(void);
-extern int ITc_telephony_modem_get_meid_p(void);
extern int ITc_telephony_call_get_preferred_voice_subscription_p(void);
extern int ITc_telephony_call_get_release_call_list_p(void);
extern int ITc_telephony_call_get_handle_id_p(void);
extern int ITc_telephony_network_get_base_station_latitude_p(void);
extern int ITc_telephony_network_get_base_station_longitude_p(void);
extern int ITc_telephony_network_get_signal_strength_p(void);
-extern int ITc_telephony_sim_get_icc_id_p(void);
extern int ITc_telephony_sim_get_operator_p(void);
extern int ITc_telephony_sim_get_msin_p(void);
extern int ITc_telephony_sim_get_spn_p(void);
testcase tc_array[] = {
{"ITc_telephony_init_deinit_p",ITc_telephony_init_deinit_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_set_unset_noti_cb_p",ITc_telephony_set_unset_noti_cb_p,ITs_telephony_startup,ITs_telephony_cleanup},
- {"ITc_telephony_modem_get_imei_p",ITc_telephony_modem_get_imei_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_modem_get_power_status_p",ITc_telephony_modem_get_power_status_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_get_state_p",ITc_telephony_get_state_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_set_unset_state_changed_cb_p",ITc_telephony_set_unset_state_changed_cb_p,ITs_telephony_startup,ITs_telephony_cleanup},
- {"ITc_telephony_modem_get_meid_p",ITc_telephony_modem_get_meid_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_call_get_preferred_voice_subscription_p",ITc_telephony_call_get_preferred_voice_subscription_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_call_get_release_call_list_p",ITc_telephony_call_get_release_call_list_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_call_get_handle_id_p",ITc_telephony_call_get_handle_id_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_network_get_base_station_latitude_p",ITc_telephony_network_get_base_station_latitude_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
{"ITc_telephony_network_get_base_station_longitude_p",ITc_telephony_network_get_base_station_longitude_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
{"ITc_telephony_network_get_signal_strength_p",ITc_telephony_network_get_signal_strength_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
- {"ITc_telephony_sim_get_icc_id_p",ITc_telephony_sim_get_icc_id_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_operator_p",ITc_telephony_sim_get_operator_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_msin_p",ITc_telephony_sim_get_msin_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_spn_p",ITc_telephony_sim_get_spn_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
extern int ITc_telephony_init_deinit_p(void);
extern int ITc_telephony_set_unset_noti_cb_p(void);
-extern int ITc_telephony_modem_get_imei_p(void);
extern int ITc_telephony_modem_get_power_status_p(void);
extern int ITc_telephony_get_state_p(void);
extern int ITc_telephony_set_unset_state_changed_cb_p(void);
-extern int ITc_telephony_modem_get_meid_p(void);
extern int ITc_telephony_call_get_preferred_voice_subscription_p(void);
extern int ITc_telephony_call_get_release_call_list_p(void);
extern int ITc_telephony_call_get_handle_id_p(void);
extern int ITc_telephony_network_get_base_station_latitude_p(void);
extern int ITc_telephony_network_get_base_station_longitude_p(void);
extern int ITc_telephony_network_get_signal_strength_p(void);
-extern int ITc_telephony_sim_get_icc_id_p(void);
extern int ITc_telephony_sim_get_operator_p(void);
extern int ITc_telephony_sim_get_msin_p(void);
extern int ITc_telephony_sim_get_spn_p(void);
testcase tc_array[] = {
{"ITc_telephony_init_deinit_p",ITc_telephony_init_deinit_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_set_unset_noti_cb_p",ITc_telephony_set_unset_noti_cb_p,ITs_telephony_startup,ITs_telephony_cleanup},
- {"ITc_telephony_modem_get_imei_p",ITc_telephony_modem_get_imei_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_modem_get_power_status_p",ITc_telephony_modem_get_power_status_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_get_state_p",ITc_telephony_get_state_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_set_unset_state_changed_cb_p",ITc_telephony_set_unset_state_changed_cb_p,ITs_telephony_startup,ITs_telephony_cleanup},
- {"ITc_telephony_modem_get_meid_p",ITc_telephony_modem_get_meid_p,ITs_telephony_startup,ITs_telephony_cleanup},
{"ITc_telephony_call_get_preferred_voice_subscription_p",ITc_telephony_call_get_preferred_voice_subscription_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_call_get_release_call_list_p",ITc_telephony_call_get_release_call_list_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_call_get_handle_id_p",ITc_telephony_call_get_handle_id_p,ITs_telephony_call_startup,ITs_telephony_call_cleanup},
{"ITc_telephony_network_get_base_station_latitude_p",ITc_telephony_network_get_base_station_latitude_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
{"ITc_telephony_network_get_base_station_longitude_p",ITc_telephony_network_get_base_station_longitude_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
{"ITc_telephony_network_get_signal_strength_p",ITc_telephony_network_get_signal_strength_p,ITs_telephony_network_startup,ITs_telephony_network_cleanup},
- {"ITc_telephony_sim_get_icc_id_p",ITc_telephony_sim_get_icc_id_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_operator_p",ITc_telephony_sim_get_operator_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_msin_p",ITc_telephony_sim_get_msin_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
{"ITc_telephony_sim_get_spn_p",ITc_telephony_sim_get_spn_p,ITs_telephony_sim_startup,ITs_telephony_sim_cleanup},
telephony_call_get_call_list
telephony_deinit
telephony_init
-telephony_modem_get_imei
telephony_modem_get_power_status
telephony_network_get_cell_id
telephony_network_get_lac
telephony_network_get_default_data_subscription
telephony_network_get_default_subscription
telephony_set_noti_cb
-telephony_sim_get_icc_id
telephony_sim_get_msin
telephony_sim_get_operator
telephony_sim_get_spn
extern int utc_telephony_telephony_network_get_signal_strength_p(void);
extern int utc_telephony_telephony_network_get_signal_strength_n1(void);
extern int utc_telephony_telephony_network_get_signal_strength_n2(void);
-extern int utc_telephony_telephony_sim_get_icc_id_p(void);
-extern int utc_telephony_telephony_sim_get_icc_id_n1(void);
-extern int utc_telephony_telephony_sim_get_icc_id_n2(void);
extern int utc_telephony_telephony_sim_get_operator_p(void);
extern int utc_telephony_telephony_sim_get_operator_n1(void);
extern int utc_telephony_telephony_sim_get_operator_n2(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2(void);
-extern int utc_telephony_telephony_modem_get_imei_p(void);
-extern int utc_telephony_telephony_modem_get_imei_n1(void);
-extern int utc_telephony_telephony_modem_get_imei_n2(void);
extern int utc_telephony_telephony_modem_get_power_status_p(void);
extern int utc_telephony_telephony_modem_get_power_status_n1(void);
extern int utc_telephony_telephony_modem_get_power_status_n2(void);
-extern int utc_telephony_telephony_modem_get_meid_p(void);
-extern int utc_telephony_telephony_modem_get_meid_n1(void);
-extern int utc_telephony_telephony_modem_get_meid_n2(void);
testcase tc_array[] = {
{"utc_telephony_telephony_init_p",utc_telephony_telephony_init_p,utc_telephony_common_startup,utc_telephony_common_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_p",utc_telephony_telephony_network_get_signal_strength_p,utc_telephony_network_startup,utc_telephony_network_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_n1",utc_telephony_telephony_network_get_signal_strength_n1,utc_telephony_network_startup,utc_telephony_network_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_n2",utc_telephony_telephony_network_get_signal_strength_n2,utc_telephony_network_startup,utc_telephony_network_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_p",utc_telephony_telephony_sim_get_icc_id_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_n1",utc_telephony_telephony_sim_get_icc_id_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_n2",utc_telephony_telephony_sim_get_icc_id_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_p",utc_telephony_telephony_sim_get_operator_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_n1",utc_telephony_telephony_sim_get_operator_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_n2",utc_telephony_telephony_sim_get_operator_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_modem_get_imei_p",utc_telephony_telephony_modem_get_imei_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_imei_n1",utc_telephony_telephony_modem_get_imei_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_imei_n2",utc_telephony_telephony_modem_get_imei_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_p",utc_telephony_telephony_modem_get_power_status_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_n1",utc_telephony_telephony_modem_get_power_status_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_n2",utc_telephony_telephony_modem_get_power_status_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_p",utc_telephony_telephony_modem_get_meid_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_n1",utc_telephony_telephony_modem_get_meid_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_n2",utc_telephony_telephony_modem_get_meid_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{NULL, NULL}
};
extern int utc_telephony_telephony_network_get_signal_strength_p(void);
extern int utc_telephony_telephony_network_get_signal_strength_n1(void);
extern int utc_telephony_telephony_network_get_signal_strength_n2(void);
-extern int utc_telephony_telephony_sim_get_icc_id_p(void);
-extern int utc_telephony_telephony_sim_get_icc_id_n1(void);
-extern int utc_telephony_telephony_sim_get_icc_id_n2(void);
extern int utc_telephony_telephony_sim_get_operator_p(void);
extern int utc_telephony_telephony_sim_get_operator_n1(void);
extern int utc_telephony_telephony_sim_get_operator_n2(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2(void);
-extern int utc_telephony_telephony_modem_get_imei_p(void);
-extern int utc_telephony_telephony_modem_get_imei_n1(void);
-extern int utc_telephony_telephony_modem_get_imei_n2(void);
extern int utc_telephony_telephony_modem_get_power_status_p(void);
extern int utc_telephony_telephony_modem_get_power_status_n1(void);
extern int utc_telephony_telephony_modem_get_power_status_n2(void);
-extern int utc_telephony_telephony_modem_get_meid_p(void);
-extern int utc_telephony_telephony_modem_get_meid_n1(void);
-extern int utc_telephony_telephony_modem_get_meid_n2(void);
testcase tc_array[] = {
{"utc_telephony_telephony_init_p",utc_telephony_telephony_init_p,utc_telephony_common_startup,utc_telephony_common_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_p",utc_telephony_telephony_network_get_signal_strength_p,utc_telephony_network_startup,utc_telephony_network_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_n1",utc_telephony_telephony_network_get_signal_strength_n1,utc_telephony_network_startup,utc_telephony_network_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_n2",utc_telephony_telephony_network_get_signal_strength_n2,utc_telephony_network_startup,utc_telephony_network_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_p",utc_telephony_telephony_sim_get_icc_id_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_n1",utc_telephony_telephony_sim_get_icc_id_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_n2",utc_telephony_telephony_sim_get_icc_id_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_p",utc_telephony_telephony_sim_get_operator_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_n1",utc_telephony_telephony_sim_get_operator_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_n2",utc_telephony_telephony_sim_get_operator_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_modem_get_imei_p",utc_telephony_telephony_modem_get_imei_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_imei_n1",utc_telephony_telephony_modem_get_imei_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_imei_n2",utc_telephony_telephony_modem_get_imei_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_p",utc_telephony_telephony_modem_get_power_status_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_n1",utc_telephony_telephony_modem_get_power_status_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_n2",utc_telephony_telephony_modem_get_power_status_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_p",utc_telephony_telephony_modem_get_meid_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_n1",utc_telephony_telephony_modem_get_meid_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_n2",utc_telephony_telephony_modem_get_meid_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{NULL, NULL}
};
extern int utc_telephony_telephony_network_get_signal_strength_p(void);
extern int utc_telephony_telephony_network_get_signal_strength_n1(void);
extern int utc_telephony_telephony_network_get_signal_strength_n2(void);
-extern int utc_telephony_telephony_sim_get_icc_id_p(void);
-extern int utc_telephony_telephony_sim_get_icc_id_n1(void);
-extern int utc_telephony_telephony_sim_get_icc_id_n2(void);
extern int utc_telephony_telephony_sim_get_operator_p(void);
extern int utc_telephony_telephony_sim_get_operator_n1(void);
extern int utc_telephony_telephony_sim_get_operator_n2(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1(void);
extern int utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2(void);
-extern int utc_telephony_telephony_modem_get_imei_p(void);
-extern int utc_telephony_telephony_modem_get_imei_n1(void);
-extern int utc_telephony_telephony_modem_get_imei_n2(void);
extern int utc_telephony_telephony_modem_get_power_status_p(void);
extern int utc_telephony_telephony_modem_get_power_status_n1(void);
extern int utc_telephony_telephony_modem_get_power_status_n2(void);
-extern int utc_telephony_telephony_modem_get_meid_p(void);
-extern int utc_telephony_telephony_modem_get_meid_n1(void);
-extern int utc_telephony_telephony_modem_get_meid_n2(void);
testcase tc_array[] = {
{"utc_telephony_telephony_init_p",utc_telephony_telephony_init_p,utc_telephony_common_startup,utc_telephony_common_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_p",utc_telephony_telephony_network_get_signal_strength_p,utc_telephony_network_startup,utc_telephony_network_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_n1",utc_telephony_telephony_network_get_signal_strength_n1,utc_telephony_network_startup,utc_telephony_network_cleanup},
{"utc_telephony_telephony_network_get_signal_strength_n2",utc_telephony_telephony_network_get_signal_strength_n2,utc_telephony_network_startup,utc_telephony_network_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_p",utc_telephony_telephony_sim_get_icc_id_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_n1",utc_telephony_telephony_sim_get_icc_id_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_sim_get_icc_id_n2",utc_telephony_telephony_sim_get_icc_id_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_p",utc_telephony_telephony_sim_get_operator_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_n1",utc_telephony_telephony_sim_get_operator_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_operator_n2",utc_telephony_telephony_sim_get_operator_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_p,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n1,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
{"utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2",utc_telephony_telephony_sim_get_call_forwarding_indicator_state_n2,utc_telephony_sim_startup,utc_telephony_sim_cleanup},
- {"utc_telephony_telephony_modem_get_imei_p",utc_telephony_telephony_modem_get_imei_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_imei_n1",utc_telephony_telephony_modem_get_imei_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_imei_n2",utc_telephony_telephony_modem_get_imei_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_p",utc_telephony_telephony_modem_get_power_status_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_n1",utc_telephony_telephony_modem_get_power_status_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{"utc_telephony_telephony_modem_get_power_status_n2",utc_telephony_telephony_modem_get_power_status_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_p",utc_telephony_telephony_modem_get_meid_p,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_n1",utc_telephony_telephony_modem_get_meid_n1,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
- {"utc_telephony_telephony_modem_get_meid_n2",utc_telephony_telephony_modem_get_meid_n2,utc_telephony_modem_startup,utc_telephony_modem_cleanup},
{NULL, NULL}
};
}
}
-/**
- * @testcase utc_telephony_telephony_modem_get_imei_p
- * @since_tizen 2.3
- * @description Positive test case for getting the IMEI of a mobile phone.
- */
-int utc_telephony_telephony_modem_get_imei_p(void)
-{
- char *imei = NULL;
- int ret;
-
- if (g_telephony_modem_supported == false) {
- ret = telephony_modem_get_imei(telephony_handle, &imei);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- assert(telephony_handle);
- ret = telephony_modem_get_imei(telephony_handle, &imei);
- assert_eq(ret, TELEPHONY_ERROR_NONE);
- free(imei);
- return 0;
-}
-
-/**
- * @testcase utc_telephony_telephony_modem_get_imei_n1
- * @since_tizen 2.3
- * @description Negative test case for getting the IMEI of a mobile phone. (NULL 'handle' param)
- */
-int utc_telephony_telephony_modem_get_imei_n1(void)
-{
- char *imei = NULL;
- int ret;
-
- if (g_telephony_modem_supported == false) {
- ret = telephony_modem_get_imei(NULL, &imei);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- ret = telephony_modem_get_imei(NULL, &imei);
- assert_eq(ret, TELEPHONY_ERROR_INVALID_PARAMETER);
- return 0;
-}
-
-/**
- * @testcase utc_telephony_telephony_modem_get_imei_n2
- * @since_tizen 2.3
- * @description Negative test case for getting the IMEI of a mobile phone. (NULL 'imei' param)
- */
-int utc_telephony_telephony_modem_get_imei_n2(void)
-{
- int ret;
-
- if (g_telephony_modem_supported == false) {
- ret = telephony_modem_get_imei(telephony_handle, NULL);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- ret = telephony_modem_get_imei(telephony_handle, NULL);
- assert_eq(ret, TELEPHONY_ERROR_INVALID_PARAMETER);
- return 0;
-}
/**
* @testcase utc_telephony_telephony_modem_get_power_status_p
return 0;
}
-/**
- * @testcase utc_telephony_telephony_modem_get_meid_p
- * @since_tizen 3.0
- * @description Positive test case for getting the MEID of a mobile phone.
- */
-int utc_telephony_telephony_modem_get_meid_p(void)
-{
- char *meid = NULL;
- int ret;
-
- if (g_telephony_modem_supported == false) {
- ret = telephony_modem_get_meid(telephony_handle, NULL);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- assert(telephony_handle);
- ret = telephony_modem_get_meid(telephony_handle, &meid);
- assert_eq(ret, TELEPHONY_ERROR_NONE);
- free(meid);
- return 0;
-}
-
-/**
- * @testcase utc_telephony_telephony_modem_get_meid_n1
- * @since_tizen 3.0
- * @description Negative test case for getting the MEID of a mobile phone. (NULL 'handle' param)
- */
-int utc_telephony_telephony_modem_get_meid_n1(void)
-{
- char *meid = NULL;
- int ret;
-
- if (g_telephony_modem_supported == false) {
- ret = telephony_modem_get_meid(NULL, &meid);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- ret = telephony_modem_get_meid(NULL, &meid);
- assert_eq(ret, TELEPHONY_ERROR_INVALID_PARAMETER);
- return 0;
-}
-
-/**
- * @testcase utc_telephony_telephony_modem_get_meid_n2
- * @since_tizen 3.0
- * @description Negative test case for getting the IMEI of a mobile phone. (NULL 'meid' param)
- */
-int utc_telephony_telephony_modem_get_meid_n2(void)
-{
- int ret;
-
- if (g_telephony_modem_supported == false) {
- ret = telephony_modem_get_meid(telephony_handle, NULL);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- ret = telephony_modem_get_meid(telephony_handle, NULL);
- assert_eq(ret, TELEPHONY_ERROR_INVALID_PARAMETER);
- return 0;
-}
}
}
-/**
- * @testcase utc_telephony_telephony_sim_get_icc_id_p
- * @since_tizen 2.3
- * @description Positive test case for getting the integrated circuit card identification.
- */
-int utc_telephony_telephony_sim_get_icc_id_p(void)
-{
- char *icc_id = NULL;
- int ret;
- telephony_sim_state_e sim_state;
-
- if (g_telephony_sim_supported == false) {
- ret = telephony_sim_get_icc_id(telephony_handle, &icc_id);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- assert(telephony_handle);
- ret = telephony_sim_get_state(telephony_handle, &sim_state);
- assert_eq(ret, TELEPHONY_ERROR_NONE);
- assert_eq(sim_state, TELEPHONY_SIM_STATE_AVAILABLE);
-
- ret = telephony_sim_get_icc_id(telephony_handle, &icc_id);
- assert_eq(ret, TELEPHONY_ERROR_NONE);
- free(icc_id);
- return 0;
-}
-
-/**
- * @testcase utc_telephony_telephony_sim_get_icc_id_n1
- * @since_tizen 2.3
- * @description Negative test case for getting the integrated circuit card identification. (NULL 'handle' param)
- */
-int utc_telephony_telephony_sim_get_icc_id_n1(void)
-{
- char *icc_id = NULL;
- int ret;
-
- if (g_telephony_sim_supported == false) {
- ret = telephony_sim_get_icc_id(NULL, &icc_id);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- ret = telephony_sim_get_icc_id(NULL, &icc_id);
- assert_eq(ret, TELEPHONY_ERROR_INVALID_PARAMETER);
- return 0;
-}
-
-/**
- * @testcase utc_telephony_telephony_sim_get_icc_id_n2
- * @since_tizen 2.3
- * @description Negative test case for getting the integrated circuit card identification. (NULL 'icc_id' param)
- */
-int utc_telephony_telephony_sim_get_icc_id_n2(void)
-{
- int ret;
-
- if (g_telephony_sim_supported == false) {
- ret = telephony_sim_get_icc_id(telephony_handle, NULL);
- assert_eq(ret, TELEPHONY_ERROR_NOT_SUPPORTED);
- return 0;
- }
-
- ret = telephony_sim_get_icc_id(telephony_handle, NULL);
- assert_eq(ret, TELEPHONY_ERROR_INVALID_PARAMETER);
- return 0;
-}
-
/**
* @testcase utc_telephony_telephony_sim_get_operator_p
* @since_tizen 2.3