Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 984c23da authored by Jeff Sharkey's avatar Jeff Sharkey
Browse files

Support simple graphics structs in Ravenwood, with CTS.

Insets, Point, PointF, Rect, and RectF are all foundational structs
that don't rely on any complex logic, so they're prime candidates to
support for use by Ravenwood host-side tests.

Based on analysis of existing test code, they're also high-usage
classes that would help enable many "small" tests.

Bug: 292141694
Test: atest CtsGraphicsTestCasesRavenwood CtsGraphicsTestCases
Change-Id: I715d7e03187d651c506bd540e4d1735d56c27ec8
parent e1bdce79
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.os.Parcelable;
 * Insets are immutable so may be treated as values.
 *
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public final class Insets implements Parcelable {
    public static final @NonNull Insets NONE = new Insets(0, 0, 0, 0);

+1 −0
Original line number Diff line number Diff line
@@ -24,6 +24,7 @@ import android.os.Parcelable;
/**
 * Point holds two integer coordinates
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public class Point implements Parcelable {
    public int x;
    public int y;
+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.os.Parcelable;
/**
 * PointF holds two float coordinates
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public class PointF implements Parcelable {
    public float x;
    public float y;
+1 −0
Original line number Diff line number Diff line
@@ -45,6 +45,7 @@ import java.util.regex.Pattern;
 * into the column and row described by its left and top coordinates, but not
 * those of its bottom and right.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public final class Rect implements Parcelable {
    public int left;
    public int top;
+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import java.io.PrintWriter;
 * the rectangle's width and height. Note: most methods do not check to see that
 * the coordinates are sorted correctly (i.e. left <= right and top <= bottom).
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public class RectF implements Parcelable {
    public float left;
    public float top;
Loading