Home | History | Annotate | Download | only in inputflinger

Lines Matching refs:mRawPointerAxes

3066     mRawPointerAxes.clear();
3071 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.x, "X");
3072 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.y, "Y");
3073 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.pressure, "Pressure");
3074 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.touchMajor, "TouchMajor");
3075 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.touchMinor, "TouchMinor");
3076 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.toolMajor, "ToolMajor");
3077 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.toolMinor, "ToolMinor");
3078 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.orientation, "Orientation");
3079 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.distance, "Distance");
3080 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.tiltX, "TiltX");
3081 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.tiltY, "TiltY");
3082 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.trackingId, "TrackingId");
3083 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.slot, "Slot");
3122 if (!mRawPointerAxes.x.valid || !mRawPointerAxes.y.valid) {
3130 int32_t rawWidth = mRawPointerAxes.x.maxValue - mRawPointerAxes.x.minValue + 1;
3131 int32_t rawHeight = mRawPointerAxes.y.maxValue - mRawPointerAxes.y.minValue + 1;
3264 if (mRawPointerAxes.touchMajor.valid
3265 && mRawPointerAxes.touchMajor.maxValue != 0) {
3266 mSizeScale = 1.0f / mRawPointerAxes.touchMajor.maxValue;
3267 } else if (mRawPointerAxes.toolMajor.valid
3268 && mRawPointerAxes.toolMajor.maxValue != 0) {
3269 mSizeScale = 1.0f / mRawPointerAxes.toolMajor.maxValue;
3318 } else if (mRawPointerAxes.pressure.valid
3319 && mRawPointerAxes.pressure.maxValue != 0) {
3320 mPressureScale = 1.0f / mRawPointerAxes.pressure.maxValue;
3337 mHaveTilt = mRawPointerAxes.tiltX.valid && mRawPointerAxes.tiltY.valid;
3339 mTiltXCenter = avg(mRawPointerAxes.tiltX.minValue,
3340 mRawPointerAxes.tiltX.maxValue);
3341 mTiltYCenter = avg(mRawPointerAxes.tiltY.minValue,
3342 mRawPointerAxes.tiltY.maxValue);
3373 if (mRawPointerAxes.orientation.valid) {
3374 if (mRawPointerAxes.orientation.maxValue > 0) {
3375 mOrientationScale = M_PI_2 / mRawPointerAxes.orientation.maxValue;
3376 } else if (mRawPointerAxes.orientation.minValue < 0) {
3377 mOrientationScale = -M_PI_2 / mRawPointerAxes.orientation.minValue;
3412 mRawPointerAxes.distance.minValue * mDistanceScale;
3414 mRawPointerAxes.distance.maxValue * mDistanceScale;
3417 mRawPointerAxes.distance.fuzz * mDistanceScale;
3434 mOrientedRanges.x.resolution = mRawPointerAxes.y.resolution * mYScale;
3440 mOrientedRanges.y.resolution = mRawPointerAxes.x.resolution * mXScale;
3451 mOrientedRanges.x.resolution = mRawPointerAxes.x.resolution * mXScale;
3457 mOrientedRanges.y.resolution = mRawPointerAxes.y.resolution * mYScale;
3532 int32_t touchScreenLeft = mRawPointerAxes.x.minValue;
3533 int32_t touchScreenTop = mRawPointerAxes.y.minValue;
3534 int32_t touchScreenWidth = mRawPointerAxes.x.maxValue - mRawPointerAxes.x.minValue + 1;
3535 int32_t touchScreenHeight = mRawPointerAxes.y.maxValue - mRawPointerAxes.y.minValue + 1;
3686 if (mRawPointerAxes.touchMajor.valid || mRawPointerAxes.toolMajor.valid) {
3695 if (mRawPointerAxes.pressure.valid) {
3704 if (mRawPointerAxes.orientation.valid) {
3713 if (mRawPointerAxes.distance.valid) {
4541 if (mRawPointerAxes.touchMajor.valid && mRawPointerAxes.toolMajor.valid) {
4543 touchMinor = mRawPointerAxes.touchMinor.valid ? in.touchMinor : in.touchMajor;
4545 toolMinor = mRawPointerAxes.toolMinor.valid ? in.toolMinor : in.toolMajor;
4546 size = mRawPointerAxes.touchMinor.valid
4548 } else if (mRawPointerAxes.touchMajor.valid) {
4550 toolMinor = touchMinor = mRawPointerAxes.touchMinor.valid
4552 size = mRawPointerAxes.touchMinor.valid
4554 } else if (mRawPointerAxes.toolMajor.valid) {
4556 touchMinor = toolMinor = mRawPointerAxes.toolMinor.valid
4558 size = mRawPointerAxes.toolMinor.valid
4695 x = float(yTransformed - mRawPointerAxes.y.minValue) * mYScale + mYTranslate;
4696 y = float(mRawPointerAxes.x.maxValue - xTransformed) * mXScale + mXTranslate;
4697 left = float(rawTop - mRawPointerAxes.y.minValue) * mYScale + mYTranslate;
4698 right = float(rawBottom- mRawPointerAxes.y.minValue) * mYScale + mYTranslate;
4699 bottom = float(mRawPointerAxes.x.maxValue - rawLeft) * mXScale + mXTranslate;
4700 top = float(mRawPointerAxes.x.maxValue - rawRight) * mXScale + mXTranslate;
4707 x = float(mRawPointerAxes.x.maxValue - xTransformed) * mXScale + mXTranslate;
4708 y = float(mRawPointerAxes.y.maxValue - yTransformed) * mYScale + mYTranslate;
4709 left = float(mRawPointerAxes.x.maxValue - rawRight) * mXScale + mXTranslate;
4710 right = float(mRawPointerAxes.x.maxValue - rawLeft) * mXScale + mXTranslate;
4711 bottom = float(mRawPointerAxes.y.maxValue - rawTop) * mYScale + mYTranslate;
4712 top = float(mRawPointerAxes.y.maxValue - rawBottom) * mYScale + mYTranslate;
4719 x = float(mRawPointerAxes.y.maxValue - yTransformed) * mYScale + mYTranslate;
4720 y = float(xTransformed - mRawPointerAxes.x.minValue) * mXScale + mXTranslate;
4721 left = float(mRawPointerAxes.y.maxValue - rawBottom) * mYScale + mYTranslate;
4722 right = float(mRawPointerAxes.y.maxValue - rawTop) * mYScale + mYTranslate;
4723 bottom = float(rawRight - mRawPointerAxes.x.minValue) * mXScale + mXTranslate;
4724 top = float(rawLeft - mRawPointerAxes.x.minValue) * mXScale + mXTranslate;
4731 x = float(xTransformed - mRawPointerAxes.x.minValue) * mXScale + mXTranslate;
4732 y = float(yTransformed - mRawPointerAxes
4733 left = float(rawLeft - mRawPointerAxes.x.minValue) * mXScale + mXTranslate;
4734 right = float(rawRight - mRawPointerAxes.x.minValue) * mXScale + mXTranslate;
4735 bottom = float(rawBottom - mRawPointerAxes.y.minValue) * mYScale + mYTranslate;
4736 top = float(rawTop - mRawPointerAxes.y.minValue) * mYScale + mYTranslate;
6119 return x >= mRawPointerAxes.x.minValue && x <= mRawPointerAxes.x.maxValue
6120 && y >= mRawPointerAxes.y.minValue && y <= mRawPointerAxes.y.maxValue;
6410 || (mRawPointerAxes.pressure.valid
6438 getAbsoluteAxisInfo(ABS_X, &mRawPointerAxes.x);
6439 getAbsoluteAxisInfo(ABS_Y, &mRawPointerAxes.y);
6440 getAbsoluteAxisInfo(ABS_PRESSURE, &mRawPointerAxes.pressure);
6441 getAbsoluteAxisInfo(ABS_TOOL_WIDTH, &mRawPointerAxes.toolMajor);
6442 getAbsoluteAxisInfo(ABS_DISTANCE, &mRawPointerAxes.distance);
6443 getAbsoluteAxisInfo(ABS_TILT_X, &mRawPointerAxes.tiltX);
6444 getAbsoluteAxisInfo(ABS_TILT_Y, &mRawPointerAxes.tiltY);
6519 || (mRawPointerAxes.pressure.valid && inSlot->getPressure() <= 0));
6562 getAbsoluteAxisInfo(ABS_MT_POSITION_X, &mRawPointerAxes.x);
6563 getAbsoluteAxisInfo(ABS_MT_POSITION_Y, &mRawPointerAxes.y);
6564 getAbsoluteAxisInfo(ABS_MT_TOUCH_MAJOR, &mRawPointerAxes.touchMajor);
6565 getAbsoluteAxisInfo(ABS_MT_TOUCH_MINOR, &mRawPointerAxes.touchMinor);
6566 getAbsoluteAxisInfo(ABS_MT_WIDTH_MAJOR, &mRawPointerAxes.toolMajor);
6567 getAbsoluteAxisInfo(ABS_MT_WIDTH_MINOR, &mRawPointerAxes.toolMinor);
6568 getAbsoluteAxisInfo(ABS_MT_ORIENTATION, &mRawPointerAxes.orientation);
6569 getAbsoluteAxisInfo(ABS_MT_PRESSURE, &mRawPointerAxes.pressure);
6570 getAbsoluteAxisInfo(ABS_MT_DISTANCE, &mRawPointerAxes.distance);
6571 getAbsoluteAxisInfo(ABS_MT_TRACKING_ID, &mRawPointerAxes.trackingId);
6572 getAbsoluteAxisInfo(ABS_MT_SLOT, &mRawPointerAxes.slot);
6574 if (mRawPointerAxes.trackingId.valid
6575 && mRawPointerAxes.slot.valid
6576 && mRawPointerAxes.slot.minValue == 0 && mRawPointerAxes.slot.maxValue > 0) {
6577 size_t slotCount = mRawPointerAxes.slot.maxValue + 1;