Lines Matching refs:Calibration
2623 if (mCalibration.coverageCalibration == Calibration::COVERAGE_CALIBRATION_BOX) {
2738 // Prepare input device calibration.
3063 if (mCalibration.sizeCalibration != Calibration::SIZE_CALIBRATION_NONE) {
3113 if (mCalibration.pressureCalibration == Calibration::PRESSURE_CALIBRATION_PHYSICAL
3115 == Calibration::PRESSURE_CALIBRATION_AMPLITUDE) {
3170 Calibration::ORIENTATION_CALIBRATION_NONE) {
3172 == Calibration::ORIENTATION_CALIBRATION_INTERPOLATED) {
3197 if (mCalibration.distanceCalibration != Calibration::DISTANCE_CALIBRATION_NONE) {
3199 == Calibration::DISTANCE_CALIBRATION_SCALED) {
3386 Calibration& out = mCalibration;
3389 out.sizeCalibration = Calibration::SIZE_CALIBRATION_DEFAULT;
3391 if (in.tryGetProperty(String8("touch.size.calibration"), sizeCalibrationString)) {
3393 out.sizeCalibration = Calibration::SIZE_CALIBRATION_NONE;
3395 out.sizeCalibration = Calibration::SIZE_CALIBRATION_GEOMETRIC;
3397 out.sizeCalibration = Calibration::SIZE_CALIBRATION_DIAMETER;
3399 out.sizeCalibration = Calibration::SIZE_CALIBRATION_BOX;
3401 out.sizeCalibration = Calibration::SIZE_CALIBRATION_AREA;
3403 ALOGW("Invalid value for touch.size.calibration: '%s'",
3416 out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_DEFAULT;
3418 if (in.tryGetProperty(String8("touch.pressure.calibration"), pressureCalibrationString)) {
3420 out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_NONE;
3422 out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_PHYSICAL;
3424 out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_AMPLITUDE;
3426 ALOGW("Invalid value for touch.pressure.calibration: '%s'",
3435 out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_DEFAULT;
3437 if (in.tryGetProperty(String8("touch.orientation.calibration"), orientationCalibrationString)) {
3439 out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_NONE;
3441 out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_INTERPOLATED;
3443 out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_VECTOR;
3445 ALOGW("Invalid value for touch.orientation.calibration: '%s'",
3451 out.distanceCalibration = Calibration::DISTANCE_CALIBRATION_DEFAULT;
3453 if (in.tryGetProperty(String8("touch.distance.calibration"), distanceCalibrationString)) {
3455 out.distanceCalibration = Calibration::DISTANCE_CALIBRATION_NONE;
3457 out.distanceCalibration = Calibration::DISTANCE_CALIBRATION_SCALED;
3459 ALOGW("Invalid value for touch.distance.calibration: '%s'",
3467 out.coverageCalibration = Calibration::COVERAGE_CALIBRATION_DEFAULT;
3469 if (in.tryGetProperty(String8("touch.coverage.calibration"), coverageCalibrationString)) {
3471 out.coverageCalibration = Calibration::COVERAGE_CALIBRATION_NONE;
3473 out.coverageCalibration = Calibration::COVERAGE_CALIBRATION_BOX;
3475 ALOGW("Invalid value for touch.coverage.calibration: '%s'",
3484 if (mCalibration.sizeCalibration == Calibration::SIZE_CALIBRATION_DEFAULT) {
3485 mCalibration.sizeCalibration = Calibration::SIZE_CALIBRATION_GEOMETRIC;
3488 mCalibration.sizeCalibration = Calibration::SIZE_CALIBRATION_NONE;
3493 if (mCalibration.pressureCalibration == Calibration::PRESSURE_CALIBRATION_DEFAULT) {
3494 mCalibration.pressureCalibration = Calibration::PRESSURE_CALIBRATION_PHYSICAL;
3497 mCalibration.pressureCalibration = Calibration::PRESSURE_CALIBRATION_NONE;
3502 if (mCalibration.orientationCalibration == Calibration::ORIENTATION_CALIBRATION_DEFAULT) {
3503 mCalibration.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_INTERPOLATED;
3506 mCalibration.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_NONE;
3511 if (mCalibration.distanceCalibration == Calibration::DISTANCE_CALIBRATION_DEFAULT) {
3512 mCalibration.distanceCalibration = Calibration::DISTANCE_CALIBRATION_SCALED;
3515 mCalibration.distanceCalibration = Calibration::DISTANCE_CALIBRATION_NONE;
3519 if (mCalibration.coverageCalibration == Calibration::COVERAGE_CALIBRATION_DEFAULT) {
3520 mCalibration.coverageCalibration = Calibration::COVERAGE_CALIBRATION_NONE;
3525 dump.append(INDENT3 "Calibration:\n");
3529 case Calibration::SIZE_CALIBRATION_NONE:
3530 dump.append(INDENT4 "touch.size.calibration: none\n");
3532 case Calibration::SIZE_CALIBRATION_GEOMETRIC:
3533 dump.append(INDENT4 "touch.size.calibration: geometric\n");
3535 case Calibration::SIZE_CALIBRATION_DIAMETER:
3536 dump.append(INDENT4 "touch.size.calibration: diameter\n");
3538 case Calibration::SIZE_CALIBRATION_BOX:
3539 dump.append(INDENT4 "touch.size.calibration: box\n");
3541 case Calibration::SIZE_CALIBRATION_AREA:
3542 dump.append(INDENT4 "touch.size.calibration: area\n");
3565 case Calibration::PRESSURE_CALIBRATION_NONE:
3566 dump.append(INDENT4 "touch.pressure.calibration: none\n");
3568 case Calibration::PRESSURE_CALIBRATION_PHYSICAL:
3569 dump.append(INDENT4 "touch.pressure.calibration: physical\n");
3571 case Calibration::PRESSURE_CALIBRATION_AMPLITUDE:
3572 dump.append(INDENT4 "touch.pressure.calibration: amplitude\n");
3585 case Calibration::ORIENTATION_CALIBRATION_NONE:
3586 dump.append(INDENT4 "touch.orientation.calibration: none\n");
3588 case Calibration::ORIENTATION_CALIBRATION_INTERPOLATED:
3589 dump.append(INDENT4 "touch.orientation.calibration: interpolated\n");
3591 case Calibration::ORIENTATION_CALIBRATION_VECTOR:
3592 dump.append(INDENT4 "touch.orientation.calibration: vector\n");
3600 case Calibration::DISTANCE_CALIBRATION_NONE:
3601 dump.append(INDENT4 "touch.distance.calibration: none\n");
3603 case Calibration::DISTANCE_CALIBRATION_SCALED:
3604 dump.append(INDENT4 "touch.distance.calibration: scaled\n");
3616 case Calibration::COVERAGE_CALIBRATION_NONE:
3617 dump.append(INDENT4 "touch.coverage.calibration: none\n");
3619 case Calibration::COVERAGE_CALIBRATION_BOX:
3620 dump.append(INDENT4 "touch.coverage.calibration: box\n");
4100 case Calibration::SIZE_CALIBRATION_GEOMETRIC:
4101 case Calibration::SIZE_CALIBRATION_DIAMETER:
4102 case Calibration::SIZE_CALIBRATION_BOX:
4103 case Calibration::SIZE_CALIBRATION_AREA:
4125 "Size calibration should have been resolved to NONE.");
4144 if (mCalibration.sizeCalibration == Calibration::SIZE_CALIBRATION_GEOMETRIC) {
4149 } else if (mCalibration.sizeCalibration == Calibration::SIZE_CALIBRATION_AREA) {
4154 } else if (mCalibration.sizeCalibration == Calibration::SIZE_CALIBRATION_DIAMETER) {
4177 case Calibration::PRESSURE_CALIBRATION_PHYSICAL:
4178 case Calibration::PRESSURE_CALIBRATION_AMPLITUDE:
4198 case Calibration::ORIENTATION_CALIBRATION_INTERPOLATED:
4201 case Calibration::ORIENTATION_CALIBRATION_VECTOR: {
4225 case Calibration::DISTANCE_CALIBRATION_SCALED:
4235 case Calibration::COVERAGE_CALIBRATION_BOX:
4308 if (mCalibration.coverageCalibration == Calibration::COVERAGE_CALIBRATION_BOX) {