OSDN Git Service

android-x86/frameworks-base.git
12 years agoMerge "MediaRouter group volume reporting" into jb-dev
Adam Powell [Thu, 21 Jun 2012 07:12:04 +0000 (00:12 -0700)]
Merge "MediaRouter group volume reporting" into jb-dev

12 years agoMediaRouter group volume reporting
Adam Powell [Thu, 21 Jun 2012 06:46:19 +0000 (23:46 -0700)]
MediaRouter group volume reporting

RouteGroups always report back the loudest volume of their component
routes. Maintain this through volume update requests (such as those
reported by volume hard keys) such that each route updates
individually, but the group slider always indicates the loudest value.

Change-Id: I5de4b9048bf55682b6271e9485fe50496a1c97c2

12 years agoMerge "Import translations. DO NOT MERGE" into jb-dev
Eric Fischer [Thu, 21 Jun 2012 05:42:58 +0000 (22:42 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev

12 years agoMerge "Expand volume APIs for MediaRouter" into jb-dev
Adam Powell [Thu, 21 Jun 2012 05:32:39 +0000 (22:32 -0700)]
Merge "Expand volume APIs for MediaRouter" into jb-dev

12 years agoExpand volume APIs for MediaRouter
Adam Powell [Wed, 20 Jun 2012 22:56:39 +0000 (15:56 -0700)]
Expand volume APIs for MediaRouter

Allow applications to set a requested volume level on RouteInfo
objects. If requested for a user route, the app-supplied callback will
be invoked to perform actual volume adjustment.

Change-Id: I856990a0da7292492aa15e6562dbc3d055b848a0

12 years agoMerge "Don't reset brightness to 0 on initial boot." into jb-dev
Jeff Brown [Thu, 21 Jun 2012 03:37:37 +0000 (20:37 -0700)]
Merge "Don't reset brightness to 0 on initial boot." into jb-dev

12 years agoImport translations. DO NOT MERGE
Eric Fischer [Thu, 21 Jun 2012 02:48:35 +0000 (19:48 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ic5c7a282f3ce75cba92d8cda741ecaa9088d12be

12 years agoMerge "made the pressed state white" into jb-dev
Hiroshi Lockheimer [Thu, 21 Jun 2012 02:47:19 +0000 (19:47 -0700)]
Merge "made the pressed state white" into jb-dev

12 years agoDon't reset brightness to 0 on initial boot.
Jeff Brown [Thu, 21 Jun 2012 02:20:57 +0000 (19:20 -0700)]
Don't reset brightness to 0 on initial boot.

Bug: 6705012
Change-Id: I8114fda081784abbe720d5eaa637aa5234b5a947

12 years agoMerge "Crash in SurfaceTextureTarget filter open" into jb-dev
Pannag Sanketi [Thu, 21 Jun 2012 02:32:44 +0000 (19:32 -0700)]
Merge "Crash in SurfaceTextureTarget filter open" into jb-dev

12 years agoMerge "Make animations persist after completion." into jb-dev
Craig Mautner [Thu, 21 Jun 2012 02:28:16 +0000 (19:28 -0700)]
Merge "Make animations persist after completion." into jb-dev

12 years agoCrash in SurfaceTextureTarget filter open
Pannag Sanketi [Fri, 18 May 2012 18:38:37 +0000 (11:38 -0700)]
Crash in SurfaceTextureTarget filter open

If the filter graph in an app closes out, the SurfaceTextureTarget
filter was losing the reference to the original surfacetexture, and the
app would re-start the graph without setting the surfacetexture again,
thus leading to a crash in registering a surface from surfacetexture.

Typical scenarios is start/stop immediately in camera effects recording.

Fix part of b/6651352
Fix part of b/6655597

Change-Id: Ib2bae7e886784e91b3a886f7ccd439ff190feb22

12 years agoMake animations persist after completion.
Craig Mautner [Thu, 21 Jun 2012 01:27:32 +0000 (18:27 -0700)]
Make animations persist after completion.

Transition animations were set to fillAfter=false which caused them
to revert when they had completed. Normally this would not have
mattered as the final state was obscured by the new Activity. In
the case of the Phone app the Activities churn so much that the
original Activity was exposed.

Fixes bug 6691421.

Change-Id: I96b8a43d0a2cac9a34a14a309548c41451c65a57

12 years agoMerge "Change hard-coded URL for accessibility script." into jb-dev
Svetoslav Ganov [Thu, 21 Jun 2012 01:09:58 +0000 (18:09 -0700)]
Merge "Change hard-coded URL for accessibility script." into jb-dev

12 years agoMerge "Fix crash when SimpleCursorAdapter changes cursor from null" into jb-dev
Hung-ying Tyan [Thu, 21 Jun 2012 00:56:40 +0000 (17:56 -0700)]
Merge "Fix crash when SimpleCursorAdapter changes cursor from null" into jb-dev

12 years agoMerge "Fix GlowPadView accessibility behavior." into jb-dev
Svetoslav Ganov [Wed, 20 Jun 2012 23:52:16 +0000 (16:52 -0700)]
Merge "Fix GlowPadView accessibility behavior." into jb-dev

12 years agoChange hard-coded URL for accessibility script.
alanv [Wed, 20 Jun 2012 23:51:00 +0000 (16:51 -0700)]
Change hard-coded URL for accessibility script.

The old version of the script is broken and is cached due to an error in
our gstatic configuration. We had to change the name to avoid hitting the
cached version on external proxies.

Bug: 6702042
Change-Id: I0e5ee8b3a6ae8c7ba11f5760f2f99d4b5614ac97

12 years agoMerge "Unhide new API in android.media.MediaRouter for remote playback" into jb-dev
Jean-Michel Trivi [Wed, 20 Jun 2012 23:41:44 +0000 (16:41 -0700)]
Merge "Unhide new API in android.media.MediaRouter for remote playback" into jb-dev

12 years agoMerge "Asynchronous handling of remote volume updates" into jb-dev
Jean-Michel Trivi [Wed, 20 Jun 2012 23:41:25 +0000 (16:41 -0700)]
Merge "Asynchronous handling of remote volume updates" into jb-dev

12 years agoMerge "Add a private method to retrieve the header list from PreferenceActivity"...
Amith Yamasani [Wed, 20 Jun 2012 22:44:48 +0000 (15:44 -0700)]
Merge "Add a private method to retrieve the header list from PreferenceActivity" into jb-dev

12 years agoCherrypick from ics-mr1 Change-Id: I2f63aef72962990afeb2bf236e0cce3bac3af738
Scott Main [Fri, 15 Jun 2012 21:52:01 +0000 (14:52 -0700)]
Cherrypick from ics-mr1 Change-Id: I2f63aef72962990afeb2bf236e0cce3bac3af738
docs: Remove side padding built into Design images to improve alignment.
a few HTML adjustments for alignment as well

Change-Id: I432e25128a90b0376a2a469859b0ad49b035a2df

12 years agoUnhide new API in android.media.MediaRouter for remote playback
Jean-Michel Trivi [Wed, 20 Jun 2012 21:34:05 +0000 (14:34 -0700)]
Unhide new API in android.media.MediaRouter for remote playback

Expose new functionality for handling remote volume in:
 android.media.MediaRouter.RouteInfo
 android.media.MediaRouter.UserRouteInfo
 android.media.MediaRouter.VolumeCallback

Change-Id: I8fd9c92be606364599e65939f318e11c2860bab9

12 years agomade the pressed state white
Richard Ngo [Wed, 20 Jun 2012 21:01:59 +0000 (14:01 -0700)]
made the pressed state white

Change-Id: Ic30f6f9aa574731ff1ed52364262c0d9b795dca0

12 years agoAdd a private method to retrieve the header list from PreferenceActivity
Amith Yamasani [Wed, 20 Jun 2012 20:54:53 +0000 (13:54 -0700)]
Add a private method to retrieve the header list from PreferenceActivity

This is required by Settings app to be able to update the header list
if the accounts list changed.

Bug: 6685701
Change-Id: If27f83ec86fe1f3519a6e25de4e4fe4864133dc8

12 years agoAsynchronous handling of remote volume updates
Jean-Michel Trivi [Wed, 20 Jun 2012 20:40:22 +0000 (13:40 -0700)]
Asynchronous handling of remote volume updates

Remote playback information updates will be posted from the
 application thread, and sent to AudioService. Because they
 require locking the stack containing the remote playback
 information, the update should happen on AudioService's handler
 thread to avoid lock contention.

Change-Id: Ie04898295e08c16dd8ab5985fd825301e9cf1981

12 years agoMerge "Exit boot animation cleanly." into jb-dev
Mathias Agopian [Wed, 20 Jun 2012 20:33:06 +0000 (13:33 -0700)]
Merge "Exit boot animation cleanly." into jb-dev

12 years agoFix GlowPadView accessibility behavior.
alanv [Wed, 20 Jun 2012 19:10:48 +0000 (12:10 -0700)]
Fix GlowPadView accessibility behavior.

Bug: 6702412
Change-Id: If5ab75e77b0090a405004c66da0083e81d59deb4

12 years agoMerge "Workaround: Never reset the default IME if the system is not ready" into jb-dev
satok [Wed, 20 Jun 2012 20:01:09 +0000 (13:01 -0700)]
Merge "Workaround: Never reset the default IME if the system is not ready" into jb-dev

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

12 years agoMerge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev
Charles Chen [Wed, 20 Jun 2012 19:12:07 +0000 (12:12 -0700)]
Merge "Fixing gesture recognition configuration in TouchExplorer." into jb-dev

12 years agoMerge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev
Dianne Hackborn [Wed, 20 Jun 2012 19:06:38 +0000 (12:06 -0700)]
Merge "Fix issue #6686339: 2 taps required to launch notification..." into jb-dev

12 years agoMerge "Fix issue #6675499: java.lang.RuntimeException: Unable to start..." into jb-dev
Dianne Hackborn [Wed, 20 Jun 2012 19:06:14 +0000 (12:06 -0700)]
Merge "Fix issue #6675499: java.lang.RuntimeException: Unable to start..." into jb-dev

12 years agoImport translations. DO NOT MERGE
Ying Wang [Wed, 20 Jun 2012 18:58:21 +0000 (11:58 -0700)]
Import translations. DO NOT MERGE

Change-Id: If50ab67d8bc4570a07cb2e9dba0c22ed4f7d7592

12 years agoWorkaround: Never reset the default IME if the system is not ready
satok [Wed, 20 Jun 2012 11:08:44 +0000 (20:08 +0900)]
Workaround: Never reset the default IME if the system is not ready

Bug: 6685037
Change-Id: Ifb311f85154beadd4787ec73669bedfdf1f5172d

12 years agoFixing typography typo and iconography typo
Peter Ng [Wed, 20 Jun 2012 16:30:59 +0000 (09:30 -0700)]
Fixing typography typo and iconography typo

Bug: 5836343
Bug: 5831156
Change-Id: I2801002a20645d1cbf7d548a1a7c280796457adb

12 years agoMerge "Remote volume handling in MediaRouter" into jb-dev
Jean-Michel Trivi [Wed, 20 Jun 2012 16:07:59 +0000 (09:07 -0700)]
Merge "Remote volume handling in MediaRouter" into jb-dev

12 years agoMerge "Clone the list of listeners before notifing any event." into jb-dev
Luca Zanolin [Wed, 20 Jun 2012 09:32:12 +0000 (02:32 -0700)]
Merge "Clone the list of listeners before notifing any event." into jb-dev

12 years agoFix crash when SimpleCursorAdapter changes cursor from null
Hung-ying Tyan [Wed, 20 Jun 2012 03:34:05 +0000 (11:34 +0800)]
Fix crash when SimpleCursorAdapter changes cursor from null

when the spinner's drop-down view is shown.

Bug: 6637141

Change-Id: I62f759f778b040db386cc72a753c3b2745517b7e

12 years agoRemote volume handling in MediaRouter
Jean-Michel Trivi [Tue, 19 Jun 2012 21:03:09 +0000 (14:03 -0700)]
Remote volume handling in MediaRouter

Extend MediaRouter.UserRouteInfo to enable setting playback
 information, which includes volume. When the user route instance
 has a RemoteControlClient, forward any playback information to it.
 Enable specifying a callback to be notified of volume events
 on the route.
Extend MediaRouter.RouteInfo to enable retrieving playback
 information.

Update RemoteControlClient javadoc to reflect which parts of the
 API are not intended to be made public.

Change-Id: I59d728eb61747af6c8c89d53f0faeb07940594c3

12 years agoMerge "Add an XML attribute for controlling which route types a MediaRouteButton...
Adam Powell [Wed, 20 Jun 2012 02:18:34 +0000 (19:18 -0700)]
Merge "Add an XML attribute for controlling which route types a MediaRouteButton in a layout will alter." into jb-dev

12 years agoMerge "Add extra systrace tracing" into jb-dev
Romain Guy [Wed, 20 Jun 2012 01:39:08 +0000 (18:39 -0700)]
Merge "Add extra systrace tracing" into jb-dev

12 years agoMerge "Fix 6656710: center dot pattern in GlowPadView" into jb-dev
Jim Miller [Wed, 20 Jun 2012 01:31:31 +0000 (18:31 -0700)]
Merge "Fix 6656710: center dot pattern in GlowPadView" into jb-dev

12 years agoFix 6656710: center dot pattern in GlowPadView
Jim Miller [Wed, 20 Jun 2012 00:38:04 +0000 (17:38 -0700)]
Fix 6656710: center dot pattern in GlowPadView

This fixes a bug where the dots weren't aligned with the center of the view.
The matrix should not contain the offset of the image itself since we really
want to scale about the abstract points.  The code now subtracts the image
centering positions (cx,cy) from the point to be scaled.

Change-Id: I1d46a5d51b1fd1d39944c64baf86c306c2d5e923

12 years agoAdd extra systrace tracing
Romain Guy [Tue, 19 Jun 2012 23:38:50 +0000 (16:38 -0700)]
Add extra systrace tracing

This change shows how much time is spent updating and executing
framework display lists within a frame.
This change also fixes a crash that happnes if you attempt to
perform a dumpsys gfxinfo while the app is drawing (we are telling
developers to use this new tool.)

Change-Id: Ia4047a78a42b545ab77176ef4f371c300686548c

12 years agoMerge "Disable debug output in SDK layoutlib." into jb-dev
Xavier Ducrohet [Wed, 20 Jun 2012 01:04:19 +0000 (18:04 -0700)]
Merge "Disable debug output in SDK layoutlib." into jb-dev

12 years agoDisable debug output in SDK layoutlib.
Xavier Ducrohet [Wed, 20 Jun 2012 01:01:50 +0000 (18:01 -0700)]
Disable debug output in SDK layoutlib.

Bug: 6697442

Change-Id: I9741761342ea220c158aa124089430b0db80bf7e

12 years agoFix issue #6686339: 2 taps required to launch notification...
Dianne Hackborn [Wed, 20 Jun 2012 00:48:32 +0000 (17:48 -0700)]
Fix issue #6686339: 2 taps required to launch notification...

...or settings from lock screen

When a window is drawn, the code to determine whether it should now
be shown was calling WindowState.isReadyForDisplay().  Part of the
condition of this function is that it is not ready if a policy is
forcing the window to be hidden -- which is the case when the lock
screen is shown.  As a result, we wouldn't show the window at that
point, so wouldn't tell the activity manager that the token's windows
are visibible, and wouldn't tell the lock screen to go away.

This adds a new variation WindowState.isReadyForDisplayIgnoringKeyguard(),
which is the same as the original method but ignores the policy visibility
for app windows.  This allows windows to be go through the complete
path of handling when the window is finally drawn and telling the
activity manager about it, even if behind the lock screen.  By making it
a separate function, we don't impact any other code that is calling the
old function and may be relying on its behavior.

Also cleaned up a little of the dumpsys output.  Most important, the
new ANR section is now moved to the top, since we want
"adb shell dumpsys window" to still give a nice summary of what we
normally care about -- the window stack and important global state.

Change-Id: Ica3ea85ce46f3f5f5cd2cc30fbd9de13d3885a57

12 years agoAdd an XML attribute for controlling which route types a
Adam Powell [Wed, 20 Jun 2012 00:47:13 +0000 (17:47 -0700)]
Add an XML attribute for controlling which route types a
MediaRouteButton in a layout will alter.

Change-Id: I897a68188fa87e4c2dbc88794117a3ef87ffaab0

12 years agoExit boot animation cleanly.
Kevin Hester [Thu, 26 Apr 2012 17:38:55 +0000 (10:38 -0700)]
Exit boot animation cleanly.

The desc.txt file can now mark parts as 'must finish cleanly' by using
'c' as the part line prefix rather than 'p'.  If so indicated, if the
bootanimation is asked to quit it will do so only after waiting to
finish that part.

I considered either making init.c service killing smarter or promoting
bootanim to be a bindable service with a requestExit method.  However,
these changes are probably too big/risky given our ship date.  So
I used a property as a mailbox between SurfaceFlinger and bootanim.

Bug: 6679877
Change-Id: I1f8dd9e7da1ea80a483b31fa14c4a5645922d774

12 years agoMerge "Permit MediaRouteButton to select system routes in toggle mode." into jb-dev
Adam Powell [Wed, 20 Jun 2012 00:00:35 +0000 (17:00 -0700)]
Merge "Permit MediaRouteButton to select system routes in toggle mode." into jb-dev

12 years agoMerge "Fix 6693743: update animation ring for keyguard and search panel" into jb-dev
Jim Miller [Tue, 19 Jun 2012 23:41:50 +0000 (16:41 -0700)]
Merge "Fix 6693743: update animation ring for keyguard and search panel" into jb-dev

12 years agoFixing gesture recognition configuration in TouchExplorer.
Casey Burkhardt [Tue, 19 Jun 2012 23:24:10 +0000 (16:24 -0700)]
Fixing gesture recognition configuration in TouchExplorer.

This fix adjusts the sensitivity of the gesture recognizer by
eliminating gesture rotation in the recognition process.

Bug:6697119
Change-Id: Ic767f513c05210b27e583338c4f0adcaa1c4c625

12 years agoFix 6693743: update animation ring for keyguard and search panel
Jim Miller [Tue, 19 Jun 2012 23:17:19 +0000 (16:17 -0700)]
Fix 6693743: update animation ring for keyguard and search panel

This is a partial revert of change Ibce96f45eb6a94582c694108b99e243fd57b1955.

This change:
- shows the expanding ring animation on keyguard and navbar search
- disables the first ping wave animation on both.
- restores the outer ring

Change-Id: I429d23a49ca2868dc00872b8b8fde000d6a53a6d

12 years agoMerge "DO NOT MERGE Engineer-asset light-theme findonpage prev/next buttons" into...
Victoria Lease [Tue, 19 Jun 2012 23:16:00 +0000 (16:16 -0700)]
Merge "DO NOT MERGE Engineer-asset light-theme findonpage prev/next buttons" into jb-dev

12 years agoMerge "Handle non-started LayoutTransition animations correctly" into jb-dev
Chet Haase [Tue, 19 Jun 2012 22:59:27 +0000 (15:59 -0700)]
Merge "Handle non-started LayoutTransition animations correctly" into jb-dev

12 years agoPermit MediaRouteButton to select system routes in toggle mode.
Adam Powell [Tue, 19 Jun 2012 22:58:38 +0000 (15:58 -0700)]
Permit MediaRouteButton to select system routes in toggle mode.

Bug 6694917

Change-Id: I82e68aee196c72f349e7638717b727ef3f23e9b5

12 years agoDO NOT MERGE Engineer-asset light-theme findonpage prev/next buttons
Victoria Lease [Tue, 19 Jun 2012 20:56:27 +0000 (13:56 -0700)]
DO NOT MERGE Engineer-asset light-theme findonpage prev/next buttons

This is a cherrypick of Iae2795da from master.

These are provided with the expectation that they will be replaced
with more professional assets as soon as available.

Bug: 6685279
Change-Id: Iae2795dafaffcc337b74f4a178f68de4a96b96bf

12 years agoHandle non-started LayoutTransition animations correctly
Chet Haase [Tue, 19 Jun 2012 20:54:29 +0000 (13:54 -0700)]
Handle non-started LayoutTransition animations correctly

A recent change to LayoutTransition noop'd animations in non-visible
parents, to avoid artifacts like scaling/moving from (0,0,0,0). But there
was logic in ViewGroup that didn't account for transitions that didn't actually
run an animation, causing a disconnect between the state of a parent (getting ready
to remove an item later) and the state of the transition (not running, therefore
not needing the child to be removed later).

The fix was to detect when the transition did not start and avoid adding the
view to the list of children to be removed later.

Issue #6602502 Playing video through crackle application only audio is heard no video is displayed

Change-Id: Id5260580ab0d6dd165c62006c7bd579fd821a5f5

12 years agoMerge "Fix 6667238: allow market apps to support ACTION_ASSIST" into jb-dev
Jim Miller [Tue, 19 Jun 2012 22:23:03 +0000 (15:23 -0700)]
Merge "Fix 6667238: allow market apps to support ACTION_ASSIST" into jb-dev

12 years agoMerge "Clear sendingToBottom when animation is complete." into jb-dev
Craig Mautner [Tue, 19 Jun 2012 22:08:41 +0000 (15:08 -0700)]
Merge "Clear sendingToBottom when animation is complete." into jb-dev

12 years agoFix issue #6675499: java.lang.RuntimeException: Unable to start...
Dianne Hackborn [Tue, 19 Jun 2012 22:07:05 +0000 (15:07 -0700)]
Fix issue #6675499: java.lang.RuntimeException: Unable to start...

...activity ComponentInfo{com.google.android.gm/
com.google.android.gm.ui.MailActivityGmail}: java.lang.NullPointerException

There were a number of places in FragmentManagerImpl where we were
not dealing with mAdded being null.  In the original implementation,
mAdded would almost always be null if mActive is null.  As we have
added features, this has become a less strong guarantee (and it actually
was never completely guaranteed), but there are a lot of places where
we would check for mActive being non-null and assume this meant
mAdded is non-null.

Fix these to correctly check for mAdded.

Bug: 6675499
Change-Id: I2a6a801d8bc89550fc73e12c9c3f8bb0ad6c7fa4

12 years agoFix 6667238: allow market apps to support ACTION_ASSIST
Jim Miller [Tue, 19 Jun 2012 02:23:39 +0000 (19:23 -0700)]
Fix 6667238: allow market apps to support ACTION_ASSIST

This change allows market apps and 3rd parties to supply an activity
that responds to ACTION_ASSIST (e.g. market apps).

It also adds a test app to respond to the ASSIST intent and force
the intent disambiguation dialog to appear.

Change-Id: I5a78863c6a9546d18c66275187d178f6a1c9ee17

12 years agoMerge "Import translations. DO NOT MERGE" into jb-dev
Eric Fischer [Tue, 19 Jun 2012 21:43:50 +0000 (14:43 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev

12 years agoImport translations. DO NOT MERGE
Eric Fischer [Tue, 19 Jun 2012 21:38:50 +0000 (14:38 -0700)]
Import translations. DO NOT MERGE

Change-Id: I050bc722a5a06acc49fc519d57bf16b14158e97a

12 years agoClear sendingToBottom when animation is complete.
Craig Mautner [Tue, 19 Jun 2012 21:10:01 +0000 (14:10 -0700)]
Clear sendingToBottom when animation is complete.

Was counting on moving the app to the top to clear the flag
indicating that the app was being sent to the bottom. Since this
did not always happen the sendingToBottom flag was occasionally
left set. In this case the focus was skipped for that app and
consequently input was never propagated to it.

This fix clears the sendingToBottom flag each time the app
animations are completed.

Fixes bug 6691421.

Change-Id: I6f851dc5bedca95182db8490d87c876a71ad5fde

12 years agoHandle SCREEN_ON/OFF broadcasts without blocking.
Jeff Sharkey [Tue, 19 Jun 2012 20:32:22 +0000 (13:32 -0700)]
Handle SCREEN_ON/OFF broadcasts without blocking.

NetworkPolicy currently uses a single background thread to process
various broadcasts.  When processing other broadcasts, this thread
can block our handling of SCREEN_ON/OFF, which are sent as ordered
broadcasts.

This change moves SCREEN_ON/OFF handling to the main thread, and
dispatches a one-way message to the background thread, allowing the
ordered broadcast to always proceed.

Bug: 6677047
Change-Id: I52de2c7b75beb8059bb87e123689ba4a9c4ae349

12 years agoMerge "Docs only: DENSITY_TV, not just for TVs any more!" into jb-dev
Dianne Hackborn [Tue, 19 Jun 2012 17:54:42 +0000 (10:54 -0700)]
Merge "Docs only: DENSITY_TV, not just for TVs any more!" into jb-dev

12 years agoMerge "Remote volume handling" into jb-dev
Jean-Michel Trivi [Tue, 19 Jun 2012 17:54:32 +0000 (10:54 -0700)]
Merge "Remote volume handling" into jb-dev

12 years agoClone the list of listeners before notifing any event.
Luca Zanolin [Tue, 19 Jun 2012 17:15:29 +0000 (18:15 +0100)]
Clone the list of listeners before notifing any event.

This is required, otherwise the listener cannot remove it-self from the
list of listeners during the notification.

Bug: 6692355
Change-Id: I07762feb4f9b97ec4b6148d2f604d53e266b84d7

12 years agoMerge "MediaRouter bluetooth a2dp selection" into jb-dev
Adam Powell [Tue, 19 Jun 2012 04:36:23 +0000 (21:36 -0700)]
Merge "MediaRouter bluetooth a2dp selection" into jb-dev

12 years agoMediaRouter bluetooth a2dp selection
Adam Powell [Mon, 18 Jun 2012 23:14:46 +0000 (16:14 -0700)]
MediaRouter bluetooth a2dp selection

Remove bluetooth permission check from internal AudioService method
setBluetoothA2dpOn

Manage BT A2DP state in MediaRouter. A2DP is only enabled or disabled
when either the system built-in audio route or the A2DP audio route is
selected; when selecting any other route the current state is left
alone.

Change-Id: Ib14274e206e79bd8762edca1205ecfa87b7a94cf

12 years agoDocs only: DENSITY_TV, not just for TVs any more!
Dianne Hackborn [Tue, 19 Jun 2012 02:29:45 +0000 (19:29 -0700)]
Docs only: DENSITY_TV, not just for TVs any more!

Change-Id: Id70e0bc179ab405fbb7f3b2cda7b75f44ff30b57

12 years agoMerge "Fixed text rendering issue with spans." into jb-dev
Gilles Debunne [Tue, 19 Jun 2012 01:53:30 +0000 (18:53 -0700)]
Merge "Fixed text rendering issue with spans." into jb-dev

12 years agoRemote volume handling
Jean-Michel Trivi [Mon, 11 Jun 2012 22:03:52 +0000 (15:03 -0700)]
Remote volume handling

Extend RemoteControlClient class to enable an applicaton to
 specify more information about how it's playing media, now covering
 usecases where media playback happens "remotely". This playback
 information can be used to set the volume and maximum volume
 used remotely.
Declare a new intent and associated extras in Intent,
 ACTION_VOLUME_UPDATE, so an application can be notified that
 the volume it handles should be updated. It can then use
 the new RemoteControlClient.setPlaybackInformation() method
 to notify AudioService what the volume is.
Extend AudioService to maintain playback information associated
 with the RemoteControlClient information in the stack of
 media button event receivers (mRCStack). The information
 about the active remote is cached so the stack doesn't have
 to be iterated over in order to retrieve remote playback info.
 Events to "adjust" the remote volume based on hardware key
 presses cause the client application to be notified of
 volume updates, and the volume panel to display the volume
 set by the app.
 Revise which stream type is controlled when none is specified
 according to latest guidelines for remote playback.
Update VolumePanel class to support a new pseudo stream type,
 AudioService.STREAM_REMOTE_MUSIC, that corresponds to the
 remote playback volume, and uses the new "media route" icon.
 Enable it to receive asynchronously new volume values for
 the remote that will be displayed if the UI is still up,
 and ignored otherwise.
 Now supports hiding/showing sliders dynamically so remote
 volume only appears when AudioService has a remote control
 client handling remote volume.
Define new java symbols for the two media route icons.
Modify lockscreen behavior: don't automatically control music
 volume when music is active, consider also remote playback.

Still to do:
- playback information set by RemoteControlClient should post
  a message for AudioService to update playback information
  instead of updating it synchronously

Change-Id: I557aa687239f9acfe33a609f05876c67fa7eb967

12 years agoMerge "More paths for turning on screen immediately." into jb-dev
Craig Mautner [Tue, 19 Jun 2012 01:01:53 +0000 (18:01 -0700)]
Merge "More paths for turning on screen immediately." into jb-dev

12 years agoMerge "Added or fixed doctrings for required permissions." into jb-dev
Nicolas Falliere [Tue, 19 Jun 2012 00:39:48 +0000 (17:39 -0700)]
Merge "Added or fixed doctrings for required permissions." into jb-dev

12 years agoAdded or fixed doctrings for required permissions.
Nicolas Falliere [Tue, 19 Jun 2012 00:21:06 +0000 (17:21 -0700)]
Added or fixed doctrings for required permissions.

Bug: 6591338
Change-Id: Ia2092f9994854701b5fa1425c371817367ae07ec

12 years agoMerge "Fix 6683092: tune GlowPadView wave animation" into jb-dev
Jim Miller [Tue, 19 Jun 2012 00:22:10 +0000 (17:22 -0700)]
Merge "Fix 6683092: tune GlowPadView wave animation" into jb-dev

12 years agoFix 6683092: tune GlowPadView wave animation
Jim Miller [Tue, 19 Jun 2012 00:04:58 +0000 (17:04 -0700)]
Fix 6683092: tune GlowPadView wave animation

This adds some aesthetic changes to the wave animation for GlowPadView:
- wave shape is no longer symmetric
- disable expand in keyguard
- enable expand in SearchPanelView (when mAlwaysTrackFinger == true)
- if a current wave animation isn't finished yet, don't start a new one
- various timing changes

Change-Id: Ibce96f45eb6a94582c694108b99e243fd57b1955

12 years agoMore paths for turning on screen immediately.
Craig Mautner [Mon, 18 Jun 2012 23:53:27 +0000 (16:53 -0700)]
More paths for turning on screen immediately.

This fix forces the path through the updateLightsLocked method to turn
the screen on immediately if mWaitingForFirstLightSensor is true. Also
do not clear mWaitingForFirstLightSensor if mPreparingForScreenOn
is true. Wait until it turns false.

Fixes bug 6612418.

Change-Id: I03407e748cce4906a73de1f15df1654649b133c4

12 years agoMerge "Don't backup or delete the backup file, if it's in the backup path." into...
Amith Yamasani [Mon, 18 Jun 2012 23:49:28 +0000 (16:49 -0700)]
Merge "Don't backup or delete the backup file, if it's in the backup path." into jb-dev

12 years agoMerge "Implement issue #6680894: Provide a way to configure app defaults..." into...
Dianne Hackborn [Mon, 18 Jun 2012 23:19:56 +0000 (16:19 -0700)]
Merge "Implement issue #6680894: Provide a way to configure app defaults..." into jb-dev

12 years agoImplement issue #6680894: Provide a way to configure app defaults...
Dianne Hackborn [Mon, 18 Jun 2012 22:38:12 +0000 (15:38 -0700)]
Implement issue #6680894: Provide a way to configure app defaults...

...for a smoother OOB experience

Way provided.

Put your defaults in system/etc/preferred-apps/*.xml.

Figure out what to put there with "adb shell dumpsys package preferred-xml".

Bug: 6680894
Change-Id: Ia06bb0061876274a5f80bf06d1ba5ad155edc323

12 years agoMerge "Fix an NPE and possible unsynchronized call of Locked method." into jb-dev
Jeff Brown [Mon, 18 Jun 2012 21:14:55 +0000 (14:14 -0700)]
Merge "Fix an NPE and possible unsynchronized call of Locked method." into jb-dev

12 years agoMerge "Fix 6665117: ACTION_ASSIST visual improvements" into jb-dev
Jim Miller [Mon, 18 Jun 2012 20:29:49 +0000 (13:29 -0700)]
Merge "Fix 6665117: ACTION_ASSIST visual improvements" into jb-dev

12 years agoDon't backup or delete the backup file, if it's in the backup path.
Amith Yamasani [Mon, 18 Jun 2012 20:04:27 +0000 (13:04 -0700)]
Don't backup or delete the backup file, if it's in the backup path.

Change-Id: Ie77782722a271e09f8cbde7fb5393e8127d4334d

12 years agoFix an NPE and possible unsynchronized call of Locked method.
Jeff Brown [Mon, 18 Jun 2012 19:58:03 +0000 (12:58 -0700)]
Fix an NPE and possible unsynchronized call of Locked method.

Bug: 6680398
Change-Id: Id5ef4fa82b2a5ef5e9c3934ca95156143f91e5e2

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

12 years agoImport translations. DO NOT MERGE
Ying Wang [Mon, 18 Jun 2012 19:36:51 +0000 (12:36 -0700)]
Import translations. DO NOT MERGE

Change-Id: I0108055d8a3aa31fb8157b43e0f2224fab488642

12 years agoMerge "Restrict MediaRouter selection" into jb-dev
Adam Powell [Mon, 18 Jun 2012 19:10:20 +0000 (12:10 -0700)]
Merge "Restrict MediaRouter selection" into jb-dev

12 years agoRestrict MediaRouter selection
Adam Powell [Mon, 18 Jun 2012 18:51:34 +0000 (11:51 -0700)]
Restrict MediaRouter selection

Actually restrict the programmatic selection of routes by
type. (Oops.)

Change-Id: I91e837f7ecbcddb626c664fb470e8296d563498d

12 years agoMerge "API for finding accessibility focus in virtual tree not needed." into jb-dev
Svetoslav Ganov [Mon, 18 Jun 2012 18:27:44 +0000 (11:27 -0700)]
Merge "API for finding accessibility focus in virtual tree not needed." into jb-dev

12 years agoMerge "Turn off debug logs." into jb-dev
Daniel Sandler [Mon, 18 Jun 2012 18:20:54 +0000 (11:20 -0700)]
Merge "Turn off debug logs." into jb-dev

12 years agoMerge "Ensure WebViewClassic calls super.onHoverEvent()" into jb-dev
Svetoslav Ganov [Mon, 18 Jun 2012 17:20:42 +0000 (10:20 -0700)]
Merge "Ensure WebViewClassic calls super.onHoverEvent()" into jb-dev

12 years agoTurn off debug logs.
Daniel Sandler [Mon, 18 Jun 2012 15:26:43 +0000 (11:26 -0400)]
Turn off debug logs.

Also switch to Slog, which is more appropriate for framework
logging.

Bug: 6684167
Change-Id: I829de86702a9952ce42ec9967c8d493529253426

12 years agoMerge "Increasing brightness for notification icons and navigation bar icons Bug...
Justin Ho [Mon, 18 Jun 2012 14:29:02 +0000 (07:29 -0700)]
Merge "Increasing brightness for notification icons and navigation bar icons Bug: 6612414" into jb-dev

12 years agoMerge "Volume control in MediaRouter dialogs" into jb-dev
Adam Powell [Mon, 18 Jun 2012 02:32:22 +0000 (19:32 -0700)]
Merge "Volume control in MediaRouter dialogs" into jb-dev

12 years agoMerge "Make MediaRouter UI more robust around route count changes" into jb-dev
Adam Powell [Mon, 18 Jun 2012 02:32:07 +0000 (19:32 -0700)]
Merge "Make MediaRouter UI more robust around route count changes" into jb-dev

12 years agoCapture window manager's last ANR state in bug report.
Jeff Brown [Sun, 17 Jun 2012 21:17:52 +0000 (14:17 -0700)]
Capture window manager's last ANR state in bug report.

Currently just grabbing the window state but we could grab
other things as part of the last ANR report.

Bug: 6680398
Change-Id: I23aa70907b1bdcb21c8acc556fde196ca790ef6a

12 years agoCapture input dispatcher's last ANR state in bug report.
Jeff Brown [Sun, 17 Jun 2012 19:01:06 +0000 (12:01 -0700)]
Capture input dispatcher's last ANR state in bug report.

Some ANR bugs are very difficult to localize because by the time
the bug report has been captured, the relevant information is
gone.  Work around this by capturing a log of the input dispatcher's
state at the exact time of the ANR before anything has changed
and include this information in the bug report.

Also fixed a nit related to some format strings that had
improper field widths specified.

Bug: 6680398
Change-Id: I5323bf18ec5e47a767cd053209753cc46852bf4c