Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (C) 2018 The Android Open Source Project |
| 3 | * |
| 4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 | * you may not use this file except in compliance with the License. |
| 6 | * You may obtain a copy of the License at |
| 7 | * |
| 8 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | * |
| 10 | * Unless required by applicable law or agreed to in writing, software |
| 11 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | * See the License for the specific language governing permissions and |
| 14 | * limitations under the License. |
| 15 | */ |
| 16 | |
| 17 | #define LOG_TAG "Gnss" |
| 18 | |
| 19 | #include "Gnss.h" |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 20 | |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 21 | #include <log/log.h> |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 22 | #include <utils/SystemClock.h> |
| 23 | |
Anil Admal | 3a405c5 | 2018-11-14 09:35:14 -0800 | [diff] [blame] | 24 | #include "AGnss.h" |
Anil Admal | b02bcc1 | 2018-11-14 10:23:45 -0800 | [diff] [blame] | 25 | #include "AGnssRil.h" |
Anil Admal | 4e50a4c | 2018-12-19 15:22:13 -0800 | [diff] [blame] | 26 | #include "GnssConfiguration.h" |
Yu-Han Yang | 030d033 | 2018-12-09 10:47:42 -0800 | [diff] [blame] | 27 | #include "GnssMeasurement.h" |
Anil Admal | 4d739e7 | 2018-11-14 12:38:57 -0800 | [diff] [blame] | 28 | #include "GnssVisibilityControl.h" |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 29 | #include "Utils.h" |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 30 | |
Anil Admal | 3a405c5 | 2018-11-14 09:35:14 -0800 | [diff] [blame] | 31 | using ::android::hardware::Status; |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 32 | using ::android::hardware::gnss::common::Utils; |
Anil Admal | 4d739e7 | 2018-11-14 12:38:57 -0800 | [diff] [blame] | 33 | using ::android::hardware::gnss::visibility_control::V1_0::implementation::GnssVisibilityControl; |
Anil Admal | 3a405c5 | 2018-11-14 09:35:14 -0800 | [diff] [blame] | 34 | |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 35 | namespace android { |
| 36 | namespace hardware { |
| 37 | namespace gnss { |
| 38 | namespace V2_0 { |
| 39 | namespace implementation { |
| 40 | |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 41 | using GnssSvFlags = IGnssCallback::GnssSvFlags; |
| 42 | |
gomo | 1da4b5c | 2018-12-02 02:49:10 -0800 | [diff] [blame] | 43 | sp<V2_0::IGnssCallback> Gnss::sGnssCallback_2_0 = nullptr; |
| 44 | sp<V1_1::IGnssCallback> Gnss::sGnssCallback_1_1 = nullptr; |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 45 | |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 46 | namespace { |
| 47 | |
| 48 | V2_0::GnssLocation getMockLocationV2_0() { |
| 49 | const ElapsedRealtime timestamp = { |
| 50 | .flags = ElapsedRealtimeFlags::HAS_TIMESTAMP_NS | |
| 51 | ElapsedRealtimeFlags::HAS_TIME_UNCERTAINTY_NS, |
| 52 | .timestampNs = static_cast<uint64_t>(::android::elapsedRealtimeNano()), |
| 53 | // This is an hardcoded value indicating a 1ms of uncertainty between the two clocks. |
| 54 | // In an actual implementation provide an estimate of the synchronization uncertainty |
| 55 | // or don't set the field. |
| 56 | .timeUncertaintyNs = 1000000}; |
| 57 | |
| 58 | V2_0::GnssLocation location = {.v1_0 = Utils::getMockLocation(), .elapsedRealtime = timestamp}; |
| 59 | return location; |
| 60 | } |
| 61 | |
| 62 | } // namespace |
| 63 | |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 64 | Gnss::Gnss() : mMinIntervalMs(1000) {} |
| 65 | |
| 66 | Gnss::~Gnss() { |
| 67 | stop(); |
| 68 | } |
| 69 | |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 70 | // Methods from V1_0::IGnss follow. |
| 71 | Return<bool> Gnss::setCallback(const sp<V1_0::IGnssCallback>&) { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 72 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 73 | return bool{}; |
| 74 | } |
| 75 | |
| 76 | Return<bool> Gnss::start() { |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 77 | if (mIsActive) { |
| 78 | ALOGW("Gnss has started. Restarting..."); |
| 79 | stop(); |
| 80 | } |
| 81 | |
| 82 | mIsActive = true; |
| 83 | mThread = std::thread([this]() { |
| 84 | while (mIsActive == true) { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 85 | const auto location = getMockLocationV2_0(); |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 86 | this->reportLocation(location); |
| 87 | |
| 88 | std::this_thread::sleep_for(std::chrono::milliseconds(mMinIntervalMs)); |
| 89 | } |
| 90 | }); |
| 91 | return true; |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 92 | } |
| 93 | |
| 94 | Return<bool> Gnss::stop() { |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 95 | mIsActive = false; |
| 96 | if (mThread.joinable()) { |
| 97 | mThread.join(); |
| 98 | } |
| 99 | return true; |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 100 | } |
| 101 | |
| 102 | Return<void> Gnss::cleanup() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 103 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 104 | return Void(); |
| 105 | } |
| 106 | |
| 107 | Return<bool> Gnss::injectTime(int64_t, int64_t, int32_t) { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 108 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 109 | return bool{}; |
| 110 | } |
| 111 | |
| 112 | Return<bool> Gnss::injectLocation(double, double, float) { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 113 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 114 | return bool{}; |
| 115 | } |
| 116 | |
| 117 | Return<void> Gnss::deleteAidingData(V1_0::IGnss::GnssAidingData) { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 118 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 119 | return Void(); |
| 120 | } |
| 121 | |
| 122 | Return<bool> Gnss::setPositionMode(V1_0::IGnss::GnssPositionMode, |
| 123 | V1_0::IGnss::GnssPositionRecurrence, uint32_t, uint32_t, |
| 124 | uint32_t) { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 125 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 126 | return bool{}; |
| 127 | } |
| 128 | |
| 129 | Return<sp<V1_0::IAGnssRil>> Gnss::getExtensionAGnssRil() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 130 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 131 | return sp<V1_0::IAGnssRil>{}; |
| 132 | } |
| 133 | |
| 134 | Return<sp<V1_0::IGnssGeofencing>> Gnss::getExtensionGnssGeofencing() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 135 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 136 | return sp<V1_0::IGnssGeofencing>{}; |
| 137 | } |
| 138 | |
| 139 | Return<sp<V1_0::IAGnss>> Gnss::getExtensionAGnss() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 140 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 141 | return sp<V1_0::IAGnss>{}; |
| 142 | } |
| 143 | |
| 144 | Return<sp<V1_0::IGnssNi>> Gnss::getExtensionGnssNi() { |
Anil Admal | 4d739e7 | 2018-11-14 12:38:57 -0800 | [diff] [blame] | 145 | // The IGnssNi.hal interface is deprecated in 2.0. |
| 146 | return nullptr; |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 147 | } |
| 148 | |
| 149 | Return<sp<V1_0::IGnssMeasurement>> Gnss::getExtensionGnssMeasurement() { |
Yu-Han Yang | 030d033 | 2018-12-09 10:47:42 -0800 | [diff] [blame] | 150 | // Not supported |
| 151 | return nullptr; |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 152 | } |
| 153 | |
| 154 | Return<sp<V1_0::IGnssNavigationMessage>> Gnss::getExtensionGnssNavigationMessage() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 155 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 156 | return sp<V1_0::IGnssNavigationMessage>{}; |
| 157 | } |
| 158 | |
| 159 | Return<sp<V1_0::IGnssXtra>> Gnss::getExtensionXtra() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 160 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 161 | return sp<V1_0::IGnssXtra>{}; |
| 162 | } |
| 163 | |
| 164 | Return<sp<V1_0::IGnssConfiguration>> Gnss::getExtensionGnssConfiguration() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 165 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 166 | return sp<V1_0::IGnssConfiguration>{}; |
| 167 | } |
| 168 | |
| 169 | Return<sp<V1_0::IGnssDebug>> Gnss::getExtensionGnssDebug() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 170 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 171 | return sp<V1_0::IGnssDebug>{}; |
| 172 | } |
| 173 | |
| 174 | Return<sp<V1_0::IGnssBatching>> Gnss::getExtensionGnssBatching() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 175 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 176 | return sp<V1_0::IGnssBatching>{}; |
| 177 | } |
| 178 | |
| 179 | // Methods from V1_1::IGnss follow. |
| 180 | Return<bool> Gnss::setCallback_1_1(const sp<V1_1::IGnssCallback>& callback) { |
| 181 | ALOGD("Gnss::setCallback_1_1"); |
| 182 | if (callback == nullptr) { |
| 183 | ALOGE("%s: Null callback ignored", __func__); |
| 184 | return false; |
| 185 | } |
| 186 | |
gomo | 1da4b5c | 2018-12-02 02:49:10 -0800 | [diff] [blame] | 187 | sGnssCallback_1_1 = callback; |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 188 | |
Yu-Han Yang | 030d033 | 2018-12-09 10:47:42 -0800 | [diff] [blame] | 189 | uint32_t capabilities = (uint32_t)V1_0::IGnssCallback::Capabilities::MEASUREMENTS; |
gomo | 1da4b5c | 2018-12-02 02:49:10 -0800 | [diff] [blame] | 190 | auto ret = sGnssCallback_1_1->gnssSetCapabilitesCb(capabilities); |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 191 | if (!ret.isOk()) { |
| 192 | ALOGE("%s: Unable to invoke callback", __func__); |
| 193 | } |
| 194 | |
| 195 | V1_1::IGnssCallback::GnssSystemInfo gnssInfo = {.yearOfHw = 2019}; |
| 196 | |
gomo | 1da4b5c | 2018-12-02 02:49:10 -0800 | [diff] [blame] | 197 | ret = sGnssCallback_1_1->gnssSetSystemInfoCb(gnssInfo); |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 198 | if (!ret.isOk()) { |
| 199 | ALOGE("%s: Unable to invoke callback", __func__); |
| 200 | } |
| 201 | |
| 202 | auto gnssName = "Google Mock GNSS Implementation v2.0"; |
gomo | 1da4b5c | 2018-12-02 02:49:10 -0800 | [diff] [blame] | 203 | ret = sGnssCallback_1_1->gnssNameCb(gnssName); |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 204 | if (!ret.isOk()) { |
| 205 | ALOGE("%s: Unable to invoke callback", __func__); |
| 206 | } |
| 207 | |
| 208 | return true; |
| 209 | } |
| 210 | |
| 211 | Return<bool> Gnss::setPositionMode_1_1(V1_0::IGnss::GnssPositionMode, |
| 212 | V1_0::IGnss::GnssPositionRecurrence, uint32_t, uint32_t, |
| 213 | uint32_t, bool) { |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 214 | return true; |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 215 | } |
| 216 | |
| 217 | Return<sp<V1_1::IGnssConfiguration>> Gnss::getExtensionGnssConfiguration_1_1() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 218 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 219 | return sp<V1_1::IGnssConfiguration>{}; |
| 220 | } |
| 221 | |
| 222 | Return<sp<V1_1::IGnssMeasurement>> Gnss::getExtensionGnssMeasurement_1_1() { |
Yu-Han Yang | 030d033 | 2018-12-09 10:47:42 -0800 | [diff] [blame] | 223 | ALOGD("Gnss::getExtensionGnssMeasurement_1_1"); |
| 224 | return new GnssMeasurement(); |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 225 | } |
| 226 | |
| 227 | Return<bool> Gnss::injectBestLocation(const V1_0::GnssLocation&) { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 228 | // TODO(b/124012850): Implement function. |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 229 | return bool{}; |
| 230 | } |
| 231 | |
| 232 | // Methods from V2_0::IGnss follow. |
Anil Admal | 4e50a4c | 2018-12-19 15:22:13 -0800 | [diff] [blame] | 233 | Return<sp<V2_0::IGnssConfiguration>> Gnss::getExtensionGnssConfiguration_2_0() { |
| 234 | return new GnssConfiguration{}; |
| 235 | } |
| 236 | |
Anil Admal | 3a405c5 | 2018-11-14 09:35:14 -0800 | [diff] [blame] | 237 | Return<sp<V2_0::IAGnss>> Gnss::getExtensionAGnss_2_0() { |
| 238 | return new AGnss{}; |
| 239 | } |
| 240 | |
Anil Admal | b02bcc1 | 2018-11-14 10:23:45 -0800 | [diff] [blame] | 241 | Return<sp<V2_0::IAGnssRil>> Gnss::getExtensionAGnssRil_2_0() { |
| 242 | return new AGnssRil{}; |
| 243 | } |
| 244 | |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 245 | Return<sp<V2_0::IGnssMeasurement>> Gnss::getExtensionGnssMeasurement_2_0() { |
Yu-Han Yang | 030d033 | 2018-12-09 10:47:42 -0800 | [diff] [blame] | 246 | ALOGD("Gnss::getExtensionGnssMeasurement_2_0"); |
| 247 | return new GnssMeasurement(); |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 248 | } |
| 249 | |
gomo | 1da4b5c | 2018-12-02 02:49:10 -0800 | [diff] [blame] | 250 | Return<sp<measurement_corrections::V1_0::IMeasurementCorrections>> |
| 251 | Gnss::getExtensionMeasurementCorrections() { |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 252 | // TODO(b/124012850): Implement function. |
gomo | 1da4b5c | 2018-12-02 02:49:10 -0800 | [diff] [blame] | 253 | return sp<measurement_corrections::V1_0::IMeasurementCorrections>{}; |
| 254 | } |
| 255 | |
Anil Admal | 4d739e7 | 2018-11-14 12:38:57 -0800 | [diff] [blame] | 256 | Return<sp<visibility_control::V1_0::IGnssVisibilityControl>> Gnss::getExtensionVisibilityControl() { |
| 257 | ALOGD("Gnss::getExtensionVisibilityControl"); |
| 258 | return new GnssVisibilityControl(); |
| 259 | } |
| 260 | |
gomo | 1da4b5c | 2018-12-02 02:49:10 -0800 | [diff] [blame] | 261 | Return<bool> Gnss::setCallback_2_0(const sp<V2_0::IGnssCallback>& callback) { |
| 262 | ALOGD("Gnss::setCallback_2_0"); |
| 263 | if (callback == nullptr) { |
| 264 | ALOGE("%s: Null callback ignored", __func__); |
| 265 | return false; |
| 266 | } |
| 267 | |
| 268 | sGnssCallback_2_0 = callback; |
| 269 | |
| 270 | uint32_t capabilities = 0x0; |
| 271 | auto ret = sGnssCallback_2_0->gnssSetCapabilitesCb(capabilities); |
| 272 | if (!ret.isOk()) { |
| 273 | ALOGE("%s: Unable to invoke callback", __func__); |
| 274 | } |
| 275 | |
| 276 | V1_1::IGnssCallback::GnssSystemInfo gnssInfo = {.yearOfHw = 2019}; |
| 277 | |
| 278 | ret = sGnssCallback_2_0->gnssSetSystemInfoCb(gnssInfo); |
| 279 | if (!ret.isOk()) { |
| 280 | ALOGE("%s: Unable to invoke callback", __func__); |
| 281 | } |
| 282 | |
| 283 | auto gnssName = "Google Mock GNSS Implementation v2.0"; |
| 284 | ret = sGnssCallback_2_0->gnssNameCb(gnssName); |
| 285 | if (!ret.isOk()) { |
| 286 | ALOGE("%s: Unable to invoke callback", __func__); |
| 287 | } |
| 288 | |
| 289 | return true; |
| 290 | } |
| 291 | |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 292 | Return<void> Gnss::reportLocation(const V2_0::GnssLocation& location) const { |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 293 | std::unique_lock<std::mutex> lock(mMutex); |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 294 | if (sGnssCallback_2_0 == nullptr) { |
| 295 | ALOGE("%s: sGnssCallback 2.0 is null.", __func__); |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 296 | return Void(); |
| 297 | } |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 298 | sGnssCallback_2_0->gnssLocationCb_2_0(location); |
Yu-Han Yang | a509861 | 2019-02-08 16:22:07 -0800 | [diff] [blame] | 299 | return Void(); |
| 300 | } |
| 301 | |
Pierre Fite-Georgel | 12ac2b5 | 2019-01-17 16:56:17 -0800 | [diff] [blame^] | 302 | Return<bool> Gnss::injectBestLocation_2_0(const V2_0::GnssLocation&) { |
| 303 | // TODO(b/124012850): Implement function. |
| 304 | return bool{}; |
| 305 | } |
| 306 | |
Yu-Han Yang | 9c6c20b | 2018-11-06 14:12:49 -0800 | [diff] [blame] | 307 | } // namespace implementation |
| 308 | } // namespace V2_0 |
| 309 | } // namespace gnss |
| 310 | } // namespace hardware |
| 311 | } // namespace android |