28184 Commits

Author SHA1 Message Date
Dianne Hackborn
81873e95de Fix issue #6049410: 3rd party app crashing in JB: Uber
Change-Id: Ie3f8c91a2c0fdd5a80824fe2fa7da2afd2913174
2012-02-23 10:25:35 -08:00
Gilles Debunne
0b5a6b2e8a Merge "Fixed comment for selectAllOnFocus" 2012-02-22 18:27:27 -08:00
Gilles Debunne
e58b7f45ec Fixed comment for selectAllOnFocus
Pre-focusable in touch mode ? cursor moves to tapped position.
or previous position when using d-pad/keyboard.

Change-Id: Iac725ff233bfeac2dc14e870118047a9a8418ff9
2012-02-22 18:26:04 -08:00
George Mount
ebb8e95657 Merge "Characters sent directly to InputConnection treated as changes." 2012-02-22 17:33:03 -08:00
George Mount
6420ec4cd5 Characters sent directly to InputConnection treated as changes.
Bug 6045123

Change-Id: Iab8c1e3c307ec84c4f6934abfa2d0cea726d9efe
2012-02-22 17:23:23 -08:00
Svetoslav Ganov
2822111948 Merge "Add check for no children in VIew hosting virtual view tree." 2012-02-22 16:49:36 -08:00
Svetoslav Ganov
311a63af40 Add check for no children in VIew hosting virtual view tree.
1. For accessibility purposes View may report a virtual tree
   rooted at them to convey the logical structure they draw.
   These are usually custom Views. Such views cannot have
   children and this patch adds a check for that.

bug:6022217

Change-Id: I3795a613b4aef1a7ec5810db8584a11b648870f2
2012-02-22 16:45:10 -08:00
George Mount
49cc3d98e2 Merge "Changes that don't map to keys sent as text changes." 2012-02-22 16:02:30 -08:00
John Reck
29cc47e62e Merge "Fix drawing focus node rect in touch mode" 2012-02-22 15:39:23 -08:00
George Mount
7bc111cc9d Add caret thumb following selection handle logic.
Webkit Change: I3cb0499c5fa3a7de241025d9be04ff44f54f2a74

Change-Id: I669653ca6890fe1136fdd42e24f4c3a34c00d1e4
2012-02-22 15:13:19 -08:00
George Mount
3c30d14560 Changes that don't map to keys sent as text changes.
Bug 6033096

Change-Id: I61da4d398ac140fdacfdd344dc0e2885da907ce0
2012-02-22 15:10:08 -08:00
Romain Guy
1eec6804d2 Merge "Reduce logs" 2012-02-22 14:36:28 -08:00
Romain Guy
9c10ab03cd Reduce logs
Change-Id: I2768972ec62f4d3ad800a4d7a4c44307a2fa0105
2012-02-22 14:34:58 -08:00
Gilles Debunne
5ca6f9e56f Merge "EditText-specific data extracted from TextView" 2012-02-22 14:30:43 -08:00
Gilles Debunne
60e2186c35 EditText-specific data extracted from TextView
All edit-specific data has been moved to an EditData inner class in TextView.

The instance of this class is created as soon as one of its fields is set to
a non-default value. Regular TextViews (buttons, checkboxes...) should never
have to instantiate the Editor, thus reducing their memory footprint.

Note: this is a debug version. The getEditor() method is here to track
possible problems and should be removed in the final version. Indentation
will be fixed then.

Next step is to extract more methods and classes into Editor and create a
dedicated class for it. mMovement may also be Editor specific.

Change-Id: Ic241953a2fb73213180f300c3609a9e6799aa884
2012-02-22 14:24:56 -08:00
Gilles Debunne
36a5822484 Merge "Added bottom padding in textview's focused rectangle" 2012-02-22 14:18:17 -08:00
John Reck
2b3d842a1c Fix drawing focus node rect in touch mode
Change-Id: I5981d038e48a7218cb5f6dcd09ef909746de158d
2012-02-22 14:11:17 -08:00
Eric Fischer
c185ca6dda Merge "Import translations. DO NOT MERGE" 2012-02-22 13:17:22 -08:00
Eric Fischer
8f8bcc26c7 Import translations. DO NOT MERGE
Change-Id: I5f20bf25b80b45f83abf272590b6557d6d858001
2012-02-22 13:09:01 -08:00
Daisuke Miyakawa
c4bec73f3b Merge "Remove the entire PIM directory." 2012-02-22 13:06:58 -08:00
Adam Powell
2a23e88486 Merge "Fix bug 6048643 - verify ListView layoutparams while tracking stable IDs" 2012-02-22 12:22:31 -08:00
Adam Powell
aebd28f729 Fix bug 6048643 - verify ListView layoutparams while tracking stable IDs
Account for adapters that don't inflate item views using the ListView as
a parent.

Unify how AbsListView and subclasses generate layoutparams.

Change-Id: I963a5fcb4d98b721210a4d92d0db307f56acdf59
2012-02-22 12:04:12 -08:00
Gilles Debunne
322044abe4 Added bottom padding in textview's focused rectangle
Bug 6017386

Focused rect in used in ViewRoot when a new view takes focus.
TextView bringPointIntoView defines an other rectangle as text is typed.

Make sure the latter is included in the former to avoid the jump when one
starts typing text.

Change-Id: I0177adc046c77a5fd9c1423c0069d5b9798dc0b9
2012-02-22 12:01:42 -08:00
George Mount
0b2cfd8cb1 Use input type for IME options.
Bug 5987568
 Get the text type from webkit when initializing the field for
 text entry and use that type to specify the IME input type
 and options.
 Webkit Change: I7eceafdbede8b7b463590a2e875a237241479ad1

Change-Id: Ic8c14687a70727148dfc8115c46f09530ca0c0f6
2012-02-22 11:25:59 -08:00
John Reck
d3fcaa4504 Merge "Turn off the focus animation" 2012-02-22 10:18:43 -08:00
John Reck
fbf9cf8d6b Turn off the focus animation
Change-Id: I860220622415c6d3f93f526c854237ac1dd001ce
2012-02-22 10:14:03 -08:00
John Reck
3843939002 Merge "Add null parent check to startActionMode" 2012-02-22 09:43:27 -08:00
John Reck
5160e2a197 Add null parent check to startActionMode
Bug: 6012515

Change-Id: I9f684bf0fd314285c4d4933ba2a7645f10c9dc7b
2012-02-22 09:41:25 -08:00
Eric Fischer
8b265be10e Merge "Import translations. DO NOT MERGE" 2012-02-22 09:34:09 -08:00
Steve Block
1e17ecae25 Remove unused cache methods
These were added in https://mondrian.corp.google.com/changelist/19077-p9.

CacheManager.setCacheDisabled() has been unused since
https://mondrian.corp.google.com/changelist/20678-p9 (see change to WebView),
so the WebKit cache is always enabled.

BrowserFrame.setCacheDisabled() has been unused since
https://mondrian.corp.google.com/changelist/33679-p9, so the WebCore cache is
always enabled.

BrowserFrame.CacheDisabled() has been unused since
https://mondrian.corp.google.com/changelist/32803-p9 (see change to WebView).

See WebKit change https://android-git.corp.google.com/g/167298.

Change-Id: I68bf334f4a34df1b88d2b5204e50c2eb04db7e69
2012-02-22 16:48:25 +00:00
satok
5c9b4329f3 Merge "Refactor sentence level spell checking APIs" 2012-02-21 22:59:12 -08:00
satok
d404fe1105 Refactor sentence level spell checking APIs
Support sentence level spell checking APIs: Step 1

Change-Id: I31c0b88e7885f33a0694ab60b8f2dbceeffe42f1
2012-02-22 15:35:46 +09:00
Adam Powell
69d7558227 Merge "Fix bug 5971117 - Action bar does not update icon used for collapsible action views" 2012-02-21 17:19:29 -08:00
Svetoslav Ganov
a6cdf86518 Merge "Improving accessibility APIs used for UI automation." 2012-02-21 17:17:33 -08:00
Daisuke Miyakawa
232106b47f Remove the entire PIM directory.
ContactsAsyncHelper had been used by multiple projects, but now
only Phone app is using that. By moving the file to Phone package,
the entire PIM directory becomes unnecessary.

Bug: 5236130
Change-Id: I3daf087dbeb9059c2884dbf0e4d40d1508790aa3
2012-02-21 17:16:01 -08:00
Adam Powell
f821819a88 Fix bug 5971117 - Action bar does not update icon used for collapsible
action views

Change-Id: Ib25cd40b046ab4b7dc382476345f95727fde3955
2012-02-21 17:10:10 -08:00
Svetoslav Ganov
0d04e24553 Improving accessibility APIs used for UI automation.
1. UiTestAutomationBridge was accessing the root node in the
   active window by tracking the accessibility event stream
   and keeping the last active window changing event. Now
   the bridge is stateless and the root node is fetched by
   passing special window and view id with the request to
   the system.

2. AccessibilityNodeInfos that are cached were not finished,
   i.e. not sealed, causing exception when trying to access
   their children or rpedecessors.

3. AccessibilityManagerService was not properly restoring its
   state after the UI automation bridge disconnects from it.
   I particular the devices was still in explore by touch mode
   event if no services are enabled and the sutomation bridge
   is disconnected.

4. ViewRootImpl for the focused window now fires accessibility
   events when accessibility is enabled to allow accessibility
   services to determine the current user location.

5. Several missing null checks in ViewRootImpl are fixed since
   there were scenraios in which a NPE can occur.

6. Update the internal window content querying tests.

7. ViewRootImpl was firing one extra focus event.
bug:6009813
bug:6026952

Change-Id: Ib2e058d64538ecc268f9ef7a8f36ead047868a05
2012-02-21 17:09:09 -08:00
Nicolas Roard
7852022bf2 Merge "Simplify Youtube <embed> management" 2012-02-21 16:06:36 -08:00
Nicolas Roard
4d49c7f04a Simplify Youtube <embed> management
When we encounter youtube <embed> objects, we replace them on the fly
with an element that will redirect to the youtube application.
Currently, this element is a canvas, that we add to the document wrapped
into a Frame. This cause some problems when we switch to have canvas
elements on their own individual layer (which drastically improves
performances). Note that we do support correctly composited layers
into frameset/iframes on normal websites, the problems we see here
are due to us creating the frame on the fly, messing with webkit's
compositing logic.
This CL rewrite the HTML code we insert to not use canvas and instead
use normal html elements positioned via CSS. This work around the
composited canvas issue as well as simplifying the code.

Change-Id: Ie6043f9445e8bc191b229db9f9ff5de192d8b5db
2012-02-21 16:00:42 -08:00
Adam Powell
aa4ee4238f Merge "Fix the size of DialogWhenLarge windows" 2012-02-21 15:51:23 -08:00
John Reck
8352e51db3 Merge "Improved keyboard navigation cursor rings" 2012-02-21 15:43:38 -08:00
Adam Powell
40eec4c0f1 Fix the size of DialogWhenLarge windows
Change-Id: I8c9588e958d8fb9c45b1cdb235cced48ba508dd3
2012-02-21 15:32:26 -08:00
Adam Powell
4d6f066b19 Have View call setPressed explicitly instead of just twiddling flags.
This allows apps to override setPressed to reliably observe changes in
pressed state for custom views.

Change-Id: I59f472a9d864f4abcc4f692fef0a13f004348432
2012-02-21 15:13:20 -08:00
Eric Fischer
2b63030618 Import translations. DO NOT MERGE
Change-Id: Ie1adb396f430b35e41976d4b7196d54d32500411
2012-02-21 13:14:06 -08:00
Mathias Agopian
1ebe8aa23f Merge "frameworks/base refactoring" 2012-02-21 12:52:06 -08:00
Victoria Lease
47d0ee9766 async find-on-page implementation via WebKit
Change-Id: I63c6f8fc97bf452ea4456c77a89c5d2540c3d1ea
2012-02-21 11:08:27 -08:00
John Reck
37c4a9f99a Improved keyboard navigation cursor rings
Change-Id: I77b974bb9eae0f9dc8e57320632e5915e8295839
2012-02-21 10:04:54 -08:00
Martin Kosiba
4c69fc575e Merge "Update the JavaDoc on getVisibleTitleHeight." 2012-02-21 08:58:21 -08:00
Steve Block
303bc083c5 Clean up JavaDoc for CacheManager
Clean-up only, no functional change.

Bug: 5461416
Change-Id: I272b1456e797f398014a6a4159319e5519fcaf64
2012-02-21 14:19:26 +00:00
Steve Block
ffefba15e3 Fix CacheManager.getCacheFile() with the Chromium HTTP stack
We need to populate the headers map with both the Android and Chromium HTTP
stacks.

Change-Id: I2df0aa2fce917ad43a1cac1426a324e49b2950f9
2012-02-21 14:19:15 +00:00