OSDN Git Service

Fix adb am display-size.
authorJeff Brown <jeffbrown@google.com>
Mon, 10 Sep 2012 23:01:14 +0000 (16:01 -0700)
committerJeff Brown <jeffbrown@google.com>
Mon, 10 Sep 2012 23:01:14 +0000 (16:01 -0700)
commite215f26f74744535bcc0209f2a0a0e4a9f36fd82
treefa4c76e7e1dbaaa728a6fc2b6d268ed5ab11dad2
parent83d616a9c7b9505153d258511eb5c16b552e268d
Fix adb am display-size.

There were several problems resulting from the use of
mDefaultDisplay before displayReady() was called.
As it happens, we don't need mDefaultDisplay becase we
can get the information from the default display content.

Also modified the Configuration calculations to never
choose a SQUARE orientation.  The constant is deprecated
and documented as no longer used, so we should make that
be the case.

Change-Id: I326ed7100030a81e24411e898e5243f28895ea22
services/java/com/android/server/wm/WindowManagerService.java