86629 Commits

Author SHA1 Message Date
Daniel Sandler
ac47ff70c3 Reset ExpandHelper when the panel is collapsed.
Fixes a rather unpleasant bug in which the ExpandHelper
could get locked in "expanding" mode if the panel was closed
(for example, with the back button) while you were in the
middle of an expand gesture. In this situation ExpandHelper
would hungrily eat all future touch events destined for the
notification panel, making it impossible to click or even
clear any notifications.

Bug: 7330828
Change-Id: I9c493db5e8fd8ef1aca53f77820780d60fa4e5a7
2012-10-23 10:41:44 -04:00
erin rosenthal
36425d19fc Merge "Catch badly formed URLs in WebView accessibility injector." into jb-mr1-dev 2012-10-22 17:53:27 -07:00
Eric Laurent
3ac692f511 Merge "reduce camera sound volume." into jb-mr1-dev 2012-10-22 17:23:20 -07:00
Eric Laurent
ef2faae5af reduce camera sound volume.
Reduce new video start and stop sounds volume to
match camera shutter sound volume.

Bug 7377030.

Change-Id: Ic42b36f063006da30dd870fa5ed9c8c5361aa043
2012-10-22 16:26:14 -07:00
Amith Yamasani
0b828ee0d5 Merge "Set the correct flags for brightness dialog to show on all users" into jb-mr1-dev 2012-10-22 16:25:22 -07:00
Michael Jurka
4ce82df5cc Merge "Solve issue where labels in Recents were blank" into jb-mr1-dev 2012-10-22 16:23:44 -07:00
Michael Jurka
fe09ad80bc Solve issue where labels in Recents were blank
Bug: 7352816

Change-Id: Ic0d7f35191ce973a71744aa6ea81351b7bdb8d50
2012-10-22 16:14:26 -07:00
Kenny Root
e03c024471 Merge "Clear data deletes too much" into jb-mr1-dev 2012-10-22 16:11:45 -07:00
Amith Yamasani
7ecdc7fd9b Set the correct flags for brightness dialog to show on all users
Earlier fix was writing to the wrong flags.

Bug: 7393822
Change-Id: Ifd51fb30de00be6de381980a05f2769c4283b515
2012-10-22 16:09:58 -07:00
Raph Levien
74437532fe Merge "Fix for bug: Gmail (and other places): cursor placed on top of letter" into jb-mr1-dev 2012-10-22 15:56:01 -07:00
Chet Haase
74261d847f Merge "Don't null the reference to Bitmap pixels until we're really ready" into jb-mr1-dev 2012-10-22 15:46:43 -07:00
Baligh Uddin
5be59670c2 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-22 15:28:42 -07:00
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
Kenny Root
9157d3f3b7 Clear data deletes too much
Bug: 7389445
Change-Id: Ic12d7a8e37747dc1a9b71ec5f881b5e440e0a75e
2012-10-22 15:20:52 -07:00
Raph Levien
42ef515d18 Fix for bug: Gmail (and other places): cursor placed on top of letter
This patch fixes bug 7346656. In this particular case, the text line in
the EditText was split into multiple spans, with the boundary between
the "r" and "," in "r,". These were being drawn as two separate runs,
but measured as a single run, leading to inconsistent measurements
because this is a kern pair in Roboto.

The fix is to eliminate the special-case code for measuring. This will
actually improve efficiency, as the value computed in one pass is now
more likely to be reused in another.

Change-Id: I04142a0ec98f280fc1027c7cbdbf903e3096f8e4
2012-10-22 15:01:17 -07:00
Colin Cross
034b386ccf Merge "Add ro.revision property to checkin headers" into jb-mr1-dev 2012-10-22 14:20:06 -07:00
Colin Cross
8b2c916a8d Add ro.revision property to checkin headers
Early hardware revisions often have known issues.  Add the ro.revision
property to the header for the checkin reports so known issues can
be easily filtered.

Change-Id: I337b09ddfa41ebbe7f8f56223392b0bd491f897b
2012-10-22 14:01:36 -07:00
Jamie Gennis
23d622418b Merge "Set the secureness when creating displays" into jb-mr1-dev 2012-10-22 13:49:35 -07:00
Svetoslav Ganov
d07f8d0b37 Merge "Re-fixing content descritpion on quick settings toggle. Bug: 7362316" into jb-mr1-dev 2012-10-22 13:45:13 -07:00
Victoria Lease
92d9922370 Merge "LocationManager javadoc permission fixes" into jb-mr1-dev 2012-10-22 13:38:09 -07:00
Amith Yamasani
2278898126 Merge "System server should always send broadcasts to a specific or all users" into jb-mr1-dev 2012-10-22 13:32:24 -07:00
Victoria Lease
2291ca47c7 LocationManager javadoc permission fixes
The javadoc mistakenly claimed that GPS and PASSIVE location
providers could be used with ACCESS_COARSE_LOCATION permissions.
That was incorrect, and the javadoc has been amended.

Bug: 7389249
Change-Id: I6f6489bb539679a962c67ae7263857700df33c82
2012-10-22 12:53:32 -07:00
Amith Yamasani
cd75706117 System server should always send broadcasts to a specific or all users
Bug: 7368245

Log a warning if the system process calls unqualified sendBroadcast()
and other calls.

As a result of the logging above, found a few more method calls such as
bindService() that would benefit from being more explicit to avoid
future confusion and reduce the log warnings.

Change-Id: I17f15c8be9adf7becd456d6abbab606f19befdbf
2012-10-22 12:38:53 -07:00
Adam Powell
cd92db84c6 Merge "Remove View's long press callbacks when ACTION_CANCEL is received" into jb-mr1-dev 2012-10-22 12:29:02 -07:00
Adam Powell
5311c4476e Remove View's long press callbacks when ACTION_CANCEL is received
Bug 7391646

Change-Id: Icd100d3eff63a54c892367fb70dec517257a01f8
2012-10-22 12:15:49 -07:00
Daniel Sandler
a4be1b2bcd Merge "Fix empty notification panel." into jb-mr1-dev 2012-10-22 12:14:13 -07:00
Daniel Sandler
564c03dac5 Merge "Really hide the settings button on tablets." into jb-mr1-dev 2012-10-22 12:12:48 -07:00
Baligh Uddin
23a78f3105 Import translations. DO NOT MERGE
Change-Id: Iecf97b4e7ed628d9617fae86007efa7236c3fe15
Auto-generated-cl: translation import
2012-10-22 12:00:30 -07:00
Daniel Sandler
50bc4f5a7c Fix empty notification panel.
If the panel closed before the flip animation completed, you
would have had a bad time.

Bug: 7391510
Change-Id: I45c29de45b718bc63e7be1a5544c1f73ac6f46e0
2012-10-22 14:47:55 -04:00
Daniel Sandler
7382a025a7 Really hide the settings button on tablets.
Bug: 7382185
Change-Id: Id452e2499ba2089b8cfb0071b6aedf6d1d917b35
2012-10-22 14:37:20 -04:00
Michael Jurka
39c6526249 Merge "Add NPE check to fix crash in Recents" into jb-mr1-dev 2012-10-22 11:12:01 -07:00
Michael Jurka
2a430cccc2 Add NPE check to fix crash in Recents
Bug: 7383315
2012-10-22 10:56:18 -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
Jamie Gennis
7bbf8163fb Set the secureness when creating displays
This change makes use of the new 'secure' argument to the
ISurfaceComposer::createDisplay method.  In this change both the overlay and
wifi displays are hard-coded to be non-secure displays.

Bug: 7368436
Change-Id: Ib65312f2adab5104d8deefbfc32af9dc106a9129
2012-10-19 18:34:35 -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