#define MAX_BATCH_INTERVAL 255
#define MAX_BATCH_PERIOD 60000
-// TODO blocking area test
-#define VIRTUAL_BLOCK_AREA 1
typedef struct {
/* gps variables */
gint fused_balance_count;
gboolean is_fused_running;
gboolean fused_feature;
- gint fused_test_block;
} lbs_server_s;
#ifndef TIZEN_DEVICE
* For fused location
*/
if (lbs_server->fused_feature) {
- if (lbs_server->is_fused_running) {
- if (lbs_server->fused_test_block == 0)
+ if (lbs_server->is_fused_running)
send_wps_position_to_fused_engine(wps.timestamp, wps.latitude, wps.longitude, wps.hor_accuracy);
- else
- LOG_NPS(DBG_LOW, "[VIRTUAL] WPS disabled temporary");
- }
}
#endif
return FALSE;
}
-#ifdef TIZEN_DEVICE
-#if (VIRTUAL_BLOCK_AREA)
-static void _block_cb(keynode_t *key, void *user_data)
-{
- LOG_GPS(DBG_LOW, "[VIRTUAL] VCONFKEY_LOCATION_SUPL_VERSION changed");
- int value = 0;
-
- setting_get_int(VCONFKEY_LOCATION_SUPL_VERSION, &value);
-
- lbs_server_s *lbs_server = (lbs_server_s *)user_data;
- lbs_server->fused_test_block = value;
-}
-#endif
-#endif
-
static gboolean location_source_selector(lbs_server_s *lbs_server, gint fused_mode)
{
LOG_FUSED_FUNC;
*/
if (lbs_server->fused_feature) {
if (lbs_server->is_fused_running) {
- if (lbs_server->fused_test_block == 0)
send_gps_position_to_fused_engine(pos->timestamp, pos->latitude, pos->longitude, pos->altitude,
pos->speed, pos->bearing, pos->hor_accuracy, pos->ver_accuracy);
- else
- LOG_GPS(DBG_LOW, "[VIRTUAL] GPS disalbed temporary");
}
}
#endif
if (lbs_server->fused_feature) {
lbs_server->fused_interval_table = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, NULL);
location_fused_init(fused_update_position_cb, lbs_server);
- #if (VIRTUAL_BLOCK_AREA)
- LOG_GPS(DBG_LOW, "[VIRTUAL] temporary vconf added");
- vconf_notify_key_changed(VCONFKEY_LOCATION_SUPL_VERSION, _block_cb, lbs_server);
- #endif
}
#endif
}
*/
if (lbs_server->fused_feature) {
location_fused_deinit();
-
- #if (VIRTUAL_BLOCK_AREA)
- LOG_GPS(DBG_LOW, "[VIRTUAL] temporary vconf removed");
- vconf_ignore_key_changed(VCONFKEY_LOCATION_SUPL_VERSION, _block_cb);
- #endif
g_hash_table_destroy(lbs_server->fused_interval_table);
}
#endif