Home | History | Annotate | Download | only in input

Lines Matching refs:Calibration

2481         // Prepare input device calibration.
2734 if (mCalibration.sizeCalibration != Calibration::SIZE_CALIBRATION_NONE) {
2781 if (mCalibration.pressureCalibration == Calibration::PRESSURE_CALIBRATION_PHYSICAL
2783 == Calibration::PRESSURE_CALIBRATION_AMPLITUDE) {
2836 Calibration::ORIENTATION_CALIBRATION_NONE) {
2838 == Calibration::ORIENTATION_CALIBRATION_INTERPOLATED) {
2859 if (mCalibration.distanceCalibration != Calibration::DISTANCE_CALIBRATION_NONE) {
2861 == Calibration::DISTANCE_CALIBRATION_SCALED) {
3045 Calibration& out = mCalibration;
3048 out.sizeCalibration = Calibration::SIZE_CALIBRATION_DEFAULT;
3050 if (in.tryGetProperty(String8("touch.size.calibration"), sizeCalibrationString)) {
3052 out.sizeCalibration = Calibration::SIZE_CALIBRATION_NONE;
3054 out.sizeCalibration = Calibration::SIZE_CALIBRATION_GEOMETRIC;
3056 out.sizeCalibration = Calibration::SIZE_CALIBRATION_DIAMETER;
3058 out.sizeCalibration = Calibration::SIZE_CALIBRATION_AREA;
3060 LOGW("Invalid value for touch.size.calibration: '%s'",
3073 out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_DEFAULT;
3075 if (in.tryGetProperty(String8("touch.pressure.calibration"), pressureCalibrationString)) {
3077 out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_NONE;
3079 out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_PHYSICAL;
3081 out.pressureCalibration = Calibration::PRESSURE_CALIBRATION_AMPLITUDE;
3083 LOGW("Invalid value for touch.pressure.calibration: '%s'",
3092 out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_DEFAULT;
3094 if (in.tryGetProperty(String8("touch.orientation.calibration"), orientationCalibrationString)) {
3096 out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_NONE;
3098 out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_INTERPOLATED;
3100 out.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_VECTOR;
3102 LOGW("Invalid value for touch.orientation.calibration: '%s'",
3108 out.distanceCalibration = Calibration::DISTANCE_CALIBRATION_DEFAULT;
3110 if (in.tryGetProperty(String8("touch.distance.calibration"), distanceCalibrationString)) {
3112 out.distanceCalibration = Calibration::DISTANCE_CALIBRATION_NONE;
3114 out.distanceCalibration = Calibration::DISTANCE_CALIBRATION_SCALED;
3116 LOGW("Invalid value for touch.distance.calibration: '%s'",
3128 if (mCalibration.sizeCalibration == Calibration::SIZE_CALIBRATION_DEFAULT) {
3129 mCalibration.sizeCalibration = Calibration::SIZE_CALIBRATION_GEOMETRIC;
3132 mCalibration.sizeCalibration = Calibration::SIZE_CALIBRATION_NONE;
3137 if (mCalibration.pressureCalibration == Calibration::PRESSURE_CALIBRATION_DEFAULT) {
3138 mCalibration.pressureCalibration = Calibration::PRESSURE_CALIBRATION_PHYSICAL;
3141 mCalibration.pressureCalibration = Calibration::PRESSURE_CALIBRATION_NONE;
3146 if (mCalibration.orientationCalibration == Calibration::ORIENTATION_CALIBRATION_DEFAULT) {
3147 mCalibration.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_INTERPOLATED;
3150 mCalibration.orientationCalibration = Calibration::ORIENTATION_CALIBRATION_NONE;
3155 if (mCalibration.distanceCalibration == Calibration::DISTANCE_CALIBRATION_DEFAULT) {
3156 mCalibration.distanceCalibration = Calibration::DISTANCE_CALIBRATION_SCALED;
3159 mCalibration.distanceCalibration = Calibration::DISTANCE_CALIBRATION_NONE;
3164 dump.append(INDENT3 "Calibration:\n");
3168 case Calibration::SIZE_CALIBRATION_NONE:
3169 dump.append(INDENT4 "touch.size.calibration: none\n");
3171 case Calibration::SIZE_CALIBRATION_GEOMETRIC:
3172 dump.append(INDENT4 "touch.size.calibration: geometric\n");
3174 case Calibration::SIZE_CALIBRATION_DIAMETER:
3175 dump.append(INDENT4 "touch.size.calibration: diameter\n");
3177 case Calibration::SIZE_CALIBRATION_AREA:
3178 dump.append(INDENT4 "touch.size.calibration: area\n");
3201 case Calibration::PRESSURE_CALIBRATION_NONE:
3202 dump.append(INDENT4 "touch.pressure.calibration: none\n");
3204 case Calibration::PRESSURE_CALIBRATION_PHYSICAL:
3205 dump.append(INDENT4 "touch.pressure.calibration: physical\n");
3207 case Calibration::PRESSURE_CALIBRATION_AMPLITUDE:
3208 dump.append(INDENT4 "touch.pressure.calibration: amplitude\n");
3221 case Calibration::ORIENTATION_CALIBRATION_NONE:
3222 dump.append(INDENT4 "touch.orientation.calibration: none\n");
3224 case Calibration::ORIENTATION_CALIBRATION_INTERPOLATED:
3225 dump.append(INDENT4 "touch.orientation.calibration: interpolated\n");
3227 case Calibration::ORIENTATION_CALIBRATION_VECTOR:
3228 dump.append(INDENT4 "touch.orientation.calibration: vector\n");
3236 case Calibration::DISTANCE_CALIBRATION_NONE:
3237 dump.append(INDENT4 "touch.distance.calibration: none\n");
3239 case Calibration::DISTANCE_CALIBRATION_SCALED:
3240 dump.append(INDENT4 "touch.distance.calibration: scaled\n");
3725 case Calibration::SIZE_CALIBRATION_GEOMETRIC:
3726 case Calibration::SIZE_CALIBRATION_DIAMETER:
3727 case Calibration::SIZE_CALIBRATION_AREA:
3749 "Size calibration should have been resolved to NONE.");
3768 if (mCalibration.sizeCalibration == Calibration::SIZE_CALIBRATION_GEOMETRIC) {
3773 } else if (mCalibration.sizeCalibration == Calibration::SIZE_CALIBRATION_AREA) {
3778 } else if (mCalibration.sizeCalibration == Calibration::SIZE_CALIBRATION_DIAMETER) {
3801 case Calibration::PRESSURE_CALIBRATION_PHYSICAL:
3802 case Calibration::PRESSURE_CALIBRATION_AMPLITUDE:
3822 case Calibration::ORIENTATION_CALIBRATION_INTERPOLATED:
3825 case Calibration::ORIENTATION_CALIBRATION_VECTOR: {
3849 case Calibration::DISTANCE_CALIBRATION_SCALED: