Commit Graph

1214 Commits

Author SHA1 Message Date
Chet Haase
63502a7fb2 am 2292fb4a: am 50d4de21: Merge "Fix bug with display lists and layout." into honeycomb
* commit '2292fb4afb942b5880ef20bca5b255c5e005fa5e':
  Fix bug with display lists and layout.
2011-01-24 17:08:55 -08:00
Chet Haase
2292fb4afb am 50d4de21: Merge "Fix bug with display lists and layout." into honeycomb
* commit '50d4de21ee6a2ee62c7ad89dfdfd82d1045e7a58':
  Fix bug with display lists and layout.
2011-01-24 17:07:13 -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
Jeff Brown
76a23f8b2e resolved conflicts for merge of eebc944f to master
Change-Id: I969cf69d2bd6901742d2cdf1bd44344ee7ba9fc7
2011-01-24 16:43:28 -08:00
Jeff Brown
eebc944fd1 am aaa55d3f: Merge "New orientation listener." into honeycomb
* commit 'aaa55d3f45744814907d0809befb49281ced462e':
  New orientation listener.
2011-01-24 15:33:46 -08:00
Jeff Brown
aaa55d3f45 Merge "New orientation listener." into honeycomb 2011-01-24 15:31:22 -08:00
Gilles Debunne
ad18453037 am c46491fc: am 7c8c6d68: Typo in InputMethodManager\'s documentation
* commit 'c46491fc2fdaa8cddaa2a4f83f50630b7d2e2a74':
  Typo in InputMethodManager's documentation
2011-01-24 15:03:12 -08:00
Gilles Debunne
c46491fc2f am 7c8c6d68: Typo in InputMethodManager\'s documentation
* commit '7c8c6d689280ecfbd151a2e0cb40341768470676':
  Typo in InputMethodManager's documentation
2011-01-24 15:01:02 -08:00
Gilles Debunne
3a23a82275 am 287035f5: am 88b5953a: Merge "NULL inputType text fields should never show the IME." into honeycomb
* commit '287035f5749e4a5d4f088ee5f215f9ec4d03cc42':
  NULL inputType text fields should never show the IME.
2011-01-24 14:50:29 -08:00
Gilles Debunne
287035f574 am 88b5953a: Merge "NULL inputType text fields should never show the IME." into honeycomb
* commit '88b5953ab2f63ed6f820bb13845cf8fecb2d57e3':
  NULL inputType text fields should never show the IME.
2011-01-24 14:48:28 -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
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
Huahui Wu
61b9649a50 am 6e4a69bb: am 94b8b114: Merge "A few small cleanning-ups." into honeycomb
* commit '6e4a69bbf7d7566899ec76d2634538dd79ca4166':
  A few small cleanning-ups.
2011-01-24 13:36:39 -08:00
Joe Onorato
b05aacc1ae am ab8967ae: am da34e13b: Merge "Remove unwanted parameter (it was a typo)." into honeycomb
* commit 'ab8967ae9db71291094da2967e744038b7e91ff7':
  Remove unwanted parameter (it was a typo).
2011-01-24 13:30:42 -08:00
Chet Haase
3873da3c6e am 2acb67ec: am 67005b05: Merge "Use optimized display lists for all hwaccelerated rendering" into honeycomb
* commit '2acb67ec9fe34316231519373f59dfb76c03d57b':
  Use optimized display lists for all hwaccelerated rendering
2011-01-24 13:30:37 -08:00
Huahui Wu
6e4a69bbf7 am 94b8b114: Merge "A few small cleanning-ups." into honeycomb
* commit '94b8b114ab9abf5ccad6b85deb08aac2a359915d':
  A few small cleanning-ups.
2011-01-24 13:27:25 -08:00
Joe Onorato
10f4126a36 resolved conflicts for merge of faf083ef to master
Change-Id: I316a1b4356f6dba6c3880ccb02dbb2fa00d21a85
2011-01-24 13:16:08 -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
ab8967ae9d am da34e13b: Merge "Remove unwanted parameter (it was a typo)." into honeycomb
* commit 'da34e13bb4ef97832c43489937a26d314437a1d7':
  Remove unwanted parameter (it was a typo).
2011-01-24 11:16:43 -08:00
Chet Haase
2acb67ec9f am 67005b05: Merge "Use optimized display lists for all hwaccelerated rendering" into honeycomb
* commit '67005b05cc76a38a5b3bf6e83957dd03619e9126':
  Use optimized display lists for all hwaccelerated rendering
2011-01-24 11:15:51 -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
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
Joe Onorato
faf083ef0b am 4c541b13: Merge "visibility ("lights out") API." into honeycomb
* commit '4c541b1303b0ee2b9b0d19bee85d3780c5c4c110':
  visibility ("lights out") API.
2011-01-23 23:36:57 -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
Romain Guy
e3ba084285 am ff42d952: am 502d41d8: Merge "Add support for arcs." into honeycomb
* commit 'ff42d952ebb1d5393951f1644ee3d1b9e0fbc9e5':
  Add support for arcs.
2011-01-23 17:00:57 -08:00
Romain Guy
ff42d952eb am 502d41d8: Merge "Add support for arcs." into honeycomb
* commit '502d41d85958fb729a17e0651e80134e1c41c621':
  Add support for arcs.
2011-01-23 16:14:49 -08:00
Romain Guy
8b2f5267f1 Add support for arcs.
Change-Id: I96c057ff4eb1b464b03f132da0b85333777bee4f
2011-01-23 16:15:02 -08:00
Romain Guy
1166e0f3ad am 22fdb6f3: am d182046e: Merge "Add support for ovals and stroked rectangles." into honeycomb
* commit '22fdb6f3e94f88687a2f624124ef678282588b75':
  Add support for ovals and stroked rectangles.
2011-01-23 14:20:51 -08:00
Romain Guy
22fdb6f3e9 am d182046e: Merge "Add support for ovals and stroked rectangles." into honeycomb
* commit 'd182046ee67c1196e52b74dc9f3f89dcb816785d':
  Add support for ovals and stroked rectangles.
2011-01-23 14:18:57 -08:00
Romain Guy
c1cd9ba335 Add support for ovals and stroked rectangles.
Change-Id: I1292e241386763c82e6622c8f7ed90b0f5b7bd4f
2011-01-23 14:18:41 -08:00
Dianne Hackborn
ccb9a0a9f0 am 11a5d424: am b149f5c8: Merge "Fix issue #3302006: Cannot see the dialog lunched from a transparent activity." into honeycomb
* commit '11a5d42454fad1f61eb4874855113c5416396888':
  Fix issue #3302006: Cannot see the dialog lunched from a transparent activity.
2011-01-23 12:05:43 -08:00
Dianne Hackborn
11a5d42454 am b149f5c8: Merge "Fix issue #3302006: Cannot see the dialog lunched from a transparent activity." into honeycomb
* commit 'b149f5c8d29cda2f2e46559a68467be89714f737':
  Fix issue #3302006: Cannot see the dialog lunched from a transparent activity.
2011-01-23 12:03:16 -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
Romain Guy
d832d0b240 am 10444a13: am 596ba2fa: Merge "Correctly invalidate views that transition from opaque to non-opaque. Bug #3337037" into honeycomb
* commit '10444a138ae98e940982096d802b2655cef0b645':
  Correctly invalidate views that transition from opaque to non-opaque. Bug #3337037
2011-01-21 19:06:00 -08:00
Romain Guy
10444a138a am 596ba2fa: Merge "Correctly invalidate views that transition from opaque to non-opaque. Bug #3337037" into honeycomb
* commit '596ba2fa791db7ae671bd79c346b54a7ea2f8113':
  Correctly invalidate views that transition from opaque to non-opaque. Bug #3337037
2011-01-21 19:04:17 -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
Adam Powell
61d4504ec6 am a4f8e903: am 5fc3c84f: Merge "Fix bug 3362680 - calendar crash while tabbing among views" into honeycomb
* commit 'a4f8e903c3b4be9a840e0495be5bbfdb2a0a21e1':
  Fix bug 3362680 - calendar crash while tabbing among views
2011-01-21 15:56:08 -08:00
Adam Powell
a4f8e903c3 am 5fc3c84f: Merge "Fix bug 3362680 - calendar crash while tabbing among views" into honeycomb
* commit '5fc3c84f5c465d3f0f435037bd5b92fa8da1f2c2':
  Fix bug 3362680 - calendar crash while tabbing among views
2011-01-21 15:52:12 -08:00
Adam Powell
3cb8b638c4 Fix bug 3362680 - calendar crash while tabbing among views
Remove pending click callbacks when a view is detached from its
window.

Change-Id: I51de184b8e95dbd594675ea6849647586a7c4ba2
2011-01-21 15:34:14 -08:00
Brad Fitzpatrick
b8febbe12e am 8a82de2f: am 4bb180d6: am ded2b006: Merge "frameworks/base: remove redundant code in WindowManager"
* commit '8a82de2fcae11a2a9cba25132c37cad83ccc859f':
  frameworks/base: remove redundant code in WindowManager
2011-01-21 14:40:35 -08:00
Brad Fitzpatrick
8a82de2fca am 4bb180d6: am ded2b006: Merge "frameworks/base: remove redundant code in WindowManager"
* commit '4bb180d62f71658d04a7d6800707de83c10b01a5':
  frameworks/base: remove redundant code in WindowManager
2011-01-21 14:36:43 -08:00
Ken Wakasa
ed19b88fe2 am 6ddec8be: am ccbdf5e8: Merge "Update class doc for InputMethodSubtype" into honeycomb
* commit '6ddec8be1cc23f4b7e8793503420072024884072':
  Update class doc for InputMethodSubtype
2011-01-21 11:00:46 -08:00
Romain Guy
d0417fa04e am 8e2d489a: am 99d49118: Merge "Add support for drawBitmapMesh()." into honeycomb
* commit '8e2d489a868d52a979eed91a13a7605630ac997c':
  Add support for drawBitmapMesh().
2011-01-21 10:59:07 -08:00
Ken Wakasa
6ddec8be1c am ccbdf5e8: Merge "Update class doc for InputMethodSubtype" into honeycomb
* commit 'ccbdf5e838eb44a1920c2c02fcf4190880a3c540':
  Update class doc for InputMethodSubtype
2011-01-20 23:09:34 -08:00
Ken Wakasa
e31e942455 Update class doc for InputMethodSubtype
bug: 3370290
Change-Id: Ib86f81c1a5f6c9acca34b586d810c6e94db1b552
2011-01-21 15:57:37 +09:00