/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | ball_physics.rs | 21 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);
|
D | balls.rsh | 6 float pressure;
|
D | BallsRS.java | 143 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/ |
D | FountainRS.java | 56 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/ |
D | FountainRS.java | 56 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/ |
D | FountainFboRS.java | 82 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/ |
D | MotionEvent.java | 1521 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/ |
D | sensors_environment.jd | 37 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
|
D | sensors_overview.jd | 73 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/ |
D | UiObject.java | 1023 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/ |
D | sensor.h | 149 float pressure; member
|
/frameworks/base/cmds/input/src/com/android/commands/input/ |
D | Input.java | 247 … 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/ |
D | RSTestCore.java | 182 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
|
/frameworks/base/core/jni/ |
D | android_view_MotionEvent.cpp | 49 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/ |
D | RSTestCore.java | 186 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
|
/frameworks/base/services/input/ |
D | InputReader.cpp | 1401 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 …]
|
D | InputReader.h | 715 RawAbsoluteAxisInfo pressure; member 738 int32_t pressure; member 1395 InputDeviceInfo::MotionRange pressure; member
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | PointerLocationView.java | 276 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/ |
D | RSTestCore.java | 214 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
|
/frameworks/base/services/input/tests/ |
D | InputReader_test.cpp | 1447 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/ |
D | movement.jd | 48 position, pressure, or size changes. As described in <a
|
D | detector.jd | 73 For each sequence of touch events (position, pressure, size, addition of another finger, etc.)
|
/frameworks/base/docs/html/guide/topics/renderscript/ |
D | advanced.jd | 134 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/ |
D | android-3.1-highlights.jd | 327 Hat Y, rotation, throttle, pressure, size, touch, tool, orientation, and others.
|
/frameworks/base/docs/html/tools/adk/ |
D | adk2.jd | 78 <li>Sensors for light, color, proximity, temperature, humidity, barometric pressure, and
|