OSDN Git Service

android-x86/frameworks-base.git
12 years agoMerge "Increase bitmap memory cap for widgets (Bug 6597440)" into jb-dev
Michael Jurka [Fri, 22 Jun 2012 21:38:12 +0000 (14:38 -0700)]
Merge "Increase bitmap memory cap for widgets (Bug 6597440)" into jb-dev

12 years agoMerge "Allow sloppy touch targeting on Action Bar home/up" into jb-dev
Adam Powell [Fri, 22 Jun 2012 21:26:20 +0000 (14:26 -0700)]
Merge "Allow sloppy touch targeting on Action Bar home/up" into jb-dev

12 years agoIncrease bitmap memory cap for widgets (Bug 6597440)
Winson Chung [Fri, 22 Jun 2012 21:11:47 +0000 (14:11 -0700)]
Increase bitmap memory cap for widgets (Bug 6597440)

Change-Id: I4149b8c5f204f10ebf0ef1f8d03709c0559178d0

12 years agoAllow sloppy touch targeting on Action Bar home/up
Adam Powell [Fri, 22 Jun 2012 21:08:11 +0000 (14:08 -0700)]
Allow sloppy touch targeting on Action Bar home/up

Bug 6521608

When there are no custom views or other actionable views next to the
action bar's home/up affordance, expand the touch target by a generous
slop value. This helps frustrating cases where a user accidentally
hits just to the right of Up and nothing happens.

Change-Id: I09ef604ce70ad380aab62a373b04c4b02007c644

12 years agodocs: fix several links
Scott Main [Fri, 22 Jun 2012 19:35:08 +0000 (12:35 -0700)]
docs: fix several links

Change-Id: I89d9fd64dc22c90680bb05415cc966c255165af9

12 years agoMerge "Avoid memory leak by only registering callback while attached to window."...
Adam Powell [Fri, 22 Jun 2012 17:44:27 +0000 (10:44 -0700)]
Merge "Avoid memory leak by only registering callback while attached to window." into jb-dev

12 years agoMerge "Don't crash in window manager if we fail getting .apk resources." into jb-dev
Dianne Hackborn [Fri, 22 Jun 2012 17:38:45 +0000 (10:38 -0700)]
Merge "Don't crash in window manager if we fail getting .apk resources." into jb-dev

12 years agoAvoid memory leak by only registering callback while attached to window.
Jack Palevich [Fri, 22 Jun 2012 08:06:57 +0000 (16:06 +0800)]
Avoid memory leak by only registering callback while attached to window.

Bug: 6710307
Change-Id: Idf57251e6feb48ec3e75e797144ff800fa874cc8

12 years agoMassive clobber of all HTML files in developer docs for new site design
Scott Main [Fri, 22 Jun 2012 00:14:39 +0000 (17:14 -0700)]
Massive clobber of all HTML files in developer docs for new site design

Change-Id: Idc55a0b368c1d2c1e7d4999601b739dd57f08eb3

12 years agoupdate make file with 'since' tag for api level 16, update version number
Scott Main [Fri, 22 Jun 2012 04:20:42 +0000 (21:20 -0700)]
update make file with 'since' tag for api level 16, update version number

Change-Id: I30d04dcde5cd505959d94c274634018b3602cb26

12 years agoVolume changes in MediaRouteChooserDialog
Adam Powell [Fri, 22 Jun 2012 02:59:53 +0000 (19:59 -0700)]
Volume changes in MediaRouteChooserDialog

Use the max volume reported by the selected route as the max value to set.

Change-Id: I9848dfb201387843e7ed398ac61e2d13e14e3f51

12 years agoMerge "Fix starting window problems." into jb-dev
Craig Mautner [Fri, 22 Jun 2012 01:56:27 +0000 (18:56 -0700)]
Merge "Fix starting window problems." into jb-dev

12 years agoFix starting window problems.
Craig Mautner [Fri, 22 Jun 2012 01:25:39 +0000 (18:25 -0700)]
Fix starting window problems.

Three problems fixed:
1. When one Activity took over for another Activity not all of the
starting window state was being copied over. Now copying over more
parameters.

2. When the visibility of an Activity was being changed the dummy
animation was overwriting the existing animation. If that animation
was the starting window animating then it started over when the
dummy animation was assigned. Now the dummy animation no longer
replaces an existing starting window animation.

3. The test for whether to animate away the starting window only
looked to see if the Activity had already drawn a window but did
not include the starting window. This caused the starting window
to immediately be hidden when the Activity was removed if no
windows were drawn, thereby exposing the fading window behind.
Now the starting window is included in the hasAppShownWindows test
and is animated away if it is exposed.

Fixes bug 6691421.

Change-Id: I4d32a1546c201652574a44d9e7f2752f1f1eb5a6

12 years agoMerge "b/6705777 Remove 'speaker' from strings" into jb-dev
RoboErik [Fri, 22 Jun 2012 00:20:55 +0000 (17:20 -0700)]
Merge "b/6705777 Remove 'speaker' from strings" into jb-dev

12 years agob/6705777 Remove 'speaker' from strings
RoboErik [Fri, 22 Jun 2012 00:05:52 +0000 (17:05 -0700)]
b/6705777 Remove 'speaker' from strings

We should just say Tablet or Phone when selecting the local
playback instead of Tablet speakers or Phone speaker.

Change-Id: Ia6c439f711bacb7b1e70fbcf4887df8141f91b61

12 years agoMerge "Allow ungrouping media routes when a group is the only alternate route" into...
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

12 years agoAllow ungrouping media routes when a group is the only alternate route
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

12 years agoDon't crash in window manager if we fail getting .apk resources.
Dianne Hackborn [Thu, 21 Jun 2012 22:29:36 +0000 (15:29 -0700)]
Don't crash in window manager if we fail getting .apk resources.

This normally shouldn't noramlly happen, but it can in the case of
bug 6647334 (crash in LoadedApk.makeApplication) where the package
manager information becomes inconsistent, and it could also happen
if an app was uninstalled or started updating at just the right
time during a launch.

Bug: 6647334
Change-Id: Iba22efe1d646cdac46099b2135466309577dfa54

12 years agoMerge "Fix issue #6700897: Activity paused by activating the..." into jb-dev
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

12 years agoFix issue #6700897: Activity paused by activating the...
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

12 years agoMerge "Make sure onScreenTurnedOn is called at power on." into jb-dev
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

12 years agoMerge "Import translations. DO NOT MERGE" 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

12 years agoMake sure onScreenTurnedOn is called at power on.
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

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

Change-Id: If3ebb62b4c2a912512600e51129551e23cf31553

12 years agoMerge "Add config option to enable links to Cell Broadcast app." into jb-dev
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

12 years agoAdd config option to enable links to Cell Broadcast app.
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

12 years agorevert I057b7ac0 now that the layouts are the expected height.
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

12 years agoFix docs
Daniel Sandler [Thu, 21 Jun 2012 13:28:07 +0000 (09:28 -0400)]
Fix docs

Change-Id: Ic5ff9aa07e65166a4ecaeecc5fb5e0091275bdcc

12 years agoMerge "Unhide new methods on RemoteViews and Notification." into jb-dev
Daniel Sandler [Thu, 21 Jun 2012 13:04:43 +0000 (06:04 -0700)]
Merge "Unhide new methods on RemoteViews and Notification." into jb-dev

12 years agoDejank: don't allocate when scrolling lists
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

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 agoUnhide new methods on RemoteViews and Notification.
Daniel Sandler [Thu, 21 Jun 2012 03:43:41 +0000 (23:43 -0400)]
Unhide new methods on RemoteViews and Notification.

Change-Id: I0cbc270d9d7e9e728482c3b10650a32589636c9d

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