3114 Commits

Author SHA1 Message Date
Alan Viverette
98a514221a Fix "Always apply window insets to action modes"
BUG: 17628875
Change-Id: I03bf6cfd68d0ca2904b43e00f68d07d497ff9879
2014-09-24 17:55:52 -07:00
Jason Monk
a2cbb29774 am 5a662bca: am b667c05d: am e4465aea: am f40f4af6: Merge "Add announcement of global actions dialog" into lmp-dev
* commit '5a662bcac6c47dbea80b3cbef350d7dc6b922d11':
  Add announcement of global actions dialog
2014-09-24 16:20:37 +00:00
Jason Monk
409353186c am b73e5baf: am f40f4af6: Merge "Add announcement of global actions dialog" into lmp-dev
* commit 'b73e5baf14e99e3078e08f76f1d492ec47c49dbc':
  Add announcement of global actions dialog
2014-09-24 15:10:47 +00:00
Jason Monk
ed1ae8f87b Merge "Add announcement of global actions dialog" into lmp-dev 2014-09-24 14:57:26 +00:00
Jason Monk
30443b14d1 Add announcement of global actions dialog
Rather than saying 'Alert', say 'Alert, ...' describing the contents
of the menu.

Bug: 17559783
Change-Id: I43b1b5ba9ce76b8c205f2d29f2f8ee7569517c19
2014-09-24 08:43:22 -04:00
Jeff Brown
578628741b am 87c18cc6: am 2d8fd798: am c91bd121: am 3f51958b: Merge "Fix window manager policy state when waking from doze." into lmp-dev
* commit '87c18cc6d01fa553bc72e7d2b66f15f58863113a':
  Fix window manager policy state when waking from doze.
2014-09-23 17:23:04 +00:00
Jeff Brown
b0697d1e8c am a9b97c68: am 3f51958b: Merge "Fix window manager policy state when waking from doze." into lmp-dev
* commit 'a9b97c6839ebf7364552c3c7b1e8eed2c2e56e1a':
  Fix window manager policy state when waking from doze.
2014-09-23 17:00:11 +00:00
Jeff Brown
3ee549ca24 Fix window manager policy state when waking from doze.
Once upon a time when the world was fresh and new, the heavens
had an easy rhythm.  Day and night.  Night and day.  In the day,
the pixel fairies would cavort and play in the bright gardens
with narry a mark of shadow or gloom.  In the night, they would
rest peacefully, dreaming no dreams and knowing no fear.

Then one night a fairy dreamed the first dream.  At first
the dream was peaceful, full of colors and delight, hopes and
memories.  Then all at once, jarringly, it awoke in bright
daylight.  The pixel fairy knew fear, for the world had changed
and it was unprepared.

Time passed and the pixel fairies grew accustomed to their
fate, day and night, night and day, sometimes dreaming, until
there came a night when a fairy did not sleep.  It roamed
the land in a dreamless doze, lost and afraid amid a grim haze
of grey and darkness.  The fairy despaired.  It wanted no
part of this place.  It pretended for a time to be awake but
the bright daylight would not come.  It pretended for a time to
be dreaming but the colors and memories would not come.
That is when the fairy wished for oblivion.  Then just as
suddenly, it awoke in the daylight.  It fell to the ground,
stunned as if it had forgotten how to walk in the too bright
daylight.

Though the world again grew softer and kinder in time, the pixel
fairies were never the same.  For the night is dark and full
of terrors.

---

It used to be easy.  Screen on and screen off could explain almost
everything about the state of the device but it's different now with
ambient display.  We need to be able to wait for all windows to be
drawn even in the case where the device is still nominally asleep.
In truth, the window manager policy which drives a lot of these
interactions is a thicket of outdated assumptions.

Added a new method to tell the window manager policy when the screen
is being turned off so that it can correctly account for changes
to the interactive state (wakeUp and goingToSleep) and screen state
(screenTurningOn and screenTurnedOff).  Now we can independently
poke keyguard during interactive state changes and we can apply
screen on blocking during screen state changes.

Moved the code which manages screen on blocking (which is what
ensures the UI has fully drawn before revealing screen contents)
from the power manager to the display manager since the display
manager is in a better position to accurately track the state of
the screen, particularly when the screen is being turned off.

Fixed a bunch of synchronization issues.  Previously some work
had been moved to a handler without considering what might
happen if it became reordered relative to other work happening
elsewhere.  Documented the desired behavior in the code to
prevent this from happening again.

There's still a bunch of stuff in here that isn't quite right,
particularly the assumption that there's only one screen, but
it's good enough for now.  Hopefully there aren't too many bugs.

Bug: 17605802
Change-Id: Ic7319e09948c8a3cda014d7e169c964a3ad86f14
2014-09-23 09:38:05 -07:00
John Reck
5315ce4bf1 am fa19b7aa: am 8434cfaf: am ae26f177: am 668e566e: Merge "Aggressively trim memory for system_process" into lmp-dev
* commit 'fa19b7aa01e26d5a24e05b1bb963f9bd8d079bf7':
  Aggressively trim memory for system_process
2014-09-23 15:49:41 +00:00
John Reck
7a5b01bc0e am 01b5cfaa: am 668e566e: Merge "Aggressively trim memory for system_process" into lmp-dev
* commit '01b5cfaac7e72526d145b4c5ea706993321abaa9':
  Aggressively trim memory for system_process
2014-09-23 02:52:16 +00:00
John Reck
73840ea367 Aggressively trim memory for system_process
Bug: 16978006

Don't HWUI-accelerate KeyguardScrim
Aggressively trim memory as soon as a ViewRootImpl
dies or has its visibility changed.

Change-Id: Ie1b7c9d30653456bd2e9f309128174f972999368
2014-09-22 16:01:56 -07:00
Jeff Brown
2a46170cd6 am 54d28e51: am 09395677: Merge "Decouple turning screen on from waking up in policy." into lmp-dev
* commit '54d28e51275e948d59484e3bd3e3eaea25c012e8':
  Decouple turning screen on from waking up in policy.
2014-09-20 04:46:16 +00:00
Jeff Brown
4df057c98b am 77e786ab: am 978272f4: am a94c9ccb: am 09395677: Merge "Decouple turning screen on from waking up in policy." into lmp-dev
* commit '77e786abd5f2dcb74de3cc083c1cc64c884fac9d':
  Decouple turning screen on from waking up in policy.
2014-09-20 02:44:14 +00:00
Jeff Brown
36c4db8bd3 Decouple turning screen on from waking up in policy.
This allows us to ensure windows are fully drawn before unblocking
screen on while dozing.

Bug: 17516245
Change-Id: Ibe63c212b8db855ce26a34a8169f33764b266ee6
2014-09-19 13:14:29 -07:00
Adam Powell
159769ad29 am 5bf6ff68: am b7e66066: am b057639f: am e58c9578: Merge "Make panel menu windows respect elevation" into lmp-dev
* commit '5bf6ff6887d71efdfa5d099c494af3adbbd8d6d4':
  Make panel menu windows respect elevation
2014-09-19 18:10:34 +00:00
Adam Powell
aaf130873d am 0f1b4f46: am e58c9578: Merge "Make panel menu windows respect elevation" into lmp-dev
* commit '0f1b4f46f32d9a49c2023ee5c6a4ca6a7b4ee7ef':
  Make panel menu windows respect elevation
2014-09-19 17:54:38 +00:00
Adam Powell
2b2f6729b8 Merge "Make panel menu windows respect elevation" into lmp-dev 2014-09-19 17:25:34 +00:00
Alan Viverette
ec9f3fdb68 am df7f8e24: am 4ed54216: am 89b0ec71: am d03ba30b: Merge "Always apply window insets to action modes" into lmp-dev
* commit 'df7f8e2447323e918bace1ff03349f1432d6c729':
  Always apply window insets to action modes
2014-09-19 09:30:03 +00:00
Alan Viverette
0bdf25b090 am cb1fd0e1: am d03ba30b: Merge "Always apply window insets to action modes" into lmp-dev
* commit 'cb1fd0e161670120f64dc35c2588a0d994edf0b1':
  Always apply window insets to action modes
2014-09-19 03:53:10 +00:00
Adam Powell
594558d7e9 Make panel menu windows respect elevation
Bug 17430536

Change-Id: I962dfa10d3cb4f735dcaa68f17e7ff278d1580a2
2014-09-18 18:22:29 -07:00
Alan Viverette
24b5f2cf95 Always apply window insets to action modes
BUG: 17567245
Change-Id: I3c37d228e3a9d3060a4fd1a86abf2ffbf91802e8
2014-09-18 15:46:42 -07:00
Alan Viverette
090537ee29 am 2f9ae13d: am f491d835: am 73d3c81c: am fb15b0e2: Merge "Use action bar theme for action modes, fix ViewStub inflation theme" into lmp-dev
* commit '2f9ae13d5843d6f25cfaaf2db51b5a78e2a8ba33':
  Use action bar theme for action modes, fix ViewStub inflation theme
2014-09-18 21:23:38 +00:00
John Reck
4958a0e9d4 am c669c6c7: am ef89494b: am 1d58768d: am e182b60c: Merge "Revert "Make starting window hw-accelerated"" into lmp-dev
* commit 'c669c6c77525ec5908e8eb7d223b120d2623f698':
  Revert "Make starting window hw-accelerated"
2014-09-18 21:00:37 +00:00
Alan Viverette
194206c4d7 am c5073a81: am fb15b0e2: Merge "Use action bar theme for action modes, fix ViewStub inflation theme" into lmp-dev
* commit 'c5073a812a82928ae681c9fcd328a3b1323b4edc':
  Use action bar theme for action modes, fix ViewStub inflation theme
2014-09-18 20:57:26 +00:00
John Reck
7c48077877 am a0f5d726: am e182b60c: Merge "Revert "Make starting window hw-accelerated"" into lmp-dev
* commit 'a0f5d726fc8a5610e41c40e289fd107704202327':
  Revert "Make starting window hw-accelerated"
2014-09-18 20:57:13 +00:00
Alan Viverette
07ecc748fb Merge "Use action bar theme for action modes, fix ViewStub inflation theme" into lmp-dev 2014-09-18 20:25:22 +00:00
John Reck
7e3d6c988c Merge "Revert "Make starting window hw-accelerated"" into lmp-dev 2014-09-18 20:01:15 +00:00
John Reck
61375a8bb5 Revert "Make starting window hw-accelerated"
Bug: 17516789

This change corresponds to a sudden influx of bad surface crashes.
Reverting to see if stability returns as this was an optimization
CL

This reverts commit 29ff1bc57ac2c995c56f15ed6e56e5fb247b2a44.

Change-Id: I7835e89017161d94ad05fe46d81bd437c3dae3a7
2014-09-18 19:29:23 +00:00
Adrian Roos
6ef346acb7 am 15f36821: am cfdda0d0: am 5d294516: am a92e765e: Merge "Fix bar visibility after restarting immersive activities" into lmp-dev
* commit '15f36821554d4fab2b6298703623202015967a81':
  Fix bar visibility after restarting immersive activities
2014-09-18 13:56:56 +00:00
Adrian Roos
e623e3c5c8 am a5d25381: am a92e765e: Merge "Fix bar visibility after restarting immersive activities" into lmp-dev
* commit 'a5d253811519cf14af88407b285024d78001e6d1':
  Fix bar visibility after restarting immersive activities
2014-09-18 13:18:19 +00:00
Alan Viverette
a9ddb8dc23 Use action bar theme for action modes, fix ViewStub inflation theme
BUG: 17262483
BUG: 17513621
Change-Id: I74764570a11da162a224e94978e21e52d17e2e84
2014-09-17 18:14:32 -07:00
Adrian Roos
dc263b1abf Fix bar visibility after restarting immersive activities
This was a result of using the wrong systemUiVisibility listener.
Instead, DecorView now follows the structure in ActionBarOverlayLayout,
where we use onWindowSystemUiVisibilityChanged for everything.

Bug: 17494017
Change-Id: I1be9165c5ff80021f3a7889d3811cf0c54f68e71
2014-09-17 15:55:27 +02:00
Adrian Roos
3650909cb2 am 88fbb05b: am d386ca71: am 0a559fa6: am 90c9f382: Merge "Properly redispatch systemUiVisibility flags" into lmp-dev
* commit '88fbb05b9c1b3e7accddcb995bf4e8b39213a86d':
  Properly redispatch systemUiVisibility flags
2014-09-16 21:09:34 +00:00
Adrian Roos
96174641f8 am 1f86d47c: am 90c9f382: Merge "Properly redispatch systemUiVisibility flags" into lmp-dev
* commit '1f86d47c2bdeff6603793a9a8d6e50beca2ea014':
  Properly redispatch systemUiVisibility flags
2014-09-16 18:04:19 +00:00
Adrian Roos
ce4a0cf9ce Properly redispatch systemUiVisibility flags
Fixes two bugs introduced by change
I7bd32531130d199c0734ffcb800194e77b7e16c3:

When the system window insets consumed by DecorView
change as a result of changing flags, the insets must
be redispatched to the hierarchy.

Also fixes a bug where, as a result of removing the wrong
implication of the SYSTEM_UI_FLAG_LAYOUT_STABLE flag by
FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS, the status bar was
being forced to black when returning from recents.

Bug: 17489047
Bug: 15046646
Change-Id: I127b0ff3b17c4873a7c28d67020f84298ed09db2
2014-09-16 16:28:45 +02:00
Adam Powell
35e752ef62 am 51bf4916: am 86a3adca: Merge "Magic null-background filling for PhoneWindows" into lmp-dev
* commit '51bf49165c01c6ee7386fcee35c17cf636a151cb':
  Magic null-background filling for PhoneWindows
2014-09-14 23:21:09 +00:00
Adam Powell
f849a5e16d Magic null-background filling for PhoneWindows
In the past it's been a recommended approach to avoiding overdraw for
apps to set their window background to null at runtime if their
content view fully covers their window surface. The problem with this
is the IME.

The IME can force a resize of the window at unexpected times and
unless an app has been configured to fit system windows and manually
cover the padded area that the IME window covers, the asynchronous
nature of the IME-show process can leave surface buffer garbage
visible to the user. In previous platform versions this wasn't an
issue since pre-renderthread we would always animate a crossfade from
the closed to open state. This animation was always a bit of a hack
since it could break the contract of requestLayout/invalidate on the
view hierarchy - it could result in a draw happening into the saved
"before" state of the crossfade before a pending layout.

Now that this has been cleaned up the buffer garbage is sometimes
visible.

To prevent this, PhoneWindow now detects the state of a null window
background and draws solid rects into the area not covered by a
window's content. Which color is determined by the window context's
theme, though this is not a public API available to apps.

Bug 17006497

Change-Id: I714439a1608c4ae135f3d9d49bb165330d9fbe9f
2014-09-14 15:44:11 -07:00
Craig Mautner
6863feb54c am 41262f9c: am 1ba4bb3c: Merge "Give a tablet a chance." into lmp-dev
* commit '41262f9c0150434a25843c38a1f0a17efca98e4a':
  Give a tablet a chance.
2014-09-13 23:13:34 +00:00
Craig Mautner
a3804a0aab Merge "Give a tablet a chance." into lmp-dev 2014-09-13 22:45:28 +00:00
Craig Mautner
c3daeddae4 Give a tablet a chance.
500 msec is apparently not enough time to push the pixels around on
a Volantis (or Manta, or occasionally Deb). Increasing the timeout
eliminates turning the screen on before the surface is completely
drawn.

Optimizing the drawing path so that we can return the timeout to
500ms has been filed as b/17496306.

Fixes bug 16849724.

Change-Id: Ic0fca68bc41caa67dba973b5c40915756dc4730f
2014-09-13 12:22:33 -07:00
Tyler Gunn
8bc3996189 am 21282583: am 66c16547: Merge "Renaming Telecomm to Telecom." into lmp-dev
* commit '2128258322aa2f90d65c1963ede79d1bffb3fce4':
  Renaming Telecomm to Telecom.
2014-09-13 18:03:04 +00:00
Tyler Gunn
ef9f6f957d Renaming Telecomm to Telecom.
- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: I192cb5d189f55db012ea72ee82ccc5aedbc21638
2014-09-12 22:16:17 -07:00
Adrian Roos
5ac26b20b9 am 35c6da12: am c6d7106f: Merge "Hide the increased window size due to colored bars from the view hierarchy" into lmp-dev
* commit '35c6da1225fad62141353857553efac28fa7a722':
  Hide the increased window size due to colored bars from the view hierarchy
2014-09-12 19:18:15 +00:00
Adrian Roos
91db5ea149 Merge "Hide the increased window size due to colored bars from the view hierarchy" into lmp-dev 2014-09-12 13:28:18 +00:00
Craig Mautner
6ec7cd9dab am a7027783: am 31632435: Merge changes Ia6fe9724,I682b9acb into lmp-dev
* commit 'a7027783e39e4da9ef6cc66a200746ffb81e720e':
  Show all windows from activity that hides keyguard
  Make sure FLAG_DISMISS_KEYGUARD brings up bouncer
2014-09-12 05:47:14 +00:00
George Mount
b6d4a7f141 am 9ace814b: am 3081e360: Merge "Have Activity Transitions activited by a new window attribute." into lmp-dev
* commit '9ace814b28d582e9cd08f13919ba5b672e2b72ef':
  Have Activity Transitions activited by a new window attribute.
2014-09-12 05:44:51 +00:00
Chet Haase
dcce4a5119 am e58831a6: am 05cafed0: Merge "Make starting window hw-accelerated" into lmp-dev
* commit 'e58831a6a0edce3114686cb8168652a50e956031':
  Make starting window hw-accelerated
2014-09-12 05:43:45 +00:00
Craig Mautner
cbc771f50e Merge changes Ia6fe9724,I682b9acb into lmp-dev
* changes:
  Show all windows from activity that hides keyguard
  Make sure FLAG_DISMISS_KEYGUARD brings up bouncer
2014-09-12 01:45:29 +00:00
Craig Mautner
7d7808fcf8 Show all windows from activity that hides keyguard
Popup windows from the activity hiding the keyguard weren't being
shown. This change retrieves that activity from PhoneWindowManager
and applies the show or hide call to the windows that match the
activity.

Fixes bug 16479813.

Change-Id: Ia6fe97240aec85c5233eee9038138f7d48095a6e
2014-09-11 18:02:38 -07:00
Jorim Jaggi
c13fcace7e Make sure FLAG_DISMISS_KEYGUARD brings up bouncer
Bug: 17449741
Change-Id: I682b9acb1d8bca8a83953a59c9548f9f0ca56f4b
2014-09-11 16:50:29 -07:00