Home
last modified time | relevance | path

Searched refs:gravity (Results 1 – 7 of 7) sorted by relevance

/base/sensors/sensor/interfaces/native/src/
Dsensor_algorithm.cpp268 int32_t SensorAlgorithm::CreateRotationAndInclination(std::vector<float> gravity, std::vector<float… in CreateRotationAndInclination() argument
271 if (static_cast<int32_t>(gravity.size()) < ROTATION_VECTOR_LENGTH in CreateRotationAndInclination()
276 float totalGravity = pow(gravity[0], 2) + pow(gravity[1], 2) + pow(gravity[2], 2); in CreateRotationAndInclination()
282 componentH[0] = geomagnetic[1] * gravity[2] - geomagnetic[2] * gravity[1]; in CreateRotationAndInclination()
283 componentH[1] = geomagnetic[2] * gravity[0] - geomagnetic[0] * gravity[2]; in CreateRotationAndInclination()
284 componentH[2] = geomagnetic[0] * gravity[1] - geomagnetic[1] * gravity[0]; in CreateRotationAndInclination()
296 gravity[0] *= reciprocalA; in CreateRotationAndInclination()
297 gravity[1] *= reciprocalA; in CreateRotationAndInclination()
298 gravity[2] *= reciprocalA; in CreateRotationAndInclination()
301 measuredValue[0] = gravity[1] * componentH[2] - gravity[2] * componentH[1]; in CreateRotationAndInclination()
[all …]
/base/sensors/sensor/interfaces/native/test/unittest/
Dsensor_algorithm_test.cpp272 std::vector<float> gravity = {9.0, 9.0, 9.0}; variable
276 …int32_t ret = sensorAlgorithm.CreateRotationAndInclination(gravity, geomagnetic, rotationMatrix, i…
293 std::vector<float> gravity(ROTATION_VECTOR_LENGTH - 1); variable
297 …int32_t ret = sensorAlgorithm.CreateRotationAndInclination(gravity, geomagnetic, rotationMatrix, i…
303 std::vector<float> gravity = {9.0, 9.0, 9.0}; variable
307 …int32_t ret = sensorAlgorithm.CreateRotationAndInclination(gravity, geomagnetic, rotationMatrix, i…
313 std::vector<float> gravity = {9.0, 9.0, 9.0}; variable
317 …int32_t ret = sensorAlgorithm.CreateRotationAndInclination(gravity, geomagnetic, rotationMatrix, i…
323 std::vector<float> gravity = {9.0, 9.0, 9.0}; variable
327 …int32_t ret = sensorAlgorithm.CreateRotationAndInclination(gravity, geomagnetic, rotationMatrix, i…
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/
Dinput_method_panel.cpp81 WindowGravity gravity = WindowGravity::WINDOW_GRAVITY_FLOAT; in SetPanelProperties() local
83 gravity = WindowGravity::WINDOW_GRAVITY_BOTTOM; in SetPanelProperties()
92 WMError wmError = window_->SetWindowGravity(gravity, invalidGravityPercent); in SetPanelProperties()
167 WindowGravity gravity = WindowGravity::WINDOW_GRAVITY_FLOAT; in ChangePanelFlag() local
169 gravity = WindowGravity::WINDOW_GRAVITY_BOTTOM; in ChangePanelFlag()
174 auto ret = window_->SetWindowGravity(gravity, invalidGravityPercent); in ChangePanelFlag()
/base/sensors/sensor/interfaces/native/include/
Dsensor_algorithm.h35 int32_t CreateRotationAndInclination(std::vector<float> gravity, std::vector<float> geomagnetic,
/base/sensors/sensor/interfaces/plugin/test/unittest/sensor/
DExampleJsunit.test.js2009 let gravity = [
2032 sensor.getRotationMatrix(gravity[0], geomagnetic[0], (error, data) => {
2054 sensor.getRotationMatrix(gravity[2], geomagnetic[2], (error, data) => {
2075 sensor.getRotationMatrix(gravity[0], geomagnetic[0]).then((data) => {
2094 sensor.getRotationMatrix(gravity[1], geomagnetic[1]).then((data) => {
2120 sensor.getRotationMatrix(gravity[2], geomagnetic[2]).then((data) => {
2244 sensor.getRotationMatrix(gravity[0], geomagnetic[0], -1).then((data) => {
2329 sensor.getRotationMatrix(gravity[0], geomagnetic[0], undefined).then((data) => {
2346 sensor.getRotationMatrix(gravity[0], geomagnetic[0], null).then((data) => {
/base/sensors/sensor/interfaces/plugin/src/
Dsensor_js.cpp898 std::vector<float> gravity; in CreateRotationAndInclination() local
899 if (!GetFloatArray(env, args[0], gravity)) { in CreateRotationAndInclination()
914 …int32_t ret = sensorAlgorithm.CreateRotationAndInclination(gravity, geomagnetic, rotation, inclina… in CreateRotationAndInclination()
/base/sensors/sensor/
DREADME.md16 - Motion: acceleration sensors, gyroscope sensors, gravity sensors, linear acceleration sensors, …