OSDN Git Service

Refactoring of WMS.addAppWindowToListLocked.
authorFilip Gruszczynski <gruszczy@google.com>
Mon, 5 Oct 2015 04:25:48 +0000 (21:25 -0700)
committerFilip Gruszczynski <gruszczy@google.com>
Mon, 5 Oct 2015 17:55:05 +0000 (10:55 -0700)
commit55a2a40abd53e9fb32399fe6b681d789032fd6dd
treef496dfebc4f7fdc7125c74816a3d5c595236ec70
parentd1728e7656f9e90a16c2dc407a1085f3f2eacba9
Refactoring of WMS.addAppWindowToListLocked.

1) getTokenWindowsOnDisplay can be private;
2) in addAppWindowToListLocked the first operation should be checking
display content;
3) adding window to exiting window token extracted to a separate
method;
4) fetching window list directly from the display content, instead of
going through the window.
Change-Id: Ibe196fb6eea15b7800938bdaefcbe8cd1a76ca14
services/core/java/com/android/server/wm/WindowManagerService.java