summaryrefslogtreecommitdiff
path: root/android/2.0/GnssConfiguration.cpp
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@localhost>2019-05-16 08:02:17 -0700
committerLinux Build Service Account <lnxbuild@localhost>2019-05-16 08:02:17 -0700
commit93d7c858a70ea13d610d85b4ce94020a0d01ce18 (patch)
treeed46521a9a33ebcb0972622405fa3c71f9550dd6 /android/2.0/GnssConfiguration.cpp
parent064f28cb1d60f445386778cc45404cd022ea78a6 (diff)
parentedf991e3b9d6be7da8b0e8afdfc4b5e0c88fed19 (diff)
downloadgps-93d7c858a70ea13d610d85b4ce94020a0d01ce18.tar.gz
Merge edf991e3b9d6be7da8b0e8afdfc4b5e0c88fed19 on remote branch
Change-Id: I3f612b10146d5e54ba31fcc09130ce91232c2795
Diffstat (limited to 'android/2.0/GnssConfiguration.cpp')
-rw-r--r--android/2.0/GnssConfiguration.cpp25
1 files changed, 6 insertions, 19 deletions
diff --git a/android/2.0/GnssConfiguration.cpp b/android/2.0/GnssConfiguration.cpp
index eb98be1..671b6e7 100644
--- a/android/2.0/GnssConfiguration.cpp
+++ b/android/2.0/GnssConfiguration.cpp
@@ -38,20 +38,8 @@ GnssConfiguration::GnssConfiguration(Gnss* gnss) : mGnss(gnss) {
// Methods from ::android::hardware::gps::V1_0::IGnssConfiguration follow.
Return<bool> GnssConfiguration::setSuplEs(bool enabled) {
- if (mGnss == nullptr) {
- LOC_LOGE("%s]: mGnss is nullptr", __FUNCTION__);
- return false;
- }
-
- GnssConfig config;
- memset(&config, 0, sizeof(GnssConfig));
- config.size = sizeof(GnssConfig);
- config.flags = GNSS_CONFIG_FLAGS_SUPL_EM_SERVICES_BIT;
- config.suplEmergencyServices = (enabled ?
- GNSS_CONFIG_SUPL_EMERGENCY_SERVICES_YES :
- GNSS_CONFIG_SUPL_EMERGENCY_SERVICES_NO);
-
- return mGnss->updateConfiguration(config);
+ // deprecated function. Must return false to pass VTS
+ return false;
}
Return<bool> GnssConfiguration::setSuplVersion(uint32_t version) {
@@ -174,10 +162,9 @@ Return<bool> GnssConfiguration::setGlonassPositioningProtocol(uint8_t protocol)
return mGnss->updateConfiguration(config);
}
-Return<bool> GnssConfiguration::setGpsLock(uint8_t lock) {
- /* we no longer set GPS lock here, there is
- visibility control for this */
- return true;
+Return<bool> GnssConfiguration::setGpsLock(uint8_t /*lock*/) {
+ // deprecated function. Must return false to pass VTS
+ return false;
}
Return<bool> GnssConfiguration::setEmergencySuplPdn(bool enabled) {
@@ -268,7 +255,7 @@ bool GnssConfiguration::setBlacklistedSource(
break;
default:
copyToSource.constellation = GNSS_SV_TYPE_UNKNOWN;
- LOC_LOGe("Invalid constellation %d", copyFromSource.constellation);
+ LOC_LOGe("Invalid constellation %u", copyFromSource.constellation);
retVal = false;
break;
}