21445 Commits

Author SHA1 Message Date
Adam Powell
45c515b0e9 Action bar work for phones
Tweak sizing and layouts for action bar on smaller devices. The action
bar's size is now partially dependent on form factor and orientation
to conserve screen space, especially in landscape mode.

Alter the max action menu items for smaller devices. Disallow text on
action menu items with a horizontal width of less than 480dp when an
icon is available.

Remove the "Done" text on the action mode close button. (TODO: get a
properly sized 9-patch resource for this - the current one has an
intrinsic width that is too large.)

When setting an action bar icon as a resource ID, the bar will attempt
to load a mipmapped resource that is the closest available for the
target size.

Change-Id: I2498c640666ade310fdd1d3a2078bd4000b392a2
2011-04-21 19:23:27 -07:00
Svetoslav Ganov
ac84d3ba81 Touch exploration feature, event bubling, refactor
1. Added an Input Filter that interprets the touch screen motion
   events to perfrom accessibility exploration. One finger explores.
   Tapping within a given time and distance slop on the last exlopred
   location does click and long press, respectively. Two fingers close
   and in the same diretion drag. Multiple finglers or two fingers in
   different directions or two fingers too far away are delegated to
   the view hierarchy. Non moving fingers "accidentally grabbed the
   device for the scrren" are ignored.

2. Added accessibility events for hover enter, hover exit, touch
   exoloration gesture start, and end. Accessibility hover events
   are fired by the hover pipeline. An accessibility event is
   dispatched up the view tree and the topmost view fires it.
   Thus predecessors can augment the fired event. An accessibility
   event has several records and a predecessor can optionally
   modify, delete, and add such to the event.

3. Added onPopulateAccessibilityEvent and refactored the existing
   accessibility code to use it.

4. Added API for querying the currently enabled accessibility services
   by feedback type.

Change-Id: Iec03c6c3fe298de3f14cb6efdbb9b198cd531a0c
2011-04-21 18:33:52 -07:00
Fabrice Di Meglio
0a1413e4bf Clean getTextRunAdvances() APIs
- remove ICU reference in API names
- use a "reserved" int parameter to pass either "0" for Harfbuzz or "1" for "ICU"

Change-Id: I88b4f76feafd203a6999cd7349402fa36a9a4b2a
2011-04-21 17:36:26 -07:00
Dianne Hackborn
9a36549919 Merge "Fix bug in deciding which rotation to use for an orientation." 2011-04-21 17:34:22 -07:00
Dianne Hackborn
9d13264f6b Fix bug in deciding which rotation to use for an orientation.
Change-Id: Icc928c2188a5865035cafcdab2efd5bae3132b1f
2011-04-21 17:27:42 -07:00
Gilles Debunne
67c1dff245 Merge "Extracted WordIterator class." 2011-04-21 17:20:58 -07:00
Mathias Agopian
5db1314192 Merge "Get rid of the "pid" parameter from createSurface" 2011-04-21 17:14:18 -07:00
Fabrice Di Meglio
b104800b6c Merge "TextLayout cache - update size and improve logging" 2011-04-21 16:27:56 -07:00
Dianne Hackborn
4c1f4f7144 Merge "Rework display size access." 2011-04-21 16:10:28 -07:00
Dianne Hackborn
041a3209c4 Merge "Remove config_caseSensitiveExternalStorage; no longer needed." 2011-04-21 16:07:04 -07:00
Fabrice Di Meglio
010d5c4e5b TextLayout cache - update size and improve logging
- set size to 256K
- add pid logging
- fix percent gain computation

Change-Id: Id6da4d606147294e05597022414531c346860f45
2011-04-21 15:33:50 -07:00
Dianne Hackborn
f50e54e64b Remove config_caseSensitiveExternalStorage; no longer needed.
Change-Id: Id51c9e05be21d8087359cf918081109ba325569a
2011-04-21 15:20:34 -07:00
Dianne Hackborn
44bc17c6b5 Rework display size access.
Applications now get the display size from the window manager.  No
behavior should be changed yet, this is just prep for some real
changes.

Change-Id: I2958a6660895c1cba2b670509600014e55ee9273
2011-04-21 15:17:52 -07:00
Jesse Wilson
05e37233aa Merge "Pool strings in JsonReader." 2011-04-21 14:55:37 -07:00
Adam Powell
712079a63f Merge "Fix bug 4329016 - Refresh menus properly while in batch update mode" 2011-04-21 14:51:24 -07:00
Adam Powell
a86b350977 Fix bug 4329016 - Refresh menus properly while in batch update mode
Change-Id: Ia4a4feffb0a77a99e0b241c9cf1d737577d9154d
2011-04-21 14:49:23 -07:00
Jesse Wilson
847cf342c9 Pool strings in JsonReader.
This yields a 10% improvement in parsing both Twitter and Google Reader
streams.

Change-Id: Ifc238777e929b5b3e9a4480098b315e418378f8b
http://b/3201883
2011-04-21 13:48:35 -07:00
Dounia Berrada
77cdbc5fdd Adding capability to lookup many elements.
Change-Id: I544497f010fdb723ef877e64caa15a0ed06c0fec
2011-04-21 12:02:13 -07:00
Scott Main
52c03d2cb9 am a23ae0d7: am 69ccfd7a: am ca7f30eb: am b8a57841: Merge "docs: add a little info to Configuration class description" into honeycomb
* commit 'a23ae0d7be890b7590a87891b894a30f25bbd3ef':
  docs: add a little info to Configuration class description
2011-04-21 10:59:33 -07:00
Scott Main
a23ae0d7be am 69ccfd7a: am ca7f30eb: am b8a57841: Merge "docs: add a little info to Configuration class description" into honeycomb
* commit '69ccfd7a29fc492c25dcb96dc74daf2e900118f5':
  docs: add a little info to Configuration class description
2011-04-21 10:57:10 -07:00
Scott Main
69ccfd7a29 am ca7f30eb: am b8a57841: Merge "docs: add a little info to Configuration class description" into honeycomb
* commit 'ca7f30ebb20dcf4c056f57a8c4ab3342cafaed83':
  docs: add a little info to Configuration class description
2011-04-21 10:55:20 -07:00
Scott Main
ca7f30ebb2 am b8a57841: Merge "docs: add a little info to Configuration class description" into honeycomb
* commit 'b8a57841316171d6db4311a65914720213516153':
  docs: add a little info to Configuration class description
2011-04-21 10:53:08 -07:00
Andy McFadden
1cc1a41b5a Merge "Calendar DB upgrade" 2011-04-21 10:45:47 -07:00
Tadashi G. Takaoka
4804c211a6 Merge "Fix key preview coordinates calculation" 2011-04-20 23:21:15 -07:00
Scott Main
63848e3df3 docs: add a little info to Configuration class description
Change-Id: I3278759bd1c323330c1143ef71d0644872caa085
2011-04-20 22:20:46 -07:00
Andy McFadden
df2e2c89d8 Calendar DB upgrade
Renamed some columns.

Change-Id: I61ad8cfd1c78a58b5f9ade656a98ea45a77ad419
2011-04-20 16:43:55 -07:00
Gilles Debunne
e193fd1434 Extracted WordIterator class.
This class will be used by TextView and the IMEs to cut the
text into words.

New getBeginning and getEnd methods that return word limits.

Added Locale to constructor.

Change-Id: Ie8ad590ebca4b48517ec7b4c3768b3e41879166e
2011-04-20 15:34:36 -07:00
Mathias Agopian
9638e5c167 Get rid of the "pid" parameter from createSurface
Change-Id: I28635e3f803e6abe965d79998e305f54a202465d
2011-04-20 14:26:11 -07:00
Marco Nelissen
63f9689627 Revert recently added check to addFooterView
b/4319206

Change-Id: Ic89b2166bdc7a878ae2983d393a1d01aaa3b7d23
2011-04-20 13:42:25 -07:00
Fabrice Di Meglio
e41588b41c Merge "Use Harfbuzz for Paint drawText / measureText / breakText APIs" 2011-04-20 11:16:35 -07:00
Dianne Hackborn
215e90fc1d Merge "Deprecate a bunch of APIs." 2011-04-20 10:32:32 -07:00
Steve Block
34d06dd9a8 Merge "Deprecate ANCHOR_TYPE and IMAGE_ANCHOR_TYPE from WebView.HitTestResult" 2011-04-20 10:27:38 -07:00
Dianne Hackborn
9567a66a5e Deprecate a bunch of APIs.
And clean up some documentation.

Change-Id: I7882183b3daf883b7ac6098d19f88dc7cfbcdf61
2011-04-20 10:26:44 -07:00
Tadashi G. Takaoka
21334fdbbe Fix key preview coordinates calculation
Bug: 4310526

Change-Id: I67be4e69056faea9bdf4157ada9435dd326e52f0
2011-04-20 16:09:12 +09:00
Jeff Brown
6f026b0fbc Merge "Track unhandled input events in consistency verifiers." 2011-04-19 23:58:27 -07:00
Jeff Brown
bbdc50b102 Track unhandled input events in consistency verifiers.
This fixes spurious verification errors that would be generated
when a view declined an initial event such as ACTION_DOWN.  Since
the view would not receive the rest of the event stream, it would
not see the corresponding ACTION_UP and the next ACTION_DOWN would
trigger a spurious verification error.

Change-Id: I2386acf378cd1765d5446faed5ad9c6525f8b400
2011-04-19 23:46:52 -07:00
Adam Powell
2a231f8435 Merge "Refactor menu internals." 2011-04-19 18:45:42 -07:00
Fabrice Di Meglio
4f810c8535 Use Harfbuzz for Paint drawText / measureText / breakText APIs
Change-Id: I35aa02bfd45629bf5c560f98a28399ff3d0fc900
2011-04-19 17:36:13 -07:00
Jeff Brown
3f14891fc9 Merge "Initial checkin of spot presentation for touchpad gestures." 2011-04-19 15:37:32 -07:00
Jeff Brown
2352b978a3 Initial checkin of spot presentation for touchpad gestures.
Added a new PointerIcon API (hidden for now) for loading
pointer icons.

Fixed a starvation problem in the native Looper's sendMessage
implementation which caused new messages to be posted ahead
of old messages sent with sendMessageDelayed.

Redesigned the touch pad gestures to be defined in terms of
more fluid finger / spot movements.  The objective is to reinforce
the natural mapping between fingers and spots which means there
must not be any discontinuities in spot motion relative to
the fingers.

Removed the SpotController stub and folded its responsibilities
into PointerController.

Change-Id: I5126b1e69d95252fda7f2a684c9287e239a57163
2011-04-19 15:35:51 -07:00
Marco Nelissen
05d30b1484 Merge "Fix bugs in ListView" 2011-04-19 15:25:48 -07:00
Marco Nelissen
22c04a316a Fix bugs in ListView
Make addHeaderView and addFooterView be more consistent with each other: they
now both check that there either is no existing adapter, or that the existing
adapter is a HeaderViewListAdapter, and they both call the DataSetObserver
(previously only addHeaderView would check the adapter, and it would only
check that it was null, while only addFooterView would call the DataSetObserver)
Make removeHeaderView and removeFooterView check that the DataSetObserver
is non-null before using it.

Change-Id: I681b87f70aabca63e664ca8d0c1cfc25530e00b9
2011-04-19 14:31:20 -07:00
Adam Powell
696cba573e Refactor menu internals.
In the old world, MenuBuilder and MenuItemImpl were responsible for
generating views for any presentation of a menu. MenuBuilder needed to
know any types and resources involved, and the implied caching
semantics did not work well for menus presented within AdapterViews.

In the new world, the MenuPresenter interface takes over the
responsibility of generating views or adapters for menu
items. MenuBuilder/MenuItemImpl still provide extra metadata tracking
used by these presenters. Mutiple presenters may be active for a
single menu at a time. All of this remains internal framework
implementation details.

BaseMenuPresenter provides a simple base for presenters that treats
the host MenuView more like an AdapterView. This allows for less
rebuilding of views when items are added/removed.

Callbacks have been restructured. Calls that relate to the menu itself
are still handled by MenuBuilder.Callback, but calls related to a
specific presentation of a menu are handled by MenuPresenter.Callback
objects attached to a MenuPresenter.

Also add API to programmatically set divider options for LinearLayout
and hidden API so that ActionBarView can have finer-grained control
over divider placement.

Change-Id: I2265b86a084279822908021aec20dfbadc1bb56b
2011-04-19 13:49:39 -07:00
Fabrice Di Meglio
8f0484194a Merge "Use Harfbuzz for Canvas drawText APIs" 2011-04-19 13:14:46 -07:00
Narayan Kamath
9bf2d9e13c Merge "Fix onCompleteAudioAvailable" 2011-04-19 10:44:16 -07:00
Amith Yamasani
25641ca1ac Merge "Plumbing in PackageManager and installd for multi-user support." 2011-04-19 10:41:20 -07:00
Narayan Kamath
53f6f95308 Fix onCompleteAudioAvailable
(a) Don't check that the audiotrack is initialized (will
not be true in static mode until the first write call)
(b) Block until it completes playing.

Change-Id: I50eb6cece00f3d12f3b75102d62014c360ac0346
2011-04-19 16:39:20 +01:00
Steve Block
1854ddb6d9 Deprecate ANCHOR_TYPE and IMAGE_ANCHOR_TYPE from WebView.HitTestResult
These constants are no longer used anywhere, so should be deprecated.

Change-Id: I1456782fbafc540148c51477dd9727b11684d5d3
2011-04-19 13:55:09 +01:00
Jozef BABJAK
41a5ed7cd9 Re-assingning local variable if mStringBlocks was initialized here. NPE is thrown otherwise.
Change-Id: Ic8648aa5ae6a61348803171243c1c217feb058ec
2011-04-19 12:28:22 +02:00
Bjorn Bringert
a210e15c89 Merge "TTS: SynthesisRequest.error() instead of return value" 2011-04-19 03:06:13 -07:00