Home
last modified time | relevance | path

Searched refs:lastFuseLocation (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/base/location/services/location_locator/locator/source/
H A Dfusion_controller.cpp65 const std::unique_ptr<Location>& lastFuseLocation) in chooseBestLocation() argument
70 if (lastFuseLocation == nullptr) { in chooseBestLocation()
75 lastFuseLocation->GetSpeed() >= MAX_INDOOR_LOCATION_SPEED) { in chooseBestLocation()
76 return std::make_unique<Location>(*lastFuseLocation); in chooseBestLocation()
85 return std::make_unique<Location>(*lastFuseLocation); in chooseBestLocation()
89 return std::make_unique<Location>(*lastFuseLocation); in chooseBestLocation()
91 return std::make_unique<Location>(*lastFuseLocation); in chooseBestLocation()
98 const std::unique_ptr<Location>& lastFuseLocation) in CheckIfLastIndoorLocationValid() argument
110 const std::unique_ptr<Location>& lastFuseLocation) in CheckIfLastGnssLocationValid() argument
112 if (lastFuseLocation->GetLocationSourceType() == LocationSourceType::GNSS_TYPE && in CheckIfLastGnssLocationValid()
[all …]
/ohos5.0/base/location/test/location_locator/source/
H A Dfusion_controller_test.cpp167 sptr<Location> lastFuseLocation = new (std::nothrow) Location(); variable
169 EXPECT_NE(nullptr, fusionController_->GetFuseLocation(location, lastFuseLocation));
179 sptr<Location> lastFuseLocation = new (std::nothrow) Location(); variable
184 lastFuseLocation->SetLocationSourceType(LocationSourceType::INDOOR_TYPE);
185 lastFuseLocation->SetTimeSinceBoot(seconds2 * MILLI_PER_SECS * NANOS_PER_MILLI);
186 EXPECT_NE(nullptr, fusionController_->GetFuseLocation(location, lastFuseLocation));
196 sptr<Location> lastFuseLocation = new (std::nothrow) Location(); variable
201 lastFuseLocation->SetLocationSourceType(LocationSourceType::GNSS_TYPE);
202 lastFuseLocation->SetTimeSinceBoot(seconds2 * MILLI_PER_SECS * NANOS_PER_MILLI);
203 EXPECT_NE(nullptr, fusionController_->GetFuseLocation(location, lastFuseLocation));
/ohos5.0/base/location/services/location_locator/locator/include/
H A Dfusion_controller.h33 const std::unique_ptr<Location>& location, const sptr<Location>& lastFuseLocation);
38 const std::unique_ptr<Location>& lastFuseLocation);
40 const std::unique_ptr<Location>& lastFuseLocation);
42 const std::unique_ptr<Location>& lastFuseLocation);