13224 Commits

Author SHA1 Message Date
Chet Haase
21d405f5fa Merge "Fix for display list problem with listview items." into honeycomb 2011-01-24 17:59:35 -08:00
Chet Haase
3b2b0fc257 Fix for display list problem with listview items.
We were not correctly invalidating items that were being attached
to listviews.

Change-Id: I5d29a82c4276f09e401c6869ab1e86a3c8281366
2011-01-24 17:53:52 -08:00
Andy Stadler
315fae2028 Merge "Throw Base64DataException instead of IOException" into honeycomb 2011-01-24 17:43:30 -08:00
Chet Haase
5af048c791 Fix bug with display lists and layout.
requestLayout() and forceLayout() should force the INVALIDATED
flag to be set, which causes a view's display list to be regenerated
on the next drawing operation. This is necessary when containers change
due to layout requests.

Change-Id: I5b18b5936b59f0605f93c8f45baf83a76dab4e5e
2011-01-24 17:00:32 -08:00
Andy Stadler
c5a0ce242f Throw Base64DataException instead of IOException
* Define Base64DataException
* Throw it from Base64InputStream & Base64OutputStream
* This enables callers to disambiguate "bad data" from "broken stream",
  which makes it more possible to do proper retry logic.

Bug: 3365205
Change-Id: I332e7c008f92b333400d1b4dcaef5aedc7c10ef4
2011-01-24 16:47:56 -08:00
Jeff Brown
aaa55d3f45 Merge "New orientation listener." into honeycomb 2011-01-24 15:31:22 -08:00
Svetoslav Ganov
33322052ed Merge "DatePicker is picking the wrong date" into honeycomb 2011-01-24 15:26:42 -08:00
Adam Powell
1914971c6b Merge "Fix bug 3242393 - overscroll effect missing from lists which drag but are always visible" into honeycomb 2011-01-24 15:03:16 -08:00
Leon Scroggins
8801ad3526 Merge "Disable focus controller when WebView loses focus." into honeycomb 2011-01-24 15:02:10 -08:00
Adam Powell
4ce35419ce Fix bug 3242393 - overscroll effect missing from lists which drag but
are always visible

Change-Id: I20d73c452c7b98f1a046e356d0c6cdbfc8e5fe7a
2011-01-24 14:55:00 -08:00
Gilles Debunne
7c8c6d6892 Typo in InputMethodManager's documentation
Change-Id: I711e6d24462e336546b789fac0b9c6f529ebe260
2011-01-24 14:48:14 -08:00
Gilles Debunne
88b5953ab2 Merge "NULL inputType text fields should never show the IME." into honeycomb 2011-01-24 14:46:57 -08:00
Gilles Debunne
705a27a97c Merge "Non-editable TextViews should not display a cursor." into honeycomb 2011-01-24 14:46:42 -08:00
Leon Scroggins
b4ffd11284 Disable focus controller when WebView loses focus.
Bug:3370821
Change-Id: Ia26a54e1c5ec050d76e60762f9a5eb4502d8c6e3
2011-01-24 17:43:47 -05:00
Jeff Brown
4519f07e9c New orientation listener.
The objective in this listener is to be more careful about the
signal processing to prevent spurious orientation changes
and to make all of the tweakable factors physically meaningful.

The calibration is defined in terms of time constants and
does not assume a particular discrete sampling rate.  This is
useful because it allows us to change the accelerometer sampling
interval if desired without having to change the calibration.
Moreover, the accelerometer sampling interval can vary +/- 20ms
from one sample to the next even in normal circumstances.

Proposed orientation changes are weighted by confidence factors
that vary exponentially in relation to how close the device
is to the ideal orientation change posture (screen is vertical,
angle is exactly at the midpoint of the orientation quadrant,
and no external acceleration beside gravity).  When not in an ideal
posture, the device takes proportionally longer to settle into a
new orientation state.

Added a little tool to plot the log output of the
WindowOrientationListener.  Check the README for more information
about how to use it.

Change-Id: I787f02d03582ff26367df65eda8d9ce85c5cb343
2011-01-24 13:46:57 -08:00
Gilles Debunne
98dbfd4940 Non-editable TextViews should not display a cursor.
Bug 3381320

The tests were inconsistent between makeBlink and onDraw.
If the text is non-editable, do not draw the cursor.

Change-Id: I0405e59444261a553e868b3ae5bdddd278f60bb2
2011-01-24 12:54:10 -08:00
Gilles Debunne
8cbb4c6e30 NULL inputType text fields should never show the IME.
Bug 3381317

Changes made in https://android-git.corp.google.com/g/#change,91880
displayed the IME onFocus. However, the test was not consistent to what
is done in touch event. textIsEditable is now checked too.

Change-Id: If11382c1c90a557839b87d62494253470c42b621
2011-01-24 12:33:56 -08:00
Huahui Wu
f93246923f A few small cleanning-ups.
1. Remove mDeferMultiTouch in WebView, it was for testing only but
we don't need it now since we always pass MultiTouch to WebKit.

2. Remove the use of mDeferMultiTouch in DRT tests.

3. Correct the index of getX(Y) for the second touch point in the
debug string of MotionEvent.

Change-Id: Ib63cfc5935af1a169ed26b2b138f74908492bc18
2011-01-24 12:07:37 -08:00
Joe Onorato
da34e13bb4 Merge "Remove unwanted parameter (it was a typo)." into honeycomb 2011-01-24 10:43:55 -08:00
Joe Onorato
e595cad6ee Remove unwanted parameter (it was a typo).
Bug: 3241144
Change-Id: I569f6c8dffb17041a422be6084b6eab89624a57b
2011-01-24 09:25:35 -08:00
Chet Haase
67005b05cc Merge "Use optimized display lists for all hwaccelerated rendering" into honeycomb 2011-01-24 09:24:59 -08:00
Gilles Debunne
7108724d4b Merge "New fix for popup behavior in AutoCompleteTextViews." into honeycomb 2011-01-24 08:58:07 -08:00
Chet Haase
daf98e941e Use optimized display lists for all hwaccelerated rendering
Previously, display lists were used only if hardware acceleration
was enabled for an application (hardwareAccelerated=true) *and* if
setDrawingCacheEnabled(true) was called. This change makes the framework
use display lists for all views in an application if hardware acceleration
is enabled.

In addition, display list renderering has been optimized so that
any view's recreation of its own display list (which is necessary whenever
the visuals of that view change) will not cause any other display list
in its parent hierarchy to change. Instead, when there are any visual
changes in the hierarchy, only those views which need to have new
display list content will recreate their display lists.

This optimization works by caching display list references in each
parent display list (so the container of some child will refer to its
child's display list by a reference to the child's display list). Then when
a view needs to recreate its display list, it will do so inside the same
display list object. This will cause the content to get refreshed, but not
the reference to that content. Then when the view hierarchy is redrawn,
it will automatically pick up the new content from the old reference.

This optimization will not necessarily improve performance when applications
need to update the entire view hierarchy or redraw the entire screen, but it does
show significant improvements when redrawing only a portion of the screen,
especially when the regions that are not refreshed are complex and time-
consuming to redraw.

Change-Id: I68d21cac6a224a05703070ec85253220cb001eb4
2011-01-24 08:43:20 -08:00
Svetoslav Ganov
156f20919b DatePicker is picking the wrong date
bug:3375074

    1. The logic for updating the higher rank fields on wrapping of
       lower rank ones was incorrect. Updated that logic.

    2. On reaching the min/max date the spinners did not stop
       when reaching that date. Now spinners stop at min/max.

    3. Fixed a couple of edge case bugs while setting the
       the min and max dates of the DatePicker on the fly.

    4. Restricted the scrolling/flinging to end at the min
       and max dates.

Change-Id: Ibb588ea2cf951cf8d50328bbfbe7ebdad7ee8067
2011-01-24 05:21:32 -08:00
Joe Onorato
4c541b1303 Merge "visibility ("lights out") API." into honeycomb 2011-01-23 19:26:13 -08:00
Joe Onorato
664644d9e0 visibility ("lights out") API.
1. Views may setSystemUiVisibility() to recommend that
the system chrome (status bar or other UI) show or hide
itself.  (This functionality was previously available only
via the FLAG_FULLSCREEN window flag for some SystemUI
implementations.)

2. Views may register a OnSystemUiVisibilityChangedListener
on a view, and find out when the system UI actually
appears or disappears, allowing apps to coordinate the
appearance of their own UI if desired.

Bug: 3241144
Change-Id: Ia1758d94099182d49a1e3688ea2738ae4995b829
2011-01-23 19:22:52 -08:00
Adam Powell
2bed570bba Fix bug 3367627 - spontaneous crash
Fix a little-traversed codepath that could cause some grief.

Change-Id: I75e6931c3208a0f18b40446f23a2fdd5a0065ce8
2011-01-23 19:20:43 -08:00
Gilles Debunne
4a74dbc3f2 New fix for popup behavior in AutoCompleteTextViews.
Bug 3374144

The fix in https://android-git.corp.google.com/g/#change,91880 is not
sufficient. An updated adapter needs to be able to force an update of
the poup result list.

Addded a flag that prevents the popup from being re-opened when it has
previously been closed by a user action.

Change-Id: I45fab056c8ebd6dc4317430213f2bc37b51b79e3
2011-01-23 18:20:43 -08:00
Dianne Hackborn
9476f04590 Merge "Fix issue #3215261: NPE in WiFi Settings" into honeycomb 2011-01-23 17:45:59 -08:00
Dianne Hackborn
89ba6750e5 Fix issue #3215261: NPE in WiFi Settings
And also fix #3343369: EGL_BAD_DISPLAY and/or broadcast intent
TIME_SET before boot completion

And a few more tweaks to animations to keep the wallpaper displayed
when needed.

And make more use of the drag and drop "rotation disabled" thing to
also use it while animating the screen rotation, since if we try to
start a new rotation while doing the animation we end up with a mess.

Change-Id: I373af305a6e23a92835abed96229a83e173f67ce
2011-01-23 17:35:08 -08:00
Romain Guy
502d41d859 Merge "Add support for arcs." into honeycomb 2011-01-23 16:12:50 -08:00
Romain Guy
8b2f5267f1 Add support for arcs.
Change-Id: I96c057ff4eb1b464b03f132da0b85333777bee4f
2011-01-23 16:15:02 -08:00
Dianne Hackborn
9d97b63d0e Honeycomb is now officially API 11.
Change-Id: I5b11801468bf6ee2482f1ef201ece70ed9303bd8
2011-01-23 14:56:39 -08:00
Romain Guy
c1cd9ba335 Add support for ovals and stroked rectangles.
Change-Id: I1292e241386763c82e6622c8f7ed90b0f5b7bd4f
2011-01-23 14:18:41 -08:00
Romain Guy
d182046ee6 Merge "Add support for ovals and stroked rectangles." into honeycomb 2011-01-23 14:17:28 -08:00
Dan Morrill
a537687c38 Adding faketouch feature.
Change-Id: Idff0b059c2f82fa4237d6238710e87dc55ae76a8
2011-01-23 13:36:13 -08:00
Dianne Hackborn
ff801ec713 Fix issue #3302006: Cannot see the dialog lunched from a transparent activity.
The activity manager was not performing the layout pass on the new window,
because its app token was still hidden, because the activity manager / window
manager were still waiting for it to be ready to show.

Just ignore whether the app token is hidden for this case.

Also fixes some problems with animations, and tweaks the ViewConfiguration
values for xlarge screens.

Change-Id: Icbe9c77ba8127d1e02df2d6f27b8e86ec842e50a
2011-01-22 18:13:13 -08:00
Dianne Hackborn
f36af16479 Merge "Whoops, actually exclude pre-HC apps." into honeycomb 2011-01-22 13:06:48 -08:00
Dianne Hackborn
842e04b221 Whoops, actually exclude pre-HC apps.
Change-Id: I7266b3a622ae65f350bdb2a0eb6557b481a14365
2011-01-22 13:00:12 -08:00
Dianne Hackborn
5503d803ec Merge "Fix issue #3377999: Activities need to be stopped when sleeping" into honeycomb 2011-01-22 11:38:48 -08:00
Jaikumar Ganesh
8db58ea52c Merge "Connect other profiles when priority is auto connect." into honeycomb 2011-01-21 21:24:49 -08:00
Jaikumar Ganesh
a8d18865a4 Connect other profiles when priority is auto connect.
ACL auto connection was removed so other profiles
won't auto connect when priority was auto connect.

Reduced connect other profiles time delay.

Bug: 3281016
Change-Id: I8d98fd0d9bace193d619d7f241fff22f07e3e935
2011-01-21 19:22:23 -08:00
Romain Guy
596ba2fa79 Merge "Correctly invalidate views that transition from opaque to non-opaque. Bug #3337037" into honeycomb 2011-01-21 19:02:05 -08:00
Romain Guy
c5d55863ec Correctly invalidate views that transition from opaque to non-opaque.
Bug #3337037

Change-Id: I31397273a31b6004e2e3801866122bcbb3ebee5d
2011-01-21 19:03:58 -08:00
Bart Sears
e2ff529b3f Merge "b/3377597 Improve zooming performance." into honeycomb 2011-01-21 18:47:13 -08:00
Adam Cohen
a049fe95cd Merge "Fixing a couple StackView bugs:" into honeycomb 2011-01-21 18:12:15 -08:00
Adam Cohen
e86ff4d561 Fixing a couple StackView bugs:
-> Making sure to update visuals every time adapter count changes
-> Fixing a clipping issue seen on some devices

Change-Id: I489395b5caaa06eb7187b2dac679b793bf54d7e1
2011-01-21 17:59:29 -08:00
Dianne Hackborn
3a56ce3ab3 Merge "Fix some error messages, turn off logging." into honeycomb 2011-01-21 16:45:27 -08:00
Dianne Hackborn
ec541e1787 Fix some error messages, turn off logging.
Change-Id: Ifcd2c0f0ad137485896144d2248361aeb0a05600
2011-01-21 16:44:04 -08:00
Huahui Wu
5d4064c863 b/3377597 Improve zooming performance.
Once WebKit claimed it doesn't want to consume the multi-touch events,
we remember that and handle the events in WebView directly.

Change-Id: Idfc99c16b3f4d7f4719791c64fb2355ff66aba5e
2011-01-21 16:30:57 -08:00