Lines Matching refs:orientation

121 int32_t rotateKeyCode(int32_t keyCode, int32_t orientation) {
122 if (orientation != InputReaderPolicyInterface::ROTATION_0) {
125 return keyCodeRotationMap[i][orientation];
940 // Rotate key codes according to orientation if needed.
943 int32_t orientation;
944 if (! getPolicy()->getDisplayInfo(mAssociatedDisplayId, NULL, NULL, & orientation)) {
948 keyCode = rotateKeyCode(keyCode, orientation);
1180 pointerCoords.orientation = 0;
1183 // Rotate motion based on display orientation if needed.
1185 int32_t orientation;
1186 if (! getPolicy()->getDisplayInfo(mAssociatedDisplayId, NULL, NULL, & orientation)) {
1191 switch (orientation) {
1254 // Ensure surface information is up to date so that orientation changes are
1287 mLocked.orientedRanges.orientation);
1357 // Configure surface dimensions and orientation.
1386 mRawAxes.orientation.clear();
1407 dumpAxisInfo(dump, mRawAxes.orientation, "Orientation");
1411 // Update orientation and dimensions if needed.
1412 int32_t orientation;
1416 if (! getPolicy()->getDisplayInfo(mAssociatedDisplayId, & width, & height, & orientation)) {
1420 orientation = InputReaderPolicyInterface::ROTATION_0;
1425 bool orientationChanged = mLocked.surfaceOrientation != orientation;
1427 mLocked.surfaceOrientation = orientation;
1577 if (mRawAxes.orientation.valid && mRawAxes.orientation.maxValue != 0) {
1578 mLocked.orientationScale = float(M_PI_2) / mRawAxes.orientation.maxValue;
1582 mLocked.orientedRanges.orientation.min = - M_PI_2;
1583 mLocked.orientedRanges.orientation.max = M_PI_2;
1584 mLocked.orientedRanges.orientation.flat = 0;
1585 mLocked.orientedRanges.orientation.fuzz = 0;
1803 if (in.tryGetProperty(String8("touch.orientation.calibration"), orientationCalibrationString)) {
1809 LOGW("Invalid value for touch.orientation.calibration: '%s'",
1903 if (mRawAxes.orientation.valid) {
2024 dump.append(INDENT4 "touch.orientation.calibration: none\n");
2027 dump.append(INDENT4 "touch.orientation.calibration: interpolated\n");
2109 // Update surface size and orientation, including virtual key positions.
2340 // display coordinates (PointerCoords) and adjust for display orientation.
2465 float orientation;
2468 orientation = in.orientation * mLocked.orientationScale;
2471 orientation = 0;
2474 // Adjust coords for orientation.
2480 orientation -= M_PI_2;
2481 if (orientation < - M_PI_2) {
2482 orientation += M_PI;
2489 orientation = - orientation;
2496 orientation += M_PI_2;
2497 if (orientation > M_PI_2) {
2498 orientation -= M_PI;
2514 out.orientation = orientation;
3290 mCurrentTouch.pointers[0].orientation = 0;
3475 outPointer.orientation = inPointer.absMTOrientation;
3477 // Default orientation to vertical if absent.
3478 outPointer.orientation = 0;
3523 getEventHub()->getAbsoluteAxisInfo(getDeviceId(), ABS_MT_ORIENTATION, & mRawAxes.orientation);