21944 Commits

Author SHA1 Message Date
Gilles Debunne
ebc86af1dc Visible spans changes only invalidate the affected text sub display lists
When a span with a visible influence on the text is modified, we only
need to invalidate the text sub display lists that overlap this span.

This is especially useful when typing and the composing span (an underline
span) gets updated after each key stroke.

Change-Id: Ib2af3219c41eb79ec5d0a2eee317aca8c4efdef9
2012-04-20 15:45:39 -07:00
George Mount
70c8723e63 Merge "Add fade-in and fade-out for selection handles." 2012-04-20 11:03:47 -07:00
Gilles Debunne
0b568ff179 Merge "TextView's sub display lists have tighten bounds" 2012-04-20 10:56:05 -07:00
George Mount
30d773f960 Add fade-in and fade-out for selection handles.
Bug 6083041

Change-Id: Ie48cc2da3cb05df82644d8f3c0a3f1d36ca67162
2012-04-20 10:41:05 -07:00
Wu-cheng Li
e17fc7d669 Merge "Improve android.hardware.Camera.setRotation javadoc." 2012-04-20 03:21:30 -07:00
Wu-cheng Li
8969ea12ca Improve android.hardware.Camera.setRotation javadoc.
Change-Id: If6c77044f3f4567ab0c3987fb2ddc47ae307582a
2012-04-20 17:38:09 +08:00
Svetoslav Ganov
e30df7744c Merge "Adding an opt-in mechanism for gesture detection in AccessibilityService." 2012-04-19 22:09:27 -07:00
Svetoslav Ganov
fefd20e927 Adding an opt-in mechanism for gesture detection in AccessibilityService.
1. An accessibility service has to explicitly opt in to be notified
   for gestures by the system. There is only one accessibility service
   that handles gestures and in case it does not handle a gesture
   the system performs default handling. This default handling ensures
   that we have gesture navigation even if no accessibility service
   would like to participate/customize the interaction model.

bug:5932640

Change-Id: Id8194293bd94097b455e9388b68134a45dc3b8fa
2012-04-19 22:08:42 -07:00
Winson Chung
dd184f9fb1 Merge "Adding callback for widget size changed, and potentially other extra info" 2012-04-19 18:45:37 -07:00
Adam Powell
53c5fa8a2f Merge "Fix some smooth scrolling bugs in lists and update on the animation timer." 2012-04-19 18:19:26 -07:00
Adam Powell
1fa179ef41 Fix some smooth scrolling bugs in lists and update on the animation
timer.

Change-Id: I0cb03c6da204a34c9e942c3953b87287c3d4763d
2012-04-19 18:15:09 -07:00
Dianne Hackborn
5dd32fbcbf Merge "Fix issue #4499996: LiveWallpaperPreview activity intent filter" 2012-04-19 18:12:05 -07:00
Gilles Debunne
157aafcbee TextView's sub display lists have tighten bounds
An editable TextView caches text rendering inside an adaptive
number of sub display lists. The bounds of these use to be those
of the entire View.

This CL creates block display lists with tighten bounds, so that
(a still-to-be-implemented) quick rejection can occur.

Also cleaned-up the contradictory translations that were used to
handle the TextView's internal scroll and removed the invalidation
of display lists in that case.

TODO: When internal scroll sets a tighter clipping rect, quick
reject the creation and display of the clipped display lists.

Also renamed blockEnds to a more explicit blockEndLines.

Change-Id: I7d79bea78d06d19b6935aef75ff7aa7df2594050
2012-04-19 18:06:46 -07:00
Adam Cohen
e8724c82ab Adding callback for widget size changed, and potentially other extra info
Change-Id: I57738c92b6a0ba68ae66b19a533559470c64e6f1
2012-04-19 18:01:46 -07:00
Dianne Hackborn
7df7d2022d Fix issue #4499996: LiveWallpaperPreview activity intent filter
Change-Id: I5fc71503d2c59c907da954dbda3587394e6405bf
2012-04-19 18:00:04 -07:00
Svetoslav Ganov
749e796eb3 UI test automation cannot get the root node and gets null children.
1. The AccessibilityInteractionController was using an incorrect
   looper i.e. not the UI thread looper which was causing getting
   the root node to fail.

2. The AccessibilityNodeInfo was populated by a ViewGroup with the
   children for accessibility without checking whether these children
   are really displayed.

bug:6362875

Change-Id: I7906d89571eb9d57d10f971639f88632926dd077
2012-04-19 17:13:51 -07:00
Selim Gurun
caf7f3d1fc Merge "Add websettings API for file origin policy." 2012-04-19 17:01:21 -07:00
Selim Gurun
0ea6dad65e Add websettings API for file origin policy.
Bug: 6212665

Add the API and change the default behavior for Jelly Bean+.

Change-Id: I9a83f510675023c36e2e72c4a69ad082d8124a23
2012-04-19 16:38:18 -07:00
Michael Chan
f0c4c65848 Fix build
Change-Id: I929433778c465bc123d8aafe5e0bbd2fd43f7b53
2012-04-19 16:29:19 -07:00
John Reck
9dd4a6c7a4 Merge "Save and load snapshots async" 2012-04-19 16:18:31 -07:00
Jake Hamby
d65c2be548 Merge "Add ContentProvider for apps to read received SMS cell broadcasts." 2012-04-19 16:15:42 -07:00
Jeff Sharkey
875f064316 Merge "Move SystemUI out of system UID." 2012-04-19 15:59:20 -07:00
Michael Chan
27e2fa43db Merge "Added columns to store package name and uri to a custom app" 2012-04-19 15:52:17 -07:00
Michael Chan
37960c7f58 Added columns to store package name and uri to a custom app
that provides a richer experience for an event.

Bug: 6325441
Change-Id: I7497a1508d196ec4ef97c60100278a70c424d9e2
2012-04-19 15:43:45 -07:00
John Reck
ee3b562d86 Save and load snapshots async
Bug: 5416822
 The overload of webkitDraw is temporary, but this gets the plumbing
 in place and works correctly

Change-Id: Ib3e23b9a4a1862dd445c8dc68a3936590787a62b
2012-04-19 15:29:32 -07:00
Jeff Brown
59a422e900 Ensure that touch and hover targets are cleared when needed.
When views are removed from a view or a view is detached from
a window, we need to update the touch and hover targets appropriately.

Failing to do this resulted in a NPE while dispatching an
ACTION_HOVER_EXIT to a view that had previously been removed.
Removed views should not get input events.

Change-Id: I4af4f8e2c4028347d3f570894fd1b3b366d11455
2012-04-19 15:21:08 -07:00
Jeff Brown
00710e906b Make InputDevice.SOURCE_STYLUS meaningful.
Bug: 5424551
Change-Id: I415cb1842422e050cc41b17f5a1f13b4fab17a44
2012-04-19 15:21:08 -07:00
Dianne Hackborn
661f362a2c Merge "Add new API to find smallest/largest screen size." 2012-04-19 15:01:36 -07:00
Dianne Hackborn
68c33ca7ce Add new API to find smallest/largest screen size.
Change-Id: I790801fceaf84ee2e3b1c9d32828285ad3231d0e
2012-04-19 14:55:13 -07:00
John Reck
675035d774 Merge "Remove code preventing scrollTo(0,0)" 2012-04-19 14:52:34 -07:00
Chet Haase
b78c284bd5 Always execute actions on the runQueue
A View that is not attached will place posted actions on the
ViewRoot's runQueue. Previously, this runQueue was only ever executed
during a layout (during performTraversals()). This works in most situations
(a View that is added to or removed from the hierarchy will force a layout
in general), but not in all cases. For example, a new View being added to
a ListView will not cause a layout, so any actions posted to that View
prior to its being attached will not be run until some indeterminate time
later when a layout happens to run.

The fix is to execute the (typically empty) runQueue on every traversal.

Issue #6366678 View.post() ignored when called on an unattached ListView item

Change-Id: I94e6fdd9da6bb57fd83b547f8d742cd0ddfecbd6
2012-04-19 13:39:50 -07:00
Daniel Sandler
8a97b4aea6 Merge "Fix text transformations in Switches." 2012-04-19 11:58:47 -07:00
Jeff Sharkey
35be756030 Move SystemUI out of system UID.
Add permissions for various things it pokes.  Create new permission
to control launching non-exported activities from recents.  Hidden
API to relax WallpaperService checks.

Change-Id: I547fdcd7c213dd153ae101533ce7c56cd8f86a0d
2012-04-19 11:54:34 -07:00
Daniel Sandler
4c3308de7d Fix text transformations in Switches.
In particular, we now honor android:textAllCaps in the
TextAppearance specified for the switch widget itself.
(Now you no longer need to create a separate capitalized
version of your strings to get them to look like the
platform switches.)

Change-Id: Ia48222a6dddd0d0f9115e554dffb621f4d6a2b94
2012-04-19 14:49:49 -04:00
Jeff Sharkey
1b96594171 Merge "Pipe DHCP vendor info towards framework." 2012-04-19 11:43:49 -07:00
Jeff Brown
b4aed7f5c7 Merge "Ensure that db connection reconfiguration can change the db." 2012-04-19 11:32:35 -07:00
Jeff Brown
76070d1690 Ensure that db connection reconfiguration can change the db.
If the db connection had been marked read-only, then certain
operations performed during reconfiguration, such as setting the
locale, could fail.  So we need to make sure to clear the
read-only flag ahead of time.

Bug: 6296752
Change-Id: I98e19aff6386497b7fc321e04ca560fc1817a781
2012-04-19 11:30:33 -07:00
John Reck
cada1ae717 Merge "Allow removing messages before EventHub created" 2012-04-19 11:09:44 -07:00
George Mount
0bb01cfea6 Merge "Allow long press to work on text." 2012-04-19 11:06:02 -07:00
Chet Haase
0e5bd8da9d Merge "Make ViewPropertyAnimator ListView-animation-capable" 2012-04-19 11:05:28 -07:00
Chet Haase
563d4f2d46 Make ViewPropertyAnimator ListView-animation-capable
ViewPropertyAnimator now sets the hasTransientState flag in View to tell
it when an animation has started (and unsets it when the animation ends).
This allows ListView to retain views with transient state without recycling them,
which makes ListView item animation possible (because you can't animate a View
if it's being recycled and reused elsewhere as it moves into and out of view).

Change-Id: I75c26a7a56474a76428500afef03a80bb46e04e0
2012-04-19 11:01:27 -07:00
John Reck
a60a18965e Remove code preventing scrollTo(0,0)
Bug: 5677901
 Also remove a bunch of unnecessary logic around delaying the
 scroll until the page load has completed, as Browser will keep the
 URL bar visible itself

Change-Id: I4b175f4ff1d741b7027a4c98f676764707f57342
2012-04-19 10:50:55 -07:00
Irfan Sheriff
f40a02f85f Merge "Fix build" 2012-04-19 10:27:58 -07:00
Irfan Sheriff
54ac7a5102 Fix build
Change-Id: I1968e0d7d25f613fa6cf72f82d79f17224e3d5ab
2012-04-19 10:26:34 -07:00
Joe Malin
7b5f22e11c am 787fa9dc: am 20176edc: Merge "DOC CHANGE: Add javadoc to ClipboardManager" into ics-mr1
* commit '787fa9dc69262dc002c9da77fa86e88e5a4e658f':
  DOC CHANGE: Add javadoc to ClipboardManager
2012-04-19 10:13:29 -07:00
Joe Malin
787fa9dc69 am 20176edc: Merge "DOC CHANGE: Add javadoc to ClipboardManager" into ics-mr1
* commit '20176edc4ff43f10ab3be03d84bb9f02b7859bdb':
  DOC CHANGE: Add javadoc to ClipboardManager
2012-04-19 10:10:18 -07:00
Joe Malin
20176edc4f Merge "DOC CHANGE: Add javadoc to ClipboardManager" into ics-mr1 2012-04-19 10:08:06 -07:00
Adam Powell
1bf4d5f24e Merge "Fix crash setting null seekbar thumb" 2012-04-19 10:00:22 -07:00
Adam Powell
0283a5573c Fix crash setting null seekbar thumb
External bug http://code.google.com/p/android/issues/detail?id=15693

Change-Id: I2f869b4ebd1f0857564c69999abb49285beefd14
2012-04-19 09:58:22 -07:00
Irfan Sheriff
75e91f7716 Merge "Add network service discovery broadcast" 2012-04-19 09:57:24 -07:00