865 Commits

Author SHA1 Message Date
Dianne Hackborn
7cbbb8b1a3 am 69666e07: Merge "Fix issue #5229575: Youtube link shared through messaging is not..."
* commit '69666e078152362b19d02d9ee79bbd5fc69e09c3':
  Fix issue #5229575: Youtube link shared through messaging is not...
2011-09-01 16:54:23 -07:00
Dianne Hackborn
69666e0781 Merge "Fix issue #5229575: Youtube link shared through messaging is not..." 2011-09-01 15:54:43 -07:00
Mike Lockwood
2cdc92b78d am 6c79bcf3: Merge "Show back button in status bar when in an activity in front of the lockscreen."
* commit '6c79bcf351aa1dc2929f9e876ee794b98f165b80':
  Show back button in status bar when in an activity in front of the lockscreen.
2011-09-01 13:28:10 -07:00
Dianne Hackborn
ba24e4d8bb Fix issue #5229575: Youtube link shared through messaging is not...
...opening after selecting option "Youtube" as a luncher.

Also:

* Tweak window animations so that the wallpaper exist animations do not
stop too early (causing the wallpaper to suddenly disappear).
* Make sure no input is being processed while booting, to avoid
accidentally doing things especially in the upgrade dialog.
* Some other small cleanup.

Change-Id: I40a6b53731991d4e31ac4502e3d85f0e47507481
2011-09-01 12:39:17 -07:00
Mike Lockwood
e3646dd8d9 Show back button in status bar when in an activity in front of the lockscreen.
When the lockscreen is up we still enable the home and recent app buttons,
but the back button is only enabled if the lockscreen is not obscured by other activities

Fixes problem escaping from the DeskClock app when the screen is locked.

Bug: 5206013

Change-Id: I68c9e4513018f51e2ee4fc11254e42ecbef834e4
Signed-off-by: Mike Lockwood <lockwood@android.com>
2011-09-01 13:56:25 -04:00
Dianne Hackborn
8aab8b5759 am 1434ab98: Merge "Use floating point window positions."
* commit '1434ab98e690cbcfcdcd2296b491a44bff14cc55':
  Use floating point window positions.
2011-08-31 14:22:37 -07:00
Dianne Hackborn
d040edbae9 Use floating point window positions.
Gets rid of gapps between windows during animations.

Change-Id: I17d2ef0af214008f0eabd7eb19268f145fe83b39
2011-08-31 14:18:32 -07:00
Jeff Brown
79753f387a am 9d4bc852: Merge "Fix input channel leak. Bug: 5156144"
* commit '9d4bc852ea459c2a4347a87ce0357b3328a25db8':
  Fix input channel leak. Bug: 5156144
2011-08-31 13:03:26 -07:00
Jeff Brown
9d4bc852ea Merge "Fix input channel leak. Bug: 5156144" 2011-08-31 13:01:16 -07:00
Jeff Sharkey
92fbf93767 am 27c6837d: Merge "Disable clock in lockscreen; better flag logic."
* commit '27c6837d57be4e3a8de9b5d31ee5ee6da8675d1a':
  Disable clock in lockscreen; better flag logic.
2011-08-30 22:53:55 -07:00
Jeff Sharkey
f52c70b2cc Disable clock in lockscreen; better flag logic.
When showing lockscreen, hide clock and navigation.  Clean up logic
to be easier to understand.

Bug: 5112812
Change-Id: I20e3563aa36644db678c7839d47f01f223fe8d37
2011-08-30 22:30:07 -07:00
Jeff Brown
cc4f7db698 Fix input channel leak.
Bug: 5156144

Input channels could leak or simply live longer than they should
in some cases.

1. Monitor channels (used by the pointer location overlay) are never
   unregistered, so they would leak.

   Added code to handle failures in the receive callback by closing
   the input channel.

2. The DragState held onto its input window and application handles
   even after the input channel was disposed.

   Added code to null these handles out when they are no longer needed.

3. Input channels previously used as input event targets would stick
   around until the targets were cleared (usually on the next
   event).

   Added code to detect when the input dispatcher is in
   an idle state and to proactively clear the targets then
   to ensure that resources are released promptly.

4. Native input window handles held onto the input channel even
   after the input window was removed from the input dispatcher.
   Consequently, the input channel would not be disposed until
   the input window handle itself was freed.  Since the input
   window handle is held from managed code, this meant that the
   window's input channel could stick around until the next GC.

   Refactored the input window handle to separate the properties
   (info) and identify (handle) state into different objects.
   Then modified the dispatcher to release the properties (info)
   when no longer needed, including the input channel.

7. The pointer location overlay does not actually use its
   standard input channel, only the monitor input channel.

   Added INPUT_FEATURE_NO_INPUT_CHANNEL to allow windows to
   request that they not be provided with an input channel
   at all.

Improved some of the error handling logic to emit the status
code as part of the exception message.

Change-Id: I01988d4391a70c6678c8b0e936ca051af680b1a5
2011-08-30 21:40:28 -07:00
Jim Miller
3a34149c13 am 476769b4: Merge "Fix 5044158: Integrate music transport control into LockScreen"
* commit '476769b42f38ebf943ea859d98faa94fdc38eec1':
  Fix 5044158: Integrate music transport control into LockScreen
2011-08-29 18:32:42 -07:00
Jim Miller
1c18828d20 Fix 5044158: Integrate music transport control into LockScreen
This integrates a new version of TransportControlView into LockScreen
and adds plumbing to handle new AudioService events to show/hide the view
and updates the required assets for all devices.

Updated to use new AudioManager API. Since the current API only supports
one RCD, the handler now lives in TransportControlView.

Change-Id: I220d4dd760bef35bd84209adc3c5829bf5bc9a2c
2011-08-29 18:29:21 -07:00
Jim Miller
c1a9ce0b70 am f0eb7655: Merge "Fix 5044158: Reduce overall memory footprint of lockscreen"
* commit 'f0eb7655ac897ca06034296f7674b73a65f0e8a9':
  Fix 5044158: Reduce overall memory footprint of lockscreen
2011-08-29 16:33:51 -07:00
Jim Miller
4ae8cb9e73 Fix 5044158: Reduce overall memory footprint of lockscreen
On devices that do not require showing lock before unlock, we now only create
just the unlock screen.  In addition to simplifying the code, this also
prevents keeping around a potentially unusued lock screen and saves ~1MB
in the system process on devices with only a secure lockscreen.

Change-Id: I533f2692b44a7991d4850cecc874c76166e7ce71
2011-08-29 16:02:24 -07:00
Adam Powell
c020c3f899 am 890be6b9: Merge "Fix bug 5217267 - Action bars and menu shortcuts"
* commit '890be6b919ce0c65d018a2dc40a6a1d59bc2b14d':
  Fix bug 5217267 - Action bars and menu shortcuts
2011-08-29 15:17:14 -07:00
Adam Powell
6055f3e0d6 Fix bug 5217267 - Action bars and menu shortcuts
Don't try to "close" the menu after completing a shortcut action if an
action bar is present.

Change-Id: I54a75543cf9a52e3186ff464924a0b37d0b20b9d
2011-08-29 11:41:13 -07:00
Jim Miller
1479e48302 am 816879f2: Merge "Fix 5216579: Don\'t show IME switch option in numeric mode of lockscreen"
* commit '816879f2d57a22394816b5a405f9e15e6ac56b3b':
  Fix 5216579: Don't show IME switch option in numeric mode of lockscreen
2011-08-28 15:11:56 -07:00
Jim Miller
816879f2d5 Merge "Fix 5216579: Don't show IME switch option in numeric mode of lockscreen" 2011-08-28 15:10:27 -07:00
Jim Miller
b0166bc62f Fix 5216579: Don't show IME switch option in numeric mode of lockscreen
Since LockScreen provides its own PIN entry keyboard, we don't need to show
the IME switcher button.

Change-Id: I04528acaee66e5109d631c0c79a3e7c64876e4c5
2011-08-28 15:00:29 -07:00
Svetoslav Ganov
e9709dcfda am d96dbbe3: Merge "Lock screen should be kept on while it is touch explored."
* commit 'd96dbbe3356d6863c13134e545d281a56443f9b1':
  Lock screen should be kept on while it is touch explored.
2011-08-26 18:19:50 -07:00
Svetoslav Ganov
d96dbbe335 Merge "Lock screen should be kept on while it is touch explored." 2011-08-26 18:18:04 -07:00
Dianne Hackborn
66e295b9a7 am 123adee3: Merge "Fix issue #5214105 and work on issue #5109947."
* commit '123adee398361809beaeddf2f3c073c0283b1e62':
  Fix issue #5214105 and work on issue #5109947.
2011-08-25 13:28:00 -07:00
Dianne Hackborn
295e3c27e4 Fix issue #5214105 and work on issue #5109947.
Change-Id: Iff2cfec5280a314989d915aa830c16124f921611
5214105: taking a screenshot while "Android is upgrading..." crashes device
5109947: Race condition between retrieving a content provider and updating its oom adj
2011-08-25 13:19:08 -07:00
Svetoslav Ganov
2e1db30d18 Lock screen should be kept on while it is touch explored.
1. The lock screen goes off after a certain timeout but a blind
   user performing touch exploration of that screen needs more
   time to find controls and interact with them. Therfore, we
   reset the lock timeout by poking the wake lock on the last
   hover event so the lock timeout will start ticking after
   the user has stopped interacting with the lock screen.

bug:5133879

Change-Id: I340d2a820e90f6fd63a45d65a5457ce6e570189c
2011-08-25 11:11:40 -07:00
Jason Simmons
df6bb0a7ee resolved conflicts for merge of 33264596 to ics-aah
Change-Id: I1b0b2c3a63d97d49940666ceec71293bdbab4e2e
2011-08-25 09:57:48 -07:00
Dianne Hackborn
29aae6f36e Fix issue #4279860: previous UI flashes before showing lock screen...
...(when turning display on after recently turning it off)

Also clean up when we decide to turn the screen on to improve that
transition.  There are still problems here with turning it on
before the wallpaper gets dispayed.

Change-Id: I2bc56c12e5ad75a1ce5a0546f43a845bf0823e66
2011-08-23 17:44:52 -07:00
Adam Powell
73ee35e880 am 4af9ce06: Merge "Fix bug 5202226 - Leave menu button visible for no-button phones if targetSdk < ICS"
* commit '4af9ce060d71cb2774731dcc48f844ef9b7145d5':
  Fix bug 5202226 - Leave menu button visible for no-button phones if targetSdk < ICS
2011-08-23 14:16:53 -07:00
Adam Powell
82349c54ce Fix bug 5202226 - Leave menu button visible for no-button phones if
targetSdk < ICS

Compatibility support for existing apps. Apps in the wild that
properly target <=GB phones and HC tablets should be able to expect
that their small-screen UI will continue to work as intended on ICS
devices. Make sure that we show the soft menu button in the nav bar if
the current device was not officially supported in Honeycomb, the app
does not target ICS or newer, and the window does not have an action
bar.

Change-Id: I069c30841d3827a60ef8040831fde6f4c051d0ee
2011-08-23 14:12:06 -07:00
Mathias Agopian
6b27a8f38b am 67403e09: BLUR_BEHIND flag is not supported anymore
* commit '67403e096e6f59b7cd18a90d0d3f5c3d17c31407':
  BLUR_BEHIND flag is not supported anymore
2011-08-22 20:07:40 -07:00
Mathias Agopian
67403e096e BLUR_BEHIND flag is not supported anymore
Bug: 5185650
Change-Id: I56541d4967b90b150a734be1bbeff696eb6a4fb3
2011-08-22 20:03:58 -07:00
Jason Simmons
4fbb071fe8 resolved conflicts for merge of 661cd52e to ics-aah
Change-Id: I5eb4154ab969a5367e9f597595c09b5e499174d0
2011-08-22 16:39:16 -07:00
Dianne Hackborn
661cd52e0e Add progress dialog for booting after an upgrade.
This introduces a new facility for code during the boot process
to display messages to the user through a progress dialog.  This
is only for use when performing longer-than-usual post-upgrade
operations such as running dexopt on applications or upgrading
databases.

Change-Id: I0e78439ccec3850fb67872c22f235bf12a158dae
2011-08-22 13:42:05 -07:00
Jim Miller
b63b48b407 am 5e82bc03: Merge "Fix 5026428: Rework unlock attempt logic with active DPM to show better messages"
* commit '5e82bc038385edcb669b44659401fb83dab9c880':
  Fix 5026428: Rework unlock attempt logic with active DPM to show better messages
2011-08-22 13:38:20 -07:00
Jim Miller
4f36995777 Fix 5026428: Rework unlock attempt logic with active DPM to show better messages
Prior to this change, we didn't have a mechanism to warn the user when
they were approaching the wipe data threshold dictated by active DPMs.

Here's the new flow:

- If a device policy manager is installed and sets the max
password attempts, we start warning the user when they are within
a grace period of hitting the max (currently hard-wired to 5).

- We continue to show a dialog after each continued attempt
until the user reaches 0 remaining attempts.

- We now show a message when they hit 0 so they know why their device is
being reset.  The device will reboot and wipe data shortly after this final
dialog is shown.

Also increased the criteria for a pattern attempt from 3 dots to 4 dots
since the user can never set a pattern less than 4 in length. This will
greatly reduce the likelihood of a false wipe on the pattern unlock screens
without compromising security.

Change-Id: I28825ef21dfa2e2b6540e743252c6d50c41e5ad7
2011-08-21 13:57:01 -07:00
Jim Miller
091fa8d529 am 6d978428: Merge "Fix 5021968: Add input method switcher button to lock screen."
* commit '6d97842849bed82affbd45251529f85f0958a6b8':
  Fix 5021968: Add input method switcher button to lock screen.
2011-08-19 16:32:35 -07:00
Jim Miller
6d97842849 Merge "Fix 5021968: Add input method switcher button to lock screen." 2011-08-19 16:30:13 -07:00
Jim Miller
858f8eaac7 Fix 5021968: Add input method switcher button to lock screen.
This adds an IME switcher button to lock screen.  It is only
shown if the user has more than one applicable and enabled IME installed.

Change-Id: I5f9503a205c2edb27170825539ba4a6ef25418ed
2011-08-19 15:46:03 -07:00
Dianne Hackborn
4479d04328 am cd94303e: Merge "Fix issue #5186318: Can\'t take multiple screenshots"
* commit 'cd94303e8ad39497c52e31e6ce9a78aac047ff7f':
  Fix issue #5186318: Can't take multiple screenshots
2011-08-19 14:50:11 -07:00
Dianne Hackborn
c0e3f2453c Fix issue #5186318: Can't take multiple screenshots
Locking good.  Races bad.

Change-Id: I59dd0ec2de47973c38fd646c2f441dd174eba444
2011-08-19 14:19:10 -07:00
Adam Powell
ae6208fb85 am 0f4739f7: Merge "Fix bug 5186258 - Incorrect window width is used for custom panel views in the MATCH_PARENT case"
* commit '0f4739f7d0d121e9cd07dd556d227f878f7bed0f':
  Fix bug 5186258 - Incorrect window width is used for custom panel views in the MATCH_PARENT case
2011-08-18 18:54:35 -07:00
Adam Powell
0f4739f7d0 Merge "Fix bug 5186258 - Incorrect window width is used for custom panel views in the MATCH_PARENT case" 2011-08-18 18:52:29 -07:00
Adam Powell
3429ff53d0 Fix bug 5186258 - Incorrect window width is used for custom panel
views in the MATCH_PARENT case

Change-Id: I11c4a58303fa3c4a9f3540908c6409bacd84a35e
2011-08-18 18:32:48 -07:00
Jim Miller
ea2ad98159 am 53bd7030: Merge "Fix 5149726: Add slight delay to initial lock screen \'ping\' animation."
* commit '53bd70301d0a41847d45f8e1ea4e0886ee469a75':
  Fix 5149726: Add slight delay to initial lock screen 'ping' animation.
2011-08-18 17:48:33 -07:00
Jim Miller
cd2bad41af Fix 5149726: Add slight delay to initial lock screen 'ping' animation.
This adds a slight delay before the first ping animation runs.  The
idea is to ensure enough time for the display to come on and the user
to notice the animation.

Change-Id: I3d981f5d50efa14683bb08cf6a1430244ce67e55
2011-08-18 17:45:33 -07:00
Adam Powell
21b118664e am 97382f2e: Merge "Fix bug 5183332 - monkeys are jerks"
* commit '97382f2e8e6a8309def2d3c1e9ccff8e034cc364':
  Fix bug 5183332 - monkeys are jerks
2011-08-18 12:05:28 -07:00
Adam Powell
84f4936dee Fix bug 5183332 - monkeys are jerks
Change-Id: I15beb7b55ff5809b95dc869a9b0c43c49d1571c6
2011-08-18 11:09:57 -07:00
Daniel Sandler
cca0806e12 am 072039c7: Merge "Fix DISABLE_EXPAND in the tablet status bar."
* commit '072039c71e3ef0e547cec4c28f05383debf439e1':
  Fix DISABLE_EXPAND in the tablet status bar.
2011-08-18 07:10:35 -07:00
Daniel Sandler
130453c2eb Fix DISABLE_EXPAND in the tablet status bar.
The codepath that honored this flag had been routed around
when notification peeks were disabled. (The bug was allowing
notifications to be accessed from a secure lockscreen.)

Bug: 5173959
Change-Id: I35dee343ee4f0288530580054f8bb9f511ebe6af
2011-08-18 09:41:01 -04:00