/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/touch/ |
H A D | TouchPointView.java | 77 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 D | CropView.java | 239 // 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 D | ChartAxis.java | 23 * 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 D | ChartDataUsageView.java | 433 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 D | InvertedChartAxis.java | 50 public long convertToValue(float point) { argument 51 return mWrapped.convertToValue(mSize - point);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | BaseRecyclerView.java | 125 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 D | GridSizeMigrationTask.java | 444 * @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 D | AbstractLauncherUiTest.java | 200 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 D | CropMath.java | 53 * 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 D | FilterGradRepresentation.java | 102 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 D | ControlPoint.java | 28 public ControlPoint(ControlPoint point) { argument 29 x = point.x; 30 y = point.y;
|
H A D | EclipseControl.java | 112 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 D | GeometryMathUtils.java | 128 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 D | GradControl.java | 129 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 D | ImageRedEye.java | 109 protected void drawPoint(FilterPoint point, Canvas canvas, Matrix originalToScreen, argument 111 RedEyeCandidate candidate = (RedEyeCandidate) point;
|
H A D | ImageShow.java | 403 Point point = mActivity.hintTouchPoint(this); 407 float x = point.x - maskW * maskScale; 408 float y = point.y - maskH * maskScale;
|
H A D | Spline.java | 108 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 D | MatrixFit.java | 119 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 D | DragLayout.java | 131 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 D | GridModel.java | 132 * 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 D | DirectoryListBot.java | 306 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 D | TouchPointManager.java | 32 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 D | AccelerationClassifier.java | 53 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 D | AnglesClassifier.java | 28 * 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 D | SpeedAnglesClassifier.java | 26 * 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
|