From: Prashant Kumar Jangid
Date: Fri, 28 Oct 2022 08:48:24 +0000 (+0530)
Subject: [ITC][capi-maps-service][Non-ACR] Removed build warnings, unused variables and whites...
X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af76c091882d83bfb328aa46d4aa7375cd4960d4;p=test%2Ftct%2Fnative%2Fapi.git
[ITC][capi-maps-service][Non-ACR] Removed build warnings, unused variables and whitespaces
Change-Id: I0a6ef593b43e7fef35a0048821af644b74bc76af
Signed-off-by: Prashant Kumar Jangid
---
diff --git a/src/itc/capi-maps-service/ITs-capi-maps-service-common.c b/src/itc/capi-maps-service/ITs-capi-maps-service-common.c
old mode 100755
new mode 100644
index 0ee72a74b..d50342242
--- a/src/itc/capi-maps-service/ITs-capi-maps-service-common.c
+++ b/src/itc/capi-maps-service/ITs-capi-maps-service-common.c
@@ -19,7 +19,7 @@
* @ingroup itc
* @{
*/
-static bool bMapsRemovedProviders = false;
+
/**
* @function MapsCallbackTimeout
* @description callback function to terminate g_main loop
@@ -52,7 +52,7 @@ bool GetResourceDataPath(void)
FREE_MEMORY_TC(pszResPath);
return true;
}
-
+
return false;
}
@@ -93,11 +93,11 @@ bool MapsServiceProviderForeachHERECb(char* maps_provider, void* user_data)
if(maps_provider != NULL)
{
strncpy(g_szMapsProvider, "HERE", sizeof(g_szMapsProvider)-1);
- FPRINTF("[Line : %d][%s] Provider list from maps_service_foreach_provider is = %s\\n", __LINE__, API_NAMESPACE, g_szMapsProvider);
+ FPRINTF("[Line : %d][%s] Provider list from maps_service_foreach_provider is = %s\\n", __LINE__, API_NAMESPACE, g_szMapsProvider);
}
else
return false;
-
+
g_nCheckCb = true;
return true;
}
@@ -132,12 +132,12 @@ void MapsServiceSearchPlaceListCb(maps_error_e error, int request_id, int total,
g_pMainLoop = NULL;
}
}
-// Callback function
+// Callback function
static void MapsServiceGetPlaceDetailsCb(maps_error_e error, int request_id, maps_place_h place, void *user_data)
{
FPRINTF("[Line : %d][%s] Inside MapsServiceGetPlaceDetailsCb callback\\n", __LINE__, API_NAMESPACE);
g_nCheckCb = true;
-
+
g_nCheckRet = maps_place_clone(place, &g_maps_place);
if ( g_pMainLoop )
@@ -157,7 +157,7 @@ static bool MapsServiceSearchPlaceHereCb(maps_error_e error, int request_id , in
maps_place_destroy(g_maps_place);
}*/
g_nCheckRet = maps_place_clone(place, &g_maps_place);
-
+
if (index + 1 < total) return true;
g_nCheckCb = true;
@@ -169,23 +169,23 @@ static bool MapsServiceSearchPlaceHereCb(maps_error_e error, int request_id , in
g_pMainLoop = NULL;
}
return true;
-}
+}
void MapsPlaceLocationHandleHelperHERE(void)
{
int nRequestId = 0;
maps_place_filter_h hPlaceFilter = NULL;
maps_coordinates_h hMapCoords = NULL;
-
+
g_bFeatureMismatch = false;
g_bFeatureNotSupported = false;
g_bStartupPre = true;
-
+
g_nCheckRet = 0;
g_nCheckCb = 0;
-
+
bool bMapsFeatureSupported = TCTCheckSystemInfoFeatureSupported(MAPS_FEATURE, API_NAMESPACE);
bool bInternetFeatureSupported = TCTCheckSystemInfoFeatureSupported(INTERNET_FEATURE, API_NAMESPACE);
-
+
int nRet = maps_service_foreach_provider(MapsServiceProviderForeachHERECb, NULL);
if ( false == bMapsFeatureSupported)
{
@@ -250,7 +250,7 @@ void MapsPlaceLocationHandleHelperHERE(void)
g_bStartupPre = false;
return;
}
-
+
nRet = maps_service_set_provider_key(g_hMapService, pstrValue);
if(nRet != MAPS_ERROR_NONE)
{
@@ -274,7 +274,7 @@ void MapsPlaceLocationHandleHelperHERE(void)
maps_service_destroy(g_hMapService);
return;
}
-
+
nRet = maps_preference_set_max_results(g_hMapsPref, RESULT);
if(nRet != MAPS_ERROR_NONE)
{
@@ -344,7 +344,7 @@ void MapsPlaceLocationHandleHelperHERE(void)
}
g_nCheckCb = 0;
g_nCheckRet = 0;
-
+
nRet = maps_service_search_place(g_hMapService, hMapCoords, DISTANCELOC, hPlaceFilter, g_hMapsPref, MapsServiceSearchPlaceHereCb, NULL, &nRequestId);
if ( false == bInternetFeatureSupported)
{
@@ -371,7 +371,7 @@ void MapsPlaceLocationHandleHelperHERE(void)
maps_service_destroy(g_hMapService);
return;
}
-
+
RUN_POLLING_LOOP;
if(g_nCheckCb != true)
{
@@ -447,17 +447,17 @@ void MapsPlaceHandleHelperHERE(void)
maps_place_filter_h hPlaceFilter = NULL;
maps_coordinates_h hMapCoords = NULL;
maps_area_h hArea = NULL;
-
+
g_bFeatureMismatch = false;
g_bFeatureNotSupported = false;
g_bStartupPre = true;
-
+
bool bMapsFeatureSupported = TCTCheckSystemInfoFeatureSupported(MAPS_FEATURE, API_NAMESPACE);
bool bInternetFeatureSupported = TCTCheckSystemInfoFeatureSupported(INTERNET_FEATURE, API_NAMESPACE);
-
+
g_nCheckCb = 0;
g_nCheckRet = 0;
-
+
nRet = maps_service_foreach_provider(MapsServiceProviderForeachHERECb, NULL);
if ( false == bMapsFeatureSupported)
{
@@ -632,7 +632,7 @@ void MapsPlaceHandleHelperHERE(void)
}
g_nCheckRet = 0;
g_nCheckCb = 0;
-
+
//Target API
nRet = maps_service_search_place_list(g_hMapService, hArea, hPlaceFilter, g_hMapsPref, MapsServiceSearchPlaceListCb, NULL, &nRequestId);
if ( false == bInternetFeatureSupported)
diff --git a/src/itc/capi-maps-service/ITs-capi-maps-service-here.c b/src/itc/capi-maps-service/ITs-capi-maps-service-here.c
old mode 100755
new mode 100644
index d1c624102..4d8e7806d
--- a/src/itc/capi-maps-service/ITs-capi-maps-service-here.c
+++ b/src/itc/capi-maps-service/ITs-capi-maps-service-here.c
@@ -19,11 +19,6 @@
* @ingroup itc
* @{
*/
-static gboolean Timeout_Function(gpointer data)
-{
- g_main_loop_quit((GMainLoop *)data);
- return false;
-}
//& set: MapsService
@@ -47,7 +42,7 @@ static bool MapsServiceProviderForeachCb(char* maps_provider, void* user_data)
{
memset( g_szMapsProvider, '\0', sizeof(char)*BUFFER);
strncpy(g_szMapsProvider, "HERE", sizeof(g_szMapsProvider)-1);
- FPRINTF("[Line : %d][%s] Provider list from maps_service_foreach_provider is = %s\\n", __LINE__, API_NAMESPACE, g_szMapsProvider);
+ FPRINTF("[Line : %d][%s] Provider list from maps_service_foreach_provider is = %s\\n", __LINE__, API_NAMESPACE, g_szMapsProvider);
g_nCheckCb = true;
return false;
}
diff --git a/src/itc/capi-maps-service/ITs-capi-maps-view-here.c b/src/itc/capi-maps-service/ITs-capi-maps-view-here.c
old mode 100755
new mode 100644
index 3149cdee1..d84162efa
--- a/src/itc/capi-maps-service/ITs-capi-maps-view-here.c
+++ b/src/itc/capi-maps-service/ITs-capi-maps-view-here.c
@@ -624,7 +624,7 @@ int ITc_maps_view_set_get_buildings_enabled_p(void)
bool bInternetFeatureSupported = TCTCheckSystemInfoFeatureSupported(INTERNET_FEATURE, API_NAMESPACE);
int nRet = maps_service_provider_is_data_supported(g_HandleMapService, MAPS_VIEW_BUILDING, &supported);
-
+
if ( false == bInternetFeatureSupported)
{
if ( nRet != TIZEN_ERROR_NOT_SUPPORTED )
@@ -639,13 +639,13 @@ int ITc_maps_view_set_get_buildings_enabled_p(void)
}
}
PRINT_RESULT(MAPS_ERROR_NONE, nRet, "maps_service_provider_is_data_supported", MapServiceGetError(nRet));
-
+
if(supported == true)
{
nRet = maps_view_set_buildings_enabled(g_HandleMapView, SetEnabled);
-
+
PRINT_RESULT(MAPS_ERROR_NONE, nRet, "maps_view_set_buildings_enabled", MapServiceGetError(nRet));
-
+
nRet = maps_view_get_buildings_enabled(g_HandleMapView, &GetEnabled);
PRINT_RESULT(MAPS_ERROR_NONE, nRet, "maps_view_get_buildings_enabled", MapServiceGetError(nRet));
if(GetEnabled != SetEnabled)
@@ -656,7 +656,7 @@ int ITc_maps_view_set_get_buildings_enabled_p(void)
}
else
{
- FPRINTF("[Line : %d][%s] ITc_maps_view_set_get_buildings_enabled_p API not supported", __LINE__, API_NAMESPACE, MapServiceGetError(nRet));
+ FPRINTF("[Line : %d][%s] maps_service_provider_is_data_supported API not supported for 'MAPS_VIEW_BUILDING'", __LINE__, API_NAMESPACE);
}
return 0;
@@ -681,7 +681,7 @@ int ITc_maps_view_set_get_buildings_enabled_p(void)
int ITc_maps_view_set_get_language_p(void)
{
START_TEST_VIEW(g_CheckInitErr,"maps_view");
-
+
char *setLanguage = "eng";
bool bInternetFeatureSupported = TCTCheckSystemInfoFeatureSupported(INTERNET_FEATURE, API_NAMESPACE);
diff --git a/src/itc/capi-maps-service/ITs-capi-maps-view-object.c b/src/itc/capi-maps-service/ITs-capi-maps-view-object.c
old mode 100755
new mode 100644
index 33f1c5c1b..71a527deb
--- a/src/itc/capi-maps-service/ITs-capi-maps-view-object.c
+++ b/src/itc/capi-maps-service/ITs-capi-maps-view-object.c
@@ -1561,7 +1561,6 @@ int ITc_maps_view_object_create_overlay_p(void)
START_TEST_OBJECT;
maps_coordinates_h hCoord = NULL;
maps_view_object_h hOverlay = NULL;
- double dX = 0.0, dY = 0.0;
int nLoopCount;
elm_init(0, NULL);
elm_config_accel_preference_set("opengl");