97d2820cf89eab4ca7e86b4f9022b3f45d8e461f |
|
28-Feb-2018 |
chaviw <chaviw@google.com> |
Synchronize all WindowTestsBase and WindowTestUtils methods. Several WindowManager tests access WindowManager code that assume the WM lock is already held. This can cause crashes in native code and cause unexpected behavior. Added synchronize blocks around all helper methods to avoid adding synchronized blocks in all WM tests methods. This does not guarantee that all WM tests are synchronized, but handles a good bulk of them for now. The largest number of failures were from ZOrderingTests since that tests creates a lot of windows, making synchronicity issues more likely. Ran that test class multiple times to ensure I was unable to get the failure. Test: ZOrderingTests Bug: 73966377 Change-Id: I96f586e7ea91223589caef885c87ecded555ab13 Fixes: 72976082
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
45ca0544ea03e04d1ecb11640484818fe2838c28 |
|
31-May-2017 |
Jorim Jaggi <jjaggi@google.com> |
Fix camera launch delay from Keyguard When we launch the camera from the lockscreen, we launch a trampoline activity that launches a real activity. Now, under certain race conditions the trampoline activity was resumed but then set to invisible immediately again such that the window was never relayouted. Thus, the activity was stuck in WAITING_RELAYOUT state in UnknownAppVisibilityController, leading to a app transition timeout. To fix this, we immediately remove the app from the unknown visibility controller as soon as it gets set to invisible again. Test: Set animation scale multiplier to 0, open camera, finish activity by pressing back, turn off screen, launch camera via double tap, observe no delay. Test: go/wm-smoke Fixes: 37677242 Change-Id: I103a89af5fb515d6635f86abe2c67a02d90abd79
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
11cc516a925ac7fc814dbb0a79a7f0abfbfe1ce1 |
|
26-Apr-2017 |
Wale Ogunwale <ogunwale@google.com> |
Reduce use of static variables in window manager unit tests This was causing test cross-contamination since different test might expect different states from the variables. Bug: 37682538 Test: tons of it! Change-Id: Ie8a1ea400695b6346d7dfa3369b5c44bb467a33d
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
af691c0be7bbfea63e880dd717c51a38a0bc874a |
|
20-Mar-2017 |
Bryce Lee <brycelee@google.com> |
Clean up activity/stack associations. The stack currently holds a reference to resuming and pausing activities. These are usually cleaned up when the activity ends or the task is reparented. However, it is possible for an activity to lose its reference to its task in other areas (such as ActivityStarter), which can lead to the stack not being updated correctly. This changelist adds a method to the ActivityStack to disassociate the stack from an ActivityRecord. In addition to places where this is called when an activity ends, this method is invoked on the children of a task when the task is reparented. The task member variable of ActivityRecord is also now surrounded by a setter/getter, with the setter always invoking the dissociation logic on a previous stack. Test: bit FrameworksServicesTests:com.android.server.am.ActivityRecordTests Change-Id: Iffeccdb6f011958896271673946acfed28856f53 Fixes: 36387417
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
17f175ca1a75d5a4864b88126f5d2a59935d52fd |
|
08-Feb-2017 |
Wale Ogunwale <ogunwale@google.com> |
Fixed failing WM pre-submit tests - Pre-submit wasn't really enabled so several changes were merged in that caused test failures - Specify that AppWindowTokenTests token fill their parent since that is important for the orientation tests it runs - Disable testLandscapeSeascapeRotationByPolicy() until we have time to figure-out the problem with the test. - Initialize ActivityManagerInternal local service mock when we initialize the test object for window manager. - Changed UnknownAppVisibilityControllerTest to use test infrastructure in WindowTestsBase. - Fixed testGetOrientation_childSpecified to check the correct expected state. - Allow testAssignWindowLayers_ForImeNonAppImeTarget to create an alert window at internal system window z-order. - Remove all non-common windows for the system after each test run. Bug: 35034729 Test: adb shell am instrument -w -e package com.android.server.wm com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner Change-Id: I4726811e382b18fbef6b9d9b12a5ee56776628e4
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
9bafc7150ea41758cf40ba60eb90deb62217fc34 |
|
19-Jan-2017 |
Jorim Jaggi <jjaggi@google.com> |
Starting window tests, yay! Test: bit FrameworksServicesTests:com.android.server.wm.AppWindowContainerControllerTests Fixes: 34364463 Fixes: 34361417 Change-Id: Ie1b8debc894e5cad8fe517912a1991a38661dfaa
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
26c0dfed7a0cd54abafdd0ccbb5b757506d51c76 |
|
14-Dec-2016 |
Wale Ogunwale <ogunwale@google.com> |
Support for WindowContainer controllers and listeners - WindowContainerController class allows a component outside window manager to create a window container and communicate directly with it to make changes. For example, the ActivityRecord class in activity manager uses the AppWindowContainerController class to create and communicate with AppWindowToken window container class which is its counterpart on the window manager side. - WindowContainerListener interface allows a component outside WM to get notified of changes to a window container. For example, the ActivityRecord class in AM implements the AppWindowContainerListener interface to get notified of changes to the AppWindowToken container. Bug: 30060889 Test: Existing tests pass and manual testing. Test: bit FrameworksServicesTests:com.android.server.wm.WindowContainerControllerTests Test: bit FrameworksServicesTests:com.android.server.wm.WindowContainerTests Change-Id: I2896bfa46a80b227052528c7da8cf4e56beab4bc
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
46a26a84af520cf9f13874b6c2646f15b38be683 |
|
16-Dec-2016 |
Jorim Jaggi <jjaggi@google.com> |
Reenable test for presubmit Bug: 33498346 Change-Id: Ie08b8da82efa897eb80b78e61962031db70b8960
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
c6dc9b53d80565a2a9d17f84ebf673d310ac70c3 |
|
10-Dec-2016 |
Fyodor Kupolov <fkupolov@google.com> |
Disabling presubmit tests until they fixed Test: manual Bug: 33498338 Bug: 33498346 Change-Id: I50f15d39e2bf1195b192fc882b38601ba2372740
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|
5a108c225a81cedacb1cec9b5b1986f2f3eff75c |
|
13-Oct-2016 |
Jorim Jaggi <jjaggi@google.com> |
The big keyguard transition refactor (2/n) Introduce UnknownVisibilityController, which keeps track of apps that may or may not be visible when launching an activity behind Keyguard. When Keyguard is occluded and we launch another activity, we don't know whether we still have to keep Keyguard occluded until the app has gone through the resume path and issued a relayout call to update the Keyguard flags. This class keeps track of that state and defers the app transition until the unknown visibility of all apps is resolved. Test: 1) Have an occluding activity that starts another occluding activity, ensure that there is no flicker. 2) Have an occluding activity while the Keyguard is insecure, start a DISMISS_KEYGUARD activity, ensure there is no flicker. 3) runtest frameworks-services -c com.android.server.wm.UnknownVisibilityControllerTest Bug: 32057734 Change-Id: I5145b272722ab8c31dd7c5383286f5c9473e26a4
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/UnknownAppVisibilityControllerTest.java
|