summaryrefslogtreecommitdiff
path: root/apct-tests/perftests/windowmanager/src/android/wm/WindowAddRemovePerfTest.java
AgeCommit message (Collapse)Author
2022-03-15Merge SP2A.220305.013Haamed Gheibi
Bug: 220074017 Change-Id: Idfdd94e902f656ac65a2a75dfdd199f6f85ba472
2021-02-03Remove outFrame from the parameters of addWindowTiger Huang
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
2021-01-05Send display cutout to client via insetsChangedTiger Huang
Since the display cutout is a type of insets and the display cutout can be obtained from WindowInsets, it makes sense that InsetsState has the display cutout instance. In this way, we can send the display cutout to client via W#insetsChanged instead of W#resized. This can be a step to remove the class of ClientWindowFrames, and can also be a step to make client compute its window frame locally. Fix: 175858810 Bug: 161810301 Test: atest WindowAddRemovePerfTest ImeInsetsSourceConsumerTest InsetsControllerTest InsetsStateTest ViewRootImplTest WindowInsetsControllerTests ActivityRecordTests DisplayPolicyLayoutTests LaunchParamsControllerTests TaskSnapshotSurfaceTest WindowMetricsActivityTests WindowMetricsWindowContextTests WindowMetricsTest WindowFrameTests WindowStateTests WmDisplayCutoutTest Change-Id: I9a930b1d2f7df3cea2b29629b767a4a5f31bca17
2020-12-07Extract window related perf test base classesRiddle Hsu
Add WindowPerfTestBase and WindowPerfRunPreconditionBase into apct-perftests-utils. So window manager and input method manager can share the same functions. Bug: 174292015 Test: WmPerfTests ImePerfTests Change-Id: Ie2818536d6611d1ba5f4b6cd725cd2d4a95e1cac
2020-10-21Don't dispatch legacy insets to clientTiger Huang
The server won't dispatch the legacy content insets, stable insets, and visible insets to the client. The insets would be computed from the insets state by the client. This CL also fixes the insets scaling issue in compatible mode. Bug: 149813814 Fix: 169940916 Fix: 165412978 Test: atest WindowAddRemovePerfTest InsetsAnimationControlImplTest ActivityRecordTests DisplayPolicyLayoutTests InsetsPolicyTest InsetsStateControllerTest Change-Id: I83570973f587a6abf887752494f750b46e3e484d
2020-10-16Make the requested visibility always up-to-dateTiger Huang
The new logic sends the requested visibility to server even when the client doesn't have a control. This makes the requested visibility reliable at the server side. This CL also changes getRequestedState to getRequestedVisibility in WindowState, because the frames in getRequestedState are not reliable. Fix: 161247175 Fix: 166819574 Test: atest DisplayPolicyLayoutTests DisplayPolicyTests InsetsPolicyTest InsetsSourceProviderTest InsetsStateControllerTest WindowStateTests InsetsAnimationControlImplTest InsetsControllerTest WindowAddRemovePerfTest ActivityRecordTests Change-Id: I7d32dacaa1302bab61386f5bd69aaa7dde953ebe
2020-09-28Remove redundant logic about System UI visibilityTiger Huang
This CL removes - mSeq - System UI flags used to communicate between WMS and System UI - redundant AIDL methods - redundant fields and methods - redundant tests - PolicyControl This CL also - refines the format in DisplayPolicy#dump - sends a boolean to InputManager to indicate if System UI is in a low profile mode instead of sending the legacy system UI visibility Bug: 149813814 Fix: 169105126 Test: presubmit Test: dumpsys window displays Test: See if the layout of ImmersiveModeConfirmation is as expected Change-Id: I8c8df509355bebc9b560af57d5458614557bcd2f
2020-08-20Support trigger java method profiling of WmPerfTestsRiddle Hsu
So that it is easier to compare logic changes. Bug: 161782359 Test: atest WmPerfTests -- \ --module-arg \ WmPerfTests:instrumentation-arg:profiling-iterations:=2 \ --module-arg \ WmPerfTests:instrumentation-arg:profiling-sampling:=100 \ Change-Id: Icb2f7f379a3ea515c2fca758db36d3489c33092a
2020-05-06Move window manager perf test to a new packageRiddle Hsu
To isolate the test environment. Bug: 155404627 Test: atest WmPerfTests Change-Id: I1d9eda840056efc6c2d0696952ece55fd22b1547