Searched refs:point (Results 1 - 25 of 32) sorted by last modified time

12

/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/
H A DTouchPointView.java77 finger.point = new Point((int)event.getX(pointerIndex), (int)event.getY(pointerIndex));
110 Point point = finger.point;
113 canvas.drawCircle(point.x, point.y, radius, mPaint);
118 public Point point; field in class:TouchPointView.Finger
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
H A DCropView.java239 // Determine focal point
283 float[] point = mTempPoint;
284 point[0] = (mLastX - x) / mRenderer.scale;
285 point[1] = (mLastY - y) / mRenderer.scale;
286 mInverseRotateMatrix.mapPoints(point);
287 mCenterX += point[0];
288 mCenterY += point[1];
/packages/apps/Settings/src/com/android/settings/widget/
H A DChartAxis.java23 * Axis along a {@link ChartView} that knows how to convert between raw point
33 /** Convert raw value into screen point. */
35 /** Convert screen point into raw value. */
36 public long convertToValue(float point); argument
H A DChartDataUsageView.java433 public long convertToValue(float point) { argument
434 return (long) (mMin + ((point * (mMax - mMin)) / mSize));
523 public long convertToValue(float point) { argument
525 final double normalized = point / mSize;
530 return (long) (mMin + ((point * (mMax - mMin)) / mSize));
566 final float point = convertToPoint(value);
567 if (point < mSize * 0.1) {
569 } else if (point > mSize * 0.85) {
H A DInvertedChartAxis.java50 public long convertToValue(float point) { argument
51 return mWrapped.convertToValue(mSize - point);
/packages/apps/Launcher3/src/com/android/launcher3/
H A DBaseRecyclerView.java125 int[] point = new int[2];
126 point[0] = (int) ev.getX();
127 point[1] = (int) ev.getY();
128 Utilities.mapCoordInSelfToDescendant(mScrollbar, eventSource, point);
130 if (mScrollbar.shouldBlockIntercept(point[0], point[1])) {
/packages/apps/Launcher3/src/com/android/launcher3/model/
H A DGridSizeMigrationTask.java444 * @param weightLoss total weight loss upto this point
445 * @param moveCost total move cost upto this point
446 * @param itemsPlaced all the items already placed upto this point
873 private static Point parsePoint(String point) { argument
874 String[] split = point.split(",");
/packages/apps/Launcher3/tests/src/com/android/launcher3/ui/
H A DAbstractLauncherUiTest.java200 protected void sendPointer(int action, Point point) { argument
202 SystemClock.uptimeMillis(), action, point.x, point.y, 0);
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
H A DCropMath.java53 * Returns true iff point (x, y) is within or on the rectangle's bounds.
58 * @param x the x value of the point
59 * @param y the y value of the point
89 * If edge point [x, y] in array [x0, y0, x1, y1, ...] is outside of the
106 * Takes a point and the corners of a rectangle and returns the two corners
107 * representing the side of the rectangle closest to the point.
109 * @param point the point which is being checked
113 public static float[] closestSide(float[] point, float[] corners) { argument
123 GeometryMathUtils.shortestVectorFromPointToLine(point, lin
140 pointInRotatedRect(float[] point, RectF bound, float rot) argument
159 pointInRotatedRect(float[] point, float[] rotatedRect, float[] center) argument
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
H A DFilterGradRepresentation.java102 for (Band point : mBands) {
103 if (!point.mask) {
180 for (Band point : mBands) {
181 if (!point.mask) {
205 for (Band point : mBands) {
206 if (point.mask) {
211 for (Band point : mBands) {
212 if (point.mask) {
215 int index = mBands.indexOf(point);
218 double dist = Math.hypot(point
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
H A DControlPoint.java28 public ControlPoint(ControlPoint point) { argument
29 x = point.x;
30 y = point.y;
H A DEclipseControl.java112 float[] point = new float[]{
114 mScrToImg.mapPoints(point);
115 mDownX = point[0];
116 mDownY = point[1];
125 float[] point = new float[]{
127 mScrToImg.mapPoints(point);
128 x = point[0];
129 y = point[1];
132 point[0] = 0;
133 point[
[all...]
H A DGeometryMathUtils.java128 public static float[] shortestVectorFromPointToLine(float[] point, float[] line) { argument
137 float u = ((point[0] - x1) * xdelt + (point[1] - y1) * ydelt)
143 ret[0] - point[0], ret[1] - point[1]
H A DGradControl.java129 float[] point = new float[]{
131 mScrToImg.mapPoints(point);
132 mDownX = point[0];
133 mDownY = point[1];
141 float[] point = new float[]{
143 mScrToImg.mapPoints(point);
144 x = point[0];
145 y = point[1];
148 point[0] = 0;
149 point[
[all...]
H A DImageRedEye.java109 protected void drawPoint(FilterPoint point, Canvas canvas, Matrix originalToScreen, argument
111 RedEyeCandidate candidate = (RedEyeCandidate) point;
H A DImageShow.java403 Point point = mActivity.hintTouchPoint(this);
407 float x = point.x - maskW * maskScale;
408 float y = point.y - maskH * maskScale;
H A DSpline.java108 private void didMovePoint(ControlPoint point) { argument
109 mCurrentControlPoint = point;
116 ControlPoint point = mPoints.elementAt(pick);
117 point.x = x;
118 point.y = y;
119 didMovePoint(point);
419 ControlPoint point = mPoints.elementAt(i);
420 if (point.x > x) {
425 ControlPoint point = mPoints.elementAt(i);
426 if (point
[all...]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
H A DMatrixFit.java119 public double[] apply(double[] point) { argument
120 if (mDimension != point.length) {
126 res[j] += point[i] * mMatrix[i][j+ mDimension +1];
/packages/apps/ExactCalculator/src/com/android/calculator2/
H A DDragLayout.java131 final PointF point = new PointF(event.getX(actionIndex), event.getY(actionIndex));
132 mLastMotionPoints.put(pointerId, point);
138 final PointF point = mLastMotionPoints.get(pointerId);
139 if (point != null) {
140 point.set(event.getX(i), event.getY(i));
307 final PointF point = mLastMotionPoints.get(pointerId);
308 if (point == null) {
312 final int x = (int) point.x;
313 final int y = (int) point.y;
/packages/apps/DocumentsUI/src/com/android/documentsui/selection/
H A DGridModel.java132 * Start a band select operation at the given point.
135 * would have a relative origin of (0, 0), even though its absolute point has a higher
166 * absolute point has a higher y-value.
455 * view as it relates to band selection rather than an explicit point. For example, two
457 * selection originating within the item would select the same items no matter which point
585 * The location of a point relative to the Limits of nearby items; consists of both an x- and
592 RelativePoint(Point point) { argument
593 this.xLocation = new RelativeCoordinate(mColumnBounds, point.x);
594 this.yLocation = new RelativeCoordinate(mRowBounds, point.y);
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DDirectoryListBot.java306 public void rightClickDocument(Point point) throws UiObjectNotFoundException { argument
313 point.x,
314 point.y);
323 point.x,
324 point.y);
/packages/apps/Dialer/java/com/android/dialer/util/
H A DTouchPointManager.java32 private Point point = new Point(); field in class:TouchPointManager
42 return point;
46 point.set(x, y);
50 * When a point is initialized, its value is (0,0). Since it is highly unlikely a user will touch
51 * at that exact point, if the point in TouchPointManager is (0,0), it is safe to assume that the
54 * @return True if there is a valid point saved. Define a valid point as any point that is not
58 return point
[all...]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/classifier/
H A DAccelerationClassifier.java53 Point point = stroke.getPoints().get(stroke.getPoints().size() - 1);
55 strokeMap.put(stroke, new Data(point));
57 strokeMap.get(stroke).addPoint(point);
76 public Data(Point point) { argument
77 previousPoint = point;
80 public void addPoint(Point point) { argument
81 float distance = previousPoint.dist(point);
82 float duration = (float) (point.timeOffsetNano - previousPoint.timeOffsetNano + 1);
88 previousPoint = point;
96 previousPoint = point;
[all...]
H A DAnglesClassifier.java28 * ignores the repetitions. If a new point is added, the classifier calculates the angle between the
118 public void addPoint(Point point) { argument
119 // Checking if the added point is different than the previously added point
122 || (!lastThreePoints.get(lastThreePoints.size() - 1).equals(point)
123 && (lastThreePoints.get(lastThreePoints.size() - 1).dist(point)
126 length += lastThreePoints.get(lastThreePoints.size() - 1).dist(point);
128 lastThreePoints.add(point);
H A DSpeedAnglesClassifier.java26 * A classifier which for each point from a stroke, it creates a point on plane with coordinates
29 * (without splitting it into two parts). The classifier ignores the last point of a stroke because
102 public void addPoint(Point point) { argument
104 dist += previousPoint.dist(point);
107 previousPoint = point;
109 new Point((float) point.timeOffsetNano / DURATION_SCALE, dist / LENGTH_SCALE);
111 // Checking if the added point is different than the previously added point

Completed in 325 milliseconds

12