From: Michal Pawluk Date: Fri, 7 Aug 2015 08:17:10 +0000 (+0200) Subject: [SAMPLE APP][GPS-SERVICE] non-public functions removed X-Git-Tag: tizen_3.0/TD_SYNC/20161201~631^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d6db6c315e5448f203c19258035d437b6a0dcce1;p=sdk%2Fonline-doc.git [SAMPLE APP][GPS-SERVICE] non-public functions removed Change-Id: I5bc25407355f1822be704f948a71976ad58eaa30 Signed-off-by: Michal Pawluk Signed-off-by: Agnieszka Janowicz --- diff --git a/org.tizen.sampledescriptions/html/mobile_n/gps_service_sd_mn.htm b/org.tizen.sampledescriptions/html/mobile_n/gps_service_sd_mn.htm index eab282c..c568c71 100644 --- a/org.tizen.sampledescriptions/html/mobile_n/gps_service_sd_mn.htm +++ b/org.tizen.sampledescriptions/html/mobile_n/gps_service_sd_mn.htm @@ -61,7 +61,7 @@ // Create the location manager handle if (location_manager_create(LOCATIONS_METHOD_GPS, &s_geolocation_data.manager) != LOCATIONS_ERROR_NONE) { -   LOGE("Failed to create location manager"); +   dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create location manager");    return false; } @@ -75,7 +75,7 @@ location_error_e sat_cb = gps_status_set_satellite_updated_cb(s_geolocation_data if (pos_cb != LOCATIONS_ERROR_NONE || sat_cb != LOCATIONS_ERROR_NONE) { -   LOGE("Failed to register callbacks for location manager"); +   dlog_print(DLOG_ERROR, LOG_TAG, "Failed to register callbacks for location manager");    geolocation_manager_service_destroy();    return false; @@ -106,7 +106,7 @@ location_manager_destroy(s_geolocation_data.manager); // Get last location information if (location_manager_get_last_position(s_geolocation_data.manager, &altitude, &init_coords->latitude, &init_coords->longitude, &timestamp) != LOCATIONS_ERROR_NONE) { -   LOGE("Failed to get last location"); +   dlog_print(DLOG_ERROR, LOG_TAG, "Failed to get last location");    return false; } @@ -119,7 +119,7 @@ if (location_manager_get_last_position(s_geolocation_data.manager, &altitude location_error_e ret = gps_status_get_satellite(s_geolocation_data.manager, &num_of_active, satellites_count, &timestamp); if (ret != LOCATIONS_ERROR_NONE) { -   LOGE("Failed to get satellite data [%d]", ret); +   dlog_print(DLOG_ERROR, LOG_TAG, "Failed to get satellite data [%d]", ret);    // Satellite data is not supported on Tizen Emulator - satellite count remains at 0 } @@ -148,11 +148,11 @@ _geolocation_manager_position_updated_cb(double latitude, double longitude, doub       // Send position update through message port       if (_geolocation_manager_position_coords_send(coords))       { -         LOGI("Position updated to %f, %f", latitude, longitude); +         dlog_print(DLOG_INFO, LOG_TAG, "Position updated to %f, %f", latitude, longitude);       }       else       { -         LOGE("Failed to send position update"); +         dlog_print(DLOG_ERROR, LOG_TAG, "Failed to send position update");       }    } } @@ -170,11 +170,11 @@ _geolocation_manager_satellite_updated_cb(int num_of_active, int num_of_inview,       // Send satellite count update through message port       if (_geolocation_manager_satellites_count_send(num_of_inview))       { -         LOGI("Satellite count updated: inview %d", num_of_inview); +         dlog_print(DLOG_INFO, LOG_TAG, "Satellite count updated: inview %d", num_of_inview);       }       else       { -         LOGE("Failed to send satellite count update"); +         dlog_print(DLOG_ERROR, LOG_TAG, "Failed to send satellite count update");       }    } } @@ -187,7 +187,7 @@ _geolocation_manager_satellite_updated_cb(int num_of_active, int num_of_inview, // Check remote port state from GPS consumer if (message_port_check_remote_port(REMOTE_APP_ID, REMOTE_PORT, &exists) != MESSAGE_PORT_ERROR_NONE) { -   LOGE("Failed to check remote port"); +   dlog_print(DLOG_ERROR, LOG_TAG, "Failed to check remote port");    geolocation_manager_service_destroy();    return false; @@ -195,7 +195,7 @@ if (message_port_check_remote_port(REMOTE_APP_ID, REMOTE_PORT, &exists) != M if (!exists) { -   LOGE("Remote port is not registered"); +   dlog_print(DLOG_ERROR, LOG_TAG, "Remote port is not registered"); } @@ -204,7 +204,7 @@ if (!exists) // Send initial data to GPS consumer port if (!_geolocation_manager_init_data_send()) { -   LOGE("Failed to send init data - create timer to periodically try to send data"); +   dlog_print(DLOG_ERROR, LOG_TAG, "Failed to send init data - create timer to periodically try to send data");    ecore_timer_add(SEND_DATA_INTERVAL, _geolocation_manager_init_data_send_cb, NULL); } @@ -219,7 +219,7 @@ _geolocation_manager_position_coords_send(location_coords_s coords)    if (!b)    { -      LOGE("Failed to create bundle, the coords will not be sent"); +      dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create bundle, the coords will not be sent");       return false;    } @@ -249,7 +249,7 @@ _geolocation_manager_satellites_count_send(int s_count)    if (!b)    { -      LOGE("Failed to create bundle, the satellites will not be sent"); +      dlog_print(DLOG_ERROR, LOG_TAG, "Failed to create bundle, the satellites will not be sent");       return false;    } @@ -274,7 +274,7 @@ _send_message(bundle *b) {    if (!b)    { -      LOGE("Can not send message, the bundle is NULL"); +      dlog_print(DLOG_ERROR, LOG_TAG, "Can not send message, the bundle is NULL");       return false;    } @@ -284,7 +284,7 @@ _send_message(bundle *b)    if (ret != MESSAGE_PORT_ERROR_NONE)    { -      LOGE("Failed to send message: error %d", ret); +      dlog_print(DLOG_ERROR, LOG_TAG, "Failed to send message: error %d", ret);       return false;    } @@ -315,4 +315,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga - \ No newline at end of file +