Adds logic to pass through PIP User setting

Changes to manage user preference for Precise Indoor
Positioning Control through settings on the OS UI menu
CRs-Fixed: 492707

Change-Id: I6a0cc0a92c35d05122efce310274f20590a16118
This commit is contained in:
Satheesh Jayakumar 2013-05-31 16:31:24 -07:00
parent acddf6d2d6
commit 313788ea59
3 changed files with 11 additions and 4 deletions

View file

@ -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)
{

View file

@ -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);
}
};

View file

@ -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 */