summaryrefslogtreecommitdiff
path: root/apct-tests
diff options
context:
space:
mode:
authorTiger Huang <tigerhuang@google.com>2021-02-03 05:11:46 +0800
committerTiger Huang <tigerhuang@google.com>2021-02-03 22:50:41 +0800
commit46252a41348fb1805d3caf7f029c2d6137afaa8e (patch)
tree6a5e7be7b5446e2446f26b40c18cff6a54927b75 /apct-tests
parent6015bf963792e90003b1e09b19d9639d1094d630 (diff)
Remove outFrame from the parameters of addWindow
This CL moves computeWindowBounds to the client side. The client can use it to compute the frame hint on its own. This can be a step to make client compute its window frame locally. Bug: 161810301 BUg: 175858823 Test: atest WindowAddRemovePerfTest ActivityRecordTests DisplayPolicyLayoutTests TaskSnapshotSurfaceTest Change-Id: Ia5af1919b8e0e973646a63d1a4c3bf7ea7e2d1f6
Diffstat (limited to 'apct-tests')
-rw-r--r--apct-tests/perftests/windowmanager/src/android/wm/WindowAddRemovePerfTest.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/apct-tests/perftests/windowmanager/src/android/wm/WindowAddRemovePerfTest.java b/apct-tests/perftests/windowmanager/src/android/wm/WindowAddRemovePerfTest.java
index c37f6d97aba7..a2dc1c29f026 100644
--- a/apct-tests/perftests/windowmanager/src/android/wm/WindowAddRemovePerfTest.java
+++ b/apct-tests/perftests/windowmanager/src/android/wm/WindowAddRemovePerfTest.java
@@ -19,14 +19,12 @@ package android.wm;
import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_INSET_DECOR;
import static android.view.WindowManager.LayoutParams.FLAG_LAYOUT_IN_SCREEN;
-import android.graphics.Rect;
import android.os.RemoteException;
import android.os.SystemClock;
import android.perftests.utils.ManualBenchmarkState;
import android.perftests.utils.ManualBenchmarkState.ManualBenchmarkTest;
import android.perftests.utils.PerfManualStatusReporter;
import android.view.Display;
-import android.view.DisplayCutout;
import android.view.IWindowSession;
import android.view.InputChannel;
import android.view.InsetsSourceControl;
@@ -85,9 +83,6 @@ public class WindowAddRemovePerfTest extends WindowManagerPerfTestBase
private static class TestWindow extends BaseIWindow {
final WindowManager.LayoutParams mLayoutParams = new WindowManager.LayoutParams();
final InsetsState mRequestedVisibility = new InsetsState();
- final Rect mOutFrame = new Rect();
- final DisplayCutout.ParcelableWrapper mOutDisplayCutout =
- new DisplayCutout.ParcelableWrapper();
final InsetsState mOutInsetsState = new InsetsState();
final InsetsSourceControl[] mOutControls = new InsetsSourceControl[0];
@@ -107,7 +102,7 @@ public class WindowAddRemovePerfTest extends WindowManagerPerfTestBase
long startTime = SystemClock.elapsedRealtimeNanos();
session.addToDisplay(this, mLayoutParams, View.VISIBLE,
- Display.DEFAULT_DISPLAY, mRequestedVisibility, mOutFrame, inputChannel,
+ Display.DEFAULT_DISPLAY, mRequestedVisibility, inputChannel,
mOutInsetsState, mOutControls);
final long elapsedTimeNsOfAdd = SystemClock.elapsedRealtimeNanos() - startTime;
state.addExtraResult("add", elapsedTimeNsOfAdd);