diff options
author | Dante Russo <drusso@codeaurora.org> | 2018-07-23 14:11:58 -0700 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2018-07-23 17:58:04 -0700 |
commit | 06d93da4a1ad7559356e489e6b342490dc53aa09 (patch) | |
tree | ea2a0ace0eebcfd850ee2c0745167560b471dd66 | |
parent | 6bb4b271cf43e9f99ee40decc287dbc889d596c2 (diff) | |
download | gps-06d93da4a1ad7559356e489e6b342490dc53aa09.tar.gz |
Deprecate reading of ro.lean property
ro.lean property is no longer used, so remove
reading logic of this property. If ro.lean is
added in the future, it will need vendor prefix.
Change-Id: I6b5e891f6d59c0809f9136541bbfb6696cbf4d5a
CRs-fixed: 2282702
-rw-r--r-- | utils/loc_cfg.cpp | 12 | ||||
-rw-r--r-- | utils/loc_target.cpp | 13 | ||||
-rw-r--r-- | utils/loc_target.h | 6 |
3 files changed, 0 insertions, 31 deletions
diff --git a/utils/loc_cfg.cpp b/utils/loc_cfg.cpp index 78d4010..fd232bb 100644 --- a/utils/loc_cfg.cpp +++ b/utils/loc_cfg.cpp @@ -467,7 +467,6 @@ typedef struct { unsigned int loc_feature_mask; char platform_list[LOC_MAX_PARAM_STRING]; char baseband[LOC_MAX_PARAM_STRING]; - char lean_targets[LOC_MAX_PARAM_STRING]; unsigned int sglte_target; char feature_gtp_cell_proc[LOC_MAX_PARAM_STRING]; char feature_gtp_waa[LOC_MAX_PARAM_STRING]; @@ -512,7 +511,6 @@ static const loc_param_s_type loc_process_conf_parameter_table[] = { {"IZAT_FEATURE_MASK", &conf.loc_feature_mask, NULL, 'n'}, {"PLATFORMS", &conf.platform_list, NULL, 's'}, {"BASEBAND", &conf.baseband, NULL, 's'}, - {"LEAN_TARGETS", &conf.lean_targets, NULL, 's'}, {"HARDWARE_TYPE", &conf.auto_platform, NULL, 's'}, }; @@ -554,7 +552,6 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p FILE* conf_fp = nullptr; char platform_name[PROPERTY_VALUE_MAX], baseband_name[PROPERTY_VALUE_MAX]; char autoplatform_name[PROPERTY_VALUE_MAX]; - int lean_target=0; unsigned int loc_service_mask=0; char config_mask = 0; unsigned char proc_list_length=0; @@ -586,8 +583,6 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p loc_get_platform_name(platform_name, sizeof(platform_name)); //Get baseband name from ro.baseband property loc_get_target_baseband(baseband_name, sizeof(baseband_name)); - lean_target = loc_identify_lean_target(); - LOC_LOGD("%s:%d]: lean target:%d", __func__, __LINE__, lean_target); //Identify if this is an automotive platform loc_get_auto_platform_name(autoplatform_name,sizeof(autoplatform_name)); @@ -927,13 +922,6 @@ int loc_read_process_conf(const char* conf_file_name, uint32_t * process_count_p } } - nstrings = loc_util_split_string(conf.lean_targets, split_strings, MAX_NUM_STRINGS, ' '); - if(!strcmp("DISABLED", split_strings[0]) && lean_target) { - LOC_LOGD("%s:%d]: Disabled for lean targets\n", __func__, __LINE__); - child_proc[j].proc_status = DISABLED; - continue; - } - if((config_mask & CONFIG_MASK_TARGET_CHECK) && (config_mask & CONFIG_MASK_BASEBAND_CHECK) && (config_mask & CONFIG_MASK_AUTOPLATFORM_CHECK) && diff --git a/utils/loc_target.cpp b/utils/loc_target.cpp index f116e5e..f6fd728 100644 --- a/utils/loc_target.cpp +++ b/utils/loc_target.cpp @@ -208,16 +208,3 @@ detected: LOC_LOGW("HAL: %s returned %d", __FUNCTION__, gTarget); return gTarget; } - -/*Reads the property ro.lean to identify if this is a lean target - Returns: - 0 if not a lean and mean target - 1 if this is a lean and mean target -*/ -int loc_identify_lean_target() -{ - char lean_target[PROPERTY_VALUE_MAX]; - property_get("ro.lean", lean_target, ""); - LOC_LOGD("%s:%d]: lean target: %s\n", __func__, __LINE__, lean_target); - return !(strncmp(lean_target, "true", PROPERTY_VALUE_MAX)); -} diff --git a/utils/loc_target.h b/utils/loc_target.h index 47a67d9..172b475 100644 --- a/utils/loc_target.h +++ b/utils/loc_target.h @@ -55,12 +55,6 @@ void loc_get_platform_name(char *platform_name, int array_length); of atleast PROPERTY_VALUE_MAX*/ void loc_get_auto_platform_name(char *platform_name, int array_length); -/*Reads the property ro.lean to identify if this is a lean target - Returns: - 0 if not a lean and mean target - 1 if this is a lean and mean target*/ -int loc_identify_lean_target(); - /* Please remember to update 'target_name' in loc_log.cpp, if do any changes to this enum. */ typedef enum { |