Commit Graph

21596 Commits

Author SHA1 Message Date
Chet Haase
a8e5a2bcd6 Optimize handling of scrolled wallpapers
Swiping the home screen causes the WindowManagerService to do
a bunch of work to keep the wallpapers in sync. First, it lays out
and places all windows. Also, it notifies the SystemUI process that
the wallpaper position has changed.

The layout/place operation is too much work - we only need to set
the position values for the wallpaper, not relayout the whole system.

The notification mechanism must exist, but should be optional. Most
wallpapers don't care (especially static ImageWallpapers). So we'll
give them a new API (WallpaperService.Engine.setWantsOffsets()) to
allow wallpapers to opt out of this process and avoid the performance
overhead.

Change-Id: I66c38375438937f14f6f5550565b28eb204b1e06
2011-10-28 14:49:23 -07:00
Romain Guy
e707859415 Load identity matrix when calling Canvas.setMatrix(null)
Bug #5446826

Change-Id: I3a7817f266b17e9abe948500816d629edd9a2822
2011-10-28 14:32:20 -07:00
Joe Fernandez
61fd1e8d8c docs: add developer guide cross references, Project ACRE, round 3
Change-Id: I6125315ecdf0f78dd947c514a9944729d723e95d
2011-10-28 14:23:23 -07:00
Svetoslav Ganov
c00d2ddcc3 Merge "Fixing a memory leak in accessibility enteraction APIs." into ics-mr1 2011-10-28 14:20:52 -07:00
Gilles Debunne
a068e2f1d9 am 4eec98ed: Merge "Text handles do not handle scroll correctly" into ics-mr0
* commit '4eec98edee3d6eb516e30a7151da13fd726f93a9':
  Text handles do not handle scroll correctly
2011-10-28 20:44:17 +00:00
Svetoslav Ganov
af5b4f471d Fixing a memory leak in accessibility enteraction APIs.
1. AccessibilityInteractionConnection was non-static inner
class, hence keeping a handle to the enclosing ViewRootImpl
resulting in leaking activities.

bug:5525412

Change-Id: Ie438861663d623d503995844125d9e15d677fc32
2011-10-28 12:41:42 -07:00
Jeff Brown
90c487f0e8 Merge "Optimize fillWindow to improve reverse-seek performance. Bug: 5520301" 2011-10-28 11:52:01 -07:00
Gilles Debunne
93347c24a7 Text handles do not handle scroll correctly
A recent patch taking scroll into account was applied at the wrong
level. isVisible() expects positions that already take scroll into
account. isOffsetVisible() is where the initial bug was.

Cherry pick of 144415 from master.

Change-Id: I06ceebfb3d7b24aa4adba886c24fcf9d8dd39d2e
2011-10-28 11:08:56 -07:00
Adam Powell
65793dc043 Merge "Add API for deferring fragment start." into ics-mr1 2011-10-28 10:43:33 -07:00
Gilles Debunne
3c5ba55385 Merge "Cleaning and new constant in ViewConfiguration" 2011-10-28 10:08:32 -07:00
Gilles Debunne
53031212ef Merge "Revert "Potential thread concurrency issue with WordIterators."" 2011-10-28 10:08:22 -07:00
satok
a17b350623 Add a flag for recommended suggestions of the spell checker
Bug: 5356130
Change-Id: I8361a2750670dadd514d02dd24bf492ce42ff8fc
2011-10-28 20:51:14 +09:00
Narayan Kamath
6673aecaed am 7a2f6f38: Merge "Widen permissions on synthesized files." into ics-mr1
* commit '7a2f6f38fe025654614d4c279fcfabf5819638b8':
  Widen permissions on synthesized files.
2011-10-28 09:19:14 +00:00
Narayan Kamath
7a2f6f38fe Merge "Widen permissions on synthesized files." into ics-mr1 2011-10-28 02:15:04 -07:00
Jeff Brown
650de3dcfc Optimize fillWindow to improve reverse-seek performance.
Bug: 5520301

When an application requests a row from a SQLiteCursor that
is not in the window, instead of filling from the requested
row position onwards, fill from a little bit ahead of the
requested row position.

This fixes a problem with applications that seek backwards
in large cursor windows.  Previously the application could
end up refilling the window every time it moved back
one position.

We try to fill about 1/3 before the requested position and
2/3 after which substantially improves scrolling responsiveness
when the list is bound to a data set that does not fit
entirely within one cursor window.

Change-Id: I168ff1d3aed1a41ac96267be34a026c108590e52
2011-10-28 01:46:18 -07:00
Jeff Brown
4257e3b181 am ce6578ac: am 84bee4f8: Merge "Fix copyStringToBuffer row index calculation. Bug: 5515552" into ics-mr0
* commit 'ce6578acc5729f76fc93b6daafede413703a8d19':
  Fix copyStringToBuffer row index calculation. Bug: 5515552
2011-10-28 08:24:11 +00:00
Jeff Brown
ce6578acc5 am 84bee4f8: Merge "Fix copyStringToBuffer row index calculation. Bug: 5515552" into ics-mr0
* commit '84bee4f8746a19428e0ddfd10df1130324dc39fa':
  Fix copyStringToBuffer row index calculation. Bug: 5515552
2011-10-28 08:20:20 +00:00
Peter Ng
632c4a32e6 am 81bd76e4: Merge "Removing 2nd background clock font display from statusbar and lock screen" into ics-mr1
* commit '81bd76e4b33ea00d30bb2b2193ca5bd0cf445546':
  Removing 2nd background clock font display from statusbar and lock screen
2011-10-28 02:53:26 +00:00
Jeff Brown
0772007b61 Fix copyStringToBuffer row index calculation.
Bug: 5515552

Change-Id: I60aa25d2becd3195d6997d23ef5654a31e93bf71
2011-10-27 19:27:11 -07:00
Peter Ng
81bd76e4b3 Merge "Removing 2nd background clock font display from statusbar and lock screen" into ics-mr1 2011-10-27 19:17:19 -07:00
Jim Miller
ccff48b7cb Removing 2nd background clock font display from statusbar and lock screen
Change-Id: If9edfed231cde6590b28fc2115d78bc97b74ae4e
2011-10-27 17:37:48 -07:00
Gilles Debunne
006fa48bce Cleaning and new constant in ViewConfiguration
Fixed the documentation and comments for dips versus pixels.

Added a new DOUBLE_TAP_TOUCH_SLOP to replace the hard-coded and
*unscaled* value used in GestureDetector. Assuming this value was
ok for hdpi devices, set it to 20 / 1.5 ~= 16 in dips.

New method kept hidden to keep API unchanged.

Change-Id: I6d237faa2fdb7714e0e3558978af130df9a061a5
2011-10-27 17:26:58 -07:00
Mangesh Ghiware
e87d2da0b4 am ade26e2e: Merge "Fix restore of view and text wrap scales." into ics-mr1
* commit 'ade26e2e383cd0041f8aa94467d119c2bd1ee5e8':
  Fix restore of view and text wrap scales.
2011-10-27 23:15:58 +00:00
Mangesh Ghiware
ade26e2e38 Merge "Fix restore of view and text wrap scales." into ics-mr1 2011-10-27 16:11:32 -07:00
Adam Powell
635c60af62 Add API for deferring fragment start.
Fragments now have the setDeferStart method to signal that a fragment
has lower priority than others. Deferred start fragments will not
always be started immediately; they will be started once any loaders
have finished servicing any outstanding requests. This is useful if
any attached fragments are not immediately visible and can wait to
start until later.

Disabling deferStart on a fragment that is waiting for a deferred
start will start it immediately. Start.

Change-Id: Ia1f004877ca5e88d4f10147d21c7e2e97f141c34
2011-10-27 15:54:51 -07:00
Mangesh Ghiware
f0e96d54b6 Fix restore of view and text wrap scales.
Fixes bug 5507881: Open pages in overview doesn't stick on initial
browser load.

Update the fix for bug 5230909: Zoom not restored on Back.

Added a boolean to indicate that scales have been restored. In the case
of restored scales (view and text wrap) being zero, set them to overview
and reading level respectively.

Change-Id: I5a22dd2040a22ee3b48c5903b586a65a4fa320f2
2011-10-27 15:20:49 -07:00
Gilles Debunne
28f81dede5 Revert "Potential thread concurrency issue with WordIterators."
This reverts commit d224c88c48.

Based on Dianne's comments, this small optimization seems uncessarily
risky. I'll submit a new change where each SpellParser has its own
WordIterator to make this thread-safe.

Change-Id: Ic09fa656b00d284536e58f4cc7d26d5e26c3f3cf
2011-10-27 15:02:00 -07:00
Svetoslav Ganov
ec6c89b616 Merge "Minor documentation fixes for the APIs to expose virtual view tree." 2011-10-27 14:52:51 -07:00
RoboErik
28e9733e35 am 8805dc13: Merge "b/5309787 Add new columns to hidden list of read only fields" into ics-mr1
* commit '8805dc137ad2c254f25117a5eb1fd662a4ef63b0':
  b/5309787 Add new columns to hidden list of read only fields
2011-10-27 21:45:44 +00:00
RoboErik
8805dc137a Merge "b/5309787 Add new columns to hidden list of read only fields" into ics-mr1 2011-10-27 14:41:03 -07:00
Matthew Xie
ae5839dcad Make public APIs of ACTION_UUID, getUuids, and fetchUuidsWithSdp
Give APP a way to find out if a service is supported by a remote device
bug 5487202

Change-Id: Ie778b3227f29a24cdf61fa0365b82f9a45d439dc
2011-10-27 14:28:46 -07:00
RoboErik
c7ef9390cf b/5309787 Add new columns to hidden list of read only fields
Change-Id: I9bfc01e4211087be0dfd144c022903c51817c024
2011-10-27 14:11:44 -07:00
Mark Brophy
437049b76e Merge "Fix scroll listeners lost in ViewTreeObserver." 2011-10-27 14:08:31 -07:00
Gilles Debunne
e9c98bdf99 Merge "Potential thread concurrency issue with WordIterators." 2011-10-27 14:04:03 -07:00
Gilles Debunne
f2a02018e2 Scroll performance improved in multiline TextEdit
Measuring line widths, glyph by glyph slows down the scrolling
process for long text (for some reason, width measure efficiency
is affectedi by text length, maybe because the whole text has to
be passed to JNI layers).

This optimization avoids this computation in the case where there
is no possible horizontal scroll.

Change-Id: I2082e3d0eedace1a86122a03e4b21f90f3bc8522
2011-10-27 14:00:56 -07:00
John Reck
0cce87ef07 am 44c99092: Merge "Keep text handles in sync with native touch targets" into ics-mr1
* commit '44c990927c362b26b51c4388f8c51e8c799f9932':
  Keep text handles in sync with native touch targets
2011-10-27 20:43:40 +00:00
John Reck
44c990927c Merge "Keep text handles in sync with native touch targets" into ics-mr1 2011-10-27 13:40:24 -07:00
RoboErik
6520174f4c am 20345af2: Merge "Add new Calendar APIs to fw" into ics-mr1
* commit '20345af24a50798965f6d295fbe4cc8f78c95e7f':
  Add new Calendar APIs to fw
2011-10-27 20:19:06 +00:00
RoboErik
20345af24a Merge "Add new Calendar APIs to fw" into ics-mr1 2011-10-27 13:13:36 -07:00
John Reck
effabe8d8b Keep text handles in sync with native touch targets
Bug: 5522153
 Also add some slop to the handle targets, cleaned
 up the JNI and improved debugging.

Change-Id: I9ac637d793f2bd88d5315aa1483a4513d2496716
2011-10-27 11:32:55 -07:00
Jeff Hamilton
b38fbaf256 Merge "Clarify the docs around the activityInfo field." 2011-10-27 11:08:35 -07:00
Jeff Hamilton
ca756bfd97 Clarify the docs around the activityInfo field.
Change-Id: Id9a5ac610d564165073cb60e5b631b1cba3e8187
2011-10-27 13:07:23 -05:00
satok
98af0a8178 am c04e2d5f: am e0122406: Merge "Add a path to HelloSpellChecker sample application for SDK build" into ics-mr0
* commit 'c04e2d5f1678b3251edbcc1297015b49b36086a7':
  Add a path to HelloSpellChecker sample application for SDK build
2011-10-27 17:55:52 +00:00
satok
c04e2d5f16 am e0122406: Merge "Add a path to HelloSpellChecker sample application for SDK build" into ics-mr0
* commit 'e0122406bb1c512ee57f3a5a1503435a0779e1d8':
  Add a path to HelloSpellChecker sample application for SDK build
2011-10-27 17:51:51 +00:00
RoboErik
4172d95a67 Add new Calendar APIs to fw
b/5317399 b/5309787 b/5207781 b/5347210 Adds apis for a color
table to support future migrations. Adds allowedAttendeeTypes
and allowedAvailabilities for exchange/gsync support. Adds
type_resource for attendees and tentative availability. Documents
that eventTimezone is required for creating an event.

Change-Id: Id3f866c46f76f2b5b098f4961ea09d48f17598c3
2011-10-27 10:50:09 -07:00
satok
182e4ae2f4 Add a path to HelloSpellChecker sample application for SDK build
Change-Id: I77e334f8e2b50b8609b1729edb253254d6b7360b
2011-10-28 02:27:53 +09:00
Wu-cheng Li
0f4f97b70f Update camera continuous autofocus javadoc.
Suppose applications call autoFocus in CAF picture mode. If
CAF is in the middle of scanning, the picture is very likely to
be blurry. Change focus callback to return when the scanning
finishes.

bug:5514415
Change-Id: Ibcb8f92a5263d7dbd7cce54df3617fb21c6255d4
2011-10-28 00:38:02 +08:00
Narayan Kamath
563fd3ae1b Widen permissions on synthesized files.
When synthesized files are written to app private data dirs,
they are written with owner/grp set to the TTS engine and
are inaccessible by the app itself. This is a reported regression
from gingerbread behaviour. Note that the dir in which the
engine writes files is itself already world writable.

bug:5523587
Change-Id: I2cb26c6f3c3d9cb3cedd60fab32c99a85a27f4b1
2011-10-27 15:00:36 +01:00
Jaikumar Ganesh
8dbd8815e3 am c307d1ae: am 01d24784: Merge "Fix auto connection of headset profile." into ics-mr0
* commit 'c307d1aea2fe755780f02922e1d1d347bf35aba3':
  Fix auto connection of headset profile.
2011-10-27 02:35:00 +00:00
Gilles Debunne
35199f5ce7 Performance improvements for long text edition.
Limit each parse to batches of a few words, to keep the UI thread
responsive.

Possible optimizations for the future:
- SpellCheck in a thread, but that requires some locking mecanism
- Only spell check what is visible on screen. Will require additional
  spans to tag the pieces of text.

Change-Id: Ibf8e98274bda84b7176aac181ff267fc1f1fa4cb
2011-10-26 16:45:40 -07:00