/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/ |
D | WallpaperCropperTest.java | 36 import android.graphics.Point; 65 private static final Point PORTRAIT_ONE = new Point(500, 800); 66 private static final Point PORTRAIT_TWO = new Point(400, 1000); 67 private static final Point PORTRAIT_THREE = new Point(2000, 800); 68 private static final Point PORTRAIT_FOUR = new Point(1600, 1000); 70 private static final Point SQUARE_PORTRAIT_ONE = new Point(1000, 800); 71 private static final Point SQUARE_LANDSCAPE_ONE = new Point(800, 1000); 76 private static final List<Point> STANDARD_DISPLAY = List.of(PORTRAIT_ONE); 79 private static final List<Point> FOLDABLE_ONE = List.of(PORTRAIT_ONE, SQUARE_PORTRAIT_ONE); 82 private static final List<Point> FOLDABLE_TWO = List.of(PORTRAIT_TWO, SQUARE_LANDSCAPE_ONE); [all …]
|
/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_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/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/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 | 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(@NonNull Point src) { in Point() method in Point 55 public void set(@NonNull Point src) { in set() 88 Point point = (Point) o; in equals() 123 public static Point unflattenFromString(String s) throws NumberFormatException { in unflattenFromString() 125 return new Point(Integer.parseInt(s.substring(0, sep_ix)), in unflattenFromString() 148 … final @android.annotation.NonNull Parcelable.Creator<Point> CREATOR = new Parcelable.Creator<Poin… 153 public Point createFromParcel(Parcel in) { [all …]
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | Face.java | 23 import android.graphics.Point; 58 private Point mLeftEye; 59 private Point mRightEye; 60 private Point mMouth; 91 @NonNull Point leftEyePosition, @NonNull Point rightEyePosition, in Face() 92 @NonNull Point mouthPosition) { in Face() 127 @Nullable Point leftEyePosition, @Nullable Point rightEyePosition, in init() 128 @Nullable Point mouthPosition) { in init() 218 public Point getLeftEyePosition() { in getLeftEyePosition() 234 public Point getRightEyePosition() { in getRightEyePosition() [all …]
|
/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/minikin/include/minikin/ |
D | Point.h | 24 struct Point { struct 25 Point(float x, float y) : x(x), y(y) {} in Point() argument 30 inline std::ostream& operator<<(std::ostream& os, const Point& p) { argument 34 inline bool operator==(const Point& l, const Point& r) { 38 inline bool operator!=(const Point& l, const Point& r) {
|
/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/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/ |
D | DragResizeWindowGeometryTests.java | 28 import android.graphics.Point; 66 private static final Point TOP_EDGE_POINT = new Point(TASK_SIZE.getWidth() / 2, 68 private static final Point LEFT_EDGE_POINT = new Point(-EDGE_RESIZE_THICKNESS / 2, 70 private static final Point RIGHT_EDGE_POINT = new Point( 72 private static final Point BOTTOM_EDGE_POINT = new Point(TASK_SIZE.getWidth() / 2, 124 private static void verifyHorizontalEdge(@NonNull Region region, @NonNull Point point) { in verifyHorizontalEdge() 134 private static void verifyVerticalEdge(@NonNull Region region, @NonNull Point point) { in verifyVerticalEdge() 295 private final Point mTopLeftPoint; 296 private final Point mTopLeftPointOutside; 297 private final Point mTopRightPoint; [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()
|
/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/base/packages/SystemUI/multivalentTests/src/com/android/systemui/bouncer/ui/viewmodel/ |
D | PatternBouncerViewModelTest.kt | 28 import com.android.systemui.authentication.shared.model.AuthenticationPatternCoordinate as Point in <lambda>() 174 dragOverCoordinates(Point(0, 0), Point(2, 0)) in <lambda>() 200 dragOverCoordinates(Point(1, 0), Point(1, 2)) in <lambda>() 228 dragOverCoordinates(Point(2, 0), Point(0, 2)) in <lambda>() 255 dragOverCoordinates(Point(0, 0), Point(1, 0), Point(2, 0), Point(0, 1)) in <lambda>() 283 dragOverCoordinates(Point(1, 0), Point(1, 1), Point(0, 0), Point(2, 0)) in <lambda>() 348 private fun dragOverCoordinates(vararg coordinatesDragged: Point) { in <lambda>() 353 private fun dragToCoordinate(coordinate: Point) { in <lambda>()
|