3180 Commits

Author SHA1 Message Date
Grace Kloba
0904d0af81 Add allowSynchronousMode to SurfaceTexture constructor.
Change-Id: I54f30a3c16bbe6b813f3bcd1d389da5627531304
2011-06-23 21:21:47 -07:00
Gloria Wang
5510a153bf Merge "- Public part of the Metadata API. - Modify the media framework test for Metadata." 2011-06-23 16:17:55 -07:00
Gloria Wang
1e1b13e62e - Public part of the Metadata API.
- Modify the media framework test for Metadata.

Change-Id: Ib8fa4991f114e1bb88a17ca662844b9b8e1d0faf
2011-06-23 15:28:36 -07:00
Philip Milne
a1f7b10f72 Handle baseline aligned rows in which some components define baseline and some don't.
Also:

. Make all of the methods in Alignment package private.
. Inlucde Tor's test case

Change-Id: If78a6a3b653723d9e12d6b162fd0c86b11a82dff
2011-06-23 11:41:57 -07:00
Grace Kloba
cf559377b7 Add onSurfaceTextureUpdated to the TextureView listener.
The app needs a way to throttle the producer side. Expose this to enable it.

Change-Id: I04b6a3fc444117a9fc2449fb87c3c834247c8ef1
2011-06-22 23:05:40 -07:00
Adam Powell
7656b21e63 Fix build
Change-Id: Ieb5f82380b6c69791ab7b4dd3e1d76fdb4dd0b74
2011-06-22 21:58:14 -07:00
satok
8969d9924c Revert "Create TextServiceManager and SpellCheckerService"
This reverts commit eaddb894865a804279659b4aad6364a34ab50beb.
2011-06-22 16:41:58 +09:00
satok
f86ee14f6a Merge "Create TextServiceManager and SpellCheckerService" 2011-06-22 00:02:55 -07:00
Jeff Brown
194f4a7afd Merge "Only handle onHoverEvent in actionable views." 2011-06-21 21:12:24 -07:00
Adam Powell
42b91bbcda Fix bug 4818050 - Need a way to get notified when a PopupMenu gets
dismissed/canceled

Add an OnDismissListener to PopupMenu.

Change-Id: I7abe1b9c9bea5e758a9c32631185e50cd7eb1ed0
2011-06-21 20:56:55 -07:00
Jeff Brown
10b6290c5f Only handle onHoverEvent in actionable views.
Modified onHoverEvent so that a view only has its state changed to
hovered when the view is clickable.  The intent is to prevent labels
from taking hover focus away from their containing view group despite
not being actionable in any way.  The child will still receive
a hover event but, if it does not handle the event (returns false),
the hover event will bubble up to its parent and ancestors allowing
them a chance to handle the event instead.

The new onHoverEvent semantics are better because now they closely
mirror those of onTouchEvent.  This makes it straightforward to
implement views that respond to hover by changing their visual
appearance (such as by making buttons glow when hovered).

Added onInterceptHoverEvent to enable ViewGroups to explicitly
intercept hover events within their bounds.

Exposed the new hover event API for real.

Change-Id: I63195c8f5c74b859f6047487f9a0f703e8f40ffe
2011-06-21 18:58:20 -07:00
Stephen Hines
419091185f Merge "Support missing RS vector types." 2011-06-21 16:35:39 -07:00
Stephen Hines
79ad3f25bc Support missing RS vector types.
Change-Id: I87eae3cc79c3963d5a8edf16cc26eee6d93d81d7
2011-06-21 12:00:55 -07:00
Narayan Kamath
4d03462b37 New API for TTS settings.
Engines must declare a <meta-data> attribute in their
manifest with name "android.speech.tts". This must reference
an XML resource as per
com.android.internal.R.styleable.TextToSpeechEngine.

Change-Id: I56a6b9f1a360174f98c9f39da901ade83d0f38a7
2011-06-21 10:28:30 +01:00
Stephen Hines
3c0618be2f Merge "Add support for more vector types to RS." 2011-06-20 12:00:50 -07:00
Fabrice Di Meglio
d8703a9824 Add View paddingStart and paddingEnd
- use a lazy padding resolution (because layout direction is lazyly resolved too)
- cache resolved layout direction as getResolvedLayoutDirection() will be more called
- enable resetting layout direction cache if needed
- update unit tests

Change-Id: I30ce19e3100cc137f84e60163b60e1577ff61819
2011-06-20 11:11:05 -07:00
satok
eaddb89486 Create TextServiceManager and SpellCheckerService
Bug: 4176026

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
    for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Ia25e7b4f308778891929e31b8cbd741f6848cce4
2011-06-20 23:00:30 +09:00
Dianne Hackborn
ca1e210dd6 Merge "Implement remaining infrastructure for user disabling apps." 2011-06-17 14:53:10 -07:00
Dianne Hackborn
0ac3031c15 Implement remaining infrastructure for user disabling apps.
Change-Id: If8135eb0e27ec36f8f159eb7b6397add7acd0299
2011-06-17 14:49:45 -07:00
Adam Powell
414c4984fd Merge "Create theme attributes for small and large listPreferredItemHeight. Change default holo dialog list items to use them." 2011-06-17 13:57:07 -07:00
Stephen Hines
dc12262230 Merge "POSITVE -> POSITIVE typo fix" 2011-06-17 13:53:20 -07:00
Stephen Hines
2b1382de8c Merge "Add isCompatible() to RS Element." 2011-06-17 13:52:44 -07:00
Daisuke Miyakawa
18cc57fb93 Merge "Add API for auto-complete ranking improvement." 2011-06-17 13:10:40 -07:00
John Reck
79e16da930 Merge "Make textZoom public" 2011-06-17 13:05:56 -07:00
Daniel Sandler
d3cdbf0a4f Merge "ICS updates to notification layouts." 2011-06-17 12:43:21 -07:00
Stephen Hines
f257e513a1 Add isCompatible() to RS Element.
BUG=4203264

Change-Id: Id68aead685f6cbc71c2fbe461cb38382e0563f43
2011-06-17 12:12:23 -07:00
Adam Powell
c8834722d5 Create theme attributes for small and large
listPreferredItemHeight. Change default holo dialog list items to use
them.

Tweak dialog button bar style.

Change-Id: I9bf14621aea44b8b7d60c290ecea86e6284ccdaa
2011-06-17 11:56:53 -07:00
John Reck
caeb120170 Make textZoom public
Deprecate textSize (enum based) in favor of textZoom (percentage based)

Change-Id: Ibb4c25b461bcb57e5c2cdf709485d255db20a43c
2011-06-17 11:50:15 -07:00
Daniel Sandler
ebce0115e2 ICS updates to notification layouts.
Of note:

1. There is no "X" (veto) button anymore. (Well, there is,
   but it's offscreen so it should still be available to
   assistive devices.) Users can use "Clear all" or the new
   swipe-to-veto gesture to clear notifications.

2. As a consequence of #1, your layout goes all the way to
   the right edge of the notifications panel again. Enjoy
   the extra space!

3. The numeric bubble in the notification icon is now capped
   at "999+" like it is in the expanded notification view.
   (Note that this involves a couple of new public framework
   resources: one to indicate the number beyond which the
   substitution string will be used, and one specifying a
   localizable substitution string.)

Bug: 4651514
Bug: 4686329
Bug: 4501990
Change-Id: I0e6bdb6aec4fe5bfc927eb1aba955d444a9414ec
2011-06-17 13:28:56 -04:00
Mark Brophy
a31c7aadcd Add a global-search column for last access.
NEW_API

This new column may be set in Cursors returned to global search. QSB
will may use this to help sorting results when presenting them to the
user.

Change-Id: Id5bc87dcb50f3e3a55b0a54a8c90057e60fd0e9e
2011-06-17 16:36:38 +01:00
Philip Milne
1e54825135 Change includeMarginsInAlignment flag to aligmentMode property.
Also:

. Change getInteger() to getInt().
. Conditionally compile, Paint() allocation and initialization.
. Correct spelling mistake in javadoc.

Change-Id: I00438a717e635a3917c5324f56063dce2e6041e8
2011-06-16 20:47:29 -07:00
Stephen Hines
20fbd01335 POSITVE -> POSITIVE typo fix
Change-Id: Ib26eb35fad0c93543f69f6c200820f04c435c2af
2011-06-16 19:31:55 -07:00
Adam Powell
a93347a62e Dialog-o-rama!
New styling for Holo dialogs. Now 76% easier for apps to create
dialog-based layouts! (Less tricky padding and margin rules)

Cancelable AlertDialogs now are canceled when the user touches
outside.

Dialogs in landscape mode will try not to fill the width of the
screen.

Change-Id: I621b5a19780883ee703a8492510451b480a0b8cc
2011-06-16 18:20:54 -07:00
Dianne Hackborn
a7f88508d3 resolved conflicts for merge of 872a1e79 to master
Change-Id: I50253b22f181729d4e748970acf1a3ad868ccd74
2011-06-16 16:01:27 -07:00
Dianne Hackborn
872a1e793c am 9a73c4d3: am 2f04883f: SDK only: integrate new sample code, deprecating along the way.
* commit '9a73c4d3a9c7ce02f80b078ca9ba5106234ecd9c':
  SDK only: integrate new sample code, deprecating along the way.
2011-06-16 15:25:22 -07:00
Dianne Hackborn
2f04883ff8 SDK only: integrate new sample code, deprecating along the way.
The new support library features and sample code for switching
between fragments using a TabHost now eliminates the utility of
the TabActivity class, so deprecate it.  This also means there is
no longer any use in ActivityGroup or LocalActivityManager.  Yay.

Also fix up things so the new support API demos are included in
the documentation.

Change-Id: I4f073b82787f32560ba1fa5b6a23746ecc8aecdc
2011-06-16 14:52:00 -07:00
Philip Milne
b6a6d59547 Merge "Future-proofing: change Alignment interface to abstract class and add a parameter for measurementType." 2011-06-16 11:18:42 -07:00
Jean-Baptiste Queru
ce6f85ec40 Merge f28f1de3 - regen current.txt
Change-Id: I7875932a0634542251f53855b4e8620a089de05f
2011-06-16 10:21:18 -07:00
Philip Milne
c9885f6557 Future-proofing: change Alignment interface to abstract class and add a parameter for measurementType.
Also included bugfix from Winson: arcs wre not being cleared in invalidateStructure() so
state wasn't properly cleared when children were added after the first layout operation.

Change-Id: I7b46eadd955bd74b7bb3e4dad2f47ed3f092ff63
2011-06-15 19:08:40 -07:00
Dianne Hackborn
f28f1de391 am 413b53b5: am 70921d61: Merge "We must keep up with the Joneses." into honeycomb-mr2
* commit '413b53b57d62b60e98cfe5b9359551315e7cb3a7':
  We must keep up with the Joneses.
2011-06-15 17:12:45 -07:00
Dianne Hackborn
0d4b9c993d We must keep up with the Joneses.
Change-Id: Ifa2ab0167c09ba18b24c8b6c618db807e17519f5
2011-06-15 15:09:54 -07:00
Narayan Kamath
9ee8154e59 Increase the visibility of SynthesisRequest
This makes it a lot easier for engine implementers
to test their engine. This is a dumb data object, and
contains no logic whatsoever.

Change-Id: I2a8bea134a8ff6b962508cfed67ea6085a682b23
2011-06-15 18:50:23 +01:00
Daisuke Miyakawa
e0a8aabd79 Add API for auto-complete ranking improvement.
- primary account (3510087)
- per-method ranking (4371572)

Primary account enables to ContactsProvider to prioritize
email addresses associated with the account.

Per-method ranking enables ContactsProvider to get feedback
from applications about usage per method instead of that per
person.

Both should be available for unbundled applications.

Bug: 3510087
Bug: 4371572
Change-Id: Icb01415317a7dbb6538804181b06bd973af6205c
2011-06-15 08:41:42 -07:00
Romain Guy
77a811610f Add TextureView.getBitmap()
This API can be used to get a Bitmap copy of the content of a
TextureView.

Change-Id: I07522216c353720fba5cab333174f58f484eb911
2011-06-14 17:06:53 -07:00
Fabrice Di Meglio
e460e6d718 Merge "Add View.getResolvedLayoutDirection()" 2011-06-14 16:23:06 -07:00
Fabrice Di Meglio
c0053223be Add View.getResolvedLayoutDirection()
- update Callback2 interface
- update Gravity.getAbsoluteGravity() and Gravity.apply() to be more generic
 by changing "boolean isRtl" parameter to "int layoutDirection"
- fix BiDiTests for RTL FrameLayout

Change-Id: I97bb456c22d5fd3ecb34f08564ce4dbed37e7459
2011-06-14 16:16:39 -07:00
Dianne Hackborn
65efcc5521 Merge "resolved conflicts for merge of 77fc8b80 to master" 2011-06-14 15:05:46 -07:00
Doug Zongker
ff24bf439f Merge "deprecate RADIO constant, add getRadioVersion method" 2011-06-14 13:39:36 -07:00
Alex Sakhartchouk
9b309b99f7 Merge "Allocation copy functions." 2011-06-14 13:14:57 -07:00
Dianne Hackborn
711516d140 resolved conflicts for merge of 77fc8b80 to master
Change-Id: I014f9a886d6f05607d2a5d101ad2052a6841ee8d
2011-06-14 12:17:35 -07:00