Home
last modified time | relevance | path

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

12

/frameworks/rs/tests/java_api/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/native/services/vr/virtual_touchpad/
DDvrVirtualTouchpadClient.cpp34 float y, float pressure) { in dvrVirtualTouchpadTouch() argument
35 return FromC(client)->Touch(touchpad, x, y, pressure); in dvrVirtualTouchpadTouch()
DVirtualTouchpadClient.cpp49 status_t Touch(int touchpad, float x, float y, float pressure) override { in Touch() argument
53 return service_->touch(touchpad, x, y, pressure).transactionError(); in Touch()
DVirtualTouchpadEvdev.cpp93 float pressure) { in Touch() argument
100 touchpad.touches = ((touchpad.touches & 1) << 1) | (pressure > 0); in Touch()
101 ALOGV("(%f,%f) %f -> (%" PRId32 ",%" PRId32 ") %d", x, y, pressure, device_x, in Touch()
DVirtualTouchpadService.cpp70 float pressure) { in touch() argument
74 if (const status_t error = touchpad_->Touch(touchpad, x, y, pressure)) { in touch()
DVirtualTouchpadService.h24 binder::Status touch(int touchpad, float x, float y, float pressure) override;
DVirtualTouchpadEvdev.h22 status_t Touch(int touchpad, float x, float y, float pressure) override;
/frameworks/base/core/java/android/view/
DMotionEvent.java1719 float x, float y, float pressure, float size, int metaState, in obtain() argument
1732 pc[0].pressure = pressure; in obtain()
1779 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
1781 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain()
2994 float pressure, float size, int metaState) { in addBatch() argument
3001 pc[0].pressure = pressure; in addBatch()
3521 public float pressure; field in MotionEvent.PointerCoords
3602 pressure = 0; in clear()
3632 pressure = other.pressure; in copyFrom()
3657 return pressure; in getAxisValue()
[all …]
/frameworks/native/services/vr/virtual_touchpad/aidl/android/dvr/
DVirtualTouchpadService.aidl28 void touch(int touchpad, float x, float y, float pressure) = 2; in touch() argument
/frameworks/native/services/vr/virtual_touchpad/include/dvr/
Dvirtual_touchpad_client.h52 float y, float pressure);
/frameworks/native/services/vr/virtual_touchpad/include/
DVirtualTouchpadClient.h18 status_t Touch(int touchpad, float x, float y, float pressure) override;
DVirtualTouchpad.h51 virtual status_t Touch(int touchpad, float x, float y, float pressure) = 0;
/frameworks/base/core/tests/coretests/src/android/view/
DPinchZoomAction.java74 pc1.pressure = 1; in sendPinchZoomAction()
79 pc2.pressure = 1; in sendPinchZoomAction()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiObject.java1030 p1.pressure = 1; in performTwoPointerGesture()
1037 p2.pressure = 1; in performTwoPointerGesture()
1051 p1.pressure = 1; in performTwoPointerGesture()
1058 p2.pressure = 1; in performTwoPointerGesture()
/frameworks/native/services/inputflinger/
DInputReader.cpp1648 pressure.clear(); in clear()
2065 dump += StringPrintf(INDENT4 "Pressure: %f\n", state.pressure); in dumpStylusState()
3108 info->addMotionRange(mOrientedRanges.pressure); in populateDeviceInfo()
3196 pointer.id, pointer.x, pointer.y, pointer.pressure, in dump()
3457 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.pressure, "Pressure"); in dumpRawPointerAxes()
3717 pressureMax = mPressureScale * mRawPointerAxes.pressure.maxValue; in configureSurface()
3718 } else if (mRawPointerAxes.pressure.valid in configureSurface()
3719 && mRawPointerAxes.pressure.maxValue != 0) { in configureSurface()
3720 mPressureScale = 1.0f / mRawPointerAxes.pressure.maxValue; in configureSurface()
3724 mOrientedRanges.pressure.axis = AMOTION_EVENT_AXIS_PRESSURE; in configureSurface()
[all …]
DInputReader.h345 float pressure; member
353 pressure = other.pressure; in copyFrom()
360 pressure = 0.f; in clear()
763 RawAbsoluteAxisInfo pressure; member
786 int32_t pressure; member
1560 InputDeviceInfo::MotionRange pressure; member
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java298 … void injectMotionEvent(int inputSource, int action, long when, float x, float y, float pressure) { in injectMotionEvent() argument
304 MotionEvent event = MotionEvent.obtain(when, when, action, x, y, pressure, DEFAULT_SIZE, in injectMotionEvent()
/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()
892 gPointerCoordsClassInfo.pressure = GetFieldIDOrDie(env, clazz, "pressure", "F"); in register_android_view_MotionEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
Dtouch_analytics.proto46 optional float pressure = 4; field
/frameworks/native/include/android/
Dsensor.h369 float pressure; member
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/
DRSTestCore.java182 public void newTouchPosition(float x, float y, float pressure, int id) { in newTouchPosition() argument
/frameworks/native/include_sensor/android/
Dsensor.h369 float pressure; member
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java279 canvas.drawRect(itemW * 5, 0, (itemW * 5) + (ps.mCoords.pressure * itemW) - 1, in onDraw()
282 .append("Prs: ").append(ps.mCoords.pressure, 2) in onDraw()
366 int pressureLevel = (int)(ps.mCoords.pressure * 255); in onDraw()
501 .append(") Pressure=").append(coords.pressure, 3) in logCoords()

12