ae73ba4c591630bd5f90b8e8e3ceaed3be20fa56 |
|
05-May-2017 |
Bryce Lee <brycelee@google.com> |
Do not always skip preparing window to display when already visible. The window flag FLAG_TURN_SCREEN_ON relies on this method to properly flag the screen to turn on. An optimization was put in place to skip this method when the window was already visible. As a result, we would skip turning the screen on if the activity was recreated. This changelist addresses this issue by causing this method to execute always if the flag is set. Change-Id: I82c05c66136f7cc252b8d574d305809d455732ce Fixes: 37432034 Test: bit FrameworksServicesTests:com.android.server.wm.WindowStateTests#testPrepareWindowToDisplayDuringRelayout Test: go/wm-smoke
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
342479581e113a6cf05f6e1d6470a86ad6032bcb |
|
19-Feb-2017 |
Wale Ogunwale <ogunwale@google.com> |
Fixed issues with child windows been IME targets - Fixed issue with WindowState.getWindow() returning the parent window before its children with positive sub-layers. Positive sub-layer children should be returned first, then the parent window, and then negative sub-layer children. This was causing the the parent window to be selected as the IME target instead of the child on-top of it since they both can be IME targets and the parent window was returned first. - Fixed issue with WindowState.forAllWindow() not returning the IME window if the current IME target is a child window. - Add test WindowStateTest.testGetWindow(), DisplayContentTests.testForAllWindows_WithChildWindowImeTarget(), and DisplayContentTests.testComputeImeTarget() to cover the failing cases. Change-Id: I0c93e0344601fc870011e8a8d84528f62b0a2a06 Fixes: 34786357 Fixes: 34306127 Fixes: 34711958 Fixes: 35362942 Test: bit FrameworksServicesTests:com.android.server.wm.WindowStateTests Test: bit FrameworksServicesTests:com.android.server.wm.DisplayContentTests
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
ea92d977333bef11c6ab243d785a1b2d9c1f66ff |
|
08-Dec-2016 |
Wale Ogunwale <ogunwale@google.com> |
Don't return null in WS.getTopParentWindow on child detach Fixed issue with WindowState.getTopParentWindow() returning null when the child window is removed from it's parent. In this case it should return itself as the method documentation states. Change-Id: Iae40ca21241306048cae136887afc88593a6898d Fixes: 33446267 Test: bit FrameworksServicesTests:com.android.server.wm.WindowStateTests
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
805d9ecc476134ffafc85a07b05e94a14b1d398c |
|
07-Dec-2016 |
Wale Ogunwale <ogunwale@google.com> |
Don't allow IME windows to be IME targets IME targets are required to be below the IME windows and that wouldn't be possible if the IME window is its own target which leads to issues elsewhere in the code where that is expected to be the case. Change-Id: I34a723ff4ce2519cd80e0eea0eaea04712b6cf8f Fixes: 33336368 Test: bit FrameworksServicesTests:com.android.server.wm.WindowStateTests
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
6213caa42d89cc446de4f8f9ba00630f166f23cc |
|
02-Dec-2016 |
Wale Ogunwale <ogunwale@google.com> |
Revert "Revert "WindowList be gone!"" This reverts commit ffa5a9de0c127cb77ddec625fea101ddddb7ad32. Bug: 33098800 Bug: 33098294 Test: Existing tests pass. Change-Id: I5803a010c5a224dd1cf452a4a7beb3a4c0a043f4
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
ffa5a9de0c127cb77ddec625fea101ddddb7ad32 |
|
23-Nov-2016 |
Jorim Jaggi <jjaggi@google.com> |
Revert "WindowList be gone!" This reverts commit 4551c8bbee4114fa884938dbe90ac0d06ca78fc5. Reason for revert: Broke a lot of things! Bug: 33098800 Bug: 33098294 Change-Id: I307b1c7ee39445d6155a4bbce2bf5f289de55285
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
4551c8bbee4114fa884938dbe90ac0d06ca78fc5 |
|
10-Nov-2016 |
Wale Ogunwale <ogunwale@google.com> |
WindowList be gone! The use of DisplayContent.mWindow list to track all windows is no longer needed as we can now get windows through the window container hierarchy with methods like forAllWindows. The window list was also a very complicated logic to understand and maintain, so it won't be missed :) Bug: 30060889 Test: Existing tests pass Change-Id: I590cb33aa0f42bcd4a26ddce102f05e657f54144
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
44fbdf5b1e13398e35d4bafb7236d194a51ee7af |
|
16-Nov-2016 |
Wale Ogunwale <ogunwale@google.com> |
Fixed issue with IME displaying on-top of nav bar. Caused by some recent refactoring. We now make sure the IME has the higher animation layer in its base layer of the window it is targeting. Also, consolidated some of our test functions. Bug: 32916670 Test: bit FrameworksServicesTests:com.android.server.wm.WindowLayersControllerTests Change-Id: I0b1abd6fead981cfc810488cc785261abba5341d
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
af221d16de434c3550cb4e645135e95992ce1203 |
|
15-Nov-2016 |
Jorim Jaggi <jjaggi@google.com> |
Fix that window was not hidden after policy hiding animation When we removed WindowState.isOnScreenIgnoringKeyguard we forgot to change WindowState.isOnScreen to also check policy visibility. Test: runtest frameworks-services -c com.android.server.wm.WindowStateTests Test: Open camera app, make sure status bar is hidden Change-Id: I780f50c8ed3e675f2fab623fdba4fcfc5b6f1d5b Fixes: 32890266
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
360a8bce7386dc9b231c698af1730e04362b6c2e |
|
10-Oct-2016 |
Wale Ogunwale <ogunwale@google.com> |
Switch WindowState to get display content from its window token WindowState no longer needs to track what display it is on now that the window token can only be on one display. Test: Existing tests pass. Change-Id: Ia0530d73da0b1ecc17f596ec62c933637bd1c2c3
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
02319a61927041cc4d3632e94c501b7277f0bda5 |
|
27-Sep-2016 |
Wale Ogunwale <ogunwale@google.com> |
Associate WindowToken object with only one display at a time WindowTokens were global objects that contained windows that could be on multiple displays. This model does not work with the WindowContainer hierarachy as children (window tokens) can not have mulitple parents (displays). We now: - Track the mapping of binder tokens to window tokens per display instead of globally . So, you can have a binder token map to individual WindowToken objects per display. - WMS.addWindowToken is used to create a WindowToken that clients can then later add windows to. However, when addWindowToken is called we don't know the display the client(s) would like to add window to. So, we track binder tokens that we are allowed to add window for in the RootWindowContainer and create a window token for the binder on a specific display when we try to add a window. Bug: 30060889 Test: Manual testing and existing tests pass. Change-Id: I81a52a32b01c33ed32169d2da0506b688ea9bc8a
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
5fc70966a770eb33dac2928fb5c4a6a85a872f60 |
|
10-Sep-2016 |
Wale Ogunwale <ogunwale@google.com> |
Added WindowManager unit tests to pre-submit Change-Id: Iaba2de367ab478916610d96b0e3f69d34e0b471c
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
5136249a7147fb205e1b861c1d42a7d1f13b73cc |
|
09-Sep-2016 |
Wale Ogunwale <ogunwale@google.com> |
Support for specifying orientation in WindowContainer Also, - Fixed failing tests when they are ran as a package vs. individual classes due to multiple window manager instance. - Correct some isVisible logic to so a window container that is invisible is not said to be visible, because one of its children is visible. Bug: 30060889 Change-Id: I1bb8730361be2a9f5ce88cd59b7d57d5a459bde6
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
a7e3b64507250ab19a1294d58febea03cfa2b327 |
|
29-Aug-2016 |
Wale Ogunwale <ogunwale@google.com> |
Converted window manager unit tests to use JUnit4 Change-Id: I5248d5fcc9f0f5b44bab1d57f16d1cf2ad4b8209
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
d1c3791659572529dbc749b70d1c33bda1bdbc32 |
|
16-Aug-2016 |
Wale Ogunwale <ogunwale@google.com> |
Switched WindowToken/AppWindowToken to use WindowContainer Bug: 30060889 Change-Id: Ia82aedfd9ea86410acdcd3a55a7a7fc456be2fc3
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
caa53afa0cae85a69da1b5bfb9b8368b152c917b |
|
17-Jul-2016 |
Wale Ogunwale <ogunwale@google.com> |
Made WindowState.mParentWindow private scoped. Bug: 30060889 Change-Id: Ic1d702cb6329fb2f03d006939f5610681d1d07bd
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
adde52ee32b656bb436f7e92f39f7d0d97cc9306 |
|
16-Jul-2016 |
Wale Ogunwale <ogunwale@google.com> |
Made WindowState.mChildWindow private scoped This involved: - Moving method that operated on mChildWindows and mostly touched WindowState fields into WindowState class. - Creating new methods for getting information about child windows outside WindowState class instead of accessing the child list directly. - And, tests ;) Bug: 30060889 Change-Id: I339cecb926b44b5db7ead1970e356304d5429c8f
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
9d14790d299d1e2b96db287601c86f82850019c9 |
|
16-Jul-2016 |
Wale Ogunwale <ogunwale@google.com> |
Track hidden state of window in itself vs. all child windows. It makes the code easier to follow if the hidden state of a window is tracked in itself vs. all chils windows. Child windows can call WS.isParentWindowHidden to get the hidden state of their parent window. Also, moved the performShowLocked method from WindowStateAnimator to WindowState since most of the fields modified in the method belong to WindowState. And, don't forget the test for the change ;) Bug: 30060889 Change-Id: I5be13b936a2284fd8fe10218b80fe41cc197d1a7
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|
b699ce0d06eb6be91c0be0a791d8d8d7c68b4f41 |
|
18-Jul-2016 |
Wale Ogunwale <ogunwale@google.com> |
Added foundation for supporting unit tests in WindowManager - Check for null where appropriate when using WM from a test - Inject WindowManagerPolicy for test can have its own policy - Added skeleton for WindowStateTests that will contain tests for WindowState class. Bug: 30060889 Change-Id: I0cd7d50c98de16c7412759401075c4bb48d13dfe
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/WindowStateTests.java
|