summaryrefslogtreecommitdiff
path: root/core/LocAdapterBase.cpp
diff options
context:
space:
mode:
authorMike Cailean <mcailean@codeaurora.org>2020-02-07 17:39:18 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2020-04-12 22:06:03 -0700
commit67af8dcec125f47092bbab9a213b5b642303f3ef (patch)
treed3aa72f33ce5f814204662afdc8e52c71ce5df5b /core/LocAdapterBase.cpp
parentd1b89946beb86a5590c51b1d9c53f3db7208e1eb (diff)
Add support for measurement corrections
CRs-fixed: 2624168 Change-Id: I84d901dcaad3795eceab47939f055b5ce0e0722b
Diffstat (limited to 'core/LocAdapterBase.cpp')
-rw-r--r--core/LocAdapterBase.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/core/LocAdapterBase.cpp b/core/LocAdapterBase.cpp
index 1e91cf8..cab9b5e 100644
--- a/core/LocAdapterBase.cpp
+++ b/core/LocAdapterBase.cpp
@@ -1,4 +1,4 @@
-/* Copyright (c) 2011-2014, 2016-2019 The Linux Foundation. All rights reserved.
+/* Copyright (c) 2011-2014, 2016-2020 The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
@@ -309,6 +309,9 @@ LocAdapterBase::getCapabilities()
if (ContextBase::isFeatureSupported(LOC_SUPPORTED_FEATURE_LOCATION_PRIVACY)) {
mask |= LOCATION_CAPABILITIES_PRIVACY_BIT;
}
+ if (ContextBase::isFeatureSupported(LOC_SUPPORTED_FEATURE_MEASUREMENTS_CORRECTION)) {
+ mask |= LOCATION_CAPABILITIES_MEASUREMENTS_CORRECTION_BIT;
+ }
} else {
LOC_LOGE("%s]: attempt to get capabilities before they are known.", __func__);
}