Home
last modified time | relevance | path

Searched refs:pressure (Results 1 – 25 of 29) sorted by relevance

12

/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
Dball_physics.rs21 void touch(float x, float y, float pressure, int id) {
28 touchPressure[id] = pressure;
33 float pressure = 0;
66 pressure += length(pfv);
82 pressure += length(pfv);
140 pressure = max(pressure - 400.f, 0.f);
141 ball->pressure = pressure;
146 color.r = pow(pressure, 0.25f) / 12.f;
148 color.g = sin(pressure / 1500.f * 3.14f);
Dballs.rsh6 float pressure;
DBallsRS.java143 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
144 mPhysicsScript.invoke_touch(x, y, pressure * mRS.getWidth() / 1280, id); in newTouchPosition()
/frameworks/base/tests/RenderScriptTests/Fountain/src/com/example/android/rs/fountain/
DFountainRS.java56 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
60 int rate = (int)(pressure * pressure * 500.f); in newTouchPosition()
/frameworks/base/tests/RenderScriptTests/Fountain_v11/src/com/android/fountain/
DFountainRS.java56 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
60 int rate = (int)(pressure * pressure * 500.f); in newTouchPosition()
/frameworks/base/tests/RenderScriptTests/FountainFbo/src/com/example/android/rs/fountainfbo/
DFountainFboRS.java82 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
86 int rate = (int)(pressure * pressure * 500.f); in newTouchPosition()
/frameworks/base/core/java/android/view/
DMotionEvent.java1521 float x, float y, float pressure, float size, int metaState, in obtain() argument
1534 pc[0].pressure = pressure; in obtain()
1581 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
1583 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain()
2732 float pressure, float size, int metaState) { in addBatch() argument
2739 pc[0].pressure = pressure; in addBatch()
3221 public float pressure; field in MotionEvent.PointerCoords
3302 pressure = 0; in clear()
3332 pressure = other.pressure; in copyFrom()
3357 return pressure; in getAxisValue()
[all …]
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_environment.jd37 You can use these sensors to monitor relative ambient humidity, illuminance, ambient pressure, and
47 value for each data event. For example, the temperature in °C or the pressure in hPa.
77 <td>Ambient air pressure.</td>
98 <p>The raw data you acquire from the light, pressure, and temperature sensors usually requires no
159 the light, pressure, and temperature sensors. However, if a device has both a humidity sensor
167 barometric pressure, for water vapor to condense into water. The following equation shows how you
Dsensors_overview.jd73 and pressure, illumination, and humidity. This category includes barometers, photometers, and
185 <td>Measures the ambient air pressure in hPa or mbar.</td>
186 <td>Monitoring air pressure changes.</td>
628 of sensors in a wide range of configurations. For example, the Motorola Xoom has a pressure sensor,
645 pressure sensor, GPS sensor, and geomagnetic field sensor to display the temperature, barometric
646 pressure, location, and compass bearing. If a device doesn't have a pressure sensor, you can use the
647 sensor framework to detect the absence of the pressure sensor at runtime and then disable the
648 portion of your application's UI that displays pressure. For example, the following code checks
649 whether there's a pressure sensor on a device:</p>
655 // Success! There's a pressure sensor.
[all …]
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java1023 p1.pressure = 1; in performTwoPointerGesture()
1030 p2.pressure = 1; in performTwoPointerGesture()
1044 p1.pressure = 1; in performTwoPointerGesture()
1051 p2.pressure = 1; in performTwoPointerGesture()
/frameworks/native/include/android/
Dsensor.h149 float pressure; member
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java247 … void injectMotionEvent(int inputSource, int action, long when, float x, float y, float pressure) { in injectMotionEvent() argument
254 MotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, DEFAULT_SIZE, in injectMotionEvent()
/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
DRSTestCore.java182 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp49 jfieldID pressure; member
199 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.pressure)); in pointerCoordsToNative()
262 env->SetFloatField(outPointerCoordsObj, gPointerCoordsClassInfo.pressure, in pointerCoordsFromNative()
887 GET_FIELD_ID(gPointerCoordsClassInfo.pressure, clazz, in register_android_view_MotionEvent()
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
DRSTestCore.java186 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
/frameworks/base/services/input/
DInputReader.cpp1401 pressure.clear(); in clear()
2587 info->addMotionRange(mOrientedRanges.pressure); in populateDeviceInfo()
2675 pointer.id, pointer.x, pointer.y, pointer.pressure, in dump()
2882 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.pressure, "Pressure"); in dumpRawPointerAxes()
3118 } else if (mRawPointerAxes.pressure.valid in configureSurface()
3119 && mRawPointerAxes.pressure.maxValue != 0) { in configureSurface()
3120 mPressureScale = 1.0f / mRawPointerAxes.pressure.maxValue; in configureSurface()
3124 mOrientedRanges.pressure.axis = AMOTION_EVENT_AXIS_PRESSURE; in configureSurface()
3125 mOrientedRanges.pressure.source = mSource; in configureSurface()
3126 mOrientedRanges.pressure.min = 0; in configureSurface()
[all …]
DInputReader.h715 RawAbsoluteAxisInfo pressure; member
738 int32_t pressure; member
1395 InputDeviceInfo::MotionRange pressure; member
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java276 canvas.drawRect(itemW * 5, 0, (itemW * 5) + (ps.mCoords.pressure * itemW) - 1, in onDraw()
279 .append("Prs: ").append(ps.mCoords.pressure, 2) in onDraw()
363 int pressureLevel = (int)(ps.mCoords.pressure * 255); in onDraw()
498 .append(") Pressure=").append(coords.pressure, 3) in logCoords()
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DRSTestCore.java214 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
/frameworks/base/services/input/tests/
DInputReader_test.cpp1447 float x, float y, float pressure, float size, in assertPointerCoords() argument
1452 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords()
2561 void processPressure(SingleTouchInputMapper* mapper, int32_t pressure);
2616 SingleTouchInputMapper* mapper, int32_t pressure) { in processPressure() argument
2617 process(mapper, ARBITRARY_TIME, DEVICE_ID, EV_ABS, ABS_PRESSURE, pressure); in processPressure()
3203 float pressure = float(rawPressure) / RAW_PRESSURE_MAX; in TEST_F() local
3225 x, y, pressure, size, tool, tool, tool, tool, orientation, distance)); in TEST_F()
3684 void processPressure(MultiTouchInputMapper* mapper, int32_t pressure);
3776 MultiTouchInputMapper* mapper, int32_t pressure) { in processPressure() argument
3777 process(mapper, ARBITRARY_TIME, DEVICE_ID, EV_ABS, ABS_MT_PRESSURE, pressure); in processPressure()
[all …]
/frameworks/base/docs/html/training/gestures/
Dmovement.jd48 position, pressure, or size changes. As described in <a
Ddetector.jd73 For each sequence of touch events (position, pressure, size, addition of another finger, etc.)
/frameworks/base/docs/html/guide/topics/renderscript/
Dadvanced.jd134 void touch(float x, float y, float pressure, int id) {
141 touchPressure[id] = pressure;
148 public void invoke_touch(float x, float y, float pressure, int id) {
152 touch_fp.addF32(pressure);
/frameworks/base/docs/html/about/versions/
Dandroid-3.1-highlights.jd327 Hat Y, rotation, throttle, pressure, size, touch, tool, orientation, and others.
/frameworks/base/docs/html/tools/adk/
Dadk2.jd78 <li>Sensors for light, color, proximity, temperature, humidity, barometric pressure, and

12