Home
last modified time | relevance | path

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

/cts/tests/sensor/src/android/hardware/cts/helpers/
DMovementDetectorHelper.java41 private final float[] mGravity = {0.0f, 0.0f, 0.0f}; field in MovementDetectorHelper
86 if (mGravity[0] == 0f && mGravity[2] == 0f) { in onSensorChanged()
87 mGravity[0] = event.values[0]; in onSensorChanged()
88 mGravity[1] = event.values[1]; in onSensorChanged()
89 mGravity[2] = event.values[2]; in onSensorChanged()
92 mGravity[0] = ALPHA * mGravity[0] + (1 - ALPHA) * event.values[0]; in onSensorChanged()
93 mGravity[1] = ALPHA * mGravity[1] + (1 - ALPHA) * event.values[1]; in onSensorChanged()
94 mGravity[2] = ALPHA * mGravity[2] + (1 - ALPHA) * event.values[2]; in onSensorChanged()
98 linearAcceleration[0] = event.values[0] - mGravity[0]; in onSensorChanged()
99 linearAcceleration[1] = event.values[1] - mGravity[1]; in onSensorChanged()
[all …]
/cts/tests/tests/widget/src/android/widget/cts/
DPopupMenuTest.java452 private int mGravity = Gravity.NO_GRAVITY; field in PopupMenuTest.Builder
491 mGravity = gravity; in withGravity()
515 mPopupMenu = new PopupMenu(mActivity, mAnchor, mGravity); in configure()
/cts/tests/tests/tools/processors/view_inspector/src/android/processor/view/inspector/cts/
DPlatformInspectableProcessorTest.java280 private final int mGravity; field in PlatformInspectableProcessorTest.ValueTypeTest
285 mGravity = seed.nextInt(); in ValueTypeTest()
296 return mGravity; in getGravity()