2611 Commits

Author SHA1 Message Date
John Spurlock
0513d5abb6 Show hideycling for non-primary users.
User 0 owns the window (system_server) but should be allowed
to display on a user's behalf.

Use the corresponding private flag for this system window, since
we cannot classify it by type (TYPE_TOAST) in policy.

Bug:12015090
Change-Id: I33aedb4624288415a5e1ae937676b693024546a9
2013-12-09 11:59:45 -05:00
Adam Powell
cfbe9be5b3 Add support for cross-activity scenes and transitions
* Add theme attributes for specifying a top-level TransitionManager
  for an activity window.

* Add window feature for automatic content transitions. This
  automatically assigns/creates a Scene for setContentView calls.

* Add named transitions. This allows apps to define APIs for
  handshake-agreements about which exit/entrance transitions to play.

* Add new transition type for ActivityOptions. This lets the system
  use ActivityOptions to communicate transition specifics and
  arguments to the called activity.

* Have ActivityManager pass appropriate ActivityOptions through to the
  called Activity. Have the called activity call back into the caller
  to let it know which transition of a possible requested set was
  chosen.

Still to do:

* Define and pass arguments for transitions. This will require
  defining a Parcelable version of TransitionValues and deciding how
  much leeway apps should have for these things.

* Determine how to appropriately filter the ActivityOptions bundle so
  that only appropriate data reaches the target.

* Determine if generalizing the auto-Scenes functionality to
  ViewGroups is appropriate.

Change-Id: I10684b926129ab2fbc1adec9ef31767237acae79
2013-12-05 10:06:19 -08:00
John Spurlock
414c1f0e86 Volume panel should not clear system ui flags.
Remove private WM flag (used only by the volume panel) to force
the clearable system UI flags clear.

Instead, always lay out the volume panel as if the bars are visible,
as we do for system dialogs - and don't clear the flags.

Reverts part of I25f29af5b6518aba695b64a75977ae240b742118

Bug:11986621
Change-Id: I842729d729d2a6eb2a687d0b930ddb160c6a1b57
2013-12-04 13:47:36 -05:00
John Spurlock
6090995951 Remove unused imports from frameworks/base.
Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
2013-11-20 11:31:47 -05:00
Alan Viverette
cac68c3f64 Merge "Deprecate Activity.setTitleColor()" 2013-11-15 23:47:53 +00:00
Alan Viverette
2525d9c843 Deprecate Activity.setTitleColor()
BUG: 11712103
Change-Id: Id34ffb59d3f848c591a98880c6cdd9058e5a38dc
2013-11-15 14:42:19 -08:00
Mike Lockwood
ed8902d3b5 Remove obsolete "headless" support
Change-Id: I18e7a4c5166163372ec0a8abbef1063668a0f5b6
2013-11-15 11:01:47 -08:00
Jim Miller
35f5bdd160 am fdf7c36d: am 378c804d: am c8867b28: Merge "Report keyguard as initially showing and secure until we know" into klp-dev
* commit 'fdf7c36daaeec8c6ad7872f81e1f9c3faf1a0e91':
  Report keyguard as initially showing and secure until we know
2013-11-13 18:48:36 -08:00
Jim Miller
fdf7c36daa am 378c804d: am c8867b28: Merge "Report keyguard as initially showing and secure until we know" into klp-dev
* commit '378c804d652f32547d3fe460842e5720b57bd9f1':
  Report keyguard as initially showing and secure until we know
2013-11-13 17:54:04 -08:00
Jim Miller
e5f17ab5a6 Report keyguard as initially showing and secure until we know
This fixes a bug where an app calls KeyguardManager.isLocked()
before keyguard has had a chance to show.  The fix is to assume
keyguard is showing and secure until we know otherwise.

Fixes bug 11670159

Change-Id: Ifbe4cdf40e3b76d2069ecace940f85fa58f31187
2013-11-13 15:40:48 -08:00
John Spurlock
0c574b72aa am bb3adc44: am da721a99: am 778eaf4b: Merge "Disallow transient status bar on the keyguard." into klp-dev
* commit 'bb3adc44dfdb02c087a79df85ddeceb770e9cfb2':
  Disallow transient status bar on the keyguard.
2013-11-11 20:52:19 -08:00
John Spurlock
bb3adc44df am da721a99: am 778eaf4b: Merge "Disallow transient status bar on the keyguard." into klp-dev
* commit 'da721a99febae345d28f9afa5b9679a1c54a2f6b':
  Disallow transient status bar on the keyguard.
2013-11-11 18:05:07 -08:00
John Spurlock
f92b6161b8 Disallow transient status bar on the keyguard.
FLAG_FULLSCREEN on the app under the keyguard was keeping
the transient status bar visible if the user locked while
revealing it.

Bug:11629810
Change-Id: I034d3a4f4fe5463702253a1fca6d32debd520c3c
2013-11-11 15:01:16 -05:00
Michael Wright
5f31a4bd90 Merge "Remove unnecessary input event indirection" 2013-11-08 23:25:37 +00:00
Michael Wright
c9c487e6d6 Remove unnecessary input event indirection
Rather than have a class whose sole job is to pass messages to
PointerLocationView, just have it consume them itself.

Change-Id: I889ce35d99852f746499c0585dc7c43378b4c3a0
2013-11-07 18:55:09 -08:00
John Spurlock
42bb698dbb am 9f6e8e03: am 94cab389: am 1e45fd78: Merge "Fix improperly hidden status bar." into klp-dev
* commit '9f6e8e0361ce615644208dd11adcbeed3265edc7':
  Fix improperly hidden status bar.
2013-11-07 16:54:08 -08:00
John Spurlock
9f6e8e0361 am 94cab389: am 1e45fd78: Merge "Fix improperly hidden status bar." into klp-dev
* commit '94cab389e4f81d454316789fb0a6fbe954080a08':
  Fix improperly hidden status bar.
2013-11-07 16:51:19 -08:00
John Spurlock
f25706fc3e Fix improperly hidden status bar.
An app lib exposed a possible timing problem, causing the bars
to remain hidden after screen rotation during immersive mode.

Bug:11440463
Change-Id: I5166bdce78a876bc08b18f8b9a340366fbbbb70a
2013-11-07 18:02:43 -05:00
Craig Mautner
660041f89f am a2dad41e: am 8ed10cff: am def34eb7: Merge "Ensure bar window state is SHOWING after rotate if visible." into klp-dev
* commit 'a2dad41e757b8de097491aedecca80387ba3af09':
  Ensure bar window state is SHOWING after rotate if visible.
2013-11-06 15:29:00 -08:00
Craig Mautner
a2dad41e75 am 8ed10cff: am def34eb7: Merge "Ensure bar window state is SHOWING after rotate if visible." into klp-dev
* commit '8ed10cff78460a0cc426dc5c1426a9edaafe3e67':
  Ensure bar window state is SHOWING after rotate if visible.
2013-11-06 15:26:49 -08:00
John Spurlock
c23bd80b38 Ensure bar window state is SHOWING after rotate if visible.
Bug:11544694
Change-Id: Ied56f01a931f33437bdc05d026006cabcdef0149
2013-11-06 17:09:51 -05:00
Adam Powell
18e905f42d Make Scenes and Transitions first-class in PhoneWindow/Themes
Add a window feature for content transitions. This implicitly creates
a Scene for each setContentView operation and runs the appropriate
transition. Applications can specify a TransitionManager XML in their
theme that will apply the appropriate transitions when these implicit
scene changes occur. Apps can specify a "to" with no "from" in a
transition to request an entrance transition for the given
content. This lays the groundwork for further full content
change/activity to activity transitions.

Change-Id: Ic815d9e0b9ce958152d70bf6ee01be075aa9fe88
2013-11-05 17:49:56 -08:00
Craig Mautner
ff060d8605 am e2f74638: am 1dbaf904: am 18612840: Merge "Force relayout at completion of status bar animation" into klp-dev
* commit 'e2f7463867d5e30a7e03c800fd907136b3152d1c':
  Force relayout at completion of status bar animation
2013-10-30 07:06:04 -07:00
Craig Mautner
e2f7463867 am 1dbaf904: am 18612840: Merge "Force relayout at completion of status bar animation" into klp-dev
* commit '1dbaf9044dcb8a9bb6300e438a05324189bd4d02':
  Force relayout at completion of status bar animation
2013-10-30 07:02:39 -07:00
Craig Mautner
81defc794b Force relayout at completion of status bar animation
A final layout pass should be done whenever the status bar has
completed its incoming animation.

Fixes bug 10387660.

Change-Id: I48c19015c53116b58cf73e20be32d1f64dd682ca
2013-10-29 11:32:30 -07:00
John Spurlock
e27564fbae am 759bc4f4: am 7539a5af: am 2f566900: Merge "Ensure the simple CAB appears below the status bar." into klp-dev
* commit '759bc4f421e01460cff92522bf70d52c53b79e85':
  Ensure the simple CAB appears below the status bar.
  Add 'no system permission' test app.
2013-10-23 10:24:23 -07:00
John Spurlock
759bc4f421 am 7539a5af: am 2f566900: Merge "Ensure the simple CAB appears below the status bar." into klp-dev
* commit '7539a5afa73e9d7bc77803295368542ef535f28c':
  Ensure the simple CAB appears below the status bar.
  Add 'no system permission' test app.
2013-10-23 10:20:09 -07:00
John Spurlock
a81736a74d Ensure the simple CAB appears below the status bar.
When the contextual action bar is not in overlay mode,
the screen layout is a linear layout.  (screen_simple.xml)

Ensure the standalone CAB appears below the status bar,
consumes the top offset (to avoid content application below it)
and fill in the status area with a guard view for background
protection.

Bug:10014069
Change-Id: I614f16dfa77367a94808aef54710ffebd66e1ca8
2013-10-22 13:51:52 -04:00
John Spurlock
cb65456fd3 am a5217f09: am 1eeb5ff2: am d4595bd1: Merge "Move the IME navigation guard view up to decor." into klp-dev
* commit 'a5217f09c5438d1954dd71e2f75de95b1d8f6721':
  Move the IME navigation guard view up to decor.
2013-10-19 10:11:08 -07:00
John Spurlock
a5217f09c5 am 1eeb5ff2: am d4595bd1: Merge "Move the IME navigation guard view up to decor." into klp-dev
* commit '1eeb5ff203a4aea5a4cfbe6c9982dc77cabd1f2b':
  Move the IME navigation guard view up to decor.
2013-10-19 10:07:48 -07:00
John Spurlock
ae3349e1c3 Move the IME navigation guard view up to decor.
Although the IME windows are now allowed to extend into
the nav bar, some IMEs were making assumptions about
computed insets based on the height of the content view.

So our navigation bar view (opaque view blocking the nav bar
area to avoid the island effect when transparent) needs to live
above the content view in the hierarchy, making the content view
the same height as it was before.

A surgical spot to put the guard view is up at the root view
(PhoneWindow.DecorView).  fitSystemWindows is always called since
this view is not recreated, and the layout is stable: waiting until
the IME is attached to the window is too late to add a guard view.

This is above the screen_* layouts, so will work without having to
touch all of them.  And it only affects windows of TYPE_INPUT_METHOD.

Bug:11237795
Change-Id: I6a93f30aec83f1cecfb854073046cbc87ab4aa66
2013-10-18 18:41:22 -04:00
John Spurlock
e255d4e78a am 18e82e79: am 0945bc15: am ac2d61a2: Merge "Do not show immersive mode help in touch exploration mode." into klp-dev
* commit '18e82e7928ec57f7e39e1aa24f8ecbeb40f5e35d':
  Do not show immersive mode help in touch exploration mode.
2013-10-18 14:20:35 -07:00
John Spurlock
18e82e7928 am 0945bc15: am ac2d61a2: Merge "Do not show immersive mode help in touch exploration mode." into klp-dev
* commit '0945bc15034ac05d2ca803f6297b03dcbcbea2d8':
  Do not show immersive mode help in touch exploration mode.
2013-10-18 14:15:29 -07:00
John Spurlock
ac2d61a2d7 Merge "Do not show immersive mode help in touch exploration mode." into klp-dev 2013-10-18 21:08:58 +00:00
Daniel Sandler
900ece502f Do not show immersive mode help in touch exploration mode.
Bug: 11277364
Change-Id: Ifafcbff38e34c0ef08d9a466d93ce591369183a3
2013-10-18 16:05:07 -04:00
Daniel Sandler
2ed278fdf8 am 06e75cf4: am 62c19871: am da35dded: Relayout the immersive cling in the correct thread.
* commit '06e75cf4ed8d42e5ef5273503bab4ceea6cd07d6':
  Relayout the immersive cling in the correct thread.
2013-10-18 11:45:42 -07:00
Daniel Sandler
06e75cf4ed am 62c19871: am da35dded: Relayout the immersive cling in the correct thread.
* commit '62c198719afa30eaaa0fe52caed5ed8c520ba6ce':
  Relayout the immersive cling in the correct thread.
2013-10-18 11:43:14 -07:00
Daniel Sandler
da35dded4d Relayout the immersive cling in the correct thread.
Bug: 11266364
Change-Id: Ia629262ff0c362a5a45b6c5822be080cefcb8c56
2013-10-18 12:05:04 -04:00
Jim Miller
e400a2900d am 53caf875: am 01491271: am 53cb242f: Merge "Fix issue where keyguard adds widgets before the system is ready" into klp-dev
* commit '53caf87531372048d4171626e767eeeb94ec664c':
  Fix issue where keyguard adds widgets before the system is ready
2013-10-17 16:27:02 -07:00
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