Home
last modified time | relevance | path

Searched refs:altitude (Results 1 – 11 of 11) sorted by relevance

/base/sensors/sensor/interfaces/native/include/
Dgeomagnetic_field.h24 GeomagneticField(float latitude, float longitude, float altitude, int64_t timeMillis);
39 void CalibrateGeocentricCoordinates(float latitude, float longitude, float altitude);
Dsensor_algorithm.h29 int32_t GetAltitude(float seaPressure, float currentPressure, float *altitude);
/base/location/interfaces/inner_api/include/
Dlocation.h55 inline void SetAltitude(double altitude) in SetAltitude() argument
57 altitude_ = altitude; in SetAltitude()
Dsatellite_status.h92 inline void SetAltitude(double altitude) in SetAltitude() argument
95 altitudes_.push_back(altitude); in SetAltitude()
/base/sensors/sensor/interfaces/native/src/
Dgeomagnetic_field.cpp112 GeomagneticField::GeomagneticField(float latitude, float longitude, float altitude, int64_t timeMil… in GeomagneticField() argument
117 CalibrateGeocentricCoordinates(gcLatitude, longitude, altitude); in GeomagneticField()
200 …d GeomagneticField::CalibrateGeocentricCoordinates(float latitude, float longitude, float altitude) in CalibrateGeocentricCoordinates() argument
202 float altitudeKm = altitude / CONVERSION_FACTOR; in CalibrateGeocentricCoordinates()
Dsensor_algorithm.cpp121 int32_t SensorAlgorithm::GetAltitude(float seaPressure, float currentPressure, float *altitude) in GetAltitude() argument
123 if (altitude == nullptr) { in GetAltitude()
130 *altitude = ZERO_PRESSURE_ALTITUDE * (1.0f - difference); in GetAltitude()
/base/location/services/location_gnss/gnss/source/
Dgnss_event_callback.cpp39 locationNew->SetAltitude(location.altitude); in ReportLocation()
/base/sensors/sensor/interfaces/native/test/unittest/
Dsensor_algorithm_test.cpp129 float altitude = -1.0; variable
130 int32_t ret = sensorAlgorithm.GetAltitude(5.0, 0.0, &altitude);
132 ASSERT_EQ(altitude, 44330.0);
/base/sensors/sensor/interfaces/plugin/src/
Dsensor_js.cpp482 double altitude = 0; in GetGeomagneticField() local
483 if (!GetNativeDouble(env, napiAltitude, altitude)) { in GetGeomagneticField()
492 GeomagneticField geomagneticField(latitude, longitude, altitude, timeMillis); in GetGeomagneticField()
812 float altitude = 0; in GetAltitude() local
814 int32_t ret = sensorAlgorithm.GetAltitude(seaPressure, currentPressure, &altitude); in GetAltitude()
819 asyncCallbackInfo->data.reserveData.reserve[0] = altitude; in GetAltitude()
/base/location/frameworks/native/source/
Dnapi_util.cpp553 double altitude = 0.0; in GetLocationArray() local
554 JsObjectToDouble(env, elementValue, "altitude", altitude); in GetLocationArray()
555 locationAdapter->SetAltitude(altitude); in GetLocationArray()
/base/location/test/location_gnss/source/
Dgnss_ability_test.cpp879 locationInfo.altitude = 1.0;
973 locationInfo.altitude = 1.0;