2572 Commits

Author SHA1 Message Date
Jim Miller
53caf87531 am 01491271: am 53cb242f: Merge "Fix issue where keyguard adds widgets before the system is ready" into klp-dev
* commit '0149127198f9fc46a3a4f0b7f4e9579b72273b46':
  Fix issue where keyguard adds widgets before the system is ready
2013-10-17 16:23:13 -07:00
Satoshi Kataoka
03e1c70802 Merge "Introduce an API to get the recommended height of the InputMethodWindow" 2013-10-17 05:24:01 +00:00
Jim Miller
e5f910a667 Fix issue where keyguard adds widgets before the system is ready
While under heavy system load,  keyguard was able to create widgets before
before ActivityManagerService was ready.  The result was a race
between keyguard adding widgets and ActivityManagerService being
ready to send broadcasts.

This fix provides keyguard with an additional signal to know when
the system is booted and widgets are safe to load.

Fixes bug b/11217169

Change-Id: I7a714d65b068678f961e52bdde4e1c20f9c287f0
2013-10-16 19:42:34 -07:00
Craig Mautner
06796ab707 am 0e10dfeb: am 2c345435: am 79a0ed58: Merge "Move the wallpaper beneath the keyguard." into klp-dev
* commit '0e10dfebf19efd3ebe6f70800c5a09243f7da2ac':
  Move the wallpaper beneath the keyguard.
2013-10-15 04:02:23 -07:00
Daniel Sandler
2209092837 am c963dfb2: am 596b1f86: am dd73ee4d: Add a config resource to enable translucent bars globally.
* commit 'c963dfb27a160d50b5ed23fd6d296aec0bd0472b':
  Add a config resource to enable translucent bars globally.
2013-10-15 04:01:53 -07:00
Satoshi Kataoka
658c7b896a Introduce an API to get the recommended height of the InputMethodWindow
Bug: 11035379
Bug: 5137498

Change-Id: I0e920ee79c526c3aea6872b063cf294e2ab081c8
2013-10-15 14:35:18 +09:00
Craig Mautner
0e10dfebf1 am 2c345435: am 79a0ed58: Merge "Move the wallpaper beneath the keyguard." into klp-dev
* commit '2c345435458b8b6ad105bf14d3655e0f6836278b':
  Move the wallpaper beneath the keyguard.
2013-10-14 19:00:35 -07:00
Daniel Sandler
c963dfb27a am 596b1f86: am dd73ee4d: Add a config resource to enable translucent bars globally.
* commit '596b1f86ff1a3457a514e1d383d14ef0defc4d53':
  Add a config resource to enable translucent bars globally.
2013-10-14 19:00:10 -07:00
Craig Mautner
79a0ed5848 Merge "Move the wallpaper beneath the keyguard." into klp-dev 2013-10-14 22:24:44 +00:00
Craig Mautner
5800443e2d Move the wallpaper beneath the keyguard.
If the keyguard is the wallpaper target the wallpaper cannot sit at
the bottom of the stack and must be directly beneath the keyguard.
Otherwise keep it at the bottom of the window stack.

App animations when the keyguard is showing should not be disabled if
the keyguard is also animating.

Fixes bug 10858941.
Fixes bug 10932680.

Change-Id: I8399837f6510ea16003f68b165e67439f3571ef4
2013-10-14 13:52:28 -07:00
Daniel Sandler
dd73ee4d0a Add a config resource to enable translucent bars globally.
Setting config_enableTranslucentDecor to false will not
prevent clients from adding FLAG_TRANSLUCENT_NAVIGATION or
STATUS to the window or using the TransluentDecor themes,
but it will prevent View.STATUS_BAR_TRANSLUCENT and
View.NAVIGATION_BAR_TRANSLUCENT from being propagated to the
SystemUI so these requests will not be honored.

Bug: 11182618
Change-Id: I8be6a3a565acf0987ff12f18f1c7e67c96d563c3
2013-10-14 14:52:44 -04:00
John Spurlock
cf2d725b55 resolved conflicts for merge of f1dd32c8 to master
Change-Id: Ied96bfce952fa95eeceb1b8cf64e53830d4d03ac
2013-10-14 14:49:58 -04:00
Daniel Sandler
245f8a9501 resolved conflicts for merge of 5fa473cd to master
Change-Id: I097ac206c5232b0596d9d81baad3a501492335ca
2013-10-14 14:25:26 -04:00
John Spurlock
8c001353d7 am af97c1fc: am 5ca56cb9: am 1ae1373a: Merge "Wire up new hideycling ok button to persist setting." into klp-dev
* commit 'af97c1fc9c81d64e8576a47f27e9d8627d1cb60a':
  Wire up new hideycling ok button to persist setting.
2013-10-14 10:52:44 -07:00
Daniel Sandler
1093a85a29 am 0b6b0992: am 71352415: am ce6d9066: Merge "New window cling for immersive mode." into klp-dev
* commit '0b6b09929996f7b76210bedab281b93581af96ba':
  New window cling for immersive mode.
2013-10-14 10:51:52 -07:00
Craig Mautner
6817136509 am 76371f0f: am 2c1934d3: am 5a783173: Merge "Test for hidden keyguard before waiting for it." into klp-dev
* commit '76371f0f0e7db8b3eaad5db42d9eb41361382087':
  Test for hidden keyguard before waiting for it.
2013-10-14 10:50:06 -07:00
John Spurlock
f1dd32c84f am fc2ecd5e: am 774e8ad8: Merge "Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY." into klp-dev
* commit 'fc2ecd5e3f5b336f7955f4c02521ba6faad1e93c':
  Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY.
2013-10-14 10:29:12 -07:00
John Spurlock
f1a36648ca Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY.
Migrate transient bar mode to IMMERSIVE_STICKY, and
introduce new behavior for IMMERSIVE: namely the
opaque bars are revealed by clearing the flags on swipe.

Remove low-profile optimization that confuses api demos
and other apps using low-profile as a signal.

TransientNavigationConfirmation renamed to
ImmersiveModeConfirmation, and its associated resources,
since the confirmation is now shown when the nav bar is
shown in either of the two immersive modes.

Remove unused Toast.makeBar and associated hidden framework
bits now that the confirmation uses a cling instead.

Bug:11062108
Change-Id: Iae49d31973940b9bee9f5b1827756db5eaa76aa3
2013-10-14 13:11:21 -04:00
Daniel Sandler
5fa473cd47 am 782dbb85: am 69f49434: Merge "Limit transient nav cling to 380dp on large/land devices." into klp-dev
* commit '782dbb8580ba70c4d6d40b31e2a65665ebec9fee':
  Limit transient nav cling to 380dp on large/land devices.
2013-10-14 06:56:34 -07:00
Daniel Sandler
b83f5c6a42 Limit transient nav cling to 380dp on large/land devices.
Bug: 11077915
Change-Id: I141a5f3f565109ae5ac9221053e5a4db36633ca7
2013-10-14 09:26:43 -04:00
John Spurlock
af97c1fc9c am 5ca56cb9: am 1ae1373a: Merge "Wire up new hideycling ok button to persist setting." into klp-dev
* commit '5ca56cb9c9c8c770f58299f193e8e6497593b095':
  Wire up new hideycling ok button to persist setting.
2013-10-13 16:33:53 -07:00
John Spurlock
47e3de2baa Wire up new hideycling ok button to persist setting.
Otherwise you'll see it every time.

Bug:11077915
Change-Id: I2ec725459f6ec133c1b82e9788a80dede6e87343
2013-10-13 19:20:04 -04:00
Daniel Sandler
0b6b099299 am 71352415: am ce6d9066: Merge "New window cling for immersive mode." into klp-dev
* commit '71352415ef3927dba0661c190c627ba381e6745f':
  New window cling for immersive mode.
2013-10-13 12:35:48 -07:00
Daniel Sandler
a953b6d968 New window cling for immersive mode.
Bug: 11077915
Change-Id: I6858259b31301b76dee81d3e6fbc534c1cdea661
2013-10-13 15:28:19 -04:00
Craig Mautner
76371f0f0e am 2c1934d3: am 5a783173: Merge "Test for hidden keyguard before waiting for it." into klp-dev
* commit '2c1934d302730bf4dc9190bc600bee180067df3b':
  Test for hidden keyguard before waiting for it.
2013-10-11 21:58:55 -07:00
Craig Mautner
5a7831733b Merge "Test for hidden keyguard before waiting for it." into klp-dev 2013-10-12 04:54:42 +00:00
Craig Mautner
6f29590e9a Test for hidden keyguard before waiting for it.
Now that non-null window tokens are coming in in additional situations
(ag/372453) we have to look at whether the keyguard is hidden before
deciding to wait for it.

Fixes bug 1187500.

Change-Id: Ie89d5334ab3d0f5b8f2cf8c87fef84a9b6392b72
2013-10-11 21:43:06 -07:00
Jean-Michel Trivi
59ff7bd243 am 09872a35: am fb059f3c: am 7a6ccb87: Merge "Remote volume changes" into klp-dev
* commit '09872a35cb09fc8dbe97d443d083d6c5b0948b90':
  Remote volume changes
2013-10-11 14:21:10 -07:00
Jean-Michel Trivi
09872a35cb am fb059f3c: am 7a6ccb87: Merge "Remote volume changes" into klp-dev
* commit 'fb059f3c412733d962f99577f097e91c2badb10e':
  Remote volume changes
2013-10-11 14:17:43 -07:00
Jean-Michel Trivi
7a6ccb8729 Merge "Remote volume changes" into klp-dev 2013-10-11 21:12:22 +00:00
Jean-Michel Trivi
fca1e60323 Remote volume changes
When the user plays media remotely, and presses on the volume
 keys with the screen off, verify whether not only local playback
 is active, but also if remote playback is active to see if
 the volume should be adjusted.
When adjusting the volume with screen off, adjust the remote
 volume if applicable.

When controlling volume, give priority to local media playback.

Bug 11169862

Change-Id: I88a8c003969177d50d4c1569ec6cd2a7c153a341
2013-10-11 11:36:18 -07:00
Craig Mautner
6c9138f485 am 4279a61b: am 9ccc082c: am d69417d2: Merge "Reduce jank on incoming phone call during dream." into klp-dev
* commit '4279a61b04bcd0a07bb94bdfccb6e0b282ddb396':
  Reduce jank on incoming phone call during dream.
2013-10-11 09:57:10 -07:00
Craig Mautner
4279a61b04 am 9ccc082c: am d69417d2: Merge "Reduce jank on incoming phone call during dream." into klp-dev
* commit '9ccc082c9a6c41833206d54c85e115d6d1659a12':
  Reduce jank on incoming phone call during dream.
2013-10-11 09:54:30 -07:00
Craig Mautner
d69417d2f6 Merge "Reduce jank on incoming phone call during dream." into klp-dev 2013-10-11 16:49:55 +00:00
John Spurlock
aaa9ffebc0 am 89d1ac63: am cf80c6c7: am 8ca2d052: Merge "Fix dock rect calculation when nav is translucent." into klp-dev
* commit '89d1ac638d6f69a3d974487135407cd001366ea2':
  Fix dock rect calculation when nav is translucent.
2013-10-11 08:57:15 -07:00
John Spurlock
89d1ac638d am cf80c6c7: am 8ca2d052: Merge "Fix dock rect calculation when nav is translucent." into klp-dev
* commit 'cf80c6c73541bcfbc7f787834f9b9e7807f52ef8':
  Fix dock rect calculation when nav is translucent.
2013-10-11 08:55:36 -07:00
Craig Mautner
2881630af9 Reduce jank on incoming phone call during dream.
- Include dreams in the conditions that disable transition animations.
  This way there is no visibility of activities that are closing
  behind the keyguard when an activity that dismisses the keyguard
  starts up.

- Do not notify the keyguard mediator when the keyguard is dismissed
  because a dream is starting up. This keeps activities from resuming
  just because the keyguard is being dismissed.

Fixes bug 11064847.

Change-Id: I9d32fc96d518b1cdab511e187226a3cb889cf6d4
2013-10-10 20:31:00 -07:00
John Spurlock
f95b89a097 Fix dock rect calculation when nav is translucent.
Make sure the dock rect in PWM takes the nav bar height
into account when translucent.  This forms the basis of
many other window calculations, and has multiple downstream
effects.

Fixing this exposed the fact that the Keyguard was not allowed
to fall into the LAYOUT_HIDE_NAV codepath (since it's not an app
window) - so add TYPE_KEYGUARD to that path.

Bug:11157555
Change-Id: I6b1fc4da973a246b80ec108a561e06f6d8a6a92b
2013-10-10 22:18:56 -04:00
John Spurlock
aba437d9ba am 107c3fed: am a8c73fbd: am a619afd6: Merge "IME navigation guard implemented as a View." into klp-dev
* commit '107c3fed5c26ce2202b6c9394e14e30e49642c85':
  IME navigation guard implemented as a View.
2013-10-10 11:24:44 -07:00
John Spurlock
107c3fed5c am a8c73fbd: am a619afd6: Merge "IME navigation guard implemented as a View." into klp-dev
* commit 'a8c73fbd5c90a0d4eacc7aaedc0ca30cfcd5f621':
  IME navigation guard implemented as a View.
2013-10-10 11:21:37 -07:00
John Spurlock
57beb3b5b3 IME navigation guard implemented as a View.
Instead of a custom onDraw in order to stay 100% in sync with abrupt
layout changes.

Also use the unrestricted layout bottom to avoid unnecessary
fitSystemWindows churn.

Bug:11162351
Change-Id: If9bb9a52d503e348d642bf1238f75c4a418ad805
2013-10-10 12:54:05 -04:00
John Spurlock
ad8eef9db0 am 4faa694e: am d3758420: am 65e91126: Merge "Allow IMEs to extend below nav bar, remove SystemUI veto." into klp-dev
* commit '4faa694ed28db7961a2a37269e5706c2a49d87c3':
  Allow IMEs to extend below nav bar, remove SystemUI veto.
2013-10-09 15:13:57 -07:00
John Spurlock
4faa694ed2 am d3758420: am 65e91126: Merge "Allow IMEs to extend below nav bar, remove SystemUI veto." into klp-dev
* commit 'd3758420a2ffd702dee914d794764a0615dd6956':
  Allow IMEs to extend below nav bar, remove SystemUI veto.
2013-10-09 15:08:33 -07:00
John Spurlock
65e911261d Merge "Allow IMEs to extend below nav bar, remove SystemUI veto." into klp-dev 2013-10-09 21:57:01 +00:00
John Spurlock
c68d577f29 Allow IMEs to extend below nav bar, remove SystemUI veto.
Layout IMEs below the nav bar, offset by bottom padding and
associated guard rectangle with a black background to ensure
they do not appear as islands during transitions.

This makes it safe to remove the SystemUI forced opaque transition
when showing an IME, making the overall transition less expensive,
quicker and smoother overall.

Bug:11058746
Change-Id: I460912ee7c117480c57b947ed31eca330819f32c
2013-10-09 16:23:15 -04:00
Craig Mautner
caca4ab1a9 am f3366c9e: am af47d751: am e8a057a9: Merge "Remove overly tight constraint on drawn Keyguard." into klp-dev
* commit 'f3366c9ec87d0cba4a55bcf8369a61028db0e973':
  Remove overly tight constraint on drawn Keyguard.
2013-10-09 12:16:06 -07:00
Craig Mautner
f3366c9ec8 am af47d751: am e8a057a9: Merge "Remove overly tight constraint on drawn Keyguard." into klp-dev
* commit 'af47d751b39d7badc268d7a467078b92052f417b':
  Remove overly tight constraint on drawn Keyguard.
2013-10-09 12:13:53 -07:00
Craig Mautner
e8a057a9ae Merge "Remove overly tight constraint on drawn Keyguard." into klp-dev 2013-10-09 19:10:45 +00:00
Adam Powell
8a434894e4 am 91211072: am b43a22e3: am 79782d7c: Merge "Close context menu dialogs if the menu becomes empty" into klp-dev
* commit '91211072485e76e788e7fcc0e323b39ade9c6f94':
  Close context menu dialogs if the menu becomes empty
2013-10-09 09:11:57 -07:00
Craig Mautner
4e8a19c73a Remove overly tight constraint on drawn Keyguard.
The requirement that a window that is invisible will not be drawn is
incorrect. In particular the test fails before a surface has even been
added (mHasSurface == false) or shown (mPolicyVisibility == false).
This was causing the screen to turn on before Keyguard had been drawn
and exposing surfaces that would have normally remained hidden.

Also, don't pass null into KeyguardServiceDelegate.onShown() or we
will immediately turn the screen on before Keyguard is drawn.

Fixes bug 11062635.

Change-Id: I964c7ef186d0a94678020b9c27ca6b79e5433350
2013-10-08 21:32:37 -07:00