Home
last modified time | relevance | path

Searched refs:pressure (Results 1 – 25 of 36) 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;
67 pressure += f;
82 pressure += length(pfv);
140 pressure *= 12.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.java149 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
150 mPhysicsScript.invoke_touch(x, y, pressure * mRS.getWidth() / 1280, id); 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/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/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.java1585 float x, float y, float pressure, float size, int metaState, in obtain() argument
1598 pc[0].pressure = pressure; in obtain()
1645 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
1647 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain()
2844 float pressure, float size, int metaState) { in addBatch() argument
2851 pc[0].pressure = pressure; in addBatch()
3360 public float pressure; field in MotionEvent.PointerCoords
3441 pressure = 0; in clear()
3471 pressure = other.pressure; in copyFrom()
3496 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/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java1027 p1.pressure = 1; in performTwoPointerGesture()
1034 p2.pressure = 1; in performTwoPointerGesture()
1048 p1.pressure = 1; in performTwoPointerGesture()
1055 p2.pressure = 1; in performTwoPointerGesture()
/frameworks/native/services/inputflinger/
DInputReader.cpp1494 pressure.clear(); in clear()
1905 dump.appendFormat(INDENT4 "Pressure: %f\n", state.pressure); in dumpStylusState()
2744 info->addMotionRange(mOrientedRanges.pressure); in populateDeviceInfo()
2832 pointer.id, pointer.x, pointer.y, pointer.pressure, in dump()
3073 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.pressure, "Pressure"); in dumpRawPointerAxes()
3318 } else if (mRawPointerAxes.pressure.valid in configureSurface()
3319 && mRawPointerAxes.pressure.maxValue != 0) { in configureSurface()
3320 mPressureScale = 1.0f / mRawPointerAxes.pressure.maxValue; in configureSurface()
3324 mOrientedRanges.pressure.axis = AMOTION_EVENT_AXIS_PRESSURE; in configureSurface()
3325 mOrientedRanges.pressure.source = mSource; in configureSurface()
[all …]
DInputReader.h381 float pressure; member
389 pressure = other.pressure; in copyFrom()
396 pressure = 0.f; in clear()
791 RawAbsoluteAxisInfo pressure; member
814 int32_t pressure; member
1552 InputDeviceInfo::MotionRange 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/native/include/android/
Dsensor.h165 float pressure; member
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp52 jfieldID pressure; member
202 env->GetFloatField(pointerCoordsObj, gPointerCoordsClassInfo.pressure)); in pointerCoordsToNative()
264 env->SetFloatField(outPointerCoordsObj, gPointerCoordsClassInfo.pressure, in pointerCoordsFromNative()
905 gPointerCoordsClassInfo.pressure = GetFieldIDOrDie(env, clazz, "pressure", "F"); in register_android_view_MotionEvent()
/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/java/com/android/internal/widget/
DPointerLocationView.java278 canvas.drawRect(itemW * 5, 0, (itemW * 5) + (ps.mCoords.pressure * itemW) - 1, in onDraw()
281 .append("Prs: ").append(ps.mCoords.pressure, 2) in onDraw()
365 int pressureLevel = (int)(ps.mCoords.pressure * 255); in onDraw()
500 .append(") Pressure=").append(coords.pressure, 3) in logCoords()
/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/rs/java/tests/RsTest_16/src/com/android/rs/test/
DRSTestCore.java186 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
/frameworks/native/services/inputflinger/tests/
DInputReader_test.cpp1461 float x, float y, float pressure, float size, in assertPointerCoords() argument
1466 ASSERT_NEAR(pressure, coords.getAxisValue(AMOTION_EVENT_AXIS_PRESSURE), EPSILON); in assertPointerCoords()
2595 void processPressure(SingleTouchInputMapper* mapper, int32_t pressure);
2650 SingleTouchInputMapper* mapper, int32_t pressure) { in processPressure() argument
2651 process(mapper, ARBITRARY_TIME, DEVICE_ID, EV_ABS, ABS_PRESSURE, pressure); in processPressure()
3237 float pressure = float(rawPressure) / RAW_PRESSURE_MAX; in TEST_F() local
3259 x, y, pressure, size, tool, tool, tool, tool, orientation, distance)); in TEST_F()
3742 void processPressure(MultiTouchInputMapper* mapper, int32_t pressure);
3834 MultiTouchInputMapper* mapper, int32_t pressure) { in processPressure() argument
3835 process(mapper, ARBITRARY_TIME, DEVICE_ID, EV_ABS, ABS_MT_PRESSURE, pressure); in processPressure()
[all …]
/frameworks/base/docs/html/ndk/reference/
Dstruct_a_sensor_event.jd44 …ass="el" href="struct_a_sensor_event.html#ac870e1249bab4a2a68cc4126761d24ef">pressure</a></td></tr>
198 <td class="memname">float pressure</td>
Dfunctions.jd180 <li>pressure
Dfunctions_vars.jd180 <li>pressure
/frameworks/base/docs/html/training/gestures/
Dmovement.jd48 position, pressure, or size changes. As described in <a
/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);

12