/frameworks/base/media/mca/filterfw/java/android/filterfw/geometry/ |
D | Point.java | 25 public class Point { class 33 public Point() { in Point() method in Point 37 public Point(float x, float y) { in Point() method in Point 52 public Point plus(float x, float y) { in plus() 53 return new Point(this.x + x, this.y + y); in plus() 56 public Point plus(Point point) { in plus() 60 public Point minus(float x, float y) { in minus() 61 return new Point(this.x - x, this.y - y); in minus() 64 public Point minus(Point point) { in minus() 68 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 | 32 public Point p0; 34 public Point p1; 36 public Point p2; 38 public Point p3; 45 public Quad(Point p0, Point p1, Point p2, Point p3) { in Quad() 59 public Quad translated(Point t) { in translated()
|
/frameworks/native/libs/ui/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 | 69 inline Rect(const Point& lt, const Point& rb) { in Rect() 127 void setLeftTop(const Point& lt) { in setLeftTop() 132 void setRightBottom(const Point& rb) { in setRightBottom() 138 Point leftTop() const { in leftTop() 139 return Point(left, top); in leftTop() 141 Point rightBottom() const { in rightBottom() 142 return Point(right, bottom); in rightBottom() 144 Point rightTop() const { in rightTop() 145 return Point(right, top); in rightTop() 147 Point leftBottom() const { in leftBottom() [all …]
|
/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 | 69 inline Rect(const Point& lt, const Point& rb) { in Rect() 127 void setLeftTop(const Point& lt) { in setLeftTop() 132 void setRightBottom(const Point& rb) { in setRightBottom() 138 Point leftTop() const { in leftTop() 139 return Point(left, top); in leftTop() 141 Point rightBottom() const { in rightBottom() 142 return Point(right, bottom); in rightBottom() 144 Point rightTop() const { in rightTop() 145 return Point(right, top); in rightTop() 147 Point leftBottom() const { in leftBottom() [all …]
|
/frameworks/native/libs/ui/include_vndk/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 | 69 inline Rect(const Point& lt, const Point& rb) { in Rect() 127 void setLeftTop(const Point& lt) { in setLeftTop() 132 void setRightBottom(const Point& rb) { in setRightBottom() 138 Point leftTop() const { in leftTop() 139 return Point(left, top); in leftTop() 141 Point rightBottom() const { in rightBottom() 142 return Point(right, bottom); in rightBottom() 144 Point rightTop() const { in rightTop() 145 return Point(right, top); in rightTop() 147 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 | 27 public class Point implements Parcelable { class 31 public Point() {} in Point() method in Point 33 public Point(int x, int y) { in Point() method in Point 38 public Point(@NonNull Point src) { in Point() method in Point 79 Point point = (Point) o; in equals() 114 public static Point unflattenFromString(String s) throws NumberFormatException { in unflattenFromString() 116 return new Point(Integer.parseInt(s.substring(0, sep_ix)), in unflattenFromString() 139 … final @android.annotation.NonNull Parcelable.Creator<Point> CREATOR = new Parcelable.Creator<Poin… 144 public Point createFromParcel(Parcel in) { 145 Point r = new Point(); [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | Face.java | 20 import android.graphics.Point; 55 private final Point mLeftEye; 56 private final Point mRightEye; 57 private final Point mMouth; 88 Point leftEyePosition, Point rightEyePosition, Point mouthPosition) { in Face() 206 public Point getLeftEyePosition() { in getLeftEyePosition() 222 public Point getRightEyePosition() { in getRightEyePosition() 239 public Point getMouthPosition() { in getMouthPosition()
|
/frameworks/base/core/tests/coretests/src/android/view/ |
D | ViewGroupScrollCaptureTest.java | 30 import android.graphics.Point; 122 Point windowOffset = new Point(); in testDispatchScrollCaptureSearch_noCallback_hintAuto() 157 Point windowOffset = new Point(); in testDispatchScrollCaptureSearch_noCallback_hintExclude() 190 Point windowOffset = new Point(); in testDispatchScrollCaptureSearch_withCallback_hintAuto() 231 Point windowOffset = new Point(); in testDispatchScrollCaptureSearch_withCallback_hintExclude() 255 Point windowOffset = new Point(0, 0); in testDispatchScrollCaptureSearch_toChildren() 322 new Rect(25, 25, 150, 75), new Point(0, 25)); in testDispatchScrollCaptureSearch_toChildren() 330 new Rect(25, 0, 175, 50), new Point(0, 100)); in testDispatchScrollCaptureSearch_toChildren() 341 new Rect(0, 0, 25, 50), new Point(150, 100)); in testDispatchScrollCaptureSearch_toChildren() 368 Point windowOffset = new Point(0, 0); in testOnScrollCaptureSearch_withPadding() [all …]
|
/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/minikin/include/minikin/ |
D | LayoutCore.h | 36 struct Point { struct 37 Point() : x(0), y(0) {} in Point() argument 38 Point(float x, float y) : x(x), y(y) {} in Point() function 39 bool operator==(const Point& o) const { return x == o.x && y == o.y; } 53 const std::vector<Point>& points() const { return mPoints; } in points() argument 63 const Point& pointAt(int glyphPos) const { return mPoints[glyphPos]; } in pointAt() 67 sizeof(Point) * mPoints.size() + sizeof(float) * mAdvances.size() + sizeof(float) + in getMemoryUsage() 76 std::vector<Point> mPoints; // per glyph 87 inline std::ostream& operator<<(std::ostream& os, const Point& p) {
|
/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/packages/SystemUI/src/com/android/systemui/accessibility/ |
D | MirrorWindowControl.java | 25 import android.graphics.Point; 62 final Point mTmpPoint = new Point(); 72 private final Point mControlPosition = new Point(); 94 final Point viewSize = mTmpPoint; in showControl() 118 final Point displaySize = mTmpPoint; in setDefaultPosition() 148 final Point nextPosition = mTmpPoint; in move() 154 private void setPosition(Point point) { in setPosition() 166 private void constrainFrameToDraggableBound(Point point) { in constrainFrameToDraggableBound() 172 final Point size = mTmpPoint; in updateDraggableBound() 192 abstract View onCreateView(@NonNull LayoutInflater inflater, @NonNull Point viewSize); in onCreateView()
|
/frameworks/base/core/java/android/app/contentsuggestions/ |
D | SelectionsRequest.java | 22 import android.graphics.Point; 40 private final Point mInterestPoint; 44 private SelectionsRequest(int taskId, @Nullable Point interestPoint, @Nullable Bundle extras) { in SelectionsRequest() 61 public @Nullable Point getInterestPoint() { in getInterestPoint() 89 source.readInt(), source.readTypedObject(Point.CREATOR), source.readBundle()); 106 private Point mInterestPoint; 129 public @NonNull Builder setInterestPoint(@NonNull Point interestPoint) { in setInterestPoint()
|
/frameworks/minikin/tests/unittest/ |
D | LayoutCoreTest.cpp | 76 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() 87 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() 88 EXPECT_EQ(Point(10.0f, 0), layout.pointAt(1)); in TEST() 102 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() 103 EXPECT_EQ(Point(10.0f, 0), layout.pointAt(1)); in TEST() 128 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() 129 EXPECT_EQ(Point(10.0f, 0), layout.pointAt(1)); in TEST() 143 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() 144 EXPECT_EQ(Point(20.0f, 0), layout.pointAt(1)); in TEST() 165 EXPECT_EQ(Point(0, 0), layout.pointAt(0)); in TEST() [all …]
|
/frameworks/base/core/tests/benchmarks/src/android/os/ |
D | ParcelableBenchmark.java | 20 import android.graphics.Point; 94 Point[] mPoints = new Point[10]; 97 mPoints[i] = new Point(); 109 mPoints = in.readParcelableArray(Point.class.getClassLoader(), Point.class); in readFromParcel() 130 in.readTypedArray(mPoints, Point.CREATOR); in readFromParcel()
|