Home
last modified time | relevance | path

Searched refs:pressure (Results 1 – 25 of 35) 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/base/packages/EasterEgg/src/com/android/egg/paint/
DSpotFilter.kt50 var pressure = 0f in filterInto() variable
56 pressure += pi.pressure * wi_press in filterInto()
73 out.pressure = pressure / w_press in filterInto()
/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/cmds/input/src/com/android/commands/input/
DInput.java322 final float pressure; in sendMotionEvent() local
327 pressure = DEFAULT_PRESSURE; in sendMotionEvent()
331 pressure = NO_PRESSURE; in sendMotionEvent()
335 pressure = DEFAULT_PRESSURE; in sendMotionEvent()
342 injectMotionEvent(inputSource, action, now, now, x, y, pressure, displayId); in sendMotionEvent()
383 float x, float y, float pressure, int displayId) { in injectMotionEvent() argument
389 MotionEvent event = MotionEvent.obtain(downTime, when, action, x, y, pressure, DEFAULT_SIZE, in injectMotionEvent()
/frameworks/base/core/java/com/android/internal/app/
DPlatLogoActivity.java197 final float pressure = event.getPressure(); in measureTouchPressure() local
201 mPressureMin = mPressureMax = pressure; in measureTouchPressure()
205 if (pressure < mPressureMin) mPressureMin = pressure; in measureTouchPressure()
206 if (pressure > mPressureMax) mPressureMax = pressure; in measureTouchPressure()
/frameworks/base/core/java/android/view/
DMotionEvent.java1822 float x, float y, float pressure, float size, int metaState, in obtain() argument
1824 return obtain(downTime, eventTime, action, x, y, pressure, size, metaState, in obtain()
1862 float x, float y, float pressure, float size, int metaState, in obtain() argument
1876 pc[0].pressure = pressure; in obtain()
1924 int pointerCount, float x, float y, float pressure, float size, int metaState, in obtain() argument
1926 return obtain(downTime, eventTime, action, x, y, pressure, size, in obtain()
3200 float pressure, float size, int metaState) { in addBatch() argument
3207 pc[0].pressure = pressure; in addBatch()
3759 public float pressure; field in MotionEvent.PointerCoords
3840 pressure = 0; in clear()
[all …]
/frameworks/native/services/vr/virtual_touchpad/aidl/android/dvr/
DIVirtualTouchpadService.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/
DVirtualTouchpad.h51 virtual status_t Touch(int touchpad, float x, float y, float pressure) = 0;
/frameworks/base/core/tests/coretests/src/android/view/
DPinchZoomAction.java73 pc1.pressure = 1; in sendPinchZoomAction()
78 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.cpp1594 pressure.clear(); in clear()
2011 dump += StringPrintf(INDENT4 "Pressure: %f\n", state.pressure); in dumpStylusState()
3079 info->addMotionRange(mOrientedRanges.pressure); in populateDeviceInfo()
3167 pointer.id, pointer.x, pointer.y, pointer.pressure, in dump()
3433 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.pressure, "Pressure"); in dumpRawPointerAxes()
3745 pressureMax = mPressureScale * mRawPointerAxes.pressure.maxValue; in configureSurface()
3746 } else if (mRawPointerAxes.pressure.valid in configureSurface()
3747 && mRawPointerAxes.pressure.maxValue != 0) { in configureSurface()
3748 mPressureScale = 1.0f / mRawPointerAxes.pressure.maxValue; in configureSurface()
3752 mOrientedRanges.pressure.axis = AMOTION_EVENT_AXIS_PRESSURE; in configureSurface()
[all …]
DInputReader.h51 float pressure; member
59 pressure = other.pressure; in copyFrom()
66 pressure = 0.f; in clear()
468 RawAbsoluteAxisInfo pressure; member
493 int32_t pressure; member
1344 InputDeviceInfo::MotionRange pressure; member
/frameworks/base/core/proto/android/service/
Dprocstats_enum.proto32 MEMORY_STATE_MODERATE = 2; // moderate memory pressure.
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
Dtouch_analytics.proto46 optional float pressure = 4; field
/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/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()
917 gPointerCoordsClassInfo.pressure = GetFieldIDOrDie(env, clazz, "pressure", "F"); in register_android_view_MotionEvent()
/frameworks/native/include_sensor/android/
Dsensor.h444 float pressure; member

12