21963 Commits

Author SHA1 Message Date
Jeff Brown
7838025812 Merge "Make InputEvent.getEventTime() public." 2012-04-20 20:16:25 -07:00
Jeff Brown
a2c68198b1 Merge "Get alias for Bluetooth devices." 2012-04-20 20:15:20 -07:00
Jeff Brown
b11499d2db Make InputEvent.getEventTime() public.
Also add new methods to access the event timestamp in
nanoseconds.  Hidden for now but useful for prototyping.

Bug: 6374616
Change-Id: I7030734a908e8e31a17a356debc269db7c0f0783
2012-04-20 20:11:19 -07:00
Jeff Brown
5bbd4b4f5f Get alias for Bluetooth devices.
Bluetooth devices can be renamed by the user.  Make the
input system aware of the user-specified name and transparently
pass it down to applications.  This enables the keyboard
layout picker Settings UI to use device names that are
consistent with what the user set in the Bluetooth UI.

Bug: 6363157
Change-Id: I8eea26ce2c69c2a3f09c8de02e9e847610e0419c
2012-04-20 20:11:12 -07:00
Svetoslav Ganov
d6e716dce9 Adding a couple of missing accessibility focus directions.
Change-Id: Id404155591cf3fe5f9bef3ed8fe0d03908944ce1
2012-04-20 18:40:21 -07:00
Svetoslav Ganov
122b2c32de Fixing a couple of issues I have introduces in the last patch.
1. Fix waiting for the wrong instance.

2. Fix cloning of accessibility node info.

Change-Id: Icabf0d4bc947602a32fddc6642cc787f2bc766e4
2012-04-20 17:04:23 -07:00
Jeff Sharkey
8d3696eca2 Merge "Connect metered DHCP hint for Wi-Fi networks." 2012-04-20 16:03:26 -07:00
Jeff Sharkey
9f6e4ba50e Connect metered DHCP hint for Wi-Fi networks.
When DHCP lease includes vendor info indicating that remote Wi-Fi
network is metered, advise NetworkPolicy.  Users can still manually
change the metered flag in Settings.

Also remove any policies belonging to removed Wi-Fi networks, and
teach isNetworkMetered() about ethernet networks.

Bug: 6344821, 6369307, 6365872
Change-Id: I108606c6fddf2d02828fcab011f3a1501415f1bc
2012-04-20 15:57:19 -07:00
Gilles Debunne
bb56676b07 Merge "Visible spans changes only invalidate the affected text sub display lists" 2012-04-20 15:51:44 -07:00
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
Svetoslav Ganov
72de206248 Merge "Adding support for traversing the content of a node info at granularity." 2012-04-20 15:26:24 -07:00
Svetoslav Ganov
aa780c1109 Adding support for traversing the content of a node info at granularity.
1. A view that creates an accessibility node info may add to the info
   a list of granularity labels. These are granularities by which the
   source view can iterate over its content. For example a text view
   may support character, word link while a web view may additionally
   support buttons, tables, etc. There are actions on accessibility
   node info to go to the next/previous at a given granularity which
   is passesed as an argument.

2. Added Bundle argument to the APIs for performing accessibility
   actions. This is generic and extensible.

bug:5932640

Change-Id: I328cbbb4cddfdee082ab2a8b7ff1bd7477d8d6f9
2012-04-20 15:12:13 -07:00
Dianne Hackborn
e1a996e99d Merge "Move handling of package changes to a background thread." 2012-04-20 13:44:43 -07:00
John Reck
ebd477518f Merge "Support fallback action if unhandled key event" 2012-04-20 13:43:00 -07:00
Jeff Brown
069fa7b306 Merge "Lost the race." 2012-04-20 13:32:35 -07:00
Jeff Brown
9e6d4b035d Lost the race.
Bug: 6373370
Change-Id: If42a3de66b1d407b06064e91ff578dc9ca5ceed8
2012-04-20 13:08:27 -07:00
Martijn Coenen
e81e3a4f85 Merge "Added NFC disable during phone shutdown" 2012-04-20 13:05:04 -07:00
Sunil Jogi
3bba8d0457 Added NFC disable during phone shutdown
NFC was not disabled/deinitialized when phone shutdown. This patch
add NFC disable on phone shutdown which can complete any pending
NFC transaction before phone shutdown.

Change-Id: Id1e604be7c34adec8623a1e526d8ff99e18bf74b
2012-04-20 12:11:57 -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
John Reck
d6b1098e1f Support fallback action if unhandled key event
Bug: 6023055

Change-Id: Ib802c4b9d1b606f9ea7a5081e30c50b5bd78e30c
2012-04-20 10:23:24 -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
Dianne Hackborn
d0d7503fd3 Move handling of package changes to a background thread.
Helps get rid of some jank when installing applications.

Change-Id: I97d0022f82d67796e334d37086e5911dd6ca6b62
2012-04-19 23:12:09 -07: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