* @ingroup itc
* @{
*/
-static bool bMapsRemovedProviders = false;
+
/**
* @function MapsCallbackTimeout
* @description callback function to terminate g_main loop
FREE_MEMORY_TC(pszResPath);
return true;
}
-
+
return false;
}
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;
}
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 )
maps_place_destroy(g_maps_place);
}*/
g_nCheckRet = maps_place_clone(place, &g_maps_place);
-
+
if (index + 1 < total) return true;
g_nCheckCb = true;
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)
{
g_bStartupPre = false;
return;
}
-
+
nRet = maps_service_set_provider_key(g_hMapService, pstrValue);
if(nRet != MAPS_ERROR_NONE)
{
maps_service_destroy(g_hMapService);
return;
}
-
+
nRet = maps_preference_set_max_results(g_hMapsPref, RESULT);
if(nRet != MAPS_ERROR_NONE)
{
}
g_nCheckCb = 0;
g_nCheckRet = 0;
-
+
nRet = maps_service_search_place(g_hMapService, hMapCoords, DISTANCELOC, hPlaceFilter, g_hMapsPref, MapsServiceSearchPlaceHereCb, NULL, &nRequestId);
if ( false == bInternetFeatureSupported)
{
maps_service_destroy(g_hMapService);
return;
}
-
+
RUN_POLLING_LOOP;
if(g_nCheckCb != true)
{
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)
{
}
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)
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 )
}
}
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)
}
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;
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);