Make TrustedPresentationThresholds final

Test: Builds
Fixes: 267312446
Change-Id: I7efaf6c6d240a3bcf6e2035023b150ef8f8169ad
This commit is contained in:
Chavi Weingarten
2023-01-31 22:16:03 +00:00
parent c0bcd9afb8
commit 11c6a49e5f
2 changed files with 5 additions and 5 deletions

View File

@@ -51266,7 +51266,7 @@ package android.view {
method public void onTransactionCommitted();
}
public static class SurfaceControl.TrustedPresentationThresholds {
public static final class SurfaceControl.TrustedPresentationThresholds {
ctor public SurfaceControl.TrustedPresentationThresholds(@FloatRange(from=0.0f, fromInclusive=false, to=1.0f) float, @FloatRange(from=0.0f, fromInclusive=false, to=1.0f) float, @IntRange(from=1) int);
}

View File

@@ -2411,10 +2411,10 @@ public final class SurfaceControl implements Parcelable {
* {@link Transaction#setTrustedPresentationCallback(SurfaceControl,
* TrustedPresentationThresholds, Executor, Consumer)}
*/
public static class TrustedPresentationThresholds {
private float mMinAlpha;
private float mMinFractionRendered;
private int mStabilityRequirementMs;
public static final class TrustedPresentationThresholds {
private final float mMinAlpha;
private final float mMinFractionRendered;
private final int mStabilityRequirementMs;
/**
* Creates a TrustedPresentationThresholds that's used when calling