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

Commit 8b65d98f authored by Paul Duffin's avatar Paul Duffin
Browse files

Remove binary expressions from signature files

Previously, if Metalava encountered a binary expression (e.g.
subtration) in the source definition of an annotation it would
replicate that expression in the signature file. That coupled the
signature files to the source representation, e.g. changing the
expression would would cause churn in the signature files. It also
complicated signature file parsing.

This change updates the signature files to match Metalava's new
behavior of evaluating the binary expression and just using the
resulting value.

Flag: EXEMPT mechanical refactoring does not change the API
Bug: 410756171
Test: m checkapi
Change-Id: Ifd634a7f52c1266218dc83baca36442b131bc3dd
parent ae434d49
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -54871,7 +54871,7 @@ package android.view {
    ctor public View.MeasureSpec();
    method public static int getMode(int);
    method public static int getSize(int);
    method public static int makeMeasureSpec(@IntRange(from=0, to=0x40000000 - 1) int, int);
    method public static int makeMeasureSpec(@IntRange(from=0, to=0x3fffffff) int, int);
    method public static String toString(int);
    field public static final int AT_MOST = -2147483648; // 0x80000000
    field public static final int EXACTLY = 1073741824; // 0x40000000
+1 −1
Original line number Diff line number Diff line
@@ -6142,7 +6142,7 @@ package android.hardware.input {
    method @NonNull public android.hardware.input.VirtualTouchEvent.Builder setAction(int);
    method @NonNull public android.hardware.input.VirtualTouchEvent.Builder setEventTimeNanos(long);
    method @NonNull public android.hardware.input.VirtualTouchEvent.Builder setMajorAxisSize(@FloatRange(from=0.0f) float);
    method @NonNull public android.hardware.input.VirtualTouchEvent.Builder setPointerId(@IntRange(from=0, to=0x10 - 1) int);
    method @NonNull public android.hardware.input.VirtualTouchEvent.Builder setPointerId(@IntRange(from=0, to=0xf) int);
    method @NonNull public android.hardware.input.VirtualTouchEvent.Builder setPressure(@FloatRange(from=0.0f) float);
    method @NonNull public android.hardware.input.VirtualTouchEvent.Builder setToolType(int);
    method @NonNull public android.hardware.input.VirtualTouchEvent.Builder setX(float);