mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-03 08:54:55 +00:00
Merge "Revert "Fix use-after-free in GnssMesaurementInterface"" into tm-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
9a7e193760
@@ -153,6 +153,7 @@ void Gnss::reportSvStatus(const std::vector<GnssSvInfo>& svInfoList) const {
|
||||
|
||||
std::vector<GnssSvInfo> Gnss::filterBlocklistedSatellites(
|
||||
std::vector<GnssSvInfo> gnssSvInfoList) const {
|
||||
ALOGD("filterBlocklistedSatellites");
|
||||
for (uint32_t i = 0; i < gnssSvInfoList.size(); i++) {
|
||||
if (mGnssConfiguration->isBlocklisted(gnssSvInfoList[i])) {
|
||||
gnssSvInfoList[i].svFlag &= ~(uint32_t)IGnssCallback::GnssSvFlags::USED_IN_FIX;
|
||||
|
||||
@@ -106,14 +106,12 @@ void GnssMeasurementInterface::start(const bool enableCorrVecOutputs) {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(mMinIntervalMillis));
|
||||
}
|
||||
});
|
||||
mThread.detach();
|
||||
}
|
||||
|
||||
void GnssMeasurementInterface::stop() {
|
||||
ALOGD("stop");
|
||||
mIsActive = false;
|
||||
if (mThread.joinable()) {
|
||||
mThread.join();
|
||||
}
|
||||
}
|
||||
|
||||
void GnssMeasurementInterface::reportMeasurement(const GnssData& data) {
|
||||
|
||||
@@ -69,14 +69,12 @@ void GnssNavigationMessageInterface::start() {
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(mMinIntervalMillis));
|
||||
}
|
||||
});
|
||||
mThread.detach();
|
||||
}
|
||||
|
||||
void GnssNavigationMessageInterface::stop() {
|
||||
ALOGD("stop");
|
||||
mIsActive = false;
|
||||
if (mThread.joinable()) {
|
||||
mThread.join();
|
||||
}
|
||||
}
|
||||
|
||||
void GnssNavigationMessageInterface::reportMessage(const GnssNavigationMessage& message) {
|
||||
|
||||
Reference in New Issue
Block a user