OSDN Git Service

android-x86/frameworks-base.git
12 years agoMerge "Support route grouping in the MediaRouter dialog UI." into jb-dev
Adam Powell [Thu, 14 Jun 2012 18:25:20 +0000 (11:25 -0700)]
Merge "Support route grouping in the MediaRouter dialog UI." into jb-dev

12 years agoMerge "Fix bug #6661824 Hebrew Text can be clipped" into jb-dev
Fabrice Di Meglio [Thu, 14 Jun 2012 17:50:36 +0000 (10:50 -0700)]
Merge "Fix bug #6661824 Hebrew Text can be clipped" into jb-dev

12 years agoMerge "Active window not updated window not updated properly." into jb-dev
Svetoslav Ganov [Thu, 14 Jun 2012 17:48:09 +0000 (10:48 -0700)]
Merge "Active window not updated window not updated properly." into jb-dev

12 years agoActive window not updated window not updated properly.
Svetoslav Ganov [Thu, 14 Jun 2012 17:30:00 +0000 (10:30 -0700)]
Active window not updated window not updated properly.

1. Accessibility allows querying only of the active window.
   The active window is the one that has input focus or the
   one the user is touching. Hence, if the user is touching
   a window that does not have input focus this window is
   the active one and as soon as the user stops touching
   it the active window becomes the one that has input
   focus. Currently the active window is not updated properly
   when the user lifts his finger. This leads to a scenario
   of traversal actions sent to the wrong window and the user
   being stuck.

   The reason is that the last touch explored event that is
   used to determine where to click is cleared when accessibility
   focus moves but this event is also used to determine when to
   send the hover exit and touch exploration gesture end events.
   The problem is that the last hover event is cleared before
   it is used for sending the right exit events, thus the event
   stream is inconsistent and the accessibility manager service
   relies on this stream to update the active window. Now we
   are keeping separate copies of the last touch event - one
   for clicking and one for determining the which events to
   inject to ensure consistent stream.

bug:6666041

Change-Id: Ie9961e562a42ef8a9463afacfff2246adcb66303

12 years agoMerge "If a gesture cannot be detected the device should transition to touch explorat...
Svetoslav Ganov [Thu, 14 Jun 2012 17:03:59 +0000 (10:03 -0700)]
Merge "If a gesture cannot be detected the device should transition to touch exploration state." into jb-dev

12 years agoMerge "NavBar: Slippery on the unsecured lock screen." into jb-dev
John Spurlock [Thu, 14 Jun 2012 15:53:12 +0000 (08:53 -0700)]
Merge "NavBar: Slippery on the unsecured lock screen." into jb-dev

12 years agoMerge "Fix NPE when public API removeProximityAlert() used before addProximityAlert...
Nick Pelly [Thu, 14 Jun 2012 15:34:12 +0000 (08:34 -0700)]
Merge "Fix NPE when public API removeProximityAlert() used before addProximityAlert()." into jb-dev

12 years agoMerge "Remove an unnecessary animation." into jb-dev
Daniel Sandler [Thu, 14 Jun 2012 14:15:29 +0000 (07:15 -0700)]
Merge "Remove an unnecessary animation." into jb-dev

12 years agoNavBar: Slippery on the unsecured lock screen.
John Spurlock [Wed, 13 Jun 2012 15:19:51 +0000 (11:19 -0400)]
NavBar: Slippery on the unsecured lock screen.

The NavBar is always non-slippery, except when:
 - the notification shade is showing
 - the 3 buttons (back,home,recents) are disabled

Also fix unrelated bug that ignored the "show panel delay"
before the first config change.

Bug: 6614842
Change-Id: Ib40adaef122b563809398fdebbd8a88d8f0c7ffd

12 years agoMerge "enable touch feedback on notification title." into jb-dev
Chris Wren [Thu, 14 Jun 2012 12:47:08 +0000 (05:47 -0700)]
Merge "enable touch feedback on notification title." into jb-dev

12 years agoMerge "Invert the sense of the two-figner direction on tablets." into jb-dev
Chris Wren [Thu, 14 Jun 2012 12:46:49 +0000 (05:46 -0700)]
Merge "Invert the sense of the two-figner direction on tablets." into jb-dev

12 years agoMerge "When SIM absent, keyguard should be considered non-secure." into jb-dev
Jeff Brown [Thu, 14 Jun 2012 09:45:35 +0000 (02:45 -0700)]
Merge "When SIM absent, keyguard should be considered non-secure." into jb-dev

12 years agoMerge "Add property to override backdropper effect threshold." into jb-dev
Ruei-sung Lin [Thu, 14 Jun 2012 06:41:38 +0000 (23:41 -0700)]
Merge "Add property to override backdropper effect threshold." into jb-dev

12 years agoSupport route grouping in the MediaRouter dialog UI.
Adam Powell [Thu, 14 Jun 2012 06:15:49 +0000 (23:15 -0700)]
Support route grouping in the MediaRouter dialog UI.

Change-Id: Idcae12cedfb7ca13950e7fa45441fba2029a9f68

12 years agoIf a gesture cannot be detected the device should transition to touch exploration...
Svetoslav Ganov [Thu, 14 Jun 2012 04:01:51 +0000 (21:01 -0700)]
If a gesture cannot be detected the device should transition to touch exploration state.

1. We are deciding whether the user is performing a gesture or an exploration based
   on the gesture velocity. If we are detecting gesture we do the recognition at the
   gesture end which is when the finger goes up. This is better than having a mode
   toggle gesture for exploring and gestures detection. However, it is possible that
   the user really wanted to perform an exploration but was moving too fast and
   unless he lifts his finger the device is in gesture detection mode. This is
   frustrating since the user has no feedback and assumes exploration does not
   work.

   We want to perform gesture detection only for a maximal time frame and if the
   user did not lift his finger we transition into touch exploration state.

bug:6663173

Change-Id: I954ff937cca902e31b51325d1e1dfce84d239624

12 years agoMerge "BUG 5457035: lowering max FUL failed attempts to 3" into jb-dev
Uriel Rodriguez [Thu, 14 Jun 2012 04:11:12 +0000 (21:11 -0700)]
Merge "BUG 5457035: lowering max FUL failed attempts to 3" into jb-dev

12 years agoWhen SIM absent, keyguard should be considered non-secure.
Jeff Brown [Thu, 14 Jun 2012 03:00:49 +0000 (20:00 -0700)]
When SIM absent, keyguard should be considered non-secure.

Previously, it was observed that while a SIM is being initialized
by the hardware the SIM may briefly be reported as being in an
ABSENT state before eventually transitioning into a READY,
PIN_REQUIRED, PUK_REQUIRED, PERM_DISABLE state.

While booting up, the phone might observe that the SIM is ABSENT and
therefore bypass the keyguard going straight to the home screen.
Later when the SIM was fully initialized, the phone would revert back
to the lock screen in order to ask for the PIN.  The user might
turn on the phone, slide out the keyboard (bypassing the keyguard),
then a few moments later the keyguard would pop up prompting for a PIN.

The user experience could be somewhat jarring, so the keyguard was
changed to handle the transient case differently.  While the SIM
was ABSENT, the keyguard would not be automatically bypassed
by opening the keyboard slider.  Thus the user would be forced to
manually swipe away the keyguard before interacting with the
device.  This would help to cover the time it would take before
the SIM was fully initialized and the keyguard could determine
whether the user would need to be prompted for a SIM PIN or PUK.

To prevent the keyguard from being bypassed automatically, we
hacked up the keyguard so that it would be considered to be in a
secure state while the SIM was ABSENT.  It's worth noting that
considering the keyguard to be secure did not confer any
additional security properties to the system whatsoever.
If the user did not have a pattern lock, PIN or password set then
all it would take to access the phone is to swipe away the keyguard.

This old hack was all about devices with slide-out keyboards,
but it had some side-effects.  Namely, it assumed that the SIM
ABSENT state was transient.  But what about phones that are
being used without a SIM at all?

Considering the keyguard to be secure when the SIM is ABSENT
breaks stuff.  In fact, it turns out that making the keyguard
secure isn't really what we want at all.  What we want is a way
to prevent the keyguard from being automatically bypassed on
boot when the user opens up a sliding keyboard.  But we don't
have those anymore... and in the worst case it was just a little
janky... and what's more, nowadays the keyguard provides useful
features so maybe we shouldn't bypass it anyhow... oh and actually,
I deleted the code that used to bypass the keyguard when the
keyboard slider was opened... so this does nothing useful at all.

Right...

This change removes the old hack thereby ensuring that non-secure
keyguard features like launching the Camera or Assistant or
application features like hands-free voice search will work
correctly on phones without a SIM.

Bug: 6022658
Change-Id: I019d1d8c65c55cbf4d10d4928e1d2b2b242162a6

12 years agoMerge "Remove line3 in big notification unless there's text to show." into jb-dev
Daniel Sandler [Thu, 14 Jun 2012 01:00:56 +0000 (18:00 -0700)]
Merge "Remove line3 in big notification unless there's text to show." into jb-dev

12 years agoFix NPE when public API removeProximityAlert() used before addProximityAlert().
Nick Pelly [Wed, 13 Jun 2012 23:45:27 +0000 (16:45 -0700)]
Fix NPE when public API removeProximityAlert() used before addProximityAlert().

Bug: 6313992
Change-Id: I905ad9ea771286727ce4a3a2334f2a0dac967c3d

12 years agoFix bug #6661824 Hebrew Text can be clipped
Fabrice Di Meglio [Wed, 13 Jun 2012 22:45:38 +0000 (15:45 -0700)]
Fix bug #6661824 Hebrew Text can be clipped

- use the correct ellipsis char in both measurement and rendered string

Change-Id: Ia00285fc16da528f18702719026503b5d0610642

12 years agoAdd property to override backdropper effect threshold.
Eino-Ville Talvala [Fri, 8 Jun 2012 21:35:13 +0000 (14:35 -0700)]
Add property to override backdropper effect threshold.

Also, change the default background mean to be the first incoming frame.

Bug: 6600585
Change-Id: I2181e75711d48d01f48e3fb1d604eb467f08fda4

12 years agoMerge "Do not hide animating window behind keyguard." into jb-dev
Craig Mautner [Wed, 13 Jun 2012 22:27:51 +0000 (15:27 -0700)]
Merge "Do not hide animating window behind keyguard." into jb-dev

12 years agoMerge "Call WebView.performLongClick instead of performLongClick()" into jb-dev
John Reck [Wed, 13 Jun 2012 21:59:13 +0000 (14:59 -0700)]
Merge "Call WebView.performLongClick instead of performLongClick()" into jb-dev

12 years agoBUG 5457035: lowering max FUL failed attempts to 3
Uriel Rodriguez [Wed, 13 Jun 2012 21:30:13 +0000 (17:30 -0400)]
BUG 5457035: lowering max FUL failed attempts to 3

After an unrecognized face occurs 3 times in a row, we disable FUL until the user unlocks via the
backup lock.  Lowering this values makes spoofing with liveliness enabled more difficult.  Since
we currently don't differentiate between the max number attempts with and without liveliness
enabled, we had to lower it for all uses of FUL.

Change-Id: I7a429f64cde2767ddd2ceb0885343acd0b802aac

12 years agoMerge "Update wallpaper visibility at time of hide/show." into jb-dev
Craig Mautner [Wed, 13 Jun 2012 21:09:08 +0000 (14:09 -0700)]
Merge "Update wallpaper visibility at time of hide/show." into jb-dev

12 years agoMerge "MediaRouter dialog" into jb-dev
Adam Powell [Wed, 13 Jun 2012 21:02:53 +0000 (14:02 -0700)]
Merge "MediaRouter dialog" into jb-dev

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

12 years agoenable touch feedback on notification title.
Chris Wren [Wed, 13 Jun 2012 17:35:43 +0000 (13:35 -0400)]
enable touch feedback on notification title.

Bug: 6646294
Change-Id: I8ef6fa104dabe280a45258181aa2ed597e433fca

12 years agoMerge "Clear identity when snoozing limit." into jb-dev
Jeff Sharkey [Wed, 13 Jun 2012 19:06:10 +0000 (12:06 -0700)]
Merge "Clear identity when snoozing limit." into jb-dev

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

Change-Id: Ic1cf133bf3f6b25be1bc748595024f973c0f0deb

12 years agoMediaRouter dialog
Adam Powell [Tue, 12 Jun 2012 23:59:45 +0000 (16:59 -0700)]
MediaRouter dialog

Add the dialog behavior for MediaRouteActionProvider/MediaRouteButton.

Still TODO:

* Switch audio icon based on source; speaker/bt/user

* Rig up volume slider

* Rig up item icons

* Rig up group button for groupable categories

* Make grouping work

Change-Id: I3f992516b184d5ae940ddb7bbb7f94ff58914589

12 years agoCall WebView.performLongClick instead of performLongClick()
John Reck [Wed, 13 Jun 2012 17:37:40 +0000 (10:37 -0700)]
Call WebView.performLongClick instead of performLongClick()

 Bug: 6656538
 Due to the WebView/WebViewClassic refactor we need to call
 WebView.performLongClick instead of performLongClick directly
 to allow subclasses to override performLongClick

Change-Id: I9b580217fbafc82d03e63eabfdda9f5bad98db0f

12 years agoRemove an unnecessary animation.
Daniel Sandler [Wed, 13 Jun 2012 17:36:52 +0000 (13:36 -0400)]
Remove an unnecessary animation.

When the notification panel is full-width (small devices
like phones) we can just leave the icons showing all the
time, which saves a little CPU during the
performance-critical shade expand operation.

On sw600dp devices we continue to use DISABLE_SYSTEM_INFO to
smoothly hide the status bar when the notification panel
appears (and show it when the panel is dismissed).

Bug: 6555172
Change-Id: I59a1226549dd1e51c375c3972b47079c1ee856b0

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 agoRemove line3 in big notification unless there's text to show.
Daniel Sandler [Wed, 13 Jun 2012 16:17:07 +0000 (12:17 -0400)]
Remove line3 in big notification unless there's text to show.

If you have no subText or summaryText in a big template, but
you *do* have a number, the overflow bar (below the big text
or inbox or whatever) would have shown; now it does not.

Bug: 6657006
Change-Id: Ib2af2712da3a98227bd8d697560893adbdc427e9

12 years agoUpdate wallpaper visibility at time of hide/show.
Craig Mautner [Wed, 13 Jun 2012 15:39:38 +0000 (08:39 -0700)]
Update wallpaper visibility at time of hide/show.

Call the Window client method dispatchAppVisibility when hiding or
showing wallpaper rather than wait until the next call to
performLayoutAndPlaceSurfaces.

Fixes bug 6645473.

Change-Id: I363f69f8db0affff92308e11ce52546401959d8f

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 agoClear identity when snoozing limit.
Jeff Sharkey [Wed, 13 Jun 2012 04:06:30 +0000 (21:06 -0700)]
Clear identity when snoozing limit.

Continues to check MANAGE_NETWORK_POLICY permission.  This allows
SystemUI to invoke snoozeLimit() without CONNECTIVITY_INTERNAL.

Bug: 6653091
Change-Id: I464bf62b79f2647c6b6db151251a0036897d0cc0

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 agoDo not hide animating window behind keyguard.
Craig Mautner [Tue, 12 Jun 2012 22:50:45 +0000 (15:50 -0700)]
Do not hide animating window behind keyguard.

The transition from clock to keyguard when restarting the device
was janky. The cause was that the clock app was animating away
which kept the adjustWallpaperWindowsLocked() method from setting
the keyguard as the new mWallpaperTarget. At the same time the
WindowAnimator saw that the keyguard was readyToDisplay() which
set mForceHiding true causing the clock to become hidden. Since
the clock was mWallpaperTarget the wallpaper was hidden at the
same time.

This fix does not allow mForceHiding to hide an animating
window.

Fixes bug 6649988.

Change-Id: Ie5cb0dfcc987d5ee1ad2351cf520629b8e301a2b

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 agoInvert the sense of the two-figner direction on tablets.
Chris Wren [Mon, 11 Jun 2012 14:39:36 +0000 (10:39 -0400)]
Invert the sense of the two-figner direction on tablets.

Bug: 6506376
Change-Id: Ife336c6695608f14554e18e32ea35f118d7f12e2

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