diff options
author | Filip Gruszczynski <gruszczy@google.com> | 2015-09-05 15:00:00 -0700 |
---|---|---|
committer | Filip Gruszczynski <gruszczy@google.com> | 2015-09-09 12:05:53 -0700 |
commit | 24966d4789c7a2054650ec1a5ed7450f0d691224 (patch) | |
tree | a3d3e6feaeb2e08dbebfd59a74107fd34c154afe /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 435acfc88917e3535462ea520b01d0868266acd2 (diff) |
Refactorings for Window Manager module.
Following improvements were applied:
* extract code from a very large method
WindowSurfacePlacer.performSurfacePlacementInner into
WindowsurfacePlacer.applySurfaceChangesTransaction; smaller methods
are easier to understand;
* WindowStateAnimator.showSurfaceRobustlyLocked can be privatized, it
is only called from one place; also there is unnecessary check for
whether mSurfaceControl is not null;
* prepareAppTransition code can be mostly moved into AppTransition;
it calls mostly methods from this class; as a result some methods
from AppTransition can be privatized;
* requestTraversalLocked can be moved into WindowSurfacePlacer, which
allows mTraversalScheduled to be a private field inside the placer;
this way WindowSurfacePlacer can nicely control and hide the need for
layouts.
Change-Id: I99006c859ef224f5dad933f5c15d2cb2b9738a9e
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions