diff --git a/loc_api/libloc_api_50001/loc_eng.cpp b/loc_api/libloc_api_50001/loc_eng.cpp index 8fa87a0b..d837a414 100644 --- a/loc_api/libloc_api_50001/loc_eng.cpp +++ b/loc_api/libloc_api_50001/loc_eng.cpp @@ -2113,11 +2113,13 @@ int loc_eng_ulp_phone_context_settings_update(loc_eng_data_s_type &loc_eng_data, LOC_LOGD("loc_eng_ulp_phone_context_settings: context_type - 0x%x is_agps_enabled - %d " "is_battery_charging %d ,is_gps_enabled %d, is_network_position_available %d," - "is_wifi_setting_enabled %d, is_agps_setting_enabled %d, is_enh_location_services_enabled %d\n", + "is_wifi_setting_enabled %d, is_agps_setting_enabled %d, is_enh_location_services_enabled %d," + "is_pip_user_setting_enabled %d\n", settings->context_type ,settings->is_agps_enabled,settings->is_battery_charging, settings->is_gps_enabled, settings->is_network_position_available, settings->is_wifi_setting_enabled, settings->is_agps_enabled, - settings->is_enh_location_services_enabled ); + settings->is_enh_location_services_enabled, + settings->is_pip_user_setting_enabled); if(loc_eng_data.ulp_initialized == true) { diff --git a/loc_api/libloc_api_50001/loc_eng_msg.h b/loc_api/libloc_api_50001/loc_eng_msg.h index df7cc092..97d19d3b 100644 --- a/loc_api/libloc_api_50001/loc_eng_msg.h +++ b/loc_api/libloc_api_50001/loc_eng_msg.h @@ -905,14 +905,16 @@ struct ulp_msg_inject_phone_context_settings : public loc_eng_msg { phoneSetting(setting) { LOC_LOGV("context type: %d\n gps enabled: %d\n network position available %d\n wifi setting enabled %d\n battery charging %d" - "is_agps_setting_enabled %d, is_enh_location_services_enabled %d\n", + "is_agps_setting_enabled %d, is_enh_location_services_enabled %d" + " is_pip_user_setting_enabled %d\n", phoneSetting.context_type, phoneSetting.is_gps_enabled, phoneSetting.is_network_position_available, phoneSetting.is_wifi_setting_enabled, phoneSetting.is_battery_charging, phoneSetting.is_agps_enabled, - phoneSetting.is_enh_location_services_enabled); + phoneSetting.is_enh_location_services_enabled, + phoneSetting.is_pip_user_setting_enabled); } }; diff --git a/loc_api/libloc_api_50001/loc_ulp.h b/loc_api/libloc_api_50001/loc_ulp.h index 5822b7ca..6372e6ea 100644 --- a/loc_api/libloc_api_50001/loc_ulp.h +++ b/loc_api/libloc_api_50001/loc_ulp.h @@ -345,6 +345,7 @@ typedef struct #define ULP_PHONE_CONTEXT_BATTERY_CHARGING_STATE (0x08) #define ULP_PHONE_CONTEXT_AGPS_SETTING (0x010) #define ULP_PHONE_CONTEXT_ENH_LOCATION_SERVICES_SETTING (0x020) +#define ULP_PHONE_CONTEXT_PIP_USER_SETTING (0x040) /** return phone context only once */ #define ULP_PHONE_CONTEXT_REQUEST_TYPE_SINGLE (0x01) @@ -390,6 +391,8 @@ typedef struct { bool is_agps_enabled; /* is Enhanced Location Services enabled by user*/ bool is_enh_location_services_enabled; + /* is PIP Services enabled by user in Android Settings*/ + bool is_pip_user_setting_enabled; } UlpPhoneContextSettings; /** Represent the phone contxt interface */