OSDN Git Service
Craig Mautner [Tue, 26 Jun 2012 18:49:08 +0000 (11:49 -0700)]
Update dumpsys power output.
A little more detail on the animation state. For aid in debugging
b/
6720247.
Change-Id: Ibfabf7fc8822ccb74bb83e2fd8e53004691dcd76
Adam Powell [Thu, 21 Jun 2012 22:44:47 +0000 (15:44 -0700)]
Merge "Allow ungrouping media routes when a group is the only alternate route" into jb-dev
Adam Powell [Thu, 21 Jun 2012 22:29:40 +0000 (15:29 -0700)]
Allow ungrouping media routes when a group is the only alternate route
Fix a MediaRouteButton bug where group item counts weren't taken into
account when deciding whether to toggle between two available groups
or show the chooser dialog.
Change-Id: I6400ffd4cfe80c8072c5be360264b8ca91d71c41
Dianne Hackborn [Thu, 21 Jun 2012 22:14:44 +0000 (15:14 -0700)]
Merge "Fix issue #
6700897: Activity paused by activating the..." into jb-dev
Dianne Hackborn [Thu, 21 Jun 2012 21:17:48 +0000 (14:17 -0700)]
Fix issue #
6700897: Activity paused by activating the...
...lock screen does not response to onNewIntent()
We now keep activities stopped even while the lock screen is
displayed. (We used to keep them stopped while the screen was
off, and then resume the top activity when the screen was turned
on even though they are covered by the lock screen.)
When a new intent is being delivered to an application, if it
is not resumed it is held in a pending list until the next
time the activity is resumed. Unfortunately that means for
the case where the activity is being held stopped due to the
screen off or lock screen, it will not receive any new intents,
even though it is at the top of the stack.
Fix this by adding an additional condition that allows the new
intent to be delivered immediately if the activity manager is
sleeping and the target activity is at the top of the stack.
Also some debug output improvements, since pending new intents
were not being included in the debug output, making it impossible
to see we were in that situation.
Change-Id: I5df82ac21657f1c82e05fd8bf21474e883f44e6f
Craig Mautner [Thu, 21 Jun 2012 21:04:10 +0000 (14:04 -0700)]
Merge "Make sure onScreenTurnedOn is called at power on." into jb-dev
Eric Fischer [Thu, 21 Jun 2012 20:10:49 +0000 (13:10 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev
Craig Mautner [Thu, 21 Jun 2012 20:03:41 +0000 (13:03 -0700)]
Make sure onScreenTurnedOn is called at power on.
KeyguardViewMediator.onScreenTurnedOn is not called if the device is
booted into the power-on state. In this case mScreenOn remains false
and the lockscreen will always appear after outgoing calls. This fix
ensures that onScreenTurnedOn is called when the device is powered
up in the on state.
Fixes bug
6709173.
Change-Id: I7557d8f002307b9125bc53b13bc3cb4c5c9b2758
Eric Fischer [Thu, 21 Jun 2012 19:57:27 +0000 (12:57 -0700)]
Import translations. DO NOT MERGE
Change-Id: If3ebb62b4c2a912512600e51129551e23cf31553
Jake Hamby [Thu, 21 Jun 2012 19:32:39 +0000 (12:32 -0700)]
Merge "Add config option to enable links to Cell Broadcast app." into jb-dev
Jake Hamby [Thu, 21 Jun 2012 17:56:44 +0000 (10:56 -0700)]
Add config option to enable links to Cell Broadcast app.
Add "config_cellBroadcastAppLinks" internal boolean config item,
defaulting to false. For devices with the Cell Broadcast app,
setting this config option to true will add a menu item to the
MMS app to jump to the list of received cell broadcasts, and a
preferences item to Settings to jump to cell broadcast settings.
Bug:
6709985
Change-Id: I9fe1919e6d76ba1dfe1e1381e2c38ecdd5e0a867
Chris Wren [Thu, 21 Jun 2012 15:25:58 +0000 (11:25 -0400)]
revert I057b7ac0 now that the layouts are the expected height.
Bug:
6546766
Change-Id: I736290b897b864228ecc3e46d86ef566efda1efd
Daniel Sandler [Thu, 21 Jun 2012 13:28:07 +0000 (09:28 -0400)]
Fix docs
Change-Id: Ic5ff9aa07e65166a4ecaeecc5fb5e0091275bdcc
Daniel Sandler [Thu, 21 Jun 2012 13:04:43 +0000 (06:04 -0700)]
Merge "Unhide new methods on RemoteViews and Notification." into jb-dev
Romain Guy [Thu, 21 Jun 2012 06:59:06 +0000 (23:59 -0700)]
Dejank: don't allocate when scrolling lists
The new display list properties introduces in JB were causing numerous
and expensive memory allocations while scrolling lists. During a scroll
ListView sometimes attempts to apply an offset to views before they are
drawn for the first time. This had the side effect of generating a new
IllegalStateException and its entire stack trace. The exception was
caught inside the display list and never seen by users.
Generating an exception is very expensive both in terms of allocated
memory and CPU time spent crawling the stack.
List scrolls/flings are a common case of this issue but it also happens
during various types of animations. A simple alpha animation, for instance,
can cause the problem to occur.
Another side effect of this issue is more frequent and longer GC pauses.
Change-Id: Ic1b37cc84f7c8f290209cfb990d030e96d6e0dc7
Adam Powell [Thu, 21 Jun 2012 07:12:04 +0000 (00:12 -0700)]
Merge "MediaRouter group volume reporting" into jb-dev
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
Eric Fischer [Thu, 21 Jun 2012 05:42:58 +0000 (22:42 -0700)]
Merge "Import translations. DO NOT MERGE" 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
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
Daniel Sandler [Thu, 21 Jun 2012 03:43:41 +0000 (23:43 -0400)]
Unhide new methods on RemoteViews and Notification.
Change-Id: I0cbc270d9d7e9e728482c3b10650a32589636c9d
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
Eric Fischer [Thu, 21 Jun 2012 02:48:35 +0000 (19:48 -0700)]
Import translations. DO NOT MERGE
Change-Id: Ic5c7a282f3ce75cba92d8cda741ecaa9088d12be
Hiroshi Lockheimer [Thu, 21 Jun 2012 02:47:19 +0000 (19:47 -0700)]
Merge "made the pressed state white" into jb-dev
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
Pannag Sanketi [Thu, 21 Jun 2012 02:32:44 +0000 (19:32 -0700)]
Merge "Crash in SurfaceTextureTarget filter open" 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
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
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
Svetoslav Ganov [Thu, 21 Jun 2012 01:09:58 +0000 (18:09 -0700)]
Merge "Change hard-coded URL for accessibility script." 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
Svetoslav Ganov [Wed, 20 Jun 2012 23:52:16 +0000 (16:52 -0700)]
Merge "Fix GlowPadView accessibility behavior." into jb-dev
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
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
Jean-Michel Trivi [Wed, 20 Jun 2012 23:41:25 +0000 (16:41 -0700)]
Merge "Asynchronous handling of remote volume updates" into jb-dev
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
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
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
Richard Ngo [Wed, 20 Jun 2012 21:01:59 +0000 (14:01 -0700)]
made the pressed state white
Change-Id: Ic30f6f9aa574731ff1ed52364262c0d9b795dca0
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
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
Mathias Agopian [Wed, 20 Jun 2012 20:33:06 +0000 (13:33 -0700)]
Merge "Exit boot animation cleanly." into jb-dev
alanv [Wed, 20 Jun 2012 19:10:48 +0000 (12:10 -0700)]
Fix GlowPadView accessibility behavior.
Bug:
6702412
Change-Id: If5ab75e77b0090a405004c66da0083e81d59deb4
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
Ying Wang [Wed, 20 Jun 2012 19:26:14 +0000 (12:26 -0700)]
Merge "Import translations. DO NOT MERGE" 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
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
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
Ying Wang [Wed, 20 Jun 2012 18:58:21 +0000 (11:58 -0700)]
Import translations. DO NOT MERGE
Change-Id: If50ab67d8bc4570a07cb2e9dba0c22ed4f7d7592
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
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
Jean-Michel Trivi [Wed, 20 Jun 2012 16:07:59 +0000 (09:07 -0700)]
Merge "Remote volume handling in MediaRouter" 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
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
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
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
Romain Guy [Wed, 20 Jun 2012 01:39:08 +0000 (18:39 -0700)]
Merge "Add extra systrace tracing" 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
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
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
Xavier Ducrohet [Wed, 20 Jun 2012 01:04:19 +0000 (18:04 -0700)]
Merge "Disable debug output in SDK layoutlib." into jb-dev
Xavier Ducrohet [Wed, 20 Jun 2012 01:01:50 +0000 (18:01 -0700)]
Disable debug output in SDK layoutlib.
Bug:
6697442
Change-Id: I9741761342ea220c158aa124089430b0db80bf7e
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
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
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
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
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
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
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
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
Chet Haase [Tue, 19 Jun 2012 22:59:27 +0000 (15:59 -0700)]
Merge "Handle non-started LayoutTransition animations correctly" into jb-dev
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
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
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
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
Craig Mautner [Tue, 19 Jun 2012 22:08:41 +0000 (15:08 -0700)]
Merge "Clear sendingToBottom when animation is complete." into jb-dev
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
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
Eric Fischer [Tue, 19 Jun 2012 21:43:50 +0000 (14:43 -0700)]
Merge "Import translations. DO NOT MERGE" into jb-dev
Eric Fischer [Tue, 19 Jun 2012 21:38:50 +0000 (14:38 -0700)]
Import translations. DO NOT MERGE
Change-Id: I050bc722a5a06acc49fc519d57bf16b14158e97a
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
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
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
Jean-Michel Trivi [Tue, 19 Jun 2012 17:54:32 +0000 (10:54 -0700)]
Merge "Remote volume handling" into jb-dev
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
Adam Powell [Tue, 19 Jun 2012 04:36:23 +0000 (21:36 -0700)]
Merge "MediaRouter bluetooth a2dp selection" into jb-dev
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
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
Gilles Debunne [Tue, 19 Jun 2012 01:53:30 +0000 (18:53 -0700)]
Merge "Fixed text rendering issue with spans." into jb-dev
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
Craig Mautner [Tue, 19 Jun 2012 01:01:53 +0000 (18:01 -0700)]
Merge "More paths for turning on screen immediately." 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
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
Jim Miller [Tue, 19 Jun 2012 00:22:10 +0000 (17:22 -0700)]
Merge "Fix
6683092: tune GlowPadView wave animation" into jb-dev
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
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
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
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
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
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