OSDN Git Service

android-x86/frameworks-base.git
12 years agoTweak recents launch app animation
Michael Jurka [Thu, 14 Jun 2012 18:57:50 +0000 (11:57 -0700)]
Tweak recents launch app animation

- Sometimes the black background would flash; changing
animation durations to make this much less likely
- Fixing issue in Recents where we sometimes forgot
to disable drawing caches on views after enabling them

12 years agoMerge "Fix attachFunctor path to ignore delay" into jb-dev
Chris Craik [Wed, 13 Jun 2012 17:34:59 +0000 (10:34 -0700)]
Merge "Fix attachFunctor path to ignore delay" into jb-dev

12 years agoremove obsolete notificaiton pane visibility code.
Chris Wren [Wed, 13 Jun 2012 16:20:05 +0000 (12:20 -0400)]
remove obsolete notificaiton pane visibility code.

Bug: 6647263
Change-Id: I634f17c608effe215b9ec4241355fd7cc8860d8e

12 years agoMerge ""Two actions ought to be enough for anybody."" into jb-dev
Daniel Sandler [Wed, 13 Jun 2012 14:07:02 +0000 (07:07 -0700)]
Merge ""Two actions ought to be enough for anybody."" into jb-dev

12 years agoFix 6641800: Remove unnecessary padding below status view
Jim Miller [Wed, 13 Jun 2012 02:56:34 +0000 (19:56 -0700)]
Fix 6641800: Remove unnecessary padding below status view

This fixes a bug on a 600dp device where the owner info text
was clipped.

Change-Id: I5293b6c1f508307dc55b23d6e2f219e9fa735693

12 years agoFix 6613962: Update keyguard to use new GlowPadView UX design.
Jim Miller [Tue, 12 Jun 2012 04:06:13 +0000 (21:06 -0700)]
Fix 6613962: Update keyguard to use new GlowPadView UX design.

Change-Id: I4f1ef3107e5550f7df9dcb412943a84b66432b7d

12 years agoMerge "Set detached wallpaper on the scale up animation." into jb-dev
Craig Mautner [Wed, 13 Jun 2012 02:04:01 +0000 (19:04 -0700)]
Merge "Set detached wallpaper on the scale up animation." into jb-dev

12 years agoFix attachFunctor path to ignore delay
Chris Craik [Wed, 13 Jun 2012 00:23:28 +0000 (17:23 -0700)]
Fix attachFunctor path to ignore delay

Don't defer functor invocation when calling attach functor directly.

bug:6653638

Change-Id: Ifffc027df16612f380f39b82b7d0a4411d53b4ea

12 years agoLow disk space string change, surface state.
Jeff Sharkey [Wed, 13 Jun 2012 00:12:08 +0000 (17:12 -0700)]
Low disk space string change, surface state.

Surface current low disk state through IPackageManager for use in
Settings app.

Bug: 6576409
Change-Id: I9ae9ce99a2faa3015a237036c03567d1ae11628f

12 years agoMerge "Print extended SQLite error code." into jb-dev
Jeff Brown [Tue, 12 Jun 2012 23:06:03 +0000 (16:06 -0700)]
Merge "Print extended SQLite error code." into jb-dev

12 years agoSet detached wallpaper on the scale up animation.
Craig Mautner [Tue, 12 Jun 2012 22:50:45 +0000 (15:50 -0700)]
Set detached wallpaper on the scale up animation.

This keeps the background wallpaper from disappearing when expanding an
app that has a wallpaper background (e.g. clock).

Fixes bug 6649988. The second half of the bug, the first half will be
reissued as a new bug.

Change-Id: I209c9038469e4133586a927c92ef64ae43fb937f

12 years agoMerge "Do not cancel animations when switching." into jb-dev
Craig Mautner [Tue, 12 Jun 2012 22:45:37 +0000 (15:45 -0700)]
Merge "Do not cancel animations when switching." into jb-dev

12 years agoPrint extended SQLite error code.
Jeff Brown [Tue, 12 Jun 2012 22:39:09 +0000 (15:39 -0700)]
Print extended SQLite error code.

Bug: 6538393
Change-Id: I2b010c6a1127887717af67ec588c3df8bf41afe6

12 years agoMerge "Add NOTICE and MODULE_LICENSE_APACH2 to libvideoeditor_jni.so" into jb-dev
James Dong [Tue, 12 Jun 2012 21:20:31 +0000 (14:20 -0700)]
Merge "Add NOTICE and MODULE_LICENSE_APACH2 to libvideoeditor_jni.so" into jb-dev

12 years agoAdd NOTICE and MODULE_LICENSE_APACH2 to libvideoeditor_jni.so
James Dong [Tue, 12 Jun 2012 21:04:30 +0000 (14:04 -0700)]
Add NOTICE and MODULE_LICENSE_APACH2 to libvideoeditor_jni.so

Change-Id: Ibe37c2e6ede6143dc4e27c6072867bc58aa1c08a
related-to-bug: 6647465

12 years agoMerge "Make sure to stop noHistory="true" activities properly" into jb-dev
Christopher Tate [Tue, 12 Jun 2012 20:38:56 +0000 (13:38 -0700)]
Merge "Make sure to stop noHistory="true" activities properly" into jb-dev

12 years agoMerge "StatusBar: Respond properly to global expand message" into jb-dev
John Spurlock [Tue, 12 Jun 2012 20:29:09 +0000 (13:29 -0700)]
Merge "StatusBar: Respond properly to global expand message" into jb-dev

12 years agoMerge "Import translations. DO NOT MERGE" into jb-dev
Ying Wang [Tue, 12 Jun 2012 20:20:19 +0000 (13:20 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev

12 years agoImport translations. DO NOT MERGE
Ying Wang [Tue, 12 Jun 2012 20:17:59 +0000 (13:17 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iafceb53cc46753f25f460609e9db6fa227c15032

12 years agoMake sure to stop noHistory="true" activities properly
Christopher Tate [Tue, 12 Jun 2012 20:08:18 +0000 (13:08 -0700)]
Make sure to stop noHistory="true" activities properly

The code was correctly inducing a 'finish' when such an activity was
being stopped, but then was not continuing with the rest of the stop
bookkeeping at that point.  In some circumstances this could result
in an inconsistent state, with the activity marked as finishing but
neither in the foreground nor stopped.

Bug 6585403

Change-Id: Ib5c5be885bc6534e099e040d87a8589f7b7454ce

12 years ago"Two actions ought to be enough for anybody."
Daniel Sandler [Tue, 12 Jun 2012 20:06:27 +0000 (16:06 -0400)]
"Two actions ought to be enough for anybody."

Bug: 6650170
Change-Id: I5ee6990a8e556f9ee1fbfb0989db33f75b07f4ea

12 years agoMerge "MediaRouter work" into jb-dev
Adam Powell [Tue, 12 Jun 2012 19:04:24 +0000 (12:04 -0700)]
Merge "MediaRouter work" into jb-dev

12 years agoMediaRouter work
Adam Powell [Tue, 12 Jun 2012 18:25:54 +0000 (11:25 -0700)]
MediaRouter work

Fix a bug where MediaRouter would crash on creation

Add click listener for app-supplied extended settings on the route
selection dialog.

Change-Id: I2991db1720b5c574148e250526984592f4dc3c44

12 years agoMerge "make the boot animation 32-bits to avoid banding" into jb-dev
Justin Ho [Tue, 12 Jun 2012 18:22:44 +0000 (11:22 -0700)]
Merge "make the boot animation 32-bits to avoid banding" into jb-dev

12 years agoDo not cancel animations when switching.
Craig Mautner [Tue, 12 Jun 2012 18:13:41 +0000 (11:13 -0700)]
Do not cancel animations when switching.

Was canceling ongoing animations when starting a new animation which
caused the window of the first animation to restart. This looked
janky. The original cancellation was put in to stop the incorrect
animation being selected when quickly switching between an incoming
app and the homescreen. Reversing the cancellation no longer exposes
the original problem it was put in to fix.

One way to duplicate what this is fixing.
1. Slow down animations to 10x.
2. Run ApiDemos/App/Alert Dialogs/List dialog
3. Tap outside the list dialog and then tap the home button.
Tapping outside the list dialog causes the list dialog to animate
away. Tapping the home button then causes the app to animate away.
Before this fix the list dialog would revert to full size before
the app animates away. With this fix the list dialog continues its
original animation as the app animates away.

Fixes bug 6600726.

Change-Id: I29c940254808a321c3b6c2e4f4b7c78a72b47899

12 years agoMerge "Made IAudioService.setBluetoothA2dpOn() not oneway" into jb-dev
Eric Laurent [Tue, 12 Jun 2012 18:10:33 +0000 (11:10 -0700)]
Merge "Made IAudioService.setBluetoothA2dpOn() not oneway" into jb-dev

12 years agoMerge "Put PLMN and SPN on one line in the notification panel." into jb-dev
Daniel Sandler [Tue, 12 Jun 2012 18:04:11 +0000 (11:04 -0700)]
Merge "Put PLMN and SPN on one line in the notification panel." into jb-dev

12 years agoMerge "Suppress header flash when collapsing notifications panel." into jb-dev
Daniel Sandler [Tue, 12 Jun 2012 18:04:08 +0000 (11:04 -0700)]
Merge "Suppress header flash when collapsing notifications panel." into jb-dev

12 years agoMerge "Prevent a crash when maxLines is set to 0" into jb-dev
Gilles Debunne [Tue, 12 Jun 2012 17:47:31 +0000 (10:47 -0700)]
Merge "Prevent a crash when maxLines is set to 0" into jb-dev

12 years agoMerge "Fix issue #6634325: View.setKeepScreenOn and..." into jb-dev
Dianne Hackborn [Tue, 12 Jun 2012 17:40:11 +0000 (10:40 -0700)]
Merge "Fix issue #6634325: View.setKeepScreenOn and..." into jb-dev

12 years agoStatusBar: Respond properly to global expand message
John Spurlock [Mon, 11 Jun 2012 20:23:10 +0000 (16:23 -0400)]
StatusBar: Respond properly to global expand message

Fix timing issue in PhoneStatusBar#animateExpand(). Also, notification panel
drag handle (when expanded) reflects movement immediately.

To test animateExpand():
  $ adb shell service call statusbar 1

Bug: 6629916
Change-Id: I22bb09fc4c9d97c93ba8d7aed8921b60f5ebd610

12 years agoMerge "Fix docs" into jb-dev
Adam Powell [Tue, 12 Jun 2012 03:15:32 +0000 (20:15 -0700)]
Merge "Fix docs" into jb-dev

12 years agoFix docs
Adam Powell [Tue, 12 Jun 2012 03:12:56 +0000 (20:12 -0700)]
Fix docs

Change-Id: If0215c02abf419d14f28574b751c9dfc2f27bcbe

12 years agoMerge "Improve ANR diagnostics." into jb-dev
Jeff Brown [Tue, 12 Jun 2012 03:01:28 +0000 (20:01 -0700)]
Merge "Improve ANR diagnostics." into jb-dev

12 years agoMore MediaRouter features.
Adam Powell [Mon, 11 Jun 2012 22:15:10 +0000 (15:15 -0700)]
More MediaRouter features.

Add RemoteControlClient to user routes. This will allow the UI layered
on top to access info about the remote volume channel associated with
a user route.

Add icons for user routes and route groups.

Change-Id: I438aa60fc8c93f878ec7638897225738155f0746

12 years agoFix issue #6634325: View.setKeepScreenOn and...
Dianne Hackborn [Tue, 12 Jun 2012 01:35:41 +0000 (18:35 -0700)]
Fix issue #6634325: View.setKeepScreenOn and...

...MediaPlayer.setScreenOnWhilePlaying seem broken

We need to correctly clear the keep screen on flag when the view
hierarchy request is gone...  and to do that, we need to keep the
actual state of the flag requested by the app.  Also when the app
changes its state, we need to compute the proper value based on
both the app request and any requests in the view hierarchy.

Bug: 6634325
Change-Id: I060e9a34a10faffbaa77c06098cf21298bb4969f

12 years agoImprove ANR diagnostics.
Jeff Brown [Tue, 12 Jun 2012 01:01:06 +0000 (18:01 -0700)]
Improve ANR diagnostics.

When an ANR occurs, log the associated reason.

When an event takes too long to process (currently more than 2 seconds)
log basic information about the event including how long it actually
took.

Dump the contents of the inbound, outbound and wait queues as part
of dumpsys input.

Bug: 6574842
Change-Id: I9ab754c320f609cb86fe266c469a61e7032dfed6

12 years agoPrevent a crash when maxLines is set to 0
Gilles Debunne [Tue, 12 Jun 2012 00:46:24 +0000 (17:46 -0700)]
Prevent a crash when maxLines is set to 0

Bug 6642222

Using setMaxLines(0) and setMinHeight(30) causes a crash
because Layout#getLineRangeForDraw() returns a [0,0] interval
in that case.

Accessing the Direction in draw causes a NPE.

Change-Id: If50f9b554e3cdc598a721b623992e9196982838c

12 years agoMerge "Textured text calls could be invisible Bug #6597730" into jb-dev
Romain Guy [Tue, 12 Jun 2012 00:31:44 +0000 (17:31 -0700)]
Merge "Textured text calls could be invisible Bug #6597730" into jb-dev

12 years agoMerge "Remove over aggressive optimization." into jb-dev
Craig Mautner [Tue, 12 Jun 2012 00:12:03 +0000 (17:12 -0700)]
Merge "Remove over aggressive optimization." into jb-dev

12 years agoMerge "Revert "Merge errors."" into jb-dev
Craig Mautner [Tue, 12 Jun 2012 00:11:47 +0000 (17:11 -0700)]
Merge "Revert "Merge errors."" into jb-dev

12 years agoMerge "Merge errors." into jb-dev
Craig Mautner [Tue, 12 Jun 2012 00:11:33 +0000 (17:11 -0700)]
Merge "Merge errors." into jb-dev

12 years agoMade IAudioService.setBluetoothA2dpOn() not oneway
Eric Laurent [Tue, 12 Jun 2012 00:00:58 +0000 (17:00 -0700)]
Made IAudioService.setBluetoothA2dpOn() not oneway

IAudioService.setBluetoothA2dpOn() should not be one way as
IAudioService.isBluetoothA2dpOn() will return inconsistent results
if called just after.

Bug 6572651.

Change-Id: Ib03ae49e6c0041b1b37dcac9e198cd93a4794030

12 years agoMerge "Rework media router to be per-context with global process state." into jb-dev
Dianne Hackborn [Mon, 11 Jun 2012 23:31:55 +0000 (16:31 -0700)]
Merge "Rework media router to be per-context with global process state." into jb-dev

12 years agoRemove over aggressive optimization.
Craig Mautner [Mon, 11 Jun 2012 22:57:19 +0000 (15:57 -0700)]
Remove over aggressive optimization.

It turns out that sometimes the wallpaper target is migrated to the
bottom of the window stack and then mWallpaperTarget is set to null.
In particular this happens when the launcher all-apps screen is
brought up. When this happens the layer of the wallpaper is
correctly set below the previous wallpaper target.

An optimization in WindowAnimator was keeping the layer update from
propagating to the Surface object. This fix removes that optimization.

Fixes bug 6631717.

Change-Id: I800dd043ce8df83b4e5edbf710503135396bc01e

12 years agoRevert "Merge errors."
Craig Mautner [Mon, 11 Jun 2012 23:27:54 +0000 (16:27 -0700)]
Revert "Merge errors."

This reverts commit b0419a52008e57475ee254def1da20451da22d4c.

12 years agoMerge errors.
Craig Mautner [Mon, 11 Jun 2012 23:26:14 +0000 (16:26 -0700)]
Merge errors.

Change-Id: I33d0b1aa5dc5018cc879d2e9878e4825adaa4074

12 years agoMerge "Tweak recents out animation a bit more" into jb-dev
Michael Jurka [Mon, 11 Jun 2012 23:17:35 +0000 (16:17 -0700)]
Merge "Tweak recents out animation a bit more" into jb-dev

12 years agoTextured text calls could be invisible
Romain Guy [Mon, 11 Jun 2012 23:03:47 +0000 (16:03 -0700)]
Textured text calls could be invisible
Bug #6597730

Text would sometimes not appear when rendered with textured content
(BitmapShader, LinearGradientShader, etc.) This was due to a misuse
of OpenGL texture unit in FontRenderer. Textured text normally uses
two texture units:
- texture unit 0 for the font cache
- texture unit 1 for the textured content (gradient, etc.)

Recent changes to the font renderer allow it to bind new textures
while processing the text's geometry (this happens when caches get
full or when switching font size for instance.) The bindings were
done without ensuring the texture unit was the correct one
(unit 0), thus replacing the content of another texture unit
(unit 1).

This lead to text being drawn using the font cache itself as the
content texture, making the text invisible.

Change-Id: I392b4c884f09223305f6cbc6253e2ef9a98944c9

12 years agoMerge "Detect bad behavior earlier in Choreographer." into jb-dev
Jeff Brown [Mon, 11 Jun 2012 22:59:48 +0000 (15:59 -0700)]
Merge "Detect bad behavior earlier in Choreographer." into jb-dev

12 years agoRework media router to be per-context with global process state.
Dianne Hackborn [Mon, 11 Jun 2012 22:08:39 +0000 (15:08 -0700)]
Rework media router to be per-context with global process state.

Change-Id: Ic1cb6f13e691d22783bcdafae85b7c75aec0a66f

12 years agoDetect bad behavior earlier in Choreographer.
Jeff Brown [Mon, 11 Jun 2012 22:25:48 +0000 (15:25 -0700)]
Detect bad behavior earlier in Choreographer.

Detect wonky vsync timestamps (should they occur) and
warn loudly about them.

Warn when too many frames are skipped.  The threshold is pretty
conservative right now (only warn if at least 30 frames are skipped)
but it can be adjusted using system property.  Even skipping just a
couple of frames is enough to generate noticeable jank.
The threshold is currently intended to help track down bigger problems
such when an app does too much work on the UI thread.

Bug: 6574842
Change-Id: I4aac7e5e17d1fb51adb0510e318a72a28b3775ed

12 years agoTweak recents out animation a bit more
Michael Jurka [Wed, 6 Jun 2012 00:22:24 +0000 (17:22 -0700)]
Tweak recents out animation a bit more

Bug: 6490204

-Fading to black in the recents layer
-Tweaking duration and interpolators
-Removing some unnecessary debug exceptions (Bug: 6642072)

Change-Id: Iba18fade7f874078111fc1d79a81830ee07617d4

12 years agoMerge "Revert "Fix fake bold for fallback fonts in frameworks."" into jb-dev
Victoria Lease [Mon, 11 Jun 2012 22:21:39 +0000 (15:21 -0700)]
Merge "Revert "Fix fake bold for fallback fonts in frameworks."" into jb-dev

12 years agoMerge "Further work on MediaRouter" into jb-dev
Adam Powell [Mon, 11 Jun 2012 22:00:57 +0000 (15:00 -0700)]
Merge "Further work on MediaRouter" into jb-dev

12 years agomake the boot animation 32-bits to avoid banding
Mathias Agopian [Mon, 11 Jun 2012 21:08:02 +0000 (14:08 -0700)]
make the boot animation 32-bits to avoid banding

Bug: 6611693

Change-Id: Id31b711ea755c89240eaea26f6403a031cd939e4

12 years agoRevert "Fix fake bold for fallback fonts in frameworks."
Victoria Lease [Mon, 11 Jun 2012 21:46:04 +0000 (14:46 -0700)]
Revert "Fix fake bold for fallback fonts in frameworks."

This reverts commit b26fa0ce68d3311b2fdffb930b27d897e481dd5a

12 years agoMerge "Enable HW accelerated window shade for all devices" into jb-dev
Mathias Agopian [Mon, 11 Jun 2012 21:43:57 +0000 (14:43 -0700)]
Merge "Enable HW accelerated window shade for all devices" into jb-dev

12 years agoMerge "Prevent crash in WebView when disabling the hw renderer Bug #6596807" into...
Romain Guy [Mon, 11 Jun 2012 21:15:40 +0000 (14:15 -0700)]
Merge "Prevent crash in WebView when disabling the hw renderer Bug #6596807" into jb-dev

12 years agoMerge "NPE when iterating by character and word in Launcher widgets." into jb-dev
Svetoslav Ganov [Mon, 11 Jun 2012 21:06:29 +0000 (14:06 -0700)]
Merge "NPE when iterating by character and word in Launcher widgets." into jb-dev

12 years agoPrevent crash in WebView when disabling the hw renderer
Romain Guy [Mon, 11 Jun 2012 20:24:30 +0000 (13:24 -0700)]
Prevent crash in WebView when disabling the hw renderer
Bug #6596807

A crash would occur in the following situation:
- WebView registers a functor with the hardware renderer
- The hardware renderer gets disabled
- WebView attemps to unregister its functor

Unregistering the functor fails because the hardware renderer is now disabled.
When the renderer becomes enabled again, the functor is invoked, which leads
to a native crash.

This change simply allows functors to always be unregistered, even when the
renderer is disabled. A disabled renderer only means that it will not be used
for rendering; as such, unregistering a functor is a valid operation and
should be allowed.

Change-Id: I0ff897a0cca7e048c609033215cd0f7f5c940bcc

12 years agoMerge "DO NOT MERGE: Cherry-pick 2ed524966d3c4bd04ea5f54026ed59558d73cd44 to JB....
Dianne Hackborn [Mon, 11 Jun 2012 20:20:35 +0000 (13:20 -0700)]
Merge "DO NOT MERGE: Cherry-pick 2ed524966d3c4bd04ea5f54026ed59558d73cd44 to JB." into jb-dev

12 years agoFurther work on MediaRouter
Adam Powell [Fri, 8 Jun 2012 21:46:35 +0000 (14:46 -0700)]
Further work on MediaRouter

Remove volume control and tracking. This will be handled by extensions
to existing audio and media APIs for now.

Tweak/refine other aspects of the API. Pass the router to callbacks for
easier future-proofing. Add group/ungroup callback methods.

Change-Id: Ib69e76e5f46280a9002b545bcf4cbc7b839844ee

12 years agoPut PLMN and SPN on one line in the notification panel.
Daniel Sandler [Mon, 11 Jun 2012 20:07:18 +0000 (16:07 -0400)]
Put PLMN and SPN on one line in the notification panel.

We now match the keyguard's presentation: either plmn, or
spn, or "plmn|spn" (concatenated with a pipe).

Bug: 6639047
Change-Id: Ia6ae9085fbf2fe9fa4465a6f7825cb997db5e6c5

12 years agoMerge "Fix exposing wallpaper on rotations and other." into jb-dev
Craig Mautner [Mon, 11 Jun 2012 20:10:01 +0000 (13:10 -0700)]
Merge "Fix exposing wallpaper on rotations and other." into jb-dev

12 years agoMerge "Fix issue #6641368: can't launch gallery" into jb-dev
Dianne Hackborn [Mon, 11 Jun 2012 20:09:22 +0000 (13:09 -0700)]
Merge "Fix issue #6641368: can't launch gallery" into jb-dev

12 years agoSuppress header flash when collapsing notifications panel.
Daniel Sandler [Mon, 11 Jun 2012 20:07:52 +0000 (16:07 -0400)]
Suppress header flash when collapsing notifications panel.

LayoutTransition is poking through and it shouldn't be.

This change also fixes a few related animation glitches
around the carrier label and fling velocity.

Bug: 6628429
Change-Id: I6655c9f9a8c95c7abd9c6d7099957cb229b86d5a

12 years agoDO NOT MERGE: Cherry-pick 2ed524966d3c4bd04ea5f54026ed59558d73cd44 to JB.
Vairavan Srinivasan [Tue, 22 May 2012 07:06:15 +0000 (00:06 -0700)]
DO NOT MERGE: Cherry-pick 2ed524966d3c4bd04ea5f54026ed59558d73cd44 to JB.

This was contributed from AOSP, a fix to the management of URI write
permissions.  This is a very blatant bug, and with the new Intent ClipData
and other stuff we are making much more use of write permissions in JB,
so it is well worth taking.

Change-Id: I58c86119b4d5c13fefd090944bea139803df1a48

12 years agoFix issue #6641368: can't launch gallery
Dianne Hackborn [Mon, 11 Jun 2012 19:27:05 +0000 (12:27 -0700)]
Fix issue #6641368: can't launch gallery

This is a revert of 1db36528b12395b9ed9bf8a1005a6d4ace737627,
but with comments added so I don't make this mistake again. :)

Change-Id: I053216279e3721f08f32f561bb989736ef619f82

12 years agoNPE when iterating by character and word in Launcher widgets.
Svetoslav Ganov [Mon, 11 Jun 2012 19:08:18 +0000 (12:08 -0700)]
NPE when iterating by character and word in Launcher widgets.

1. The character and word iterators were use the application
   context to keep track of locale changes. However, for widgets
   the context from which the app context is obtained is custom
   created therefore the app context is null and the iterators
   code does not expect that. Now we are caching the locale
   and update it when the configuration changes.

bug:6642281

Change-Id: I3fd201ab9e4efd79e3bdc8afd8ee644e4354a7fb

12 years agoMerge "Import translations. DO NOT MERGE" into jb-dev
Eric Fischer [Mon, 11 Jun 2012 18:56:22 +0000 (11:56 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev

12 years agoMerge "VPN: move VpnDialogs away from system uid." into jb-dev
Chia-chi Yeh [Mon, 11 Jun 2012 18:49:46 +0000 (11:49 -0700)]
Merge "VPN: move VpnDialogs away from system uid." into jb-dev

12 years agoMerge "Remove edge slop handling from ScaleGestureDetector." into jb-dev
Jeff Brown [Mon, 11 Jun 2012 18:46:42 +0000 (11:46 -0700)]
Merge "Remove edge slop handling from ScaleGestureDetector." into jb-dev

12 years agoImport translations. DO NOT MERGE
Eric Fischer [Mon, 11 Jun 2012 18:42:43 +0000 (11:42 -0700)]
Import translations. DO NOT MERGE

Change-Id: I937a8a4cc8617744f4a63d72fe946b0e2d543ede

12 years agoFix exposing wallpaper on rotations and other.
Craig Mautner [Mon, 11 Jun 2012 18:40:09 +0000 (11:40 -0700)]
Fix exposing wallpaper on rotations and other.

1. Rotations do not go through standard closing of animations so the
wallpaper was not being hidden when the wallpaper target surface was
destroyed. This fix adds hiding the wallpaper when the wallpaper
target is destroyed.

2. The wallpaper target is nulled when switching from launcher home
screen to launcher all apps. In this case the wallpaper remains
visible but below visible layers. It should be hidden so that when
those layers adjust it is not exposed. (Separate fix for adjusting
wallpaper in this case will come).

Fixes bug 6629464.

Change-Id: I522f97dafc0cdcc0f933a825ec9a29d8f63590b5

12 years agoMerge "Include important native processes in watchdog stacks." into jb-dev
Dianne Hackborn [Mon, 11 Jun 2012 17:37:51 +0000 (10:37 -0700)]
Merge "Include important native processes in watchdog stacks." into jb-dev

12 years agoMerge "Don't allow apps to request scrolls to out-of-bounds positions" into jb-dev
Chet Haase [Sun, 10 Jun 2012 19:30:33 +0000 (12:30 -0700)]
Merge "Don't allow apps to request scrolls to out-of-bounds positions" into jb-dev

12 years agoMerge "Crash in the touch explorer." into jb-dev
Svetoslav Ganov [Sun, 10 Jun 2012 16:59:24 +0000 (09:59 -0700)]
Merge "Crash in the touch explorer." into jb-dev

12 years agoMerge "Settings crash after enabling TalkBack accessibility." into jb-dev
Svetoslav Ganov [Sun, 10 Jun 2012 16:50:24 +0000 (09:50 -0700)]
Merge "Settings crash after enabling TalkBack accessibility." into jb-dev

12 years agoInclude important native processes in watchdog stacks.
Dianne Hackborn [Sat, 9 Jun 2012 00:23:59 +0000 (17:23 -0700)]
Include important native processes in watchdog stacks.

Helps us track down deadlocks involving native service processes.

Bug: 6615693
Change-Id: I580047550772e29586195a8cf440141574e3f40c

12 years agoCrash in the touch explorer.
Svetoslav Ganov [Sat, 9 Jun 2012 00:44:29 +0000 (17:44 -0700)]
Crash in the touch explorer.

1. The touch explorer was notified for accessibility events from
   a binder thread which was poking the internal state of the
   latter which by design is not tread safe. Since the touch
   explorer is expected to be running only on the main thread
   the accessibility manager service delivers the accessibility
   events to the explorer on that thread.

bug:6635496

Change-Id: Ifdc5329e4be8e485d7f77f0fb472184494fa0d15

12 years agoMerge "Fix fake bold for fallback fonts in frameworks." into jb-dev
Victoria Lease [Sat, 9 Jun 2012 00:27:28 +0000 (17:27 -0700)]
Merge "Fix fake bold for fallback fonts in frameworks." into jb-dev

12 years agoRemove edge slop handling from ScaleGestureDetector.
Jeff Brown [Fri, 8 Jun 2012 23:40:01 +0000 (16:40 -0700)]
Remove edge slop handling from ScaleGestureDetector.

The edge slop code could violate invariants of ScaleGestureDetector,
such as the assumption that if an ACTION_POINTER_DOWN is observed
or if getPointerCount() >= 2, then there must be at least two
active pointers to choose from.  But due to the edge slop handling,
it was possible for findNewActiveIndex to return -1 in this
case, resulting in a crash.

Bug: 6613154
Change-Id: I4e08e38a49ab27dac1be9484e19de086bc43624a

12 years agoImport translations. DO NOT MERGE
Eric Fischer [Fri, 8 Jun 2012 23:31:51 +0000 (16:31 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0edaecd41cef0eb158d003a3a0aafe28f49949f7

12 years agoSettings crash after enabling TalkBack accessibility.
Svetoslav Ganov [Fri, 8 Jun 2012 23:09:29 +0000 (16:09 -0700)]
Settings crash after enabling TalkBack accessibility.

1. AccessibilityInput filter was not checking whether the touch
   explorer instance is not null before passing it an accessibility
   event. If the accessibility event is dispatched before the input
   filter is installed but after it is created we runt into this
   case.

2. Added a missing null check in accessibility node info.

bug:6635089

Change-Id: Ia389dc1f427427eb73794f6331ccb870e0b44c55

12 years agoDon't allow apps to request scrolls to out-of-bounds positions
Chet Haase [Fri, 8 Jun 2012 22:01:56 +0000 (15:01 -0700)]
Don't allow apps to request scrolls to out-of-bounds positions

An app was requesting smooth scrolling to a view position beyond the
number of items in the list. This caused our setup logic to execute on
every frame, waiting for the target view to be added.

This fix clamps the requested target position to the number of items
actually in the list.

Issue #6572175 Messaging: Sometimes conversation doesn't scroll when focus is brought to the compose field

Change-Id: I23707aeb213e67af4297713a03c2f5b446c8e2b6

12 years agoMerge "Bug 6605167: Turning off FUL during error counts as attempt" into jb-dev
Brian Colonna [Fri, 8 Jun 2012 21:45:11 +0000 (14:45 -0700)]
Merge "Bug 6605167: Turning off FUL during error counts as attempt" into jb-dev

12 years agoFix fake bold for fallback fonts in frameworks.
Victoria Lease [Fri, 8 Jun 2012 17:25:19 +0000 (10:25 -0700)]
Fix fake bold for fallback fonts in frameworks.

This change is analogous to Ic0e9f1bbd8cae9fdd3a6d1d015bb9224c8be545c
in WebView, and depends upon the same Skia change that that CL makes
use of.

This flips the "fake bold" flag on for bold fonts in
TextView.setTypeface(), with the expectation that Skia will ignore
the flag if the final typeface used to render the glyphs is already
bold. It also does the same for StyleSpans, TextAppearanceSpans,
TypefaceSpans, and the Switch widget.

With this, fake bold should work uniformly across all scripts - if
fake bold works for a primary typeface, it should also work for all
fallback typefaces.

Bug: 6629786
Change-Id: Id3b8639ab0df83052ffd82809cb12adaacc1d46b

12 years agoMerge "Fix clear services API" into jb-dev
Irfan Sheriff [Fri, 8 Jun 2012 20:45:19 +0000 (13:45 -0700)]
Merge "Fix clear services API" into jb-dev

12 years agoMerge "Various notification template cleanups." into jb-dev
Daniel Sandler [Fri, 8 Jun 2012 20:38:02 +0000 (13:38 -0700)]
Merge "Various notification template cleanups." into jb-dev

12 years agoMerge "Hide wallpaper when wallpaper target gets hidden." into jb-dev
Craig Mautner [Fri, 8 Jun 2012 20:14:54 +0000 (13:14 -0700)]
Merge "Hide wallpaper when wallpaper target gets hidden." into jb-dev

12 years agoVPN: move VpnDialogs away from system uid.
Chia-chi Yeh [Fri, 8 Jun 2012 20:05:58 +0000 (13:05 -0700)]
VPN: move VpnDialogs away from system uid.

Bug: 6632536
Change-Id: Iece647c077caf5298ccfe7d7aba5f0911a4ed0d1

12 years agoHide wallpaper when wallpaper target gets hidden.
Craig Mautner [Fri, 8 Jun 2012 19:56:14 +0000 (12:56 -0700)]
Hide wallpaper when wallpaper target gets hidden.

Another location that potentially hides the wallpaper target while
leaving the wallpaper itself still visible. Causes the wallpaper to
show up when upper surfaces are transparent all the way down.

Fixes bug b6621986.

Change-Id: If75053160f041eb78868eda36b7820fb2110d069

12 years agoMerge "Do not animate keyboard and button brightness." into jb-dev
Craig Mautner [Fri, 8 Jun 2012 19:48:19 +0000 (12:48 -0700)]
Merge "Do not animate keyboard and button brightness." into jb-dev

12 years agoMerge "Workaround for bug 6609605: Hindi rendering regression in WebView" into jb-dev
Raph Levien [Fri, 8 Jun 2012 19:40:10 +0000 (12:40 -0700)]
Merge "Workaround for bug 6609605: Hindi rendering regression in WebView" into jb-dev

12 years agoMerge "Turn off dimming immediately for removed windows." into jb-dev
Craig Mautner [Fri, 8 Jun 2012 18:36:36 +0000 (11:36 -0700)]
Merge "Turn off dimming immediately for removed windows." into jb-dev

12 years agoMerge "apply Jellybean styling to tablet system bar and panel" into jb-dev
Chris Wren [Fri, 8 Jun 2012 18:26:22 +0000 (11:26 -0700)]
Merge "apply Jellybean styling to tablet system bar and panel" into jb-dev

12 years agoMerge "Fix issue #6295373: "Package com.google.android.apps.authenticator2 has.....
Dianne Hackborn [Fri, 8 Jun 2012 18:01:42 +0000 (11:01 -0700)]
Merge "Fix issue #6295373: "Package com.google.android.apps.authenticator2 has..." into jb-dev

12 years agoWorkaround for bug 6609605: Hindi rendering regression in WebView
Raph Levien [Fri, 8 Jun 2012 17:17:23 +0000 (10:17 -0700)]
Workaround for bug 6609605: Hindi rendering regression in WebView

This patch changes the font data so that all anchor points are in
absolute coordinates, rather than relative to outline points. With
the workaround, we don't trigger the bug in the HarfBuzz/Skia
integration that causes incorrect outline point data to be read.

The font was prepared with FontForge. There's some risk of other
problems, but I tested the font fairly carefully and it looks fine.
(With a version prepared in TTX, the substitution of the different
width forms of the ivowelsigndeva got broken, likely due to a TTX
bug, as this seems to happen with roundtrip of unedited original).

Change-Id: I3f6fffce91c3ea0695e6005b051bcf4e9b6f6361

12 years agoMerge "Progress bar assets - once more, with feeling!" into jb-dev
Adam Powell [Fri, 8 Jun 2012 17:11:40 +0000 (10:11 -0700)]
Merge "Progress bar assets - once more, with feeling!" into jb-dev