Lines Matching defs:distance

91 inline static float distance(float x1, float y1, float x2, float y2) {
1407 distance.clear();
2608 info->addMotionRange(mOrientedRanges.distance);
2673 "orientation=%d, tiltX=%d, tiltY=%d, distance=%d, "
2678 pointer.orientation, pointer.tiltX, pointer.tiltY, pointer.distance,
2689 "orientation=%0.3f, tilt=%0.3f, distance=%0.3f, "
2888 dumpRawAbsoluteAxisInfo(dump, mRawPointerAxes.distance, "Distance");
3209 mOrientedRanges.distance.axis = AMOTION_EVENT_AXIS_DISTANCE;
3210 mOrientedRanges.distance.source = mSource;
3211 mOrientedRanges.distance.min =
3212 mRawPointerAxes.distance.minValue * mDistanceScale;
3213 mOrientedRanges.distance.max =
3214 mRawPointerAxes.distance.maxValue * mDistanceScale;
3215 mOrientedRanges.distance.flat = 0;
3216 mOrientedRanges.distance.fuzz =
3217 mRawPointerAxes.distance.fuzz * mDistanceScale;
3218 mOrientedRanges.distance.resolution = 0;
3270 // X and Y of the same number of raw units cover the same physical distance.
3453 if (in.tryGetProperty(String8("touch.distance.calibration"), distanceCalibrationString)) {
3459 ALOGW("Invalid value for touch.distance.calibration: '%s'",
3464 out.haveDistanceScale = in.tryGetProperty(String8("touch.distance.scale"),
3510 if (mRawPointerAxes.distance.valid) {
3601 dump.append(INDENT4 "touch.distance.calibration: none\n");
3604 dump.append(INDENT4 "touch.distance.calibration: scaled\n");
3611 dump.appendFormat(INDENT4 "touch.distance.scale: %0.3f\n",
4223 float distance;
4226 distance = in.distance * mDistanceScale;
4229 distance = 0;
4307 out.setAxisValue(AMOTION_EVENT_AXIS_DISTANCE, distance);
5086 // the minimum distance threshold.
5103 float mutualDistance = distance(p1.x, p1.y, p2.x, p2.y);
5108 ALOGD("Gestures: PRESS transitioned to FREEFORM, distance %0.3f > %0.3f",
5724 // match (by distance) for each current pointer.
5742 uint64_t distance = uint64_t(deltaX * deltaX + deltaY * deltaY);
5747 heap[heapSize].distance = distance;
5763 && heap[childIndex + 1].distance < heap[childIndex].distance) {
5767 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5777 ALOGD("assignPointerIds - initial distance min-heap: size=%d", heapSize);
5779 ALOGD(" heap[%d]: cur=%d, last=%d, distance=%lld",
5781 heap[i].distance);
5785 // Pull matches out by increasing order of distance.
5797 // the heap (the one with smallest distance).
5810 && heap[childIndex + 1].distance < heap[childIndex].distance) {
5814 if (heap[parentIndex].distance <= heap[childIndex].distance) {
5823 ALOGD("assignPointerIds - reduced distance min-heap: size=%d", heapSize);
5825 ALOGD(" heap[%d]: cur=%d, last=%d, distance=%lld",
5827 heap[i].distance);
5851 ALOGD("assignPointerIds - matched: cur=%d, last=%d, id=%d, distance=%lld",
5852 lastPointerIndex, currentPointerIndex, id, heap[0].distance);
5966 outPointer.distance = mSingleTouchMotionAccumulator.getAbsoluteDistance();
5984 getAbsoluteAxisInfo(ABS_DISTANCE, &mRawPointerAxes.distance);
6047 outPointer.distance = inSlot->getDistance();
6113 getAbsoluteAxisInfo(ABS_MT_DISTANCE, &mRawPointerAxes.distance);