static int ss_flag = 0;
static history_item_s *data_obj = NULL;
-static int listener_hsp = 0;
+display_state_e display_flag = DISPLAY_STATE_SCREEN_OFF;
+static int listener_hsp = -1;
+static int bt_adaptor = 0;
+static int location_flag = 0;
static int bt_hsp = 0;
static int bt_connected_hsp = 0;
static int bt_scan_hsp = 0;
else
bt_state = 0;
+ if(bt_adaptor == bt_state)
+ return;
+ else
+ bt_adaptor = bt_state;
_INFO("__bm_bt_adapter_state_changed_cb bt_state = %d ", bt_state);
_INFO("buff_count: %d and fill_ptr = %d", buff_count , fill_ptr);
display_state_e state = (display_state_e)value;
+ if(state == display_flag)
+ return;
+ else
+ display_flag = state;
+
event_pool *device_event = (event_pool *)calloc(1, sizeof(event_pool));
if (!device_event) {
_ERR("Failed to allocated memory ");
{
ENTER;
_INFO("device location changed succeeded\n");
- int charging = 0;
- vconf_get_int(VCONFKEY_LOCATION_ENABLED, &charging);
+ int location = 0;
+ vconf_get_int(VCONFKEY_LOCATION_ENABLED, &location);
+
+ _INFO(" device location changed = %d ", location);
- _INFO(" device location changed = %d ", charging);
+ if(location == location_flag)
+ return;
+ else
+ location_flag = location;
event_pool *location_event = (event_pool *)calloc(1, sizeof(event_pool));
if (!location_event) {
return;
}
location_event->type = LISTEN_LOCATION_CHANGE;
- location_event->val = charging;
+ location_event->val = location;
location_event->app = NULL;
pthread_t producer;
{
ENTER;
- listener_hsp = 0;
+ listener_hsp = -1;
/* Initialize Hash Table */
if (!bm_initialize_history_data_obj())