OSDN Git Service

android-x86/frameworks-base.git
12 years agoMerge "Fix 5581164: Use abbreviated day in lockscreen" into ics-mr1
Jim Miller [Tue, 15 Nov 2011 23:42:20 +0000 (15:42 -0800)]
Merge "Fix 5581164: Use abbreviated day in lockscreen" into ics-mr1

12 years agoam d5897dc7: fix for build breakage.
Tsu Chiang Chuang [Tue, 15 Nov 2011 23:00:26 +0000 (15:00 -0800)]
am d5897dc7: fix for build breakage.

* commit 'd5897dc7985e511c194f839d4b340fed2d63b41c':
  fix for build breakage.

12 years agoMerge "Fix 5602985: Show "Emergency calls only" when device has no SIM." into ics-mr1
Jim Miller [Tue, 15 Nov 2011 22:51:50 +0000 (14:51 -0800)]
Merge "Fix 5602985: Show "Emergency calls only" when device has no SIM." into ics-mr1

12 years agoMerge "Override app requested orientation when docked." into ics-mr1
Jeff Brown [Tue, 15 Nov 2011 22:46:17 +0000 (14:46 -0800)]
Merge "Override app requested orientation when docked." into ics-mr1

12 years agoMerge "Improve low memory dropbox reporting." into ics-mr1
Dianne Hackborn [Tue, 15 Nov 2011 22:39:37 +0000 (14:39 -0800)]
Merge "Improve low memory dropbox reporting." into ics-mr1

12 years agoImprove low memory dropbox reporting.
Dianne Hackborn [Tue, 15 Nov 2011 19:29:38 +0000 (11:29 -0800)]
Improve low memory dropbox reporting.

The msg is now constructed to try to bin these reports in
interesting ways.  We'll see.  Also change the tag name from
watchdog to lowmem, since sharkey is kindly taking care of
the back-end to handle this.

Improve how we put processes into low memory states to better
poke things like home and the previous app.

Also clean up some debug output, and add a few new am comment
options for controlling the current debug app.

Change-Id: I562a931a95244a2727bb7a6e1fd80dec259cdae2

12 years agoOverride app requested orientation when docked.
Jeff Brown [Tue, 15 Nov 2011 22:08:20 +0000 (14:08 -0800)]
Override app requested orientation when docked.

Applies to docks, lid switch, HDMI and rotation lock.
We always choose a mode that is compatible with the application's
request, so if in a landscape dock, we might override a request
for seascape but we leave requests for portrait alone.

Bug: 5620454
Change-Id: Ib0c4f60f7f9e3aeafaba9c717233a950fccb8af2

12 years agoMerge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1
Mathias Agopian [Tue, 15 Nov 2011 21:03:47 +0000 (13:03 -0800)]
Merge "enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices" into ics-mr1

12 years agoMerge "fix crash when validating an invalid EGL objects" into ics-mr1
Mathias Agopian [Tue, 15 Nov 2011 21:03:22 +0000 (13:03 -0800)]
Merge "fix crash when validating an invalid EGL objects" into ics-mr1

12 years agoMerge "Defer adding large icon until when we compose the final notification. (Bug...
Winson Chung [Tue, 15 Nov 2011 20:41:56 +0000 (12:41 -0800)]
Merge "Defer adding large icon until when we compose the final notification. (Bug 5566846)" into ics-mr1

12 years agoam 8d8e669e: Merge "DO NOT MERGE cherry picking from MR0 cl 148223" into ics-mr0
Danielle Millett [Tue, 15 Nov 2011 20:16:59 +0000 (12:16 -0800)]
am 8d8e669e: Merge "DO NOT MERGE cherry picking from MR0 cl 148223" into ics-mr0

* commit '8d8e669ea11d011b3e2320ad5dab580916b6d32e':
  DO NOT MERGE cherry picking from MR0 cl 148223

12 years agoam 8d00c194: Merge "Import revised translations. DO NOT MERGE" into ics-mr0
Eric Fischer [Tue, 15 Nov 2011 19:51:38 +0000 (11:51 -0800)]
am 8d00c194: Merge "Import revised translations.  DO NOT MERGE" into ics-mr0

* commit '8d00c194c228e67851e5a0cb75c4bf4d99dd40f0':
  Import revised translations.  DO NOT MERGE

12 years agoam 047c4de2: Merge "Adding mobile microbenchmark tests." into ics-mr0
Tsu Chiang Chuang [Tue, 15 Nov 2011 19:10:44 +0000 (11:10 -0800)]
am 047c4de2: Merge "Adding mobile microbenchmark tests." into ics-mr0

* commit '047c4de2c548960fff428a92099003593cede5f8':
  Adding mobile microbenchmark tests.

12 years agoMerge "Clean-up in TextView" into ics-mr1
Gilles Debunne [Tue, 15 Nov 2011 17:59:45 +0000 (09:59 -0800)]
Merge "Clean-up in TextView" into ics-mr1

12 years agoMerge "Call onScrollChanged when scrolling layers" into ics-mr1
John Reck [Tue, 15 Nov 2011 17:56:17 +0000 (09:56 -0800)]
Merge "Call onScrollChanged when scrolling layers" into ics-mr1

12 years agoMerge "Fix for issue 5309336 -add videoeditor maximum prefetch YUV frames in media_p...
Hong Teng [Tue, 15 Nov 2011 17:42:37 +0000 (09:42 -0800)]
Merge "Fix for issue  5309336 -add videoeditor maximum prefetch YUV frames in media_profiles.xml to limit the total memory usage." into ics-mr1

12 years agoMerge "Bring back the 'more notifications' icon." into ics-mr1
Daniel Sandler [Tue, 15 Nov 2011 17:20:56 +0000 (09:20 -0800)]
Merge "Bring back the 'more notifications' icon." into ics-mr1

12 years agoMerge "Fix 5615747 Don't leak remote control client death handlers" into ics-mr1
Jean-Michel Trivi [Tue, 15 Nov 2011 16:56:55 +0000 (08:56 -0800)]
Merge "Fix 5615747 Don't leak remote control client death handlers" into ics-mr1

12 years agoMerge "Improve camera face detection javadoc." into ics-mr1
Wu-cheng Li [Tue, 15 Nov 2011 14:14:11 +0000 (06:14 -0800)]
Merge "Improve camera face detection javadoc." into ics-mr1

12 years agoImprove camera face detection javadoc.
Wu-cheng Li [Fri, 12 Aug 2011 12:25:00 +0000 (20:25 +0800)]
Improve camera face detection javadoc.

bug:4460717
Change-Id: I6e040911ce802e597e77dfdde1c92b75d51975c8

12 years agoMerge "Updating recent apps visuals on tablet" into ics-mr1
Michael Jurka [Tue, 15 Nov 2011 07:53:34 +0000 (23:53 -0800)]
Merge "Updating recent apps visuals on tablet" into ics-mr1

12 years agoUpdating recent apps visuals on tablet
Michael Jurka [Sun, 13 Nov 2011 21:50:38 +0000 (13:50 -0800)]
Updating recent apps visuals on tablet

- getting rid of blue glow (5529032)
- moving app icon position
- show message if there are no recent apps (5533332)
- fixing rare IllegalStateException on orientation change (5584344)

Change-Id: I2210e584957869c8f02339e6841daf39364a9dad

12 years agoMerge "Conservatively trim data usage stats." into ics-mr1
Jeff Sharkey [Tue, 15 Nov 2011 07:37:17 +0000 (23:37 -0800)]
Merge "Conservatively trim data usage stats." into ics-mr1

12 years agoMerge "Move nfc-extras tests into frameworks/base/nfc-extras/tests." into ics-mr1
Nick Pelly [Tue, 15 Nov 2011 04:14:11 +0000 (20:14 -0800)]
Merge "Move nfc-extras tests into frameworks/base/nfc-extras/tests." into ics-mr1

12 years agoFix 5581164: Use abbreviated day in lockscreen
Jim Miller [Tue, 15 Nov 2011 04:13:50 +0000 (20:13 -0800)]
Fix 5581164: Use abbreviated day in lockscreen

This fixes a problem where the alarm status was forced to scroll on phones
when the date string got too long.  We now abbreviate the day on lock screen.

Change-Id: I99990f1568282c65fb6ed4e78d20bb31b3487a8e

12 years agoConservatively trim data usage stats.
Jeff Sharkey [Tue, 15 Nov 2011 02:02:21 +0000 (18:02 -0800)]
Conservatively trim data usage stats.

Instead of trusting NTP time alone, use the most-conservative of
system clock and NTP.

Bug: 5584564
Change-Id: I5dd87fc009959b1cf0a7d660e385a0b1a8be238b

12 years agoMerge "Fix bug 5594320 - Overlay action bar decor layout causes two measure passes...
Adam Powell [Tue, 15 Nov 2011 03:47:55 +0000 (19:47 -0800)]
Merge "Fix bug 5594320 - Overlay action bar decor layout causes two measure passes" into ics-mr1

12 years agoMerge "Enforce 1-1 relationship between context and NfcAdapterExtras." into ics-mr1
Nick Pelly [Tue, 15 Nov 2011 03:39:09 +0000 (19:39 -0800)]
Merge "Enforce 1-1 relationship between context and NfcAdapterExtras." into ics-mr1

12 years agoenable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices
Mathias Agopian [Tue, 15 Nov 2011 03:17:37 +0000 (19:17 -0800)]
enable ALLOW_DEQUEUE_CURRENT_BUFFER for tegra devices

this flag should be enabled for all targets, but currently
some have issues with it, so we're turning it on only for
tested targets.

this will hopefully resolve some performance issues.

Bug: 5553562
Change-Id: I939992b4cd0debea980dec0127c72be2dff33af8

12 years agoMerge "Improve low memory reporting." into ics-mr1
Dianne Hackborn [Tue, 15 Nov 2011 02:36:50 +0000 (18:36 -0800)]
Merge "Improve low memory reporting." into ics-mr1

12 years agoMerge "Fix races when content providers are acquired and released." into ics-mr1
Jeff Brown [Tue, 15 Nov 2011 02:35:57 +0000 (18:35 -0800)]
Merge "Fix races when content providers are acquired and released." into ics-mr1

12 years agoMerge "Maybe fix issue #5405788: Device continuously opening and closing..." into...
Dianne Hackborn [Tue, 15 Nov 2011 02:35:46 +0000 (18:35 -0800)]
Merge "Maybe fix issue #5405788: Device continuously opening and closing..." into ics-mr1

12 years agoFix races when content providers are acquired and released.
Jeff Brown [Sat, 12 Nov 2011 04:16:14 +0000 (20:16 -0800)]
Fix races when content providers are acquired and released.

This change fixes race conditions that occur very regularly when
content providers are accessed from multiple threads at the same
time.

When a content provider is not already in the application's cache,
the application needs to ask the ActivityManager to obtain it.
Meanwhile, another thread can come along and do the same thing.
This can cause problems because the application attempts to
install two copies of the provider and the reference counts
and other bookkeeping can get muddled.

Similarly, there are races between releasing the last reference
to a content provider and acquiring the content provider.  It's
possible for one thread to snatch the content provider from the
jaws of death.  We need to handle this explicitly to ensure that
the content provider does not accidentally get released right
after it was acquired by the other thread.

This change ensures that the reference count bookkeeping and
provider map are maintained in parallel while holding the same lock.
Previously because the lock was dropped and reacquired in the
middle of acquisition and removal, it was possible for a
content provider with a zero reference count to be returned
to the application.  Likewise, it was possible for a content
provider with a non-zero reference count to be disposed!

This change also performs compensatory actions when races are
detected to ensure that the necessary invariants are maintained
throughout.  In particular, it ensures that the application
drops a duplicate reference to a content provider when no
longer needed.

Another way to solve this problem would be to explicitly prevent
the races from happening in the first place by maintaining a
table of content providers that are in the process of being
acquired.  The first thread to attempt to acquire the provider
would store a record.  The next thread would find the record
and block until the first thread was finished.  I chose not
to implement the code in that manner because we would still
have needed to perform compensatory actions in the case where
the same provider binder has multiple logical names.  Also,
it could cause deadlocks if the attempt to acquire
a content provider were re-entrant for some bizarre reason.

Bug: 5547357
Change-Id: I2ad39a8acc30aaf7ae5354decd0a0a41e9b9c3da

12 years agoImprove low memory reporting.
Dianne Hackborn [Tue, 15 Nov 2011 02:27:24 +0000 (18:27 -0800)]
Improve low memory reporting.

Change-Id: I42d56ab8026fd02232dd11dbfbc513fbc0a1a851

12 years agoMerge "Allow ContactsProvider to remove dulicates" into ics-mr1
Daisuke Miyakawa [Tue, 15 Nov 2011 01:54:17 +0000 (17:54 -0800)]
Merge "Allow ContactsProvider to remove dulicates" into ics-mr1

12 years agoMaybe fix issue #5405788: Device continuously opening and closing...
Dianne Hackborn [Tue, 15 Nov 2011 01:45:19 +0000 (17:45 -0800)]
Maybe fix issue #5405788: Device continuously opening and closing...

...the "Complete action using" dialog

I have never been able to reproduce this consistently, but here is
another stab in the twilight.  It looks like during boot we have
a potential race where we could reset the config sequence number after
we had gone through a config change, causing ActivityThread to ignore
a following config change.  Maybe this change will help.

Change-Id: I4b731df5fd5c63894ca2e9bd34693b31ab1c0565

12 years agofix crash when validating an invalid EGL objects
Mathias Agopian [Mon, 14 Nov 2011 04:50:07 +0000 (20:50 -0800)]
fix crash when validating an invalid EGL objects

the code that validated EGL objects dereferenced the object
to access its EGLDisplay -- needed for validation (!).
This was wrong for two reasons, first we dereferenced the object
before validating it (potentially leading to a crash), secondly
we didn't validate that the object existed in the right EGLDisplay.

We now use the EGLDisplay passed by the user API.

Change-Id: I66f9e851d4f8507892a6b1fee3065f124c4e7138

12 years agoMerge "EGL: add the ANDROID suffix to the blob cache ext" into ics-mr1
Jamie Gennis [Tue, 15 Nov 2011 01:36:46 +0000 (17:36 -0800)]
Merge "EGL: add the ANDROID suffix to the blob cache ext" into ics-mr1

12 years agoFix 5615747 Don't leak remote control client death handlers
Jean-Michel Trivi [Mon, 14 Nov 2011 23:23:04 +0000 (15:23 -0800)]
Fix 5615747 Don't leak remote control client death handlers

Whenever a remote control stack entry is GC'd or removed from
 the stack, unlink its death handler.

Change-Id: Ia4ed6667351849fd388272591e24ffc16959beaf

12 years agoFix 5602985: Show "Emergency calls only" when device has no SIM.
Jim Miller [Tue, 15 Nov 2011 01:21:55 +0000 (17:21 -0800)]
Fix 5602985: Show "Emergency calls only" when device has no SIM.

Some countries require phones to show "Emergency calls only" when
roaming on a device with no Sim.  This changes causes the phone
to now display the PLMN string on devices that are voice-capable when
the sim is missing.  This depends on the PLMN containing the text
"Emergency calls only" when the radio has connectivity to any carrier.
Otherwise, the PLMN is expected be null or empty which will cause the
device to just show "No SIM card."

Change-Id: I7c1d4624ae67074e2ca40161845ca8bb36031c42

12 years agoCall onScrollChanged when scrolling layers
John Reck [Wed, 2 Nov 2011 17:18:12 +0000 (10:18 -0700)]
Call onScrollChanged when scrolling layers

 Bug: 5533389
 Treat layer scrolling as a no-op scroll by calling
 onScrollChanged with old scroll == new scroll

Change-Id: I1dc2b94b37c65bf088806b8d28be32883e3b8bee

12 years agoMerge "Fix 5579440: Add transport control view to tablet unlock screens" into ics-mr1
Jim Miller [Tue, 15 Nov 2011 00:14:07 +0000 (16:14 -0800)]
Merge "Fix 5579440: Add transport control view to tablet unlock screens" into ics-mr1

12 years agofix for build breakage.
Tsu Chiang Chuang [Mon, 14 Nov 2011 23:46:16 +0000 (15:46 -0800)]
fix for build breakage.

Change-Id: Ie324e46a79923813edd2e5e0c34ede79e6ee3eea

12 years agoFix bug 5594320 - Overlay action bar decor layout causes two measure passes
Adam Powell [Mon, 14 Nov 2011 23:32:32 +0000 (15:32 -0800)]
Fix bug 5594320 - Overlay action bar decor layout causes two measure passes

The existing action bar overlay decor layouts hit a case in
RelativeLayout that causes two measure passes for the main content. As
this can be expensive, stick the bar and the content overlay into
their own sub-layout and switch things to use a FrameLayout at the top
level instead.

Be explicit about the layout_width/height on ActionBar-containing
decor layouts as the older decor layouts are.

Change-Id: I4330f0f25841dd8058b94a320f93bf67fb56bf17

12 years agoMove nfc-extras tests into frameworks/base/nfc-extras/tests.
Nick Pelly [Mon, 14 Nov 2011 22:21:57 +0000 (14:21 -0800)]
Move nfc-extras tests into frameworks/base/nfc-extras/tests.

The new NFC Extras access control allows us to run these tests
without a vendor specific certificate.

Change-Id: I9425e08e557214cf6a74276622402c5682bbaef4

12 years agoMerge "DO NOT MERGE cherry picking from MR0 cl 148223" into ics-mr0
Danielle Millett [Mon, 14 Nov 2011 23:08:05 +0000 (15:08 -0800)]
Merge "DO NOT MERGE cherry picking from MR0 cl 148223" into ics-mr0

12 years agoMerge "Import revised translations. DO NOT MERGE" into ics-mr0
Eric Fischer [Mon, 14 Nov 2011 23:06:30 +0000 (15:06 -0800)]
Merge "Import revised translations.  DO NOT MERGE" into ics-mr0

12 years agoMerge "Adding mobile microbenchmark tests." into ics-mr0
Tsu Chiang Chuang [Mon, 14 Nov 2011 23:03:17 +0000 (15:03 -0800)]
Merge "Adding mobile microbenchmark tests." into ics-mr0

12 years agoMerge "Adding mobile microbenchmark tests." into ics-mr1
Tsu Chiang Chuang [Mon, 14 Nov 2011 22:35:42 +0000 (14:35 -0800)]
Merge "Adding mobile microbenchmark tests." into ics-mr1

12 years agoMerge "Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241...
Adam Cohen [Mon, 14 Nov 2011 22:33:06 +0000 (14:33 -0800)]
Merge "Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)" into ics-mr1

12 years agoEnforce 1-1 relationship between context and NfcAdapterExtras.
Nick Pelly [Mon, 14 Nov 2011 22:22:52 +0000 (14:22 -0800)]
Enforce 1-1 relationship between context and NfcAdapterExtras.

This fixes a bug where NfcExecutionEnvironment.close() would NPE
if you called it on a different EE to the one you opened. We now
always return the same EE in the same contet.

Change-Id: I949998dc2ee738527ee281cae46ae50ea6950a2c

12 years agoDefer adding large icon until when we compose the final notification. (Bug 5566846)
Winson Chung [Mon, 14 Nov 2011 22:12:54 +0000 (14:12 -0800)]
Defer adding large icon until when we compose the final notification. (Bug 5566846)

Change-Id: I9f156d7b597112ce14e274f05df421100c9481e6

12 years agoFix 5579440: Add transport control view to tablet unlock screens
Jim Miller [Wed, 9 Nov 2011 03:50:49 +0000 (19:50 -0800)]
Fix 5579440: Add transport control view to tablet unlock screens

This updated tablet layouts to support showing album art and transport
control views in PIN, pattern and password screens of lock screen.

It also allows the addition of a background protect asset and
the ability to show the system wallpaper on layouts that define a
transport_bg_protect view.

Also updated layout to use new ICS-style buttons on lock screen and
fixed bug with "forgot pattern" button where we were showing the
emergency call icon.

To avoid problems with leading ones in the mono-space clock font,
we now right-justify status text on tablet and remove the AM/PM
indicator.

Status font size adjusted by UX.

Added background protection drop shadow to transport control.

Fixed portrait mode to be right-justified when transport is showing.

Change-Id: I790292fc39f4588f87adc9d9241706817ae6baab

12 years agoDO NOT MERGE cherry picking from MR0 cl 148223
Danielle Millett [Mon, 7 Nov 2011 20:42:12 +0000 (15:42 -0500)]
DO NOT MERGE cherry picking from MR0 cl 148223

Showing a congratulations screen after choosing face unlock backup lock

Once a backup lock has been chosen, it sends an intent to show a
congratulations screen.  The moveTempGallery function has been moved
inside this new activity so it is no longer needed in LockPatternUtils.

Change-Id: I66868e6e3391b8b740f618fe633047ce388f55ca

12 years agoFix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)
Adam Cohen [Mon, 14 Nov 2011 21:28:50 +0000 (13:28 -0800)]
Fix uncaught exception in WindowManager#setWallpaperOffsets (issue 5613241)

Change-Id: I4646095f4cde9514425be8ab2dbf805d9788aa5c

12 years agoImport revised translations. DO NOT MERGE
Eric Fischer [Mon, 14 Nov 2011 21:24:28 +0000 (13:24 -0800)]
Import revised translations.  DO NOT MERGE

Change-Id: I287b6b70df6795513fc1fc98d2fddaf310042e98

12 years agoAllow ContactsProvider to remove dulicates
Daisuke Miyakawa [Mon, 14 Nov 2011 21:16:07 +0000 (13:16 -0800)]
Allow ContactsProvider to remove dulicates

Bug: 5484956
Change-Id: Ie88af0c3d21919ca201f4fcdd46ca09e9f8d94c0

12 years agoFix for issue 5309336
Hong Teng [Thu, 10 Nov 2011 22:54:26 +0000 (14:54 -0800)]
Fix for issue  5309336
-add videoeditor maximum prefetch YUV frames in media_profiles.xml to limit the total memory usage.

Change-Id: I41ffbc192fcce4c7635e5b0a1f2835852e5ee509

12 years agoMerge "Fix 5607938 AudioFocusDeathHandler leaks GREF" into ics-mr1
Jean-Michel Trivi [Mon, 14 Nov 2011 20:31:10 +0000 (12:31 -0800)]
Merge "Fix 5607938 AudioFocusDeathHandler leaks GREF" into ics-mr1

12 years agoMerge "Revert "Discard framebuffer rendering queues when discarding layers"" into...
Dave Burke [Mon, 14 Nov 2011 20:25:53 +0000 (12:25 -0800)]
Merge "Revert "Discard framebuffer rendering queues when discarding layers"" into ics-mr1

12 years agoMerge "[maguro] Fix STK issues" into ics-mr1
John Wang [Mon, 14 Nov 2011 20:10:16 +0000 (12:10 -0800)]
Merge "[maguro] Fix STK issues" into ics-mr1

12 years agoMerge "Define, document, and test the behavior of very large SurfaceTextures" into...
Mathias Agopian [Mon, 14 Nov 2011 19:49:42 +0000 (11:49 -0800)]
Merge "Define, document, and test the behavior of very large SurfaceTextures" into ics-mr1

12 years agoRevert "Discard framebuffer rendering queues when discarding layers"
Dave Burke [Mon, 14 Nov 2011 19:39:30 +0000 (11:39 -0800)]
Revert "Discard framebuffer rendering queues when discarding layers"

This reverts commit da96f8ac2c1c35a54f3f36e6d776cb386a251d03.

12 years ago[maguro] Fix STK issues
dujin.cha [Sat, 12 Nov 2011 08:50:26 +0000 (17:50 +0900)]
[maguro] Fix STK issues

1. Fix Bug 5574160 (Abnormal Setup menu)
2. Fix Bug 5558273 (GetInkey issue)
3. Fix BUg 5558612 (No default alpha id)
4. Fix Vodafone UK ALS issue.

Bug : 557416055582735558612

Change-Id: Ief74d0e4f4f28dff7a435e9dab1fab1ca1d9bfaf
Signed-off-by: dujin.cha <dujin.cha@samsung.com>
12 years agoMerge "Fixing a race condition in RSSurfaceView. Bug 5601083 When destroy is called...
Alex Sakhartchouk [Mon, 14 Nov 2011 18:35:08 +0000 (10:35 -0800)]
Merge "Fixing a race condition in RSSurfaceView. Bug 5601083 When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context." into ics-mr1

12 years agoMerge "audioflinger: fix noise when skipping to next song" into ics-mr1
Eric Laurent [Mon, 14 Nov 2011 16:38:05 +0000 (08:38 -0800)]
Merge "audioflinger: fix noise when skipping to next song" into ics-mr1

12 years agoMerge "Discard framebuffer rendering queues when discarding layers Bug #5581817"...
Mathias Agopian [Mon, 14 Nov 2011 08:52:09 +0000 (00:52 -0800)]
Merge "Discard framebuffer rendering queues when discarding layers Bug #5581817" into ics-mr1

12 years agoam 19b1c12b: Merge "Docs: update state list drawable with state_activated and revise...
Scott Main [Sat, 12 Nov 2011 03:22:07 +0000 (19:22 -0800)]
am 19b1c12b: Merge "Docs: update state list drawable with state_activated and revise selected/focused" into ics-mr0

* commit '19b1c12b5eb3417e9f56810cc08ee1e560da0a99':
  Docs: update state list drawable with state_activated and revise selected/focused

12 years agoam f1f0c873: Fix bug in TextLayoutCacheKey handling embedded nulls.
Jeff Brown [Sat, 12 Nov 2011 03:22:04 +0000 (19:22 -0800)]
am f1f0c873: Fix bug in TextLayoutCacheKey handling embedded nulls.

* commit 'f1f0c873b1d119a19342cb67ca77b59607951659':
  Fix bug in TextLayoutCacheKey handling embedded nulls.

12 years agoam 6200a4b7: Merge "DO NOT MERGE Cherry pick from ics-mr1 - Bug 5275928 - Don\'t...
Adam Powell [Sat, 12 Nov 2011 03:22:02 +0000 (19:22 -0800)]
am 6200a4b7: Merge "DO NOT MERGE Cherry pick from ics-mr1 - Bug 5275928 - Don\'t try to open an overflow menu under invalid circumstances." into ics-mr0

* commit '6200a4b7eb07507055af93ec1a054640a39b9751':
  DO NOT MERGE Cherry pick from ics-mr1 - Bug 5275928 - Don't try to open an overflow menu under invalid circumstances.

12 years agoam 5f8b7269: docs: fix typo
Robert Ly [Sat, 12 Nov 2011 03:22:01 +0000 (19:22 -0800)]
am 5f8b7269: docs: fix typo

* commit '5f8b7269d66acb45dcb74a1eb38102cb1d1431df':
  docs: fix typo

12 years agoam 5ad6f646: Merge "docs: ndk r7 rel notes" into ics-mr0
Robert Ly [Sat, 12 Nov 2011 03:17:23 +0000 (19:17 -0800)]
am 5ad6f646: Merge "docs: ndk r7 rel notes" into ics-mr0

* commit '5ad6f646fbe692b94961df6472bec2b8bd1ea382':
  docs: ndk r7 rel notes

12 years agoDefine, document, and test the behavior of very large SurfaceTextures
Mathias Agopian [Thu, 10 Nov 2011 22:34:26 +0000 (14:34 -0800)]
Define, document, and test the behavior of very large SurfaceTextures

updateTexImage() now throws a runtime exception when its native
counterpart fails

Bug: 5506633

Change-Id: I151a6f685d465966e7df4df624412ab2da62e95f

12 years agoFix bug 5425280 - Two ActionBar icons show up
Adam Powell [Sat, 12 Nov 2011 02:35:53 +0000 (18:35 -0800)]
Fix bug 5425280 - Two ActionBar icons show up

Change-Id: Ic82f8ce648f9314a0800eeff326df7d8dfe5027b

12 years agoMerge "Docs: update state list drawable with state_activated and revise selected...
Scott Main [Sat, 12 Nov 2011 01:17:23 +0000 (17:17 -0800)]
Merge "Docs: update state list drawable with state_activated and revise selected/focused" into ics-mr0

12 years agoaudioflinger: fix noise when skipping to next song
Eric Laurent [Fri, 11 Nov 2011 23:42:52 +0000 (15:42 -0800)]
audioflinger: fix noise when skipping to next song

When audio effects are enabled, a noise can be heard at the
beginning of the new song when skipping to next song in music app.

This is because some effects (especially virtualizer) have a tail.
This tail was not played when previous song was stopped because effects were
not processed when no tracks were present on a given session. This is to
reduce CPU load when effects are enabled but no audio is playing.
The tail was then rendered when the new song was started.

Added a delay before stopping effect process after all tracks have been removed from a session.

Issue 5584880.

Change-Id: I815e0f7441f9302e8dfe413dc269a94e4cc6fd95

12 years agoMerge "XML parsing optimizations" into ics-mr1
Christopher Tate [Sat, 12 Nov 2011 00:19:29 +0000 (16:19 -0800)]
Merge "XML parsing optimizations" into ics-mr1

12 years agoFix 5607938 AudioFocusDeathHandler leaks GREF
Jean-Michel Trivi [Sat, 12 Nov 2011 00:13:48 +0000 (16:13 -0800)]
Fix 5607938 AudioFocusDeathHandler leaks GREF

The AudioFocus death handler was correctly updating the audio
 focus stack when an audio focus client dies, but the death handler
 was leaking GREF if unlinkToDeath() is not called.
The fix consists in making sure unlinkToDeath() is always called
 by calling it in its finalizer.

Change-Id: I0c5343b4986ab582cadbf171fc53816952dc16f5

12 years agoXML parsing optimizations
Christopher Tate [Fri, 11 Nov 2011 23:47:21 +0000 (15:47 -0800)]
XML parsing optimizations

Traceview showed approximately 10% of total parse time inside the
synthetic 'trampoline' methods generated to provide inner classes
with access to their outer class's private fields.  The bottleneck
in this particular case is in XmlBlock and its inner class Parser.

Making the bottlneck outer-class members and methods package-scope
instead of private removes that 10% overhead being spent within
these access trampolines.

Traceview tends to overemphasize the significance of very small
methods such as these trampolines.  That said, the measured speed
gain on the ParseLargeXmlResFg op due to this patch is between
5% and 6%.

Change-Id: Ia0e3ae5408d1f9992b46e6e30dd2407090379b07

12 years agoFix bug in TextLayoutCacheKey handling embedded nulls.
Jeff Brown [Fri, 11 Nov 2011 23:03:05 +0000 (15:03 -0800)]
Fix bug in TextLayoutCacheKey handling embedded nulls.

We were not passing the length of the UTF-16 string to
String16::setTo.  As a result, it was copying the contents of
the text up to the first null it found.

First problem, these strings are not typically null terminated!

Second problem, if the string contained a null character, then
we might truncate it.  However, we only truncated the string
when the copy constructor was invoked (say, when we called
get() on the cache) but not in internalTextCopy() (before
adding the key to the cache).

As a result of the second problem, we would first search
the cache for a key that matched a partially copied truncated
string (potentially reading uninitialized memory that followed it).
Finding none, we would add the entry to the cache using
the correct key.

If the cache already had a value associated with the correct key,
then the put would fail, returning false.  Charging ever onwards,
we would add the size of the entry to the cache size.

Proceeding in this manner, it was possible for the cache to
believe it had less remaining space than it really did.  At that
point, it was possible for the cache to evict all entries and
yet still not think it had room to add a new one, so it would
continue trying to make space indefinitely.

Bug: 5576812
Change-Id: I05251594f6b2da0a5dc09f7200f04fe9100ec766

12 years agoMake activity manager more robust in the face of app activity leaks.
Dianne Hackborn [Fri, 11 Nov 2011 22:32:10 +0000 (14:32 -0800)]
Make activity manager more robust in the face of app activity leaks.

This came up from bug #5601885: Memory increase (leak?) in system_server
Stingray MR1

This isn't *really* a leak in the system process -- it is a leak in an
application process that is causing the system process to keep around
a bunch of ActivityRecord objects longer than it should, until that app
process is ultimately killed.

Unfortunately these days leaking an ActivityRecord also often means
leaking a thumbnail, which is a big slab of memory.

So make the activity manager better about this, using a weak reference
from the handle the object has so we can still clean away most of the
state associated with the ActivityRecord even if the client side leaks
its own reference.

Change-Id: Idbab45e09749cdfb54899203da7981e7b3576e25

12 years agoMerge "DO NOT MERGE Cherry pick from ics-mr1 - Bug 5275928 - Don't try to open an...
Adam Powell [Fri, 11 Nov 2011 22:54:02 +0000 (14:54 -0800)]
Merge "DO NOT MERGE Cherry pick from ics-mr1 - Bug 5275928 - Don't try to open an overflow menu under invalid circumstances." into ics-mr0

12 years agoMerge "Tone down Tethering logs." into ics-mr1
Robert Greenwalt [Fri, 11 Nov 2011 22:37:18 +0000 (14:37 -0800)]
Merge "Tone down Tethering logs." into ics-mr1

12 years agoMerge "Fix issue #5595933: GREF leak due to race condition in..." into ics-mr1
Dianne Hackborn [Fri, 11 Nov 2011 22:24:58 +0000 (14:24 -0800)]
Merge "Fix issue #5595933: GREF leak due to race condition in..." into ics-mr1

12 years agoMerge "Localized optimizations in views and bitmaps" into ics-mr1
Christopher Tate [Fri, 11 Nov 2011 22:24:53 +0000 (14:24 -0800)]
Merge "Localized optimizations in views and bitmaps" into ics-mr1

12 years agoTone down Tethering logs.
Robert Greenwalt [Fri, 11 Nov 2011 20:30:19 +0000 (12:30 -0800)]
Tone down Tethering logs.

bug:5601582
Change-Id: I66c0a5a06a2c13a7cf93ea264d156b37df23745f

12 years agodocs: fix typo
Robert Ly [Fri, 11 Nov 2011 21:39:34 +0000 (13:39 -0800)]
docs: fix typo

Change-Id: I86ebd8bced2ca133fc6faff43c2e69205f0c9862

12 years agoEGL: add the ANDROID suffix to the blob cache ext
Jamie Gennis [Wed, 9 Nov 2011 23:35:34 +0000 (15:35 -0800)]
EGL: add the ANDROID suffix to the blob cache ext

This change adds the ANDROID suffix to the all the types and functions
defined by the EGL_ANDROID_blob_cache extension.

Change-Id: I087875b96d9a7053efb9c8d5614f9f765eed799d

12 years agoMerge "Changes for access control." into ics-mr1
Nick Pelly [Fri, 11 Nov 2011 21:06:44 +0000 (13:06 -0800)]
Merge "Changes for access control." into ics-mr1

12 years agoLocalized optimizations in views and bitmaps
Christopher Tate [Fri, 11 Nov 2011 03:59:13 +0000 (19:59 -0800)]
Localized optimizations in views and bitmaps

* Don't call context.getResources() redundantly when unnecessary;
  similarly for Resources.getCompatibilityInfo()

* During bitmap creation, don't bother clearing to 0: it's unnecessary
  because now that the raw bits are stored in a VM-side byte array, it
  was cleared at initialization time.  Also, don't use the sanity-
  checking public entry point to erase to a color, because we know
  that we're by definition in a "legal" path to erase to the initial
  contents and don't need to incur the overhead of the (inappropriate)
  sanity checking.

Change-Id: Idaca4d64fdecefd5d51337646ead32e1db510e02

12 years agoFix issue #5595933: GREF leak due to race condition in...
Dianne Hackborn [Fri, 11 Nov 2011 20:31:52 +0000 (12:31 -0800)]
Fix issue #5595933: GREF leak due to race condition in...

...LoadedApk.ServiceDispatcher.connected , LoadedApk.forgetServiceDispatcher

Don't be stupid if we receive a new binding to a ServiceConnection after it
has already been unbound.

Change-Id: I85a49de97372bf9af55542a89031f0b7a2ac8fbb

12 years agoMerge "Send CONNECT_OTHER_PROFILE to Device profile for hfp and a2dp incoming connect...
Matthew Xie [Fri, 11 Nov 2011 20:16:41 +0000 (12:16 -0800)]
Merge "Send CONNECT_OTHER_PROFILE to Device profile for hfp and a2dp incoming connect" into ics-mr1

12 years agoSend CONNECT_OTHER_PROFILE to Device profile for hfp and a2dp incoming connect
Matthew Xie [Thu, 10 Nov 2011 08:03:28 +0000 (00:03 -0800)]
Send CONNECT_OTHER_PROFILE to Device profile for hfp and a2dp incoming connect

Send CONNECT_OTHER_PROFILE to Device profile for low priority hfp and a2dp
incoming connect. In the case when HFP autoconnect is off but a2dp autoconnect
is on, if HF autoconnect to HFP, phone will reject HFP but connect a2dp.
Before this fix, phone reject HFP. A2dp will not get connected unless the HF do
media auto-connect, which most carkits do not do.
Also do similar change for incoming a2dp connection
bug 5091838

Change-Id: Ife1815f527bcd94e0d9ffc645028484fa9c49a43

12 years agoMerge "docs: ndk r7 rel notes" into ics-mr0
Robert Ly [Fri, 11 Nov 2011 20:06:39 +0000 (12:06 -0800)]
Merge "docs: ndk r7 rel notes" into ics-mr0

12 years agoDO NOT MERGE Cherry pick from ics-mr1 - Bug 5275928 - Don't try to open an
Adam Powell [Fri, 28 Oct 2011 00:46:07 +0000 (17:46 -0700)]
DO NOT MERGE Cherry pick from ics-mr1 - Bug 5275928 - Don't try to open an
overflow menu under invalid circumstances.

Change-Id: Ifb847b914b880ffb21dd5fc6efa833f46466f224

12 years agoMerge "Making the quicksettings notifications icon the right opacity" into ics-mr1
Peter Ng [Fri, 11 Nov 2011 19:57:41 +0000 (11:57 -0800)]
Merge "Making the quicksettings notifications icon the right opacity" into ics-mr1

12 years agoFixing a race condition in RSSurfaceView. Bug 5601083
Alex Sakhartchouk [Fri, 11 Nov 2011 19:49:45 +0000 (11:49 -0800)]
Fixing a race condition in RSSurfaceView. Bug 5601083
When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context.

Change-Id: I7a382a701efde3264e5cd9b9a9b428ade5eb4a9a

12 years agoMerge "Fix issue #5522658: Menu button shown on lock screen if app underneath request...
Dianne Hackborn [Fri, 11 Nov 2011 19:36:14 +0000 (11:36 -0800)]
Merge "Fix issue #5522658: Menu button shown on lock screen if app underneath requests it" into ics-mr1

12 years agoDocs: update state list drawable with state_activated and revise selected/focused
Scott Main [Fri, 11 Nov 2011 18:44:43 +0000 (10:44 -0800)]
Docs: update state list drawable with state_activated and revise selected/focused

Change-Id: I6bd919fc71a74fc8135ed333c93d187e0d9e9d80

12 years agoMerge "Unhide the key to retriever location information in 3gp/mp4 files" into ics-mr1
James Dong [Fri, 11 Nov 2011 18:49:24 +0000 (10:49 -0800)]
Merge "Unhide the key to retriever location information in 3gp/mp4 files" into ics-mr1