release tizen_2.0 beta 2.0alpha master 2.0_alpha submit/master/20120920.151027
authorKyeongchul Kim <kyeongchul.kim@samsung.com>
Tue, 21 Aug 2012 12:56:55 +0000 (21:56 +0900)
committerKyeongchul Kim <kyeongchul.kim@samsung.com>
Tue, 21 Aug 2012 12:56:55 +0000 (21:56 +0900)
17 files changed:
CMakeLists.txt
debian/changelog
packaging/capi-telephony-network-info.spec
test/CMakeLists.txt [deleted file]
test/network_info_cell_id_changed_test.c [deleted file]
test/network_info_get_cell_id_test.c [deleted file]
test/network_info_get_lac_test.c [deleted file]
test/network_info_get_mcc_test.c [deleted file]
test/network_info_get_mnc_test.c [deleted file]
test/network_info_get_provider_name_test.c [deleted file]
test/network_info_get_rssi_test.c [deleted file]
test/network_info_get_state_test.c [deleted file]
test/network_info_get_type_test.c [deleted file]
test/network_info_is_roaming_test.c [deleted file]
test/network_info_roaming_state_changed_test.c [deleted file]
test/network_info_rssi_changed_test.c [deleted file]
test/network_info_service_state_changed_test.c [deleted file]

index 3c0a43b..7a1b4da 100755 (executable)
@@ -104,8 +104,6 @@ CONFIGURE_FILE(
 )
 INSTALL(FILES ${CMAKE_CURRENT_SOURCE_DIR}/${fw_name}.pc DESTINATION lib/pkgconfig)
 
-ADD_SUBDIRECTORY(test)
-
 IF(UNIX)
 
 ADD_CUSTOM_TARGET (distclean @echo cleaning for source distribution)
index 169c9cb..5a4abff 100644 (file)
@@ -1,15 +1,15 @@
 capi-telephony-network-info (0.1.0-10) unstable; urgency=low
 
   * Correct dependent packages
-  * Git: api/network-info
+  * Git: slp/api/network-info
   * Tag: capi-telephony-network-info_0.1.0-10 
 
  -- ByungWoo Lee <bw1212.lee@samsung.com>  Thu, 15 Mar 2012 13:27:05 +0900
 
 capi-telephony-network-info (0.1.0-9) unstable; urgency=low
 
-  * Convert internal symbol to static
-  * Git: api/network-info
+  * Modify coding style
+  * Git: slp/api/network-info
   * Tag: capi-telephony-network-info_0.1.0-9 
 
  -- ByungWoo Lee <bw1212.lee@samsung.com>  Mon, 20 Feb 2012 15:53:46 +0900
@@ -17,7 +17,7 @@ capi-telephony-network-info (0.1.0-9) unstable; urgency=low
 capi-telephony-network-info (0.1.0-8) unstable; urgency=low
 
   * Add versioning of library
-  * Git: api/network-info
+  * Git: slp/api/network-info
   * Tag: capi-telephony-network-info_0.1.0-8 
 
  -- ByungWoo Lee <bw1212.lee@samsung.com>  Tue, 14 Feb 2012 17:20:23 +0900
@@ -25,23 +25,96 @@ capi-telephony-network-info (0.1.0-8) unstable; urgency=low
 capi-telephony-network-info (0.1.0-7) unstable; urgency=low
 
   * Because flight mode is removed from public Emulator, network_info_get_service_state() is modified
-  * Git: api/network-info
-  * Tag: capi-telephony-network-info_0.1.0-7
+  * Git: slp/api/network-info
+  * Tag: capi-telephony-network-info_0.1.0-7 
 
- -- ByungWoo Lee <bw1212.lee@samsung.com>  Fri, 06 Jan 2012 17:10:38 +0900
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Fri, 06 Jan 2012 17:01:43 +0900
 
 capi-telephony-network-info (0.1.0-6) unstable; urgency=low
 
-  * Update version
-  * Git: api/network-info
-  * Tag: capi-telephony-network-info_0.1.0-6
+  * Add LICENSE, remove COPYING and Convert TIZEN_ERROR_OK to TIZEN_ERROR_NONE
+  * Git: slp/api/network-info
+  * Tag: capi-telephony-network-info_0.1.0-6 
 
- -- ByungWoo Lee <bw1212.lee@samsung.com>  Thu, 15 Dec 2011 13:15:30 +0900
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Mon, 05 Dec 2011 12:55:46 +0900
+
+capi-telephony-network-info (0.1.0-5) unstable; urgency=low
+
+  * Modify network_info_type_e
+  * Git: slp-source.sec.samsung.net:slp/api/network-info
+  * Tag: capi-telephony-network-info_0.1.0-5 
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Thu, 01 Dec 2011 15:22:08 +0900
+
+capi-telephony-network-info (0.1.0-4) unstable; urgency=low
+
+  * Support only one callback not several callback and modify log 
+  * Git: slp-source.sec.samsung.net:slp/api/network-info
+  * Tag: capi-telephony-network-info_0.1.0-4
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Wed, 30 Nov 2011 19:44:18 +0900
+
+capi-telephony-network-info (0.1.0-3) unstable; urgency=low
+
+  * Convert SLP into TIZEN
+  * Git: slp-source.sec.samsung.net:slp/api/network-info
+  * Tag: capi-telephony-network-info_0.1.0-3
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Wed, 23 Nov 2011 13:27:15 +0900
+
+capi-telephony-network-info (0.1.0-2) unstable; urgency=low
+
+  * Put boilerplate in the source code
+  * Git: slp-source.sec.samsung.net:slp/api/network-info
+  * Tag: capi-telephony-network-info_0.1.0-2 
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Wed, 02 Nov 2011 19:14:56 +0900
+
+capi-telephony-network-info (0.1.0-1) unstable; urgency=low
+
+  * SLP API baseline
+  * Git: slp-source.sec.samsung.net:slp/api/network-info
+  * Tag: capi-telephony-network-info_0.1.0-1 
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Tue, 27 Sep 2011 22:27:32 +0900
+
+capi-telephony-network-info (0.0.1-5) unstable; urgency=low
+
+  * Correct typo in definition of header file
+  * Git: slp-source.sec.samsung.net:slp/api/network-info
+  * Tag: capi-telephony-network-info_0.0.1-5 
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Tue, 20 Sep 2011 17:19:52 +0900
+
+capi-telephony-network-info (0.0.1-4) unstable; urgency=low
+
+  * Split network_info_add_changed_cb into 3 APIs
+  * Git: slp-source.sec.samsung.net:slp/api/network-info
+  * Tag: capi-telephony-network-info_0.0.1-4
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Mon, 05 Sep 2011 20:50:00 +0900
+
+capi-telephony-network-info (0.0.1-3) unstable; urgency=low
+
+  * Remove mutex
+  * Git: slp-source.sec.samsung.net:slp/api/network-info
+  * Tag: capi-telephony-network-info_0.0.1-3
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Mon, 22 Aug 2011 16:29:17 +0900
+
+capi-telephony-network-info (0.0.1-2) unstable; urgency=low
+
+  * Remove tapi from dependent packages and add vconf into them. 
+   * Git: slp-source.sec.samsung.net:slp/api/network-info
+   * Tag: capi-telephony-network-info_0.0.1-2
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Fri, 05 Aug 2011 10:09:03 +0900
 
 capi-telephony-network-info (0.0.1-1) unstable; urgency=low
 
-  * Initial release. 
-  * Git: api/network-info
-  * Tag: capi-telephony-network-info_0.0.1-1
+   * Initial upload
+   * Git: slp-source.sec.samsung.net:slp/api/network-info
+   * Tag: capi-telephony-network-info_0.0.1-1
+
+ -- ByungWoo Lee <bw1212.lee@samsung.com>  Thu, 04 Aug 2011 17:20:54 +0900
 
- -- ByungWoo Lee <bw1212.lee@samsung.com>  Wed, 07 Dec 2011 12:44:57 +0900
index cbfc4ec..7797428 100644 (file)
@@ -1,23 +1,23 @@
 Name:       capi-telephony-network-info
-Summary:    Telephony Network Information Framework
-Version:    0.1.0
+Summary:    A Telephony Network Information library in Tizen Native API
+Version: 0.1.0
 Release:    10
 Group:      TO_BE/FILLED_IN
-License:    Apache-2.0
+License:    TO BE FILLED IN
 Source0:    %{name}-%{version}.tar.gz
 BuildRequires:  cmake
 BuildRequires:  pkgconfig(dlog)
 BuildRequires:  pkgconfig(vconf)
 BuildRequires:  pkgconfig(glib-2.0)
 BuildRequires:  pkgconfig(capi-base-common)
-Requires(post): /sbin/ldconfig  
+Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 
 %description
 
 
 %package devel
-Summary:  Telephony Network Information Framework (Development)
+Summary:  A Telephony Network Information library in Tizen Native API (Development)
 Group:    TO_BE/FILLED_IN
 Requires: %{name} = %{version}-%{release}
 
@@ -53,4 +53,3 @@ rm -rf %{buildroot}
 %{_libdir}/pkgconfig/*.pc
 %{_libdir}/libcapi-telephony-network-info.so
 
-
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt
deleted file mode 100755 (executable)
index 97657b6..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-SET(fw_test "${fw_name}-test")
-
-INCLUDE(FindPkgConfig)
-pkg_check_modules(${fw_test} REQUIRED glib-2.0)
-FOREACH(flag ${${fw_test}_CFLAGS})
-    SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} ${flag}")
-ENDFOREACH(flag)
-
-SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_CFLAGS} -Wall")
-
-#ADD_EXECUTABLE("system-sensor" system-sensor.c)
-#TARGET_LINK_LIBRARIES("system-sensor" ${fw_name} ${${fw_test}_LDFLAGS})
-
-aux_source_directory(. sources)
-FOREACH(src ${sources})
-    GET_FILENAME_COMPONENT(src_name ${src} NAME_WE)
-    MESSAGE("${src_name}")
-    ADD_EXECUTABLE(${src_name} ${src})
-    TARGET_LINK_LIBRARIES(${src_name} ${fw_name} ${${fw_test}_LDFLAGS})
-ENDFOREACH()
diff --git a/test/network_info_cell_id_changed_test.c b/test/network_info_cell_id_changed_test.c
deleted file mode 100644 (file)
index f066bce..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-#include <stdio.h>
-#include <string.h>
-#include <telephony_network.h>
-#include <dlog.h>
-#include <glib.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-static GMainLoop *event_loop;
-
-void cell_id_changed_cb_impl(int cell_id, void* user_data)
-{
-       LOGI("[%s] Start cell_id_changed_cb_impl", __FUNCTION__);
-
-       LOGI("[%s] Cell ID: %d", __FUNCTION__, cell_id);
-       LOGI("[%s] user data: %s", __FUNCTION__, user_data);
-
-       LOGI("[%s] End cell_id_changed_cb_impl", __FUNCTION__); 
-       g_main_loop_quit(event_loop);
-}
-
-int main()
-{
-       if( network_info_set_cell_id_changed_cb(cell_id_changed_cb_impl, "cell_id_changed_test") == NETWORK_INFO_ERROR_NONE )
-       {
-               LOGI("[%s] Succeeded to set callback function", __FUNCTION__);
-       }
-       else
-       {
-               LOGE("[%s] Failed to set callback function", __FUNCTION__);
-               return -1;
-       }
-
-       LOGI("[%s] If cell id is changed, then callback function will be called", __FUNCTION__);
-       event_loop = g_main_loop_new(NULL, FALSE);
-       g_main_loop_run(event_loop);
-
-       if( network_info_unset_cell_id_changed_cb() == NETWORK_INFO_ERROR_NONE )
-       {
-               LOGI("[%s] Succeeded to unset callback function", __FUNCTION__);
-       }
-       else
-       {
-               LOGE("[%s] Failed to unset callback function", __FUNCTION__);
-               return -1;
-       }
-
-       return 0;
-}
diff --git a/test/network_info_get_cell_id_test.c b/test/network_info_get_cell_id_test.c
deleted file mode 100644 (file)
index 5c1e194..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-
-int main()
-{
-       int ret = 0;
-       int cell_id = 0;
-       int ret_value = network_info_get_cell_id(&cell_id);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       LOGI("[%s] Cell ID is %d", __FUNCTION__, cell_id);
-                       ret = 0;
-                       break;                     
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("[%s] Invalid parameter", __FUNCTION__);
-                       ret = -1;
-                       break;
-               case NETWORK_INFO_ERROR_OUT_OF_SERVICE:
-                       LOGI("[%s] Out of service\n", __FUNCTION__);
-                       ret = -1;
-                       break;
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("[%s] Cannot find Cell ID value\n", __FUNCTION__);
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("[%s] Unexpected return value\n", __FUNCTION__);
-                       ret = -1;
-                       break;
-       }
-
-       return ret;
-}
diff --git a/test/network_info_get_lac_test.c b/test/network_info_get_lac_test.c
deleted file mode 100644 (file)
index 563da8b..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-
-int main()
-{
-       int ret = 0;
-       int lac = 0;
-       int ret_value = network_info_get_lac(&lac);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       LOGI("[%s] Location Area Code is %d", __FUNCTION__, lac);
-                       ret = 0;
-                       break;
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("[%s] Invalid parameter", __FUNCTION__);
-                       ret = -1;
-                       break;          
-               case NETWORK_INFO_ERROR_OUT_OF_SERVICE:
-                       LOGI("[%s] Out of service", __FUNCTION__);
-                       ret = -1;
-                       break;                        
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("[%s] Cannot find Location Area Code value", __FUNCTION__);
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("[%s] Unexpected return value", __FUNCTION__);
-                       ret = -1;
-                       break;
-       }
-
-       return ret;
-}
diff --git a/test/network_info_get_mcc_test.c b/test/network_info_get_mcc_test.c
deleted file mode 100644 (file)
index 6d6f3e3..0000000
+++ /dev/null
@@ -1,67 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <stdlib.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-
-int main()
-{
-       int ret = 0;
-       char* mcc = NULL;
-       int ret_value = network_info_get_mcc(&mcc);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       LOGI("[%s] Mobile Country Code is %s", __FUNCTION__, mcc);
-                       ret = 0;
-                       free(mcc);
-                       break;
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("[%s] Invalid parameter", __FUNCTION__);
-                       ret = -1;
-                       break;          
-               case NETWORK_INFO_ERROR_OUT_OF_MEMORY:
-                       LOGI("[%s] Out of memory", __FUNCTION__);
-                       ret = -1;
-                       break;
-               case NETWORK_INFO_ERROR_OUT_OF_SERVICE:
-                       LOGI("[%s] Out of service", __FUNCTION__);
-                       ret = -1;
-                       break;                        
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("[%s] Cannot find Mobile Country Code value", __FUNCTION__);
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("[%s] Unexpected return value", __FUNCTION__);
-                       ret = -1;
-                       break;
-       }
-
-
-       return ret;
-}
diff --git a/test/network_info_get_mnc_test.c b/test/network_info_get_mnc_test.c
deleted file mode 100644 (file)
index 3c61550..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <stdlib.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-
-int main()
-{
-       int ret = 0;
-       char* mnc = NULL;
-       int ret_value = network_info_get_mnc(&mnc);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       LOGI("[%s] Mobile Network Code is %s", __FUNCTION__, mnc);
-                       ret = 0;
-                       free(mnc);
-                       break;
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("[%s] Invalid parameter", __FUNCTION__);
-                       ret = -1;
-                       break;          
-               case NETWORK_INFO_ERROR_OUT_OF_MEMORY:
-                       printf("[%s] Out of memory", __FUNCTION__);
-                       ret = -1;
-                       break;
-               case NETWORK_INFO_ERROR_OUT_OF_SERVICE:
-                       LOGI("[%s] Out of service", __FUNCTION__);
-                       ret = -1;
-                       break;                        
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("[%s] Cannot find Mobile Network Code value", __FUNCTION__);
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("[%s] Unexpected return value", __FUNCTION__);
-                       ret = -1;
-                       break;
-       }
-
-       return ret;
-}
diff --git a/test/network_info_get_provider_name_test.c b/test/network_info_get_provider_name_test.c
deleted file mode 100644 (file)
index 9afee19..0000000
+++ /dev/null
@@ -1,61 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <stdlib.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-int main()
-{
-       int ret = 0;
-       char* provider_name = NULL;
-       int ret_value = network_info_get_provider_name(&provider_name);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       LOGI("Provider name is %s", provider_name);
-                       ret = 0;
-                       free(provider_name);
-                       break;
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("Invalid parameter");
-                       ret = -1;
-                       break;          
-               case NETWORK_INFO_ERROR_OUT_OF_SERVICE:
-                       LOGI("Out of service");
-                       ret = -1;
-                       break;                        
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("Cannot find provider name value");
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("Unexpected return value");
-                       ret = -1;
-                       break;
-       }
-
-       return ret;
-}
diff --git a/test/network_info_get_rssi_test.c b/test/network_info_get_rssi_test.c
deleted file mode 100644 (file)
index 5d239a0..0000000
+++ /dev/null
@@ -1,59 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-int main()
-{
-       int ret = 0;
-       network_info_rssi_e rssi = NETWORK_INFO_RSSI_0;
-       int ret_value = network_info_get_rssi(&rssi);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       LOGI("Received Signal Strength Indicator is TELEPHONY_RSSI_%d", rssi);
-                       ret = 0;
-                       break;
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("Invalid parameter");
-                       ret = -1;
-                       break;          
-               case NETWORK_INFO_ERROR_OUT_OF_SERVICE:
-                       LOGI("Out of service");
-                       ret = -1;
-                       break;                        
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("Cannot find Received Signal Strength Indicator value");
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("Unexpected return value");
-                       ret = -1;
-                       break;
-       }
-
-       return ret;
-}
diff --git a/test/network_info_get_state_test.c b/test/network_info_get_state_test.c
deleted file mode 100644 (file)
index b381e56..0000000
+++ /dev/null
@@ -1,72 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-int main()
-{
-       int ret = 0;
-       network_info_service_state_e network_service_state = NETWORK_INFO_SERVICE_STATE_OUT_OF_SERVICE;
-       int ret_value = network_info_get_service_state(&network_service_state);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       switch(network_service_state)
-                       {
-                               case NETWORK_INFO_SERVICE_STATE_IN_SERVICE:
-                                       LOGI("Service status is NETWORK_INFO_SERVICE_STATE_IN_SERVICE.");
-                                       break;
-                               case NETWORK_INFO_SERVICE_STATE_OUT_OF_SERVICE: 
-                                       LOGI("Service status is NETWORK_INFO_SERVICE_STATE_OUT_OF_SERVICE.");
-                                       break;
-                               case NETWORK_INFO_SERVICE_STATE_EMERGENCY_ONLY:
-                                       LOGI("Service status is TELEPHONY_NETWORK_EMERGENCY_ONLY.");
-                                       break;
-                               case NETWORK_INFO_SERVICE_STATE_RADIO_OFF:
-                                       LOGI("Service status is TELEPHONY_NETWORK_RADIO_OFF.");
-                                       break;
-                               default:
-                                       LOGI("Service type is unknown.\n");
-                                       break;
-                       }
-                       ret = 0;
-                       break;
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("Invalid parameter");
-                       ret = -1;
-                       break;                        
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("Cannot find service status.");
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("Unexpected return value.");
-                       ret = -1;
-                       break;
-       }
-
-       return ret;
-}
diff --git a/test/network_info_get_type_test.c b/test/network_info_get_type_test.c
deleted file mode 100644 (file)
index 5f7452b..0000000
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-int main()
-{
-       int ret = 0;
-       network_info_type_e network_type = NETWORK_INFO_TYPE_UNKNOWN;
-       int ret_value = network_info_get_type(&network_type);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       switch(network_type)
-                       {
-                               case NETWORK_INFO_TYPE_GSM:
-                                       LOGI("Network type is NETWORK_INFO_TYPE_GSM.");
-                                       break;
-                               case NETWORK_INFO_TYPE_GPRS:
-                                       LOGI("Network type is NETWORK_INFO_TYPE_GPRS.");
-                                       break;
-                               case NETWORK_INFO_TYPE_EDGE:
-                                       LOGI("Network type is NETWORK_INFO_TYPE_EDGE.");
-                                       break;
-                               case NETWORK_INFO_TYPE_UMTS:
-                                       LOGI("Network type is NETWORK_INFO_TYPE_UMTS.");
-                                       break;                                  
-                               default:
-                                       LOGI("Unexpected network type.");
-                                       break;
-                       }
-                       ret = 0;
-                       break;
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("Invalid parameter");
-                       ret = -1;
-                       break;          
-               case NETWORK_INFO_ERROR_OUT_OF_SERVICE:
-                       LOGI("Out of service");
-                       ret = -1;
-                       break;                        
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("Cannot find network type.");
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("Unexpected return value.\n");
-                       ret = -1;
-                       break;
-       }
-
-       return ret;
-}
diff --git a/test/network_info_is_roaming_test.c b/test/network_info_is_roaming_test.c
deleted file mode 100644 (file)
index 1a969c0..0000000
+++ /dev/null
@@ -1,62 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <telephony_network.h>
-#include <dlog.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-int main()
-{
-       int ret = 0;
-       bool is_roaming = false;
-       int ret_value = network_info_is_roaming(&is_roaming);
-
-       switch(ret_value)
-       {
-               case NETWORK_INFO_ERROR_NONE:
-                       if( is_roaming == false )
-                               LOGI("Roaming state is OFF - %d", is_roaming);
-                       else
-                               LOGI("Roaming state is ON - %d", is_roaming);
-                       ret = 0;
-                       break;
-               case NETWORK_INFO_ERROR_INVALID_PARAMETER:
-                       LOGI("Invalid parameter");
-                       ret = -1;
-                       break;          
-               case NETWORK_INFO_ERROR_OUT_OF_SERVICE:
-                       LOGI("Out of service");
-                       ret = -1;
-                       break;                        
-               case NETWORK_INFO_ERROR_OPERATION_FAILED:
-                       LOGI("Cannot find roaming state");
-                       ret = -1;
-                       break;
-               default:
-                       LOGI("Unexpected return value");
-                       ret = -1;
-                       break;
-       }
-
-       return ret;
-}
diff --git a/test/network_info_roaming_state_changed_test.c b/test/network_info_roaming_state_changed_test.c
deleted file mode 100644 (file)
index 498fc06..0000000
+++ /dev/null
@@ -1,74 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <string.h>
-#include <telephony_network.h>
-#include <dlog.h>
-#include <glib.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-static GMainLoop *event_loop;
-
-void roaming_state_changed_cb_impl(bool is_roaming, void* user_data)
-{
-       LOGI("[%s] Start roaming_state_changed_cb_impl", __FUNCTION__);
-
-       if( is_roaming == true )
-               LOGI("[%s] is_roaming is true", __FUNCTION__);
-       else
-               LOGI("[%s] is_roaming is false", __FUNCTION__);
-
-       LOGI("[%s] user data: %s", __FUNCTION__, user_data);
-
-       LOGI("[%s] End roaming_state_changed_cb_impl", __FUNCTION__);   
-       g_main_loop_quit(event_loop);
-}
-
-int main()
-{
-       if( network_info_set_roaming_state_changed_cb(roaming_state_changed_cb_impl, "roaming_state_changed_test") == NETWORK_INFO_ERROR_NONE )
-       {
-               LOGI("[%s] Succeeded to add callback function", __FUNCTION__);
-       }
-       else
-       {
-               LOGE("[%s] Failed to add callback function", __FUNCTION__);
-               return -1;
-       }
-
-       LOGI("[%s] If roaming state is changed, then callback function will be called", __FUNCTION__);
-       event_loop = g_main_loop_new(NULL, FALSE);
-       g_main_loop_run(event_loop);
-
-       if( network_info_unset_roaming_state_changed_cb() == NETWORK_INFO_ERROR_NONE )
-       {
-               LOGI("[%s] Succeeded to remove callback function", __FUNCTION__);
-       }
-       else
-       {
-               LOGE("[%s] Failed to remove callback function", __FUNCTION__);
-               return -1;
-       }
-
-       return 0;
-}
diff --git a/test/network_info_rssi_changed_test.c b/test/network_info_rssi_changed_test.c
deleted file mode 100644 (file)
index 1756669..0000000
+++ /dev/null
@@ -1,70 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <string.h>
-#include <telephony_network.h>
-#include <dlog.h>
-#include <glib.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-static GMainLoop *event_loop;
-
-void rssi_changed_cb_impl(network_info_rssi_e rssi, void* user_data)
-{
-       LOGI("[%s] Start rssi_changed_cb_impl", __FUNCTION__);
-
-       LOGI("[%s] RSSI: %d", __FUNCTION__, rssi);
-       LOGI("[%s] user data: %s", __FUNCTION__, user_data);
-
-       LOGI("[%s] End rssi_changed_cb_impl", __FUNCTION__);    
-       g_main_loop_quit(event_loop);
-}
-
-int main()
-{
-       if( network_info_set_rssi_changed_cb(rssi_changed_cb_impl, "rssi_changed_test") == NETWORK_INFO_ERROR_NONE )
-       {
-               LOGI("[%s] Succeeded to add callback function", __FUNCTION__);
-       }
-       else
-       {
-               LOGE("[%s] Failed to add callback function", __FUNCTION__);
-               return -1;
-       }
-
-       LOGI("[%s] If RSSI is changed, then callback function will be called", __FUNCTION__);
-       event_loop = g_main_loop_new(NULL, FALSE);
-       g_main_loop_run(event_loop);
-
-       if( network_info_unset_rssi_changed_cb() == NETWORK_INFO_ERROR_NONE )
-       {
-               LOGI("[%s] Succeeded to remove callback function", __FUNCTION__);
-       }
-       else
-       {
-               LOGE("[%s] Failed to remove callback function", __FUNCTION__);
-               return -1;
-       }
-
-       return 0;
-}
diff --git a/test/network_info_service_state_changed_test.c b/test/network_info_service_state_changed_test.c
deleted file mode 100644 (file)
index 68a7c52..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-/*
- * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
- *
- * Licensed under the Apache License, Version 2.0 (the License);
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an AS IS BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-
-
-
-#include <stdio.h>
-#include <string.h>
-#include <telephony_network.h>
-#include <dlog.h>
-#include <glib.h>
-
-#ifdef LOG_TAG
-#undef LOG_TAG
-#endif
-#define LOG_TAG "TIZEN_N_NETWORK_INFO_TEST"
-
-static GMainLoop *event_loop;
-
-char* convert_network_service_state_to_string(network_info_service_state_e network_service_state)
-{
-       switch(network_service_state)
-       {
-               case NETWORK_INFO_SERVICE_STATE_IN_SERVICE:
-                       return "In service";
-               case NETWORK_INFO_SERVICE_STATE_OUT_OF_SERVICE:
-                       return "Out of service";
-               case NETWORK_INFO_SERVICE_STATE_EMERGENCY_ONLY:
-                       return "Emergency only";
-               case NETWORK_INFO_SERVICE_STATE_RADIO_OFF:
-                       return "Radio off";
-               default:
-                       return "unexpected";
-       }       
-}
-
-void state_changed_cb(network_info_service_state_e status, void* user_data)
-{
-       LOGI("[%s] Start telephony_service_changed_cb", __FUNCTION__);
-
-       LOGI("[%s] Service status: %s", __FUNCTION__, convert_network_service_state_to_string(status));
-       LOGI("[%s] user data: %s", __FUNCTION__, user_data);
-
-       LOGI("[%s] End telephony_service_changed_cb", __FUNCTION__);    
-       g_main_loop_quit(event_loop);
-}
-
-int main()
-{
-       if( network_info_set_service_state_changed_cb(state_changed_cb, "telephony_service_changed_test") == NETWORK_INFO_ERROR_NONE )
-       {
-               LOGI("[%s] Succeeded to add callback function", __FUNCTION__);
-       }
-       else
-       {
-               LOGE("[%s] Failed to add callback function", __FUNCTION__);
-               return -1;
-       }
-
-       LOGI("[%s] If service status is changed, then callback function will be called", __FUNCTION__);
-       event_loop = g_main_loop_new(NULL, FALSE);
-       g_main_loop_run(event_loop);
-
-       if( network_info_unset_service_state_changed_cb() == NETWORK_INFO_ERROR_NONE )
-       {
-               LOGI("[%s] Succeeded to remove callback function", __FUNCTION__);
-       }
-       else
-       {
-               LOGE("[%s] Failed to remove callback function", __FUNCTION__);
-               return -1;
-       }
-
-       return 0;
-}