86285 Commits

Author SHA1 Message Date
Jeff Brown
8b9cf1c800 Reduce screen on latency, eliminate flashes.
Always use the ElectronBeam now, even when we are only animating
the backlight so that we will have a black surface remaining
on the screen after the screen turns off.

When turning on the screen, keep the black surface showing until
we unblock screen on then dismiss it as usual.

This change eliminates the flashing of old display content when
the screen is turned on.  It also helps to conceal some of the
latency of turning the screen on.  We always turn the screen on
immediately (even when screen on has nominally been blocked) and
rely on the black surface to hide the screen contents until the
last moment.  Dismissing the black surface is practically
instantaneous compared to turning the screen on.

Bug: 7299370
Bug: 7139924
Change-Id: I57d13287acd05bd0a48811095bb02dc7bc7cbeb6
2012-10-07 14:54:17 -07:00
Dianne Hackborn
6309271f7b Fix issue #7295951: Mako asks which Launcher to use at every re-boot
A couple problems:

- We need to clear app preferences later, now that we have encrypted apps.
- The multi-user implementation of this would allow different preferred
  apps from different users to potentially interefere with each other.
  They are not completely separate data structures.

Change-Id: Id4f1ebb6414fdf30ff1049adaa1efe83dabac01a
2012-10-07 14:45:35 -07:00
Daniel Sandler
b88311685c Merge "Notification & settings panel help." into jb-mr1-dev 2012-10-07 13:51:57 -07:00
Adam Cohen
5745a6763a Merge "Suppress unnecessary calls to update widget size (issue 7287744)" into jb-mr1-dev 2012-10-07 12:38:33 -07:00
Daniel Sandler
af3f32d9a4 New icon for "Sleep now."
Should only be shown in the docking intent chooser, but if
you use AnyCut to link to the Somnambulator you'll see it
there as well.

Bug: 7267723
Change-Id: I4be7572e4785f35b4ac1ad91d03a617d5d2fe3c1
2012-10-07 15:03:42 -04:00
Craig Mautner
138f272bfc Merge "Save resized windows even if freezing." into jb-mr1-dev 2012-10-07 11:50:55 -07:00
Craig Mautner
33877e15b8 Merge "Adds showWhenLocked attribute to Activities." into jb-mr1-dev 2012-10-07 11:48:50 -07:00
Daniel Sandler
b17a726f2f Notification & settings panel help.
Comes up the first time you touch the status bar; explains
where quick settings is, and even allows you to swipe down
to try it (instead of touching "OK").

Bug: 7209412
Change-Id: I72b1a91902e64b4623e0fcaf1555dc703870b59f
2012-10-07 14:48:24 -04:00
Adam Powell
786d10921b Merge "Quick settings user display and switching" into jb-mr1-dev 2012-10-07 11:33:29 -07:00
John Spurlock
7711260e49 Merge "Keep quick settings brightness icon/dialog level in sync." into jb-mr1-dev 2012-10-07 06:39:23 -07:00
John Spurlock
fc6825b1b7 Merge "Update quick settings wireless display tile per spec." into jb-mr1-dev 2012-10-07 06:33:42 -07:00
Jeff Brown
140cdb7a5d Merge "Allow the dim brightness to be brighter than the minimum." into jb-mr1-dev 2012-10-06 22:53:40 -07:00
Jeff Brown
2ec390d1ea Merge "Increase lock screen timeout when on custom widget page." into jb-mr1-dev 2012-10-06 22:51:59 -07:00
Jeff Brown
c7505bc9dd Increase lock screen timeout when on custom widget page.
Bug: 7290676
Change-Id: I93c48fb24adb24d16ec278a4fdd51a13a85a96c3
2012-10-06 14:25:09 -07:00
Craig Mautner
ade0a9a938 Save resized windows even if freezing.
During app freezes resized windows were being dropped if the freeze
window timed out. This fix adds windows to the list of resized
windows but does not notify the clients of the resize until freezing
is completed.

Bug: 7094175 fixed.
Change-Id: Iee1f5f532a0e661fbf900e4540146ae4b645d68e
2012-10-06 13:55:07 -07:00
Craig Mautner
5962b12bed Adds showWhenLocked attribute to Activities.
The new attribute allows an Activity such as the alarm to appear
on all users screens.

Bug: 7213805 fixed.
Change-Id: If7866b13d88c04af07debc69e0e875d0adc6050a
2012-10-06 13:09:58 -07:00
Jeff Brown
b76eebff47 Allow the dim brightness to be brighter than the minimum.
Defines the lower end of the allowable screen brightness range
as the lesser of the dim level, the user brightness setting
minimum value and the lowest auto-brightness level.

Bug: 7295909
Change-Id: I7a72b4611631f9e51578205ff12898c5bae02b1b
2012-10-06 12:37:47 -07:00
Svetoslav Ganov
1ad0fd9c04 Merge "Accessibility active window not updated on time." into jb-mr1-dev 2012-10-06 12:17:56 -07:00
Svetoslav Ganov
f81dc4c08b Merge "Screen magnification cannot be engaged in landscape on a phone." into jb-mr1-dev 2012-10-06 12:11:29 -07:00
Dianne Hackborn
52177738e8 Merge "Fix issue #7296314, issue #7296314." into jb-mr1-dev 2012-10-06 11:08:17 -07:00
John Spurlock
48f37ec8c9 Keep quick settings brightness icon/dialog level in sync.
We now listen for brightness changes and update the icon appropriately.
Note there are still only two icon states in QS (auto-on and auto-off).

We also listen for user switches, since the brightness setting is per-user.

The manual brightness level is now kept in sync with level set in Settings.

This change is tightly scoped to brightness only.  Any other
QS bugs should be triaged separately.

Bug:7283805
Change-Id: Ibaf8fe94e98f65cc02efe7fcddf4f38370fdb09f
2012-10-06 11:57:52 -04:00
Adam Powell
6f2a3d2982 Quick settings user display and switching
Load user information for the current user and display in quick
settings tile. Name is pulled from the contacts DB from the "Me"
profile, which will override the raw name on the system user if
needed.

Open the user switcher on the lock screen if this tile is clicked and
there is more than one user registered on the system. If there is only
one user, show the "Me" quick contact card.

Darken the background protection behind the user's name on the QS tile
layout so that it's readable against very light profile pic
backgrounds.

Bug 7175023
Bug 7257997

Change-Id: Ia1e7dd7af72dbd49113a827f9228e0a32e20a0dc
2012-10-05 22:36:13 -07:00
Dianne Hackborn
4c1e3183ba Fix issue #7296314, issue #7296314.
7296314 Crashing dreams are stuck
7296510 Transition from lock screen to dreaming is really bad

The window layer for dreams is now moved down below the keyguard,
so that some of the expected stuff like crash and ANR dialogs can
be seen on top of them.  While doing this, I reorganized how we
define the layers so the constants are just in the switch statement,
so it is much less crazy-making trying to read how things go
together.

We now have some special cases for when a dream is being shown
to turn off its animation if the keyguard is currently shown.
Since we know it will be hiding the keyguard we need it to be
shown immediately so that you don't see whatever is behind it.

Cleaned up some handling of when the lock screen is displayed
while a FLAG_SHOW_WHEN_LOCKED window is displayed, so that the
lockscreen doesn't transiently get shown and mess up the fullscreen
or system UI state.  This also fixes problems with any normal
activity that is doing this.

Hid the methods on DreamService for setting lights out mode.  It
doesn't make sense to have such methods on DreamService, because
you can just as well do that on your own View that is showing the
dream content, and when you can do that you can fully participate
in the (required) interactions about it such as being told when
the mode goes away.

The DreamService method for going fullscreen now uses the window
flag for doing this, which is what you want, because you want this
state to persistent on that window and not get knocked out if
something above the window tickles the system UI state.

Also fixed the problem where dreams that hid the status bar would
have a jerky animation when going away, since they were causing the
activity behind them to be layed out without the lock screen.  This
is a kind-of ugly special case in the window manager right now to
just not layout windows that are behind a dream.  Good enough for MR1.

Change-Id: Ied2ab86ae068b1db0ff5973882f6d17b515edbcd
2012-10-05 20:38:31 -07:00
Svetoslav Ganov
d9c99124d4 Merge "Incorrect temporary detach of accessibility focused view may lead to a crash." into jb-mr1-dev 2012-10-05 20:04:37 -07:00
Jeff Brown
4d12d5be8f Merge "Recover from bad input event timestamps from the kernel." into jb-mr1-dev 2012-10-05 19:44:36 -07:00
Svetoslav Ganov
a7bcb546bc Screen magnification cannot be engaged in landscape on a phone.
1. The reason is that the screen magnifier computes that the whole
   screen is not magnifiable. The miscalculation was caused due to
   an incorrect assumption that the non-magnified area is only at
   the bottom. In fact, on a phone in landscape the non-magnified
   area is both on the right and at the bottom. This change adds
   a correct algorithm for computing the magnified region.

2. Increasing the delay for computing the magnified area when the
   keyguard goes away to allow all windows hidden by the keyguard
   to be shown. In rare occasions the previous delay was not long
   enough resulting in a state where the keyboard is considered
   a part of the magnified region.

3. Removed some dead code.

bug:7293097

Change-Id: Ic5ff91977df8bcf4afd77071685c3eb20555d4f3
2012-10-05 19:39:26 -07:00
Jeff Brown
f33b2b2b24 Recover from bad input event timestamps from the kernel.
This can happen due to a race when the input device is
opened or if the kernel happens to be missing the required
Android patches to set the timestamp correctly.

Bug: 7291243
Change-Id: If4319440eaff2889147c86296abd39efc5664346
2012-10-05 19:33:28 -07:00
Chris Craik
b30cb10a0c Use offset in line drawing
Partial revert of cb4d6009

bug:7299070
Change-Id: I1db7b035e3015e0f6d15c95aef71ea74dbeca13e
2012-10-05 19:14:02 -07:00
Amith Yamasani
b71ccfcf9b Merge "Fix widget cross-talk between users due to Settings widget" into jb-mr1-dev 2012-10-05 19:13:46 -07:00
Dirk Dougherty
2b1cab00d1 am 42bf1848: am daf69014: am a4c7176d: Merge "Doc change: Add core quality and tablet quality docs and spotlight." into jb-dev-docs
* commit '42bf1848fef341f4da38d6342856a189adada8d2':
  Doc change: Add core quality and tablet quality docs and spotlight.
2012-10-05 19:07:43 -07:00
Dirk Dougherty
42bf1848fe am daf69014: am a4c7176d: Merge "Doc change: Add core quality and tablet quality docs and spotlight." into jb-dev-docs
* commit 'daf69014b5f25accae38dfef3d5880b4b7b87f8b':
  Doc change: Add core quality and tablet quality docs and spotlight.
2012-10-05 19:06:06 -07:00
Dirk Dougherty
daf69014b5 am a4c7176d: Merge "Doc change: Add core quality and tablet quality docs and spotlight." into jb-dev-docs
* commit 'a4c7176dbc5193085ba3f2f602d16adac12cfa63':
  Doc change: Add core quality and tablet quality docs and spotlight.
2012-10-05 19:03:51 -07:00
Dirk Dougherty
a4c7176dbc Merge "Doc change: Add core quality and tablet quality docs and spotlight." into jb-dev-docs 2012-10-05 19:01:06 -07:00
Dirk Dougherty
bfe4362a4c am 07afab6b: am 34765caf: am d8a4a72a: Merge "Doc change: edits to distribute content." into jb-dev-docs
* commit '07afab6bd4ef390f97096f14a2bb3d5852836b4c':
  Doc change: edits to distribute content.
2012-10-05 18:56:40 -07:00
Svetoslav Ganov
f772cba597 Accessibility active window not updated on time.
1. The active window is the one the user is touching or the one
   that has input focus. It has to be made current immediately
   after the user has stopped touching the screen because if the
   user types with the IME he should get a feedback for the
   letter typed in the text view which is in the input focused
   window. Note that we always deliver hover accessibility events
   (they are a result of user touching the screen) so change of
   the active window before all hover accessibility events from
   the touched window are delivered is fine.

bug:7296890

Change-Id: I1ae87c8419e2f19bd8eb68de084c7117c66894bc
2012-10-05 18:56:26 -07:00
Dirk Dougherty
07afab6bd4 am 34765caf: am d8a4a72a: Merge "Doc change: edits to distribute content." into jb-dev-docs
* commit '34765caf6543bce8a4669563eb21f0077d4e2d26':
  Doc change: edits to distribute content.
2012-10-05 18:54:45 -07:00
Dirk Dougherty
34765caf65 am d8a4a72a: Merge "Doc change: edits to distribute content." into jb-dev-docs
* commit 'd8a4a72ab5f99d2dc5e95a07d9e3eb6ada40da6b':
  Doc change: edits to distribute content.
2012-10-05 18:52:13 -07:00
Dirk Dougherty
d8a4a72ab5 Merge "Doc change: edits to distribute content." into jb-dev-docs 2012-10-05 18:50:03 -07:00
Svetoslav Ganov
c886060272 Incorrect temporary detach of accessibility focused view may lead to a crash.
1. If an app naither reattaches nor removes detached view that has
   accessibility focus, an exception in the drawing of accessibility
   focus occurs since we are trying to compute the focused rect by
   offseting the bounds of the focused view in coords of the root
   but the focused one is not attached.

bug:7297191

Change-Id: Ib69d52e474b8ea365754f5311f5e809bd757dd1a
2012-10-05 18:47:13 -07:00
Dirk Dougherty
9aeb0a81da Doc change: Add core quality and tablet quality docs and spotlight.
Change-Id: Ia88e66818200fdc20417c0fe20672a5758284028

Conflicts:

	docs/html/distribute/googleplay/quality/core.jd
	docs/html/distribute/googleplay/quality/index.jd
	docs/html/distribute/googleplay/quality/tablet.jd
2012-10-05 18:47:10 -07:00
Adam Cohen
a21bf0c6ea Suppress unnecessary calls to update widget size (issue 7287744)
Change-Id: I2cec03a32b42f7a56e0f538dcd5c09de4ce2e076
2012-10-05 18:20:46 -07:00
Satoshi Kataoka
f948500239 Merge "Fix the issue on the input method switch picker" into jb-mr1-dev 2012-10-05 17:59:09 -07:00
Svetoslav Ganov
020daada9d Merge "Accessibility focus not cleared on temporary detach." into jb-mr1-dev 2012-10-05 17:33:36 -07:00
Jim Miller
5a3322fec3 Merge "Fix unresponsive back button in keyguard." into jb-mr1-dev 2012-10-05 17:29:36 -07:00
Svetoslav Ganov
8d0739da7f Accessibility focus not cleared on temporary detach.
1. There was a path for removing a view without clearing its accessibility focus.
   Then when we try to draw the focused rectangle we get an exception since the
   accessibility focused view is not attached to the view tree when computing
   the location of the rectangel to draw.

bug:7297191

Change-Id: I81e3c35e830e27cf95e73accb665629d0c456afb
2012-10-05 17:26:49 -07:00
Amith Yamasani
8320de8e29 Fix widget cross-talk between users due to Settings widget
Bug: 7247911
Bug: 7294899

Also did some cleanup of unused code that resulted from refactoring
the app widget service. Fixed a few more ambiguous calls that weren't
using the correct user id.
Added some logging and improved the dump() formatting.

Change-Id: I27abb5c6341458e1e50a2cc9ab67e8de573ab283
2012-10-05 17:24:37 -07:00
Jim Miller
0a34d9edf0 Fix unresponsive back button in keyguard.
When keyguard doesn't have focus, events weren't being propagated to
keyguard properly.  The fix is to grab the back-button event from the
top-level view and handle it there.

Change-Id: Ied9761919cff30173f43f03e4c2a1732387e618e
2012-10-05 17:15:41 -07:00
Jeff Brown
fdcb2257d2 Merge "Fix a deadlock involving BatteryService." into jb-mr1-dev 2012-10-05 17:11:14 -07:00
Scott Main
6409e445fb am 1c2056d6: am 98d4d719: am 2ed01adc: a few more crosslinks for design guide (to other design docs or dev docs)
* commit '1c2056d6a5578f8c878535a3fb79a385ed1639d9':
  a few more crosslinks for design guide (to other design docs or dev docs)
2012-10-05 17:07:58 -07:00
Scott Main
1c2056d6a5 am 98d4d719: am 2ed01adc: a few more crosslinks for design guide (to other design docs or dev docs)
* commit '98d4d7196870205d5d93df330bdef0c23fcaf2c0':
  a few more crosslinks for design guide (to other design docs or dev docs)
2012-10-05 17:05:55 -07:00