86595 Commits

Author SHA1 Message Date
Chet Haase
547e66531d Don't null the reference to Bitmap pixels until we're really ready
A change in the VM triggers a native memory error more aggressively than before,
showing that there's a bug in the logic of recycling bitmaps. Since the pixel
memory is allocated on the Java heap, nulling out the reference to that memory
in the Java level Bitmap object can cause that memory to get collected at any time.
Meanwhile, we may have a reference to that memory at the native level for rendering
purposes, causing an error if/when we access that memory after it has been collected
by the VM.

The fix is to avoid setting the reference to the pixels to null unless we are
not referring to it in native code. This is determined at the time we call
recycle() - we return a boolean to indicate whether the native code is still
using the memory. if not, the Java code can null out the reference and allow the
VM to collect it. Otherwise, it will get collected later when the encompassing
Bitmap object is collected.

Issue #7339156 HTML5 tests crash the app (Vellamo)

Change-Id: I3a0d6b9a6c5dd3b86cc2b0ff7719007e774b5e3c
2012-10-22 15:25:19 -07:00
Jeff Brown
d6e3ad5490 Merge "Reduce screen on/off latency." into jb-mr1-dev 2012-10-22 10:36:59 -07:00
Dianne Hackborn
f584f11127 Merge "Fix issue #7353900: Brief flash of home screen while dream starts on lock screen." into jb-mr1-dev 2012-10-22 10:29:10 -07:00
Baligh Uddin
e53f5265d1 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-22 10:28:21 -07:00
Baligh Uddin
93c6094b67 Import translations. DO NOT MERGE
Change-Id: I02aa0e6fa545b325429029f58d19247b9d3f3373
Auto-generated-cl: translation import
2012-10-22 09:44:44 -07:00
Daniel Sandler
cc0106cd99 Merge "Properly show emoji in the notification ticker." into jb-mr1-dev 2012-10-22 08:17:59 -07:00
Daniel Sandler
3c84c9bc7a Merge "Show brightness dialog for all users." into jb-mr1-dev 2012-10-22 08:16:14 -07:00
Daniel Sandler
2dd0c3a576 Merge "New lockscreen: allow search gesture from nav bar." into jb-mr1-dev 2012-10-22 07:59:18 -07:00
Amith Yamasani
8074e98b20 Merge "Fix crashes when quickly adding and removing users" into jb-mr1-dev 2012-10-21 07:44:46 -07:00
Dirk Dougherty
7707b050f7 am 454248f0: am e25c241b: am 6faae9ad: Doc change: remove a few third-party refs. Fix broken image ref.
* commit '454248f0d25cfb7e4131acca07a4c38acb74934d':
  Doc change: remove a few third-party refs. Fix broken image ref.
2012-10-20 17:55:38 -07:00
Dirk Dougherty
454248f0d2 am e25c241b: am 6faae9ad: Doc change: remove a few third-party refs. Fix broken image ref.
* commit 'e25c241bddaf1e838b95c924976861733c7042bf':
  Doc change: remove a few third-party refs. Fix broken image ref.
2012-10-20 17:52:41 -07:00
Dirk Dougherty
e25c241bdd am 6faae9ad: Doc change: remove a few third-party refs. Fix broken image ref.
* commit '6faae9ad08670c30379fed451e73171f7d1b6ac8':
  Doc change: remove a few third-party refs. Fix broken image ref.
2012-10-20 17:51:00 -07:00
Dirk Dougherty
6faae9ad08 Doc change: remove a few third-party refs. Fix broken image ref.
Change-Id: Ife1826f9c7d409e131b50e7178eba22f962d4219
2012-10-20 17:47:18 -07:00
Fabrice Di Meglio
59420ecd15 Merge "Fix bug #7164967 android.view.cts.ViewGroup_MarginLayoutParamsTest#testResolveMarginsRelative failures on JO" into jb-mr1-dev 2012-10-19 19:14:30 -07:00
Fabrice Di Meglio
d3156a2a56 Fix bug #7164967 android.view.cts.ViewGroup_MarginLayoutParamsTest#testResolveMarginsRelative failures on JO
This was a regression introduced by a previous CL.

- we actually need to let the layout params resolution goes all the time
as we dont have any "isResolved" state and a public API for doing its reset thru ViewGroup.

The current implementation is simple and works even if it is doing sometimes a bit more
than it should really do. This is a well conscious tradeoff.

Change-Id: I5c4d532331b3970dfe88f016bc305cbc4a0d83f1
2012-10-19 18:46:43 -07:00
Jeff Brown
32dafe25ac Reduce screen on/off latency.
Reduce latency of screen on/off and improve how it is synchronized with
backlight changes.  Screen state changes are no longer posted to vsync
which should save time.  What's more, the state change occurs on a
separate thread so we no longer run the risk of blocking the Looper
for a long time while waiting for the screen to turn on or off.

Bug: 7382919
Bug: 7139924
Change-Id: I375950d1b07e22fcb94efb82892fd817e2f780dc
2012-10-19 18:04:27 -07:00
Dianne Hackborn
7ad4438414 Fix issue #7353900: Brief flash of home screen while dream starts on lock screen.
Not very clean, this has a special hack in the window manager to
redo layout when a dream window is shown.  After MR1 we should clean
this up (and the various other special dream hacks).

Change-Id: Ic1a5a2b10a0a07b4a5dccdbf0736b614ec06dd4a
2012-10-19 16:40:13 -07:00
Kenny Root
9bef3294d3 Merge changes Ie3c8ca8d,Ia175b36d into jb-mr1-dev
* changes:
  Try to free cache before giving up on install
  Robustly add symlink and add for non-primary users
2012-10-19 16:37:55 -07:00
Amith Yamasani
db6a14cc85 Fix crashes when quickly adding and removing users
Make USER_REMOVED an ordered broadcast and send it before the user's
state is completely removed from the system. This gives services the
opportunity to clean up their state, while still having access to the
user's directory and UserInfo object (such as serial number).

Tell SyncManager to skip over dying/partially created users.

Improve UserManager tests, waiting for users to be removed fully.

Bug: 7382252

Change-Id: I93cfb39c9efe6f15087bf83c569a2d154ef27168
2012-10-19 16:23:30 -07:00
Eric Laurent
7e1664d44b Merge "New camera sounds" into jb-mr1-dev 2012-10-19 16:13:08 -07:00
Svetoslav Ganov
9823723d0f Merge "Cannot pan in browser if magnification is enabled." into jb-mr1-dev 2012-10-19 14:46:40 -07:00
Christopher Tate
935415a050 Merge "Document immutable requirement of SharedPreferences return objects" into jb-mr1-dev 2012-10-19 14:38:05 -07:00
Daniel Sandler
d5483c3157 New lockscreen: allow search gesture from nav bar.
Show a lights-out pip if home is invisible but search is
still OK.

Change-Id: Ifc69c12296cc8e8cf7c89dd06173d7abf499a878
2012-10-19 16:48:12 -04:00
Christopher Tate
01ed79c578 Document immutable requirement of SharedPreferences return objects
In particular, make it quite clear that the set returned by
getStringSet() must not be modfied by the app, period; and
add a similar caution about the map returned via getAll().

Also, fix a bug that could lead to unexpected data being committed
if the set instance passed to putStringSet() was mutated by the
app after that call (including mutations after commit() was
invoked).

Bug 7312641

Change-Id: If9a1be1b0669ac879ff7a7dc67a8805548ea10cc
2012-10-19 13:43:52 -07:00
Adam Cohen
6dad395ca8 Merge "Fix transition into Recents with live wallpaper" into jb-mr1-dev 2012-10-19 13:17:54 -07:00
Irfan Sheriff
61e4226200 Fix group join CTS test
Bug: 7379336
Change-Id: I20ead7e8c0d855be523bdfd8d9cb9eaa4b8fcac1
2012-10-19 12:30:47 -07:00
Fabrice Di Meglio
398a6713c3 Merge "Fix bug #7367429 Popup window should get its direction from it Anchor View if it can" into jb-mr1-dev 2012-10-19 11:33:01 -07:00
Jeff Sharkey
ba0372db36 Merge "Parcel VpnProfile without using disk format." into jb-mr1-dev 2012-10-19 11:12:59 -07:00
John Spurlock
8c82025650 Merge "Frameworks base: Promote dream setting defaults to config." into jb-mr1-dev 2012-10-19 11:00:00 -07:00
Jeff Sharkey
6e7aa77565 Parcel VpnProfile without using disk format.
The on-disk format of VpnProfile only stores the username/password
when saveLogin is set, which was dropping them across IPC boundaries.

Bug: 7378327
Change-Id: I30c16efb358ab8f8d3d9229bbf9811146fe034ce
2012-10-19 10:48:11 -07:00
Romain Guy
8b946c055d Merge "Defer layer rendering to avoid stalls Bug #7326824" into jb-mr1-dev 2012-10-19 10:40:28 -07:00
Daniel Sandler
b9d36649ca Properly show emoji in the notification ticker.
Add an emoji test to StatusBarTest (working around some
difficulties in actually putting high-Unicode chars in the
layout xml).

Bug: 7378383
Change-Id: Ifce9844b26f67d2799521623e5161aa4dad69ed1
2012-10-19 13:38:11 -04:00
Michael Jurka
833808d0c6 Fix transition into Recents with live wallpaper
Fixes regression introduced by:
738cfc91053fc888397ec2d139e0798f8c95b3ca
(Fixing wallpaper flash when going in/out of Recents)
2012-10-19 19:12:29 +02:00
Craig Mautner
0ed07a0a30 Merge "Allow getDisplayContentLocked to return null..." into jb-mr1-dev 2012-10-19 09:27:06 -07:00
Michael Jurka
e9687ba8bd Merge "Fixing wallpaper flash when going in/out of Recents" into jb-mr1-dev 2012-10-19 09:06:49 -07:00
John Spurlock
ed108f3d12 Frameworks base: Promote dream setting defaults to config.
So that:
 - the values can be shared (to fix assoc bug)
 - the values can be customized in product overlays

Bug:7373284
Change-Id: I37f037082523a3d975f6014f36afa28c60117372
2012-10-19 11:32:03 -04:00
Michael Jurka
738cfc9105 Fixing wallpaper flash when going in/out of Recents
Bug: 7372516
Bug: 7216872

Change-Id: I2a2308a85caf9f2ad2d382c709e5f8867bd060be
2012-10-19 16:58:50 +02:00
Michael Jurka
80343f646f Fix recents animations for secondary users
Bug: 7361640

Change-Id: Ibd177bf01758fb8706b82dcf3bf234e052c38aa3
2012-10-19 16:50:29 +02:00
Svetoslav Ganov
ff6c329f61 Cannot pan in browser if magnification is enabled.
1. We cache some events to see if the user wants to trigger magnification. If no
   magnification is triggered we inject these events with adjusted time and down
   time to prevent subsequent transformations being confused by stale events.
   After the cached events, which always have a down, are injected we need to also
   update the down time of all subsequent non cached events.

bug:7379388

Change-Id: I41d8b831cc1016a0ee8f9c5ef5f42eb60a6f64d9
2012-10-19 02:15:44 -07:00
Geremy Condra
a1f739ea83 Merge "Change android.permission.SERIAL_PORT to signature|system." into jb-mr1-dev 2012-10-18 23:59:37 -07:00
Jeff Brown
1d2b445d74 Merge "Reduce auto-brightness jitter." into jb-mr1-dev 2012-10-18 23:23:57 -07:00
Jeff Sharkey
5831159b8d Merge "More migration to Global settings." into jb-mr1-dev 2012-10-18 23:23:16 -07:00
Jeff Brown
ce78b02617 Merge "Fix deadlock." into jb-mr1-dev 2012-10-18 23:22:02 -07:00
Dave Burke
09a5321c60 Merge "Revert "Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height.""" into jb-mr1-dev 2012-10-18 21:02:13 -07:00
Dave Burke
579e14016c Revert "Revert "This restores JB MR0 behavior where the framework throws an exception for improper layouts that are missing layout_width and/or layout_height.""
This reverts commit 57fca90ac65ecfe97acd4c93d442c3db8f815e11

Change-Id: I21b007a7d150a4c23f25a706cdba5cb86198198f
2012-10-18 20:41:55 -07:00
Eric Laurent
f526e1e048 New camera sounds
Added new camera shutter, video start and video stop sounds.

Bug 7377030.

Change-Id: If2215042fe812280122de40fb6de31c1541adb0c
2012-10-18 19:03:20 -07:00
Jeff Brown
4f0e969eab Reduce auto-brightness jitter.
Apply additional hysteresis controls to prevent repeated brightness
changes within a short interval.

Bug: 7266090
Change-Id: I73122457f6f3200c80188d3716ce2baf38f6a0a6
2012-10-18 18:45:55 -07:00
Fabrice Di Meglio
b003e28c1d Fix bug #7367429 Popup window should get its direction from it Anchor View if it can
- set the popup layout direction depending on the anchor view's layout direction
(if not defined before)
- make first pass of ViewRootImpl.performTraversals() and configuration update
not override any layout direction that could have been set before

Change-Id: I8e86ca805f0caf52c058d06aa7861df56fb862e6
2012-10-18 18:02:56 -07:00
Xavier Ducrohet
ed5387be7a am fcc93e73: (-s ours) am 135b5ba5: Layoutlib: Read and close XML files as soon as possible. do not merge.
* commit 'fcc93e734be9fe4608fb5a6818163104cdec3fb5':
  Layoutlib: Read and close XML files as soon as possible. do not merge.
2012-10-18 17:52:21 -07:00
Xavier Ducrohet
fcc93e734b am 135b5ba5: Layoutlib: Read and close XML files as soon as possible. do not merge.
* commit '135b5ba52431b147d51a81b807784009cd0510dd':
  Layoutlib: Read and close XML files as soon as possible. do not merge.
2012-10-18 17:48:57 -07:00