Home | History | Annotate | Download | only in input

Lines Matching refs:orientation

103 static int32_t rotateValueUsingRotationMap(int32_t value, int32_t orientation,
105 if (orientation != DISPLAY_ORIENTATION_0) {
108 return map[i][orientation];
126 static int32_t rotateKeyCode(int32_t keyCode, int32_t orientation) {
127 return rotateValueUsingRotationMap(keyCode, orientation,
131 static void rotateDelta(int32_t orientation, float* deltaX, float* deltaY) {
133 switch (orientation) {
1406 orientation.clear();
1994 dump.appendFormat(INDENT3 "Orientation: %d\n", mOrientation);
2014 mOrientation = v.orientation;
2097 // Rotate key codes according to orientation if needed.
2283 dump.appendFormat(INDENT3 "Orientation: %d\n", mOrientation);
2332 mOrientation = v.orientation;
2433 // Rotate delta according to orientation if needed.
2605 info->addMotionRange(mOrientedRanges.orientation);
2674 "orientation=%d, tiltX=%d, tiltY=%d, distance=%d, "
2679 pointer.orientation, pointer.tiltX, pointer.tiltY, pointer.distance,
2690 "orientation=%0.3f, tilt=%0.3f, distance=%0.3f, "
2755 // Configure device sources, surface dimensions, orientation and
2888 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.orientation, "Orientation");
2930 // Raw width and height in the natural orientation.
2959 switch (mViewport.orientation) {
3009 mViewport.orientation : DISPLAY_ORIENTATION_0;
3037 ALOGI("Device reconfigured: id=%d, name='%s', size %dx%d, orientation %d, mode %d, "
3160 // Orientation
3165 mOrientedRanges.orientation.axis = AMOTION_EVENT_AXIS_ORIENTATION;
3166 mOrientedRanges.orientation.source = mSource;
3167 mOrientedRanges.orientation.min = -M_PI;
3168 mOrientedRanges.orientation.max = M_PI;
3169 mOrientedRanges.orientation.flat = 0;
3170 mOrientedRanges.orientation.fuzz = 0;
3171 mOrientedRanges.orientation.resolution = 0;
3176 if (mRawPointerAxes.orientation.valid) {
3177 if (mRawPointerAxes.orientation.maxValue > 0) {
3178 mOrientationScale = M_PI_2 / mRawPointerAxes.orientation.maxValue;
3179 } else if (mRawPointerAxes.orientation.minValue < 0) {
3180 mOrientationScale = -M_PI_2 / mRawPointerAxes.orientation.minValue;
3189 mOrientedRanges.orientation.axis = AMOTION_EVENT_AXIS_ORIENTATION;
3190 mOrientedRanges.orientation.source = mSource;
3191 mOrientedRanges.orientation.min = -M_PI_2;
3192 mOrientedRanges.orientation.max = M_PI_2;
3193 mOrientedRanges.orientation.flat = 0;
3194 mOrientedRanges.orientation.fuzz = 0;
3195 mOrientedRanges.orientation.resolution = 0;
3302 dump.appendFormat(INDENT3 "Viewport: displayId=%d, orientation=%d, "
3306 mViewport.displayId, mViewport.orientation,
3437 // Orientation
3440 if (in.tryGetProperty(String8("touch.orientation.calibration"), orientationCalibrationString)) {
3448 ALOGW("Invalid value for touch.orientation.calibration: '%s'",
3503 // Orientation
3504 if (mRawPointerAxes.orientation.valid) {
3586 // Orientation
3589 dump.append(INDENT4 "touch.orientation.calibration: none\n");
3592 dump.append(INDENT4 "touch.orientation.calibration: interpolated\n");
3595 dump.append(INDENT4 "touch.orientation.calibration: vector\n");
4096 // surface coordinates and adjust for display orientation.
4189 // Tilt and Orientation
4191 float orientation;
4195 orientation = atan2f(-sinf(tiltXAngle), sinf(tiltYAngle));
4202 orientation = in.orientation * mOrientationScale;
4205 int32_t c1 = signExtendNybble((in.orientation & 0xf0) >> 4);
4206 int32_t c2 = signExtendNybble(in.orientation & 0x0f);
4208 orientation = atan2f(c1, c2) * 0.5f;
4216 orientation = 0;
4221 orientation = 0;
4250 // Adjust coords for surface orientation.
4260 orientation -= M_PI_2;
4261 if (orientation < mOrientedRanges.orientation.min) {
4262 orientation += (mOrientedRanges.orientation.max - mOrientedRanges.orientation.min);
4272 orientation -= M_PI;
4273 if (orientation < mOrientedRanges.orientation.min) {
4274 orientation += (mOrientedRanges.orientation.max - mOrientedRanges.orientation.min);
4284 orientation += M_PI_2;
4285 if (orientation > mOrientedRanges.orientation.max) {
4286 orientation -= (mOrientedRanges.orientation.max - mOrientedRanges.orientation.min);
4308 out.setAxisValue(AMOTION_EVENT_AXIS_ORIENTATION, orientation);
5968 outPointer.orientation = 0;
6049 outPointer.orientation = inSlot->getOrientation();
6114 getAbsoluteAxisInfo(ABS_MT_ORIENTATION, &mRawPointerAxes.orientation);