Home
last modified time | relevance | path

Searched refs:DoubleEqual (Results 1 – 6 of 6) sorted by relevance

/base/location/services/location_geocode/geocode/source/
Dgeo_convert_service.cpp107 if (!CommonUtils::DoubleEqual(request.latitude, info->GetLocation()->latitude) || in ReportAddressMock()
108 !CommonUtils::DoubleEqual(request.longitude, info->GetLocation()->longitude)) { in ReportAddressMock()
/base/location/test/location_common/source/
Dcommon_utils_test.cpp244 EXPECT_EQ(true, CommonUtils::DoubleEqual(1.0, 1.0));
245 EXPECT_EQ(true, CommonUtils::DoubleEqual(1.0, NUM_ACC_E7));
246 EXPECT_EQ(true, CommonUtils::DoubleEqual(1.0, NUM_ACC_E6));
247 EXPECT_EQ(false, CommonUtils::DoubleEqual(1.0, 2.0));
/base/location/services/location_locator/locator/source/
Dreport_manager.cpp180 if (CommonUtils::DoubleEqual(request->GetLastLocation()->GetLatitude(), MIN_LATITUDE - 1)) { in ResultCheck()
219 if (CommonUtils::DoubleEqual(lastLocation->GetLatitude(), MIN_LATITUDE - 1)) { in GetLastLocation()
/base/location/interfaces/inner_api/include/
Dcommon_utils.h151 static bool DoubleEqual(double a, double b);
/base/location/frameworks/location_common/common/source/
Dcommon_utils.cpp253 bool CommonUtils::DoubleEqual(double a, double b) in DoubleEqual() function in OHOS::Location::CommonUtils
/base/location/frameworks/native/source/
Dnapi_util.cpp438 if (CommonUtils::DoubleEqual(latitude, 0.0)) { in GetGeoAddressInfo()
445 if (CommonUtils::DoubleEqual(longitude, 0.0)) { in GetGeoAddressInfo()