OSDN Git Service

android-x86/frameworks-base.git
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 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

12 years agoTurn off dimming immediately for removed windows.
Craig Mautner [Fri, 8 Jun 2012 16:54:59 +0000 (09:54 -0700)]
Turn off dimming immediately for removed windows.

Dimming was only turning off immediately for app-animated windows.
For removed windows dimming wouldn't turn off until the window was
completely gone.

Fixes bug 6628057.

Change-Id: I3ba6501b10a31b6f8c91012e17ad8734a84050c4

12 years agoMerge "Whoops, this version number wasn't updated when JB was introduced!" into jb-dev
Kenny Root [Fri, 8 Jun 2012 16:51:04 +0000 (09:51 -0700)]
Merge "Whoops, this version number wasn't updated when JB was introduced!" into jb-dev

12 years agoDo not animate keyboard and button brightness.
Craig Mautner [Fri, 8 Jun 2012 02:58:58 +0000 (19:58 -0700)]
Do not animate keyboard and button brightness.

Keyboard and button brightness are always set to assign values
immediately but were being passed through the animation process
anyways. This interfered with the state of the screen brightness
animation. Intercept keyboard and button brightness directives and
implement them immediately.

Also use actual screen brightness and value to determine when we
are dimming or brightening. Previously we were using the sensor
values to determine whether the action called for was to brighten or
dim. This looks at the actual screen brightness level to make that
determination. If the two values get out of sync it is better to rely
on the screen value than the sensor value.

Fixes bug 6626681.

Change-Id: I82158f5188ffb739e01f818ba88e79f03a405c58

12 years agoMerge "Delete old forward-locked apps on upgrade" into jb-dev
Kenny Root [Fri, 8 Jun 2012 16:16:40 +0000 (09:16 -0700)]
Merge "Delete old forward-locked apps on upgrade" into jb-dev

12 years agoMerge "Added a tvdpi specific background 9 patch" into jb-dev
Gilles Debunne [Fri, 8 Jun 2012 16:12:34 +0000 (09:12 -0700)]
Merge "Added a tvdpi specific background 9 patch" into jb-dev

12 years agoVarious notification template cleanups.
Daniel Sandler [Thu, 7 Jun 2012 20:33:08 +0000 (16:33 -0400)]
Various notification template cleanups.

Bug: 6597693 // hide line3 in InboxStyle
Bug: 6593691 // vertical centering inconsistencies
Bug: 6592116 // no left action gutter in BigPicture
Bug: 6622757 // missing subtext in BigText expanded
Change-Id: I941af99d0a905b6e0aa6fb74ad4eff29c17d9fc2

12 years agoapply Jellybean styling to tablet system bar and panel
Chris Wren [Wed, 6 Jun 2012 22:08:56 +0000 (18:08 -0400)]
apply Jellybean styling to tablet system bar and panel

Bug: 6546070
Change-Id: I933883857747931388026e0beefcf092a00d531a

12 years agoMerge "Fix for U+0449 (lowercase shcha) glyph in Roboto Light. Bug: 6609392" into...
Bart Sears [Fri, 8 Jun 2012 06:20:20 +0000 (23:20 -0700)]
Merge "Fix for U+0449 (lowercase shcha) glyph in Roboto Light. Bug: 6609392" into jb-dev

12 years agoMerge "Cannot click on the last touch explored auto-completion item." into jb-dev
Svetoslav Ganov [Fri, 8 Jun 2012 02:52:19 +0000 (19:52 -0700)]
Merge "Cannot click on the last touch explored auto-completion item." into jb-dev

12 years agoProgress bar assets - once more, with feeling!
Adam Powell [Fri, 8 Jun 2012 02:23:36 +0000 (19:23 -0700)]
Progress bar assets - once more, with feeling!

Bug 6628236

Change-Id: I06369f37caf3db8b00047822f5fda44ce380e01b

12 years agoWhoops, this version number wasn't updated when JB was introduced!
Dianne Hackborn [Fri, 8 Jun 2012 01:20:55 +0000 (18:20 -0700)]
Whoops, this version number wasn't updated when JB was introduced!

Change-Id: I9c9cd658cc1cba99b84059c8873c22b21b9f3c19

12 years agoFix issue #6295373: "Package com.google.android.apps.authenticator2 has...
Dianne Hackborn [Thu, 7 Jun 2012 23:53:59 +0000 (16:53 -0700)]
Fix issue #6295373: "Package com.google.android.apps.authenticator2 has...

...mismatched uid: X on disk, Y in settings" errors on Froyo and Gingerbread

Deal more gracefully with the uid changing in three ways:

1. If the uid on disk has become root, then have installd change it to
   the application's uid.  This is to correct a potential case where
   installd was interrupted while linking or unlinking the libs dir,
   during which it temporarily changes the owner of the dir to root
   so that a malicious app can not get in its way.  So if the uid on
   disk has become root, we assume we can safely just change it back
   to the correct uid.

2. When scaning packages at boot, use the same "delete and rebuild data
   directory" code for third party applications as we have for system
   applications.  This allows us to at least end up in a state where the
   app will run, even if its data is lost.

3. But we really don't want to get in to case 2, so if an application
   update is being installed and we find that the uid we now have for
   the app is different than the one on disk, fail the update.  This will
   protect against for example a developer changing the sharedUserId of
   their app and getting into this bad state.

Bug: 6295373
Change-Id: Ic802fdd818ac62449ff3c61d1fff1aa4d4942f39

12 years agoCannot click on the last touch explored auto-completion item.
Svetoslav Ganov [Thu, 7 Jun 2012 23:35:04 +0000 (16:35 -0700)]
Cannot click on the last touch explored auto-completion item.

1. When typing into an auto completion edit field a list of completions pops up and if
   the user touch explores the list and tries to double tap to select the touched
   completion the latter is not selected.

   The auto completion is a popup that does not take input focus and is overlaid on
   top of the window that has input focus. The touch explorer was clicking on the
   location of the accessibility focus if the last touch explored location is within
   the bounds of the active window. In this case this was the window with the edit
   text into which the user is typing. The check performed by the touch explorer
   was missing the case when the last touch explored location was within the bounds
   of the active window but it actually was deloverd to another overlaid window.
   Now we are poking on the accessibility focus location if the last explored
   location is within the active window and was delivered to it.

bug:6629535

Change-Id: Ie66d5bb81ab021f2bb0414339b7de26d96826191

12 years agoMerge "rename exif to exif_jni due to refactoring in external/jhead" into jb-dev
Keun young Park [Thu, 7 Jun 2012 23:19:02 +0000 (16:19 -0700)]
Merge "rename exif to exif_jni due to refactoring in external/jhead" into jb-dev

12 years agoMerge "Eliminate gap between finalize() and destroy()" into jb-dev
John Reck [Thu, 7 Jun 2012 22:57:56 +0000 (15:57 -0700)]
Merge "Eliminate gap between finalize() and destroy()" into jb-dev

12 years agoMerge "Measure ASECs for forward-locked apps" into jb-dev
Kenny Root [Thu, 7 Jun 2012 22:40:54 +0000 (15:40 -0700)]
Merge "Measure ASECs for forward-locked apps" into jb-dev

12 years agoMerge "Stay in layer scroll if nothing to scroll" into jb-dev
John Reck [Thu, 7 Jun 2012 22:29:46 +0000 (15:29 -0700)]
Merge "Stay in layer scroll if nothing to scroll" into jb-dev

12 years agoMerge "Configuration for lock and UI sound levels" into jb-dev
Jean-Michel Trivi [Thu, 7 Jun 2012 22:28:51 +0000 (15:28 -0700)]
Merge "Configuration for lock and UI sound levels" into jb-dev

12 years agoStay in layer scroll if nothing to scroll
John Reck [Thu, 7 Jun 2012 21:45:34 +0000 (14:45 -0700)]
Stay in layer scroll if nothing to scroll

 Bug: 6628376
 The issue here is that contentX & contentY can both be 0 if we are scrolling
 slowly enough as they are adjusted by the page's scale and can thus round down.
 However, this would result in us falling out of layer drag mode even though
 we haven't tried to scroll past the edge of the layer. Detect this case, and
 stay in layer scroll mode.

Change-Id: I3c655d0d03e8f89887abbe718bd24699c133ee1a

12 years agoMerge "Only call fixSdPermissions when appropriate" into jb-dev
Kenny Root [Thu, 7 Jun 2012 21:21:14 +0000 (14:21 -0700)]
Merge "Only call fixSdPermissions when appropriate" into jb-dev

12 years agoMerge "Fixed cast exception with selectable text." into jb-dev
Gilles Debunne [Thu, 7 Jun 2012 21:15:40 +0000 (14:15 -0700)]
Merge "Fixed cast exception with selectable text." into jb-dev

12 years agoMerge "Import translations. DO NOT MERGE" into jb-dev
Eric Fischer [Thu, 7 Jun 2012 20:56:09 +0000 (13:56 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev

12 years agoImport translations. DO NOT MERGE
Eric Fischer [Thu, 7 Jun 2012 20:52:56 +0000 (13:52 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic209397930750934fe3ab136ab3a4586257c1ed3

12 years agoMerge "Cannot interact with dialogs when IME is up and on not touch explored popups...
Svetoslav Ganov [Thu, 7 Jun 2012 20:50:58 +0000 (13:50 -0700)]
Merge "Cannot interact with dialogs when IME is up and on not touch explored popups." into jb-dev

12 years agoMeasure ASECs for forward-locked apps
Kenny Root [Mon, 4 Jun 2012 23:39:47 +0000 (16:39 -0700)]
Measure ASECs for forward-locked apps

Forward-locked apps are mostly in ASEC containers now, so the
containers need to be measured as well.

Bug: 6606390
Change-Id: I69e9fe47aabe1e130568779a45fe8000b3ce9d4c

12 years agoEliminate gap between finalize() and destroy()
John Reck [Thu, 7 Jun 2012 18:35:35 +0000 (11:35 -0700)]
Eliminate gap between finalize() and destroy()

 Bug: 6569073
 Only nativeDestroy and nativeStopGL need to be called on the UI thread,
 so split up destroyImpl into 3 functions, and only have the native
 destroy be pushed to the UI thread if necessary. Also make the work that
 is delayed be static without references to the finalizing WebView to allow
 it to be fully deleted immediately after finalization.

Change-Id: I4e424051e69df0bc409af95ca3f3d2b9e58a6b75

12 years agoOnly call fixSdPermissions when appropriate
Kenny Root [Tue, 5 Jun 2012 22:13:17 +0000 (15:13 -0700)]
Only call fixSdPermissions when appropriate

When media packages were loaded, they would lose their forward-locked
status since the flags covering it was not available when the
doPostInstall step was called.

Bug: 6611980
Change-Id: I807fcec6b61cedf7654808b704fba7de9c7c1922

12 years agoMerge "Protect against bogus input for ListViews" into jb-dev
Adam Powell [Thu, 7 Jun 2012 19:12:00 +0000 (12:12 -0700)]
Merge "Protect against bogus input for ListViews" into jb-dev

12 years agoCannot interact with dialogs when IME is up and on not touch explored popups.
Svetoslav Ganov [Thu, 7 Jun 2012 04:12:20 +0000 (21:12 -0700)]
Cannot interact with dialogs when IME is up and on not touch explored popups.

1. If the last touch explored location is within the active window we
   used to click on exact location if it is within the accessibility
   focus otherwise in the accessibility focus center. If the last touch
   explored location is not within the active window we used to just
   click there. This breaks in the case were one has touch explored
   at a given place in the current window and now a dialog opens *not*
   covering the touch explored location. If one uses swipes to move
   accessibility focus i.e. to traverse the dialog without touching
   it one cannot activate anything because the touch explorer is using
   the last touch explored location that is outside of the active
   window e.g the dialog.

   The solution is to clear the last touch explored location when a
   window opens or accessibility focus moves. If the last touch
   explored location is null we are clicking in the accessibility
   focus location.

bug:6620911

2. There is a bug in the window manager that does not notify a
   window that its location has changed (bug:6623031). This breaks
   accessibility interaction with dialogs that have input because
   when the IME is up the dialog is moved but not notified. Now
   the accessibility layer gets incorrect location for the
   accessibility focus and the window bounds.

   The soluion is when the accessibility manager service calls
   into the remove thress to obtain some accessibility node infos
   it passes the window left and top which it gets from the
   window manager. These values are used to update the attach info
   window left and top so all accessibility node infos emitted
   from that window had correct bounds in screen coordinates.

bug:6620796

Change-Id: I18914f2095c55cfc826acf5277bd94b776bda0c8

12 years agoMerge "Revert "Remove ViewTreeObserver allocations"" into jb-dev
Chet Haase [Thu, 7 Jun 2012 18:27:26 +0000 (11:27 -0700)]
Merge "Revert "Remove ViewTreeObserver allocations"" into jb-dev

12 years agoFixed cast exception with selectable text.
Gilles Debunne [Thu, 7 Jun 2012 17:50:58 +0000 (10:50 -0700)]
Fixed cast exception with selectable text.

Bug 6550358

The EditText constructor now calls setTextIsSelectable, which uses
getText where the cast exception happens because the EditText is not
yet fully built and its text does not have the right type.

Fixed by using mText directly instead of getText().

Change-Id: I52a2720ae99475881f210ac74464728cab92147e

12 years agorename exif to exif_jni due to refactoring in external/jhead
Keun young Park [Thu, 7 Jun 2012 01:14:50 +0000 (18:14 -0700)]
rename exif to exif_jni due to refactoring in external/jhead

- also pull libexif_jni from media_jni

Bug: 6623618
Change-Id: I4f06a4614c5fddcf98d95caff16a2c40f345dade

12 years agoMerge "Small NFC API docs addition." into jb-dev
Martijn Coenen [Thu, 7 Jun 2012 17:35:15 +0000 (10:35 -0700)]
Merge "Small NFC API docs addition." into jb-dev

12 years agoMerge "Back from the dead: Carrier name, background dimming." into jb-dev
Chris Wren [Thu, 7 Jun 2012 16:44:54 +0000 (09:44 -0700)]
Merge "Back from the dead: Carrier name, background dimming." into jb-dev

12 years agoMerge "Fix notification icon fading." into jb-dev
Chris Wren [Thu, 7 Jun 2012 16:44:34 +0000 (09:44 -0700)]
Merge "Fix notification icon fading." into jb-dev

12 years agoRevert "Remove ViewTreeObserver allocations"
Chet Haase [Thu, 7 Jun 2012 14:48:48 +0000 (07:48 -0700)]
Revert "Remove ViewTreeObserver allocations"

This reverts commit b999cc118fe430699e9a67d5dab355125b873abb.

There was an assumption in this earlier change that observer dispatching could not be
recursive - we could only ever have one iteration on the observer listener list. This
assumption broke down in a specific app, and maybe in more, so reverting the change for now.
We should probably find a way to accomplish the same allocation-minimizing goal without
causing exceptions when violating our assumptions.

Issue #6620795 [Application compatibility] Lufthansa app crashes

Change-Id: I1c1f9ad329c14398feb0e74ce77e1a07111f7d1f

12 years agoTrack canvas clearing for swap buffers logic.
Chet Haase [Thu, 7 Jun 2012 02:03:58 +0000 (19:03 -0700)]
Track canvas clearing for swap buffers logic.

A previous fix made it necessary for a frame to render something to GL
in order to cause a call to eglSwapBuffers(). Besides the calls being
tracked as part of issuing a DisplayList, there is also a potential call
to clear the canvas (via glClear()) on non-opaque surfaces. This call is also
good to track, since a surface that gets cleared without any other drawing operations
is worth flipping to the screen (to erase old contents on that surface).

This fix tracks the status of the pre-draw operations to find out whether
glClear() was called and then sets the drawing status appropriately.

Issue #6606422 QuickContact dismissal is janky again (Tracking)

Change-Id: I5fcaccfdc9293dd46b83f2fc279730a5d2740ebf

12 years agoProtect against bogus input for ListViews
Adam Powell [Thu, 7 Jun 2012 05:46:42 +0000 (22:46 -0700)]
Protect against bogus input for ListViews

Guard against cases where ListView might receive touch events while
detached.

Update ListMenuPresenter to dispatch a data set change when the
backing menu is changed.

Bug 6543282

Change-Id: If2fb9b6aa3cf4a1b7070a7cd0de0edf0fc2f4cca

12 years agoFix notification icon fading.
Daniel Sandler [Wed, 6 Jun 2012 20:32:21 +0000 (16:32 -0400)]
Fix notification icon fading.

Bug: 6581738
Change-Id: I547cae03533d9a9e6cf1d15e4b47845f61eee072

12 years agoBack from the dead: Carrier name, background dimming.
Daniel Sandler [Tue, 5 Jun 2012 17:44:14 +0000 (13:44 -0400)]
Back from the dead: Carrier name, background dimming.

Unlike previous versions of Android, we now show the current
wifi SSID in the carrier label if connected to wifi.

Bug: 6612419
Bug: 6620626
Change-Id: Ifb5ba8efe6dd387e960efc6a9b1da69a08e97d96

12 years agoMerge "New mouse pointer arrow with high res versions. Bug: 6579869" into jb-dev
Christian Robertson [Thu, 7 Jun 2012 00:56:36 +0000 (17:56 -0700)]
Merge "New mouse pointer arrow with high res versions. Bug: 6579869" into jb-dev

12 years agoFix for U+0449 (lowercase shcha) glyph in Roboto Light. Bug: 6609392
Christian Robertson [Thu, 7 Jun 2012 00:55:03 +0000 (17:55 -0700)]
Fix for U+0449 (lowercase shcha) glyph in Roboto Light. Bug: 6609392

Change-Id: Id320c0c73275dfc06282c5c7eec79824d2062665

12 years agoSmall NFC API docs addition.
Martijn Coenen [Wed, 6 Jun 2012 20:07:47 +0000 (13:07 -0700)]
Small NFC API docs addition.

Indicate that if the device does not support Bluetooth or WiFI,
calling the API is a no-op.

Bug: 6620788
Change-Id: Ib261e0e7855d0914e97803b3b808015b72f3a186

12 years agoMerge "Revert "Add temporary functor detach logging"" into jb-dev
Chris Craik [Wed, 6 Jun 2012 23:59:01 +0000 (16:59 -0700)]
Merge "Revert "Add temporary functor detach logging"" into jb-dev

12 years agoRevert "Add temporary functor detach logging"
Chris Craik [Wed, 6 Jun 2012 23:45:53 +0000 (16:45 -0700)]
Revert "Add temporary functor detach logging"

bug:6608646

This reverts commit f98851ab37c07b243c485168cca201b07a22e6c7

12 years agoMerge "Revert "Add more temporary logging for investigating detachFunctor"" into...
Chris Craik [Wed, 6 Jun 2012 23:45:04 +0000 (16:45 -0700)]
Merge "Revert "Add more temporary logging for investigating detachFunctor"" into jb-dev

12 years agoMerge "add MINIMAL_FONT_FOOTPRINT configuration for PDK" into jb-dev
Keun young Park [Wed, 6 Jun 2012 23:24:25 +0000 (16:24 -0700)]
Merge "add MINIMAL_FONT_FOOTPRINT configuration for PDK" into jb-dev

12 years agoAdded a tvdpi specific background 9 patch
Gilles Debunne [Wed, 6 Jun 2012 23:21:41 +0000 (16:21 -0700)]
Added a tvdpi specific background 9 patch

Bug 6612759

Change-Id: If006b254b100ab9fcf8f31b500945c787b4c7b36

12 years agoDelete old forward-locked apps on upgrade
Kenny Root [Wed, 6 Jun 2012 23:05:05 +0000 (16:05 -0700)]
Delete old forward-locked apps on upgrade

The old style forward-locked apps were in a directory called
/data/app-private but the new style forward-locked apps are in ASEC
containers. This made the upgrade path confused and it wouldn't
correctly generate the InstallArgs to delete the old file.

Bug: 6619438
Change-Id: If4323fa8701d9fc653998f5db58670b4124b9e87

12 years agoMerge "Update group capability before connect" into jb-dev
Irfan Sheriff [Wed, 6 Jun 2012 22:45:41 +0000 (15:45 -0700)]
Merge "Update group capability before connect" into jb-dev

12 years agoMerge "Ensure we compute display name when needed" into jb-dev
Marco Nelissen [Wed, 6 Jun 2012 22:44:20 +0000 (15:44 -0700)]
Merge "Ensure we compute display name when needed" into jb-dev

12 years agoMerge "Disable automatic screen dimming." into jb-dev
Craig Mautner [Wed, 6 Jun 2012 22:24:36 +0000 (15:24 -0700)]
Merge "Disable automatic screen dimming." into jb-dev

12 years agoFix build.
Dianne Hackborn [Wed, 6 Jun 2012 22:02:25 +0000 (15:02 -0700)]
Fix build.

Change-Id: I42c3f6466d926258bbd303f2082de7207734451a

12 years agoUpdate group capability before connect
Irfan Sheriff [Wed, 6 Jun 2012 19:03:33 +0000 (12:03 -0700)]
Update group capability before connect

We need to get the latest group capability information before connect
now that the supplicant behavior is to do a delayed cleanup.

Bug: 6613470
Change-Id: Ie374d750950f3bd4376fd6a767bb253fd7986eb1

12 years agoDisable automatic screen dimming.
Craig Mautner [Wed, 6 Jun 2012 21:49:44 +0000 (14:49 -0700)]
Disable automatic screen dimming.

Done by setting the dimming period to Integer.MAX_VALUE. While it
doesn't technically disable dimming it will take 248 days to get to
any target value.

Fixes bug 6616423.

Change-Id: I5b753286b9d93664fbff79021be38adf4d8a007d

12 years agoMerge "Set screen brightness to match sensor at power on." into jb-dev
Craig Mautner [Wed, 6 Jun 2012 21:39:29 +0000 (14:39 -0700)]
Merge "Set screen brightness to match sensor at power on." into jb-dev

12 years agoadd MINIMAL_FONT_FOOTPRINT configuration for PDK
Keun young Park [Tue, 5 Jun 2012 22:20:17 +0000 (15:20 -0700)]
add MINIMAL_FONT_FOOTPRINT configuration for PDK

- all non-latin fonts excluded
- symlink used to create additional fonts

Bug: 6540216

Change-Id: Id0909124dc1d71331bde3c5911c24eee5b1692a2

12 years agoMerge "Fix some divide by zero errors that could crash the system." into jb-dev
Dianne Hackborn [Wed, 6 Jun 2012 21:16:05 +0000 (14:16 -0700)]
Merge "Fix some divide by zero errors that could crash the system." into jb-dev

12 years agoSet screen brightness to match sensor at power on.
Craig Mautner [Wed, 6 Jun 2012 21:13:39 +0000 (14:13 -0700)]
Set screen brightness to match sensor at power on.

Use the first sensor value received after screen on to set the screen
brightness. Do this setting immediately rather than animate to the
target brightness.

Fixes bug 6612418.

Change-Id: I6c24c55e0bd35ef58a6494d3b5e449954241fd00

12 years agoRevert "Add more temporary logging for investigating detachFunctor"
Chris Craik [Wed, 6 Jun 2012 20:59:33 +0000 (13:59 -0700)]
Revert "Add more temporary logging for investigating detachFunctor"

bug:6608646

This reverts commit 8857b2f76abad1e4ec742dfd85d0c997880be376

Change-Id: I1563b5974c52b84201ae448298f804eb0dcc235d

12 years agoMerge "DO NOT MERGE: Remove SMS shortcode warning feature." into jb-dev
Jake Hamby [Wed, 6 Jun 2012 21:01:24 +0000 (14:01 -0700)]
Merge "DO NOT MERGE: Remove SMS shortcode warning feature." into jb-dev

12 years agoEnsure we compute display name when needed
Marco Nelissen [Wed, 6 Jun 2012 20:37:50 +0000 (13:37 -0700)]
Ensure we compute display name when needed

Since the media scanner no longer uses an in memory cache, it always
found an entry for files inserted via MTP, which made it follow a
different code path than before, which in turn made the media
provider skip computing the display name column.
By clearing the row id in the media scanner when handling an mtp
request, we steer it back to the correct code path.
b/6297105
b/6525450

Change-Id: I624522b176a0057d246ce3040598af255b00a141

12 years agoDO NOT MERGE: Remove SMS shortcode warning feature.
Jake Hamby [Wed, 6 Jun 2012 20:56:50 +0000 (13:56 -0700)]
DO NOT MERGE: Remove SMS shortcode warning feature.

Fix jb-dev build. The SMS shortcode warning feature has some usability
limitations which need to be resolved before shipping. Remove the code
for JellyBean. It will be added back to a future release when the
feature is complete.

Bug: 6605549
Change-Id: Ic8a68dc0b1ad038618962185f5ee680d5281ca21

12 years agoMerge "Revert "Import translations. DO NOT MERGE"" into jb-dev
Eric Fischer [Wed, 6 Jun 2012 20:53:00 +0000 (13:53 -0700)]
Merge "Revert "Import translations. DO NOT MERGE"" into jb-dev

12 years agoRevert "Import translations. DO NOT MERGE"
Eric Fischer [Wed, 6 Jun 2012 20:51:50 +0000 (13:51 -0700)]
Revert "Import translations. DO NOT MERGE"

This reverts commit 6a6f746ece453c43aa92808cd140012866c8eb5c

12 years agoMerge "Fix bug 6499508" into jb-dev
Michael Jurka [Wed, 6 Jun 2012 20:31:58 +0000 (13:31 -0700)]
Merge "Fix bug 6499508" into jb-dev

12 years agoMerge "Docs (mostly): enumerate JELLY_BEAN target SDK changes." into jb-dev
Dianne Hackborn [Wed, 6 Jun 2012 20:31:55 +0000 (13:31 -0700)]
Merge "Docs (mostly): enumerate JELLY_BEAN target SDK changes." into jb-dev

12 years agoMerge "Always queue A2DP connection state message with wakelock held" into jb-dev
Jean-Michel Trivi [Wed, 6 Jun 2012 20:31:53 +0000 (13:31 -0700)]
Merge "Always queue A2DP connection state message with wakelock held" into jb-dev

12 years agoMerge "New background for notification panel header." into jb-dev
Daniel Sandler [Wed, 6 Jun 2012 19:58:35 +0000 (12:58 -0700)]
Merge "New background for notification panel header." into jb-dev

12 years agoMerge "Import translations. DO NOT MERGE" into jb-dev
Eric Fischer [Wed, 6 Jun 2012 19:37:51 +0000 (12:37 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev

12 years agoImport translations. DO NOT MERGE
Eric Fischer [Wed, 6 Jun 2012 19:02:00 +0000 (12:02 -0700)]
Import translations. DO NOT MERGE

Change-Id: I5a8719c293a25460058ad5b62069ea80c33da110

12 years agoFix some divide by zero errors that could crash the system.
Dianne Hackborn [Wed, 6 Jun 2012 18:48:46 +0000 (11:48 -0700)]
Fix some divide by zero errors that could crash the system.

Change-Id: I66273df84e45de59b5b161f4d13de67a9e0f46d5

12 years agoDocs (mostly): enumerate JELLY_BEAN target SDK changes.
Dianne Hackborn [Wed, 6 Jun 2012 00:38:50 +0000 (17:38 -0700)]
Docs (mostly): enumerate JELLY_BEAN target SDK changes.

Okay this isn't entirely docs.  I have un-hidden the new permission
for binding to accessibility services; we were going to go out with
it hidden since it didn't go into factory ROM, but now that we are
doing other things we might as well expose it.

Also changed a log from E to W, since it is not an error.

Change-Id: I9226c95e3b63e12218fe41dc3f4290d9824a9e5c

12 years agoAlways queue A2DP connection state message with wakelock held
Jean-Michel Trivi [Wed, 6 Jun 2012 17:51:58 +0000 (10:51 -0700)]
Always queue A2DP connection state message with wakelock held

Messages for changes to A2DP connection state are intended to be
 queued in AudioService after acquiring a wake lock, which is
 released after the message has been handled.
This was correctly done for connection messages when the system
 is up and running, but wasn't when the BluetoothProfile service
 listener gets an onServiceConnected() event, which is the case
 the the device boots.
This change correctly uses the queueMsgUnderWakeLock() method
 whenever a MSG_SET_A2DP_CONNECTION_STATE is to be sent.

Bug 6616292

Change-Id: Ie337a4641a89c522e2d233bccaac4e08ce324117

12 years agoMerge "Removing leftover code to sync accessibility and input focus." into jb-dev
Svetoslav Ganov [Wed, 6 Jun 2012 17:55:12 +0000 (10:55 -0700)]
Merge "Removing leftover code to sync accessibility and input focus." into jb-dev

12 years agoFix bug 6499508
Michael Jurka [Wed, 6 Jun 2012 17:05:46 +0000 (10:05 -0700)]
Fix bug 6499508

Using a HashSet for the recycled views, instead of an ArrayList, to ensure items are not double-added

12 years agoMerge "Remove transient and unnecessary update density message." into jb-dev
Mangesh Ghiware [Wed, 6 Jun 2012 15:32:36 +0000 (08:32 -0700)]
Merge "Remove transient and unnecessary update density message." into jb-dev

12 years agoNew background for notification panel header.
Daniel Sandler [Mon, 4 Jun 2012 20:18:35 +0000 (16:18 -0400)]
New background for notification panel header.

Bug: 6593364
Change-Id: Ifc0a9c17cbb413316d9a06d9b29cf4ca843c2103

12 years agoRemoving leftover code to sync accessibility and input focus.
Svetoslav Ganov [Wed, 6 Jun 2012 04:10:00 +0000 (21:10 -0700)]
Removing leftover code to sync accessibility and input focus.

1. We have decided to let the accessibility services take care
   for syncing accessibility and input focus. Some apps may
   move input focus when a given view takes input focus which
   dragging accessibility focus can lead to a loop in the
   focus traversal. This change removes some leftover sync
   code.

bug:6616861

Change-Id: I57cb44e315a386d13596794d3767b559e9ee3d99

12 years agoMerge "More fun with MediaRouter" into jb-dev
Adam Powell [Wed, 6 Jun 2012 02:27:49 +0000 (19:27 -0700)]
Merge "More fun with MediaRouter" into jb-dev

12 years agoMore fun with MediaRouter
Adam Powell [Tue, 5 Jun 2012 02:22:45 +0000 (19:22 -0700)]
More fun with MediaRouter

Add action provider, button, and styles. Extend ActionProvider to
allow for getting references to MenuItem instances.

Implement toggle mode for the MediaRouteButton/ActionProvider. Dialog
selection yet to come.

Change-Id: Ibe3188570f503bbf8dd00cf154663435656a7171

12 years agoMerge "Implement new rotation policy." into jb-dev
Jeff Brown [Wed, 6 Jun 2012 02:11:13 +0000 (19:11 -0700)]
Merge "Implement new rotation policy." into jb-dev

12 years agoRemove transient and unnecessary update density message.
Mangesh Ghiware [Wed, 6 Jun 2012 01:46:10 +0000 (18:46 -0700)]
Remove transient and unnecessary update density message.

On a page load, the (viewport) metadata settings for the main frame are
reset. Reloading a page with viewport meta tag specifying target density
dpi will result in 2 back to back update zoom density messages to be
sent from WebViewCore to UI thread.

In setupViewport(), remove update density messages in flight. If the new
density is indeed different from WebView's default scale, queue another
message.

Bug: 6509512
Change-Id: I195e40277bf1bcccb0e61d84ed84db1e34556243

12 years agoMerge "Fix issue #6609383: java.lang.SecurityException: Requires..." into jb-dev
Dianne Hackborn [Wed, 6 Jun 2012 01:01:29 +0000 (18:01 -0700)]
Merge "Fix issue #6609383: java.lang.SecurityException: Requires..." into jb-dev

12 years agoImplement new rotation policy.
Jeff Brown [Wed, 6 Jun 2012 00:47:11 +0000 (17:47 -0700)]
Implement new rotation policy.

Rotation lock does not override NOSENSOR mode anymore.

Centralize the rotation policy settings into a new class shared by
the System UI and Settings applications.

Add a new setting to specify whether rotation-lock is being hidden
because the "auto-rotate screen" option has been toggled in the
Accessibility settings panel.

Bug: 6523269
Change-Id: I15173280d25bc5d101e89a9c65913aefc53fc33a

12 years agoConfiguration for lock and UI sound levels
Jean-Michel Trivi [Tue, 5 Jun 2012 18:57:59 +0000 (11:57 -0700)]
Configuration for lock and UI sound levels

Define two integers in the platform configuration to
 define the sound level for lock/unlock sounds, and
 UI sound effects.
Use the corresponding value in KeyguardViewMediator for the lock sounds.
Use the corresponding value in AudioService when playing sound effects.

Bug 6448481

Change-Id: Ie238f5eb1645e395412864d93447ac4049f7e54b

12 years agoMerge "Fix logspam" into jb-dev
John Reck [Tue, 5 Jun 2012 23:50:10 +0000 (16:50 -0700)]
Merge "Fix logspam" into jb-dev

12 years agoMerge "DO NOT MERGE: Remove SMS shortcode warning feature." into jb-dev
Jake Hamby [Tue, 5 Jun 2012 23:34:27 +0000 (16:34 -0700)]
Merge "DO NOT MERGE: Remove SMS shortcode warning feature." into jb-dev

12 years agoFix issue #6609383: java.lang.SecurityException: Requires...
Dianne Hackborn [Tue, 5 Jun 2012 23:20:46 +0000 (16:20 -0700)]
Fix issue #6609383: java.lang.SecurityException: Requires...

...MANAGE_APP_TOKENS permission

Bug: 6609383
Change-Id: I5ce8ac1ec496af50477111b46e6daea81181e3ca

12 years agoMerge "Report extended error information from SQLite." into jb-dev
Jeff Brown [Tue, 5 Jun 2012 23:04:45 +0000 (16:04 -0700)]
Merge "Report extended error information from SQLite." into jb-dev