/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Point.java | 25 public class Point { class 30 public Point() { in Point() method in Point 33 public Point(float x, float y) { in Point() method in Point 48 public Point plus(float x, float y) { in plus() 49 return new Point(this.x + x, this.y + y); in plus() 52 public Point plus(Point point) { in plus() 56 public Point minus(float x, float y) { in minus() 57 return new Point(this.x - x, this.y - y); in minus() 60 public Point minus(Point point) { in minus() 64 public Point times(float s) { in times() [all …]
|
D | Rectangle.java | 20 import android.filterfw.geometry.Point; 32 super(new Point(x, y), in Rectangle() 33 new Point(x + width, y), in Rectangle() 34 new Point(x, y + height), in Rectangle() 35 new Point(x + width, y + height)); in Rectangle() 38 public Rectangle(Point origin, Point size) { in Rectangle() 45 public static Rectangle fromRotatedRect(Point center, Point size, float rotation) { in fromRotatedRect() 46 Point p0 = new Point(center.x - size.x/2f, center.y - size.y/2f); in fromRotatedRect() 47 Point p1 = new Point(center.x + size.x/2f, center.y - size.y/2f); in fromRotatedRect() 48 Point p2 = new Point(center.x - size.x/2f, center.y + size.y/2f); in fromRotatedRect() [all …]
|
D | Quad.java | 20 import android.filterfw.geometry.Point; 32 public Point p0; 33 public Point p1; 34 public Point p2; 35 public Point p3; 40 public Quad(Point p0, Point p1, Point p2, Point p3) { in Quad() 54 public Quad translated(Point t) { in translated()
|
/frameworks/native/include/ui/ |
D | Point.h | 25 class Point : public LightFlattenablePod<Point> 35 inline Point() { in Point() function 37 inline Point(int _x, int _y) : x(_x), y(_y) { in Point() function 40 inline bool operator == (const Point& rhs) const { 43 inline bool operator != (const Point& rhs) const { 53 bool operator < (const Point& rhs) const { 57 inline Point& operator - () { 63 inline Point& operator += (const Point& rhs) { 68 inline Point& operator -= (const Point& rhs) { 74 const Point operator + (const Point& rhs) const { [all …]
|
D | Rect.h | 65 inline Rect(const Point& lt, const Point& rb) { in Rect() 102 void setLeftTop(const Point& lt) { in setLeftTop() 107 void setRightBottom(const Point& rb) { in setRightBottom() 113 Point leftTop() const { in leftTop() 114 return Point(left, top); in leftTop() 116 Point rightBottom() const { in rightBottom() 117 return Point(right, bottom); in rightBottom() 119 Point rightTop() const { in rightTop() 120 return Point(right, top); in rightTop() 122 Point leftBottom() const { in leftBottom() [all …]
|
/frameworks/base/media/mca/filterpacks/native/base/ |
D | geometry.h | 28 class Point { 30 Point() : x_(0.0f), y_(0.0f) {} in Point() function 31 Point(float x, float y) : x_(x), y_(y) {} in Point() function 38 static float Distance(const Point& p0, const Point& p1); 41 Point operator+(const Point& other) const; 42 Point operator-(const Point& other) const; 43 Point operator*(float factor) const; 56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) in Quad() 64 const std::vector<Point>& points() const { return points_; } in points() 65 const Point& point(int ix) const; [all …]
|
D | geometry.cpp | 27 float Point::Length() const { in Length() 31 bool Point::ScaleTo(float new_length) { in ScaleTo() 41 float Point::Distance(const Point& p0, const Point& p1) { in Distance() 42 Point diff = p1 - p0; in Distance() 46 Point Point::operator+(const Point& other) const { in operator +() 47 Point out; in operator +() 53 Point Point::operator-(const Point& other) const { in operator -() 54 Point out; in operator -() 60 Point Point::operator*(float factor) const { in operator *() 61 Point out; in operator *() [all …]
|
/frameworks/base/media/mca/filterfw/native/core/ |
D | geometry.h | 28 class Point { 30 Point() : x_(0.0f), y_(0.0f) {} in Point() function 31 Point(float x, float y) : x_(x), y_(y) {} in Point() function 38 static float Distance(const Point& p0, const Point& p1); 41 Point operator+(const Point& other) const; 42 Point operator-(const Point& other) const; 43 Point operator*(float factor) const; 56 Quad(const Point& p0, const Point& p1, const Point& p2, const Point& p3) in Quad() 64 const std::vector<Point>& points() const { return points_; } in points() 65 const Point& point(int ix) const; [all …]
|
D | geometry.cpp | 26 float Point::Length() const { in Length() 30 bool Point::ScaleTo(float new_length) { in ScaleTo() 40 float Point::Distance(const Point& p0, const Point& p1) { in Distance() 41 Point diff = p1 - p0; in Distance() 45 Point Point::operator+(const Point& other) const { in operator +() 46 Point out; in operator +() 52 Point Point::operator-(const Point& other) const { in operator -() 53 Point out; in operator -() 59 Point Point::operator*(float factor) const { in operator *() 60 Point out; in operator *() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
D | Point.java | 28 public class Point implements Parcelable { class 32 public Point() {} in Point() method in Point 34 public Point(int x, int y) { in Point() method in Point 39 public Point(Point src) { in Point() method in Point 80 Point point = (Point) o; in equals() 124 public static final Parcelable.Creator<Point> CREATOR = new Parcelable.Creator<Point>() { 128 public Point createFromParcel(Parcel in) { 129 Point r = new Point(); 137 public Point[] newArray(int size) { 138 return new Point[size];
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/ |
D | Point.java | 19 public class Point { class 24 public Point(float x, float y) { in Point() method in Point 30 public Point(float x, float y, long timeOffsetNano) { in Point() method in Point 36 public boolean equals(Point p) { in equals() 40 public float dist(Point a) { in dist() 48 public float crossProduct(Point a, Point b) { in crossProduct() 56 public float dotProduct(Point a, Point b) { in dotProduct() 66 public float getAngle(Point a, Point b) { in getAngle()
|
D | Stroke.java | 28 private ArrayList<Point> mPoints = new ArrayList<>(); 41 Point point = new Point(x / mDpi, y / mDpi, eventTimeNano - mStartTimeNano); in addPoint() 68 public ArrayList<Point> getPoints() { in getPoints()
|
D | SpeedAnglesClassifier.java | 83 private List<Point> mLastThreePoints = new ArrayList<>(); 84 private Point mPreviousPoint; 103 public void addPoint(Point point) { in addPoint() 109 Point speedPoint = new Point((float) point.timeOffsetNano / DURATION_SCALE, in addPoint()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | Face.java | 20 import android.graphics.Point; 56 private final Point mLeftEye; 57 private final Point mRightEye; 58 private final Point mMouth; 89 Point leftEyePosition, Point rightEyePosition, Point mouthPosition) { in Face() 207 public Point getLeftEyePosition() { in getLeftEyePosition() 223 public Point getRightEyePosition() { in getRightEyePosition() 240 public Point getMouthPosition() { in getMouthPosition()
|
/frameworks/ex/camera2/portability/src/com/android/ex/camera2/portability/ |
D | Size.java | 19 import android.graphics.Point; 93 private final Point val; 99 val = new Point(width, height); in Size() 107 val = new Point(0, 0); in Size() 109 val = new Point(other.width(), other.height()); in Size() 120 val = new Point(0, 0); in Size() 122 val = new Point(other.width, other.height); in Size() 133 val = new Point(0, 0); in Size() 135 val = new Point(other.getWidth(), other.getHeight()); in Size() 144 public Size(Point p) { in Size() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/imageproc/ |
D | FixedRotationFilter.java | 27 import android.filterfw.geometry.Point; 74 Point p1 = new Point(0.0f, 0.0f); in process() 75 Point p2 = new Point(1.0f, 0.0f); in process() 76 Point p3 = new Point(0.0f, 1.0f); in process() 77 Point p4 = new Point(1.0f, 1.0f); in process()
|
D | RotateFilter.java | 29 import android.filterfw.geometry.Point; 140 Point x0 = new Point(0.5f * (-cosTheta + sinTheta + 1f), in updateParameters() 142 Point x1 = new Point(0.5f * (cosTheta + sinTheta + 1f), in updateParameters() 144 Point x2 = new Point(0.5f * (-cosTheta - sinTheta + 1f), in updateParameters() 146 Point x3 = new Point(0.5f * (cosTheta - sinTheta + 1f), in updateParameters()
|
D | StraightenFilter.java | 29 import android.filterfw.geometry.Point; 123 Point p0 = new Point(-cosTheta * mWidth + sinTheta * mHeight, in updateParameters() 126 Point p1 = new Point(cosTheta * mWidth + sinTheta * mHeight, in updateParameters() 129 Point p2 = new Point(-cosTheta * mWidth - sinTheta * mHeight, in updateParameters() 132 Point p3 = new Point(cosTheta * mWidth - sinTheta * mHeight, in updateParameters()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiObject.java | 19 import android.graphics.Point; 942 Point startPoint1 = new Point(rect.centerX() - FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchOut() 943 Point startPoint2 = new Point(rect.centerX() + FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchOut() 946 Point endPoint1 = new Point(rect.centerX() - (int)((rect.width()/2) * percentage), in pinchOut() 948 Point endPoint2 = new Point(rect.centerX() + (int)((rect.width()/2) * percentage), in pinchOut() 979 Point startPoint1 = new Point(rect.centerX() - (int)((rect.width()/2) * percentage), in pinchIn() 981 Point startPoint2 = new Point(rect.centerX() + (int)((rect.width()/2) * percentage), in pinchIn() 984 Point endPoint1 = new Point(rect.centerX() - FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchIn() 985 Point endPoint2 = new Point(rect.centerX() + FINGER_TOUCH_HALF_WIDTH, rect.centerY()); in pinchIn() 1003 public boolean performTwoPointerGesture(Point startPoint1, Point startPoint2, Point endPoint1, in performTwoPointerGesture() [all …]
|
D | UiDevice.java | 21 import android.graphics.Point; 131 public Point getDisplaySizeDp() { in getDisplaySizeDp() 134 Point p = new Point(); in getDisplaySizeDp() 382 Point p = new Point(); in getDisplayWidth() 396 Point p = new Point(); in getDisplayHeight() 466 public boolean swipe(Point[] segments, int segmentSteps) { in swipe() 769 Point size = new Point(); in dumpWindowHierarchy()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/events/ui/dragndrop/ |
D | DragStartEvent.java | 19 import android.graphics.Point; 32 public final Point tlOffset; 35 public DragStartEvent(Task task, TaskView taskView, Point tlOffset) { in DragStartEvent() 39 public DragStartEvent(Task task, TaskView taskView, Point tlOffset, in DragStartEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | DessertCaseView.java | 31 import android.graphics.Point; 134 private final Set<Point> mFreeList = new HashSet<Point>(); 266 mFreeList.add(new Point(i,j)); in onSizeChanged() 284 Point pt = mFreeList.iterator().next(); in fillFreeList() 333 place(v, new Point(irand(0, mColumns), irand(0, mRows)), animate); in place() 352 public synchronized void place(View v, Point pt, boolean animate) { 357 for (final Point oc : getOccupied(v)) { 382 final Point[] occupied = getOccupied(v); 383 for (final Point oc : occupied) { 391 for (final Point sq : getOccupied(squatter)) { [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | PipSnapAlgorithm.java | 22 import android.graphics.Point; 138 final Point[] snapTargets = new Point[mSnapGravities.size()]; in findClosestSnapBounds() 142 snapTargets[i] = new Point(tmpBounds.left, tmpBounds.top); in findClosestSnapBounds() 144 Point snapTarget = findClosestPoint(stackBounds.left, stackBounds.top, snapTargets); in findClosestSnapBounds() 159 final Point[] snapTargets = new Point[mSnapGravities.size()]; in findClosestSnapBounds() 163 snapTargets[i] = new Point(tmpBounds.left, tmpBounds.top); in findClosestSnapBounds() 165 Point snapTarget = findClosestPoint(stackBounds.left, stackBounds.top, snapTargets); in findClosestSnapBounds() 174 public void applyMinimizedOffset(Rect stackBounds, Rect movementBounds, Point displaySize, in applyMinimizedOffset() 299 private Point findClosestPoint(int x, int y, Point[] points) { in findClosestPoint() 300 Point closestPoint = null; in findClosestPoint() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/pip/phone/ |
D | PipMotionHelper.java | 35 import android.graphics.Point; 203 Point displaySize = new Point(); in getClosestMinimizedBounds() 214 Point displaySize = new Point(); in shouldMinimizePip() 232 Point displaySize = new Point(); in shouldDismissPip() 374 Point p = getDismissEndPoint(pipBounds, velocityX, velocityY, isFling); in animateDismiss() 462 private Point getDismissEndPoint(Rect pipBounds, float velX, float velY, boolean isFling) { in getDismissEndPoint() 463 Point displaySize = new Point(); in getDismissEndPoint() 474 return new Point((int) x, (int) bottomBound); in getDismissEndPoint() 478 return new Point(pipBounds.left, (int) bottomBound); in getDismissEndPoint() 488 Point endpoint = getDismissEndPoint(pipBounds, velX, velY, isFling); in isGestureToDismissArea() [all …]
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | SurfaceTextureTarget.java | 33 import android.filterfw.geometry.Point; 75 private Quad mSourceQuad = new Quad(new Point(0.0f, 1.0f), 76 new Point(1.0f, 1.0f), 77 new Point(0.0f, 0.0f), 78 new Point(1.0f, 0.0f)); 81 private Quad mTargetQuad = new Quad(new Point(0.0f, 0.0f), 82 new Point(1.0f, 0.0f), 83 new Point(0.0f, 1.0f), 84 new Point(1.0f, 1.0f));
|