Commit Graph

1177 Commits

Author SHA1 Message Date
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
Romain Guy
8e2d489a86 am 99d49118: Merge "Add support for drawBitmapMesh()." into honeycomb
* commit '99d49118b857df4051a864b35254e275bc8a68b6':
  Add support for drawBitmapMesh().
2011-01-20 21:42:40 -08:00
Romain Guy
99d49118b8 Merge "Add support for drawBitmapMesh()." into honeycomb 2011-01-20 19:07:28 -08:00
Romain Guy
5a7b466a2b Add support for drawBitmapMesh().
Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
2011-01-20 19:09:30 -08:00
Dianne Hackborn
4789b873a6 am 8a545b9e: am e69e0fde: Merge "Fix issue #3374356: Buttons sometimes don\'t highlight" into honeycomb
* commit '8a545b9e3f67fedcb18f3ab9de00e8003a7fcd51':
  Fix issue #3374356: Buttons sometimes don't highlight
2011-01-20 17:26:21 -08:00
Christopher Tate
3e09d42b2b am 9424bfa9: am 7fb8b565: Include the local state obj in ACTION_DRAG_STARTED events
* commit '9424bfa91dd5686187d0e9611c17851dae580f52':
  Include the local state obj in ACTION_DRAG_STARTED events
2011-01-20 17:25:50 -08:00
Dianne Hackborn
8a545b9e3f am e69e0fde: Merge "Fix issue #3374356: Buttons sometimes don\'t highlight" into honeycomb
* commit 'e69e0fde6cf0e6302d5a05363a3db7a9c555e9dc':
  Fix issue #3374356: Buttons sometimes don't highlight
2011-01-20 17:07:31 -08:00
Christopher Tate
9424bfa91d am 7fb8b565: Include the local state obj in ACTION_DRAG_STARTED events
* commit '7fb8b565f9cd2ec6a63ff4d8a89f98f68a1a138c':
  Include the local state obj in ACTION_DRAG_STARTED events
2011-01-20 17:05:57 -08:00
Dianne Hackborn
e69e0fde6c Merge "Fix issue #3374356: Buttons sometimes don't highlight" into honeycomb 2011-01-20 15:38:14 -08:00
Dianne Hackborn
be1f62260a Fix issue #3374356: Buttons sometimes don't highlight
On touch up, View would move itself to the pressed state if it
hadn't already shown as pressed.  However, it did this *after*
scheduling the message to deliver the onClick().  Thus if the
app took a little too long to execute inside of onClick(), the
invalidate to draw the highlight state would be executed right
before the following message to remove the highlight state,
causing it to basically not be shown.

This change just does the invalidate before scheduling the
onClick, so we can be sure it gets done first.

Change-Id: I6a4d1742a3aab60969c38b44bb3e163f48de62d4
2011-01-20 15:24:28 -08:00
Christopher Tate
7fb8b565f9 Include the local state obj in ACTION_DRAG_STARTED events
Fixes bug 3362502

The underlying cause was that the DragEvent.obtain() variant which
clones an existing event was failing to copy the local state field.

This change also moves the logic for inserting the local state object
into DragEvents about to be dispatched from the Binder incall thread
into the main-thread code sequence.  This is to eliminate any potential
SMP memory coherency issues around drag start vs incoming events
needing to refer to the local state object.

Change-Id: I368e8936dbf8a00b7d5cc19c2ef0101bd75b6b2d
2011-01-20 13:53:17 -08:00
Romain Guy
571f76a24e am cff27e52: am c8219299: Merge "Remove unnecessary code." into honeycomb
* commit 'cff27e523d68f72012bd908bac1a78cbb5b0a7e9':
  Remove unnecessary code.
2011-01-20 11:41:18 -08:00
Romain Guy
cff27e523d am c8219299: Merge "Remove unnecessary code." into honeycomb
* commit 'c8219299b0003793cee8049b96a3bf7530765eea':
  Remove unnecessary code.
2011-01-20 11:39:18 -08:00
Romain Guy
c8219299b0 Merge "Remove unnecessary code." into honeycomb 2011-01-20 11:37:22 -08:00
Romain Guy
ff26a0c1c9 Remove unnecessary code.
Change-Id: I83eba3406c26a4028af08b4d4c95ecd02803e75a
2011-01-20 11:39:09 -08:00
Ken Wakasa
f41e1af8c0 am 7fff9d8e: am 586f0513: Refine InputMethodInfo API
* commit '7fff9d8e0489455363eb2d70111b7164adab46ff':
  Refine InputMethodInfo API
2011-01-20 08:16:05 -08:00
Ken Wakasa
7fff9d8e04 am 586f0513: Refine InputMethodInfo API
* commit '586f051375d8d7aeece05329921f9f66fc6164cb':
  Refine InputMethodInfo API
2011-01-20 08:14:19 -08:00
Ken Wakasa
586f051375 Refine InputMethodInfo API
bug: 3370297
Change-Id: I2a18f3bdbe2fccb22e22cdae0f75aec5c703ad6d
2011-01-21 01:02:58 +09:00
Romain Guy
91d61c6b31 am 821b82aa: am ed8f8dd8: Merge "Add rounded rects and circles support to OpenGLRenderer." into honeycomb
* commit '821b82aaa1071b9ad69596ce0d0fae596ab1b171':
  Add rounded rects and circles support to OpenGLRenderer.
2011-01-19 21:57:26 -08:00
Romain Guy
821b82aaa1 am ed8f8dd8: Merge "Add rounded rects and circles support to OpenGLRenderer." into honeycomb
* commit 'ed8f8dd8cf621d6046db7e083f8a36205ed55609':
  Add rounded rects and circles support to OpenGLRenderer.
2011-01-19 21:54:34 -08:00
Romain Guy
ed8f8dd8cf Merge "Add rounded rects and circles support to OpenGLRenderer." into honeycomb 2011-01-19 21:52:49 -08:00
Romain Guy
01d58e43ed Add rounded rects and circles support to OpenGLRenderer.
Change-Id: I6cedf2b495d58de7c0437096809fa9e4518a1b8c
2011-01-19 21:55:10 -08:00
Jeff Brown
c0d4062965 am e200420e: am d49f3e00: Merge "Rename KeyCharacterMap.UnavailableException." into honeycomb
* commit 'e200420e168ae135f6e87ee3a1abd44c971a1fe4':
  Rename KeyCharacterMap.UnavailableException.
2011-01-19 18:00:50 -08:00
Jeff Brown
e200420e16 am d49f3e00: Merge "Rename KeyCharacterMap.UnavailableException." into honeycomb
* commit 'd49f3e0078a79804e8dbd455c92786977a686020':
  Rename KeyCharacterMap.UnavailableException.
2011-01-19 17:58:32 -08:00
Jeff Brown
7e1e21fdc5 Rename KeyCharacterMap.UnavailableException.
Bug: 3370261
Change-Id: I5cdca8ef2300b70b7a0fcc7e2c26765079645ecc
2011-01-19 17:32:50 -08:00
Christopher Tate
ef3f7bd356 am 67265808: am 28f0a53a: Merge "Fail more gracefully when window state changes during drags" into honeycomb
* commit '67265808c10e53f305f59a65911d7bfcd82151a6':
  Fail more gracefully when window state changes during drags
2011-01-19 16:45:48 -08:00
Christopher Tate
67265808c1 am 28f0a53a: Merge "Fail more gracefully when window state changes during drags" into honeycomb
* commit '28f0a53a882a39bc22bc5892250411cadf6c0d5d':
  Fail more gracefully when window state changes during drags
2011-01-19 16:43:14 -08:00
Christopher Tate
28f0a53a88 Merge "Fail more gracefully when window state changes during drags" into honeycomb 2011-01-19 16:41:14 -08:00
Christopher Tate
f01af7551b Fail more gracefully when window state changes during drags
In particular, if a new window was created out from under the drag,
the drag-move event dispatch logic would wind up blithly assuming
that it would find a valid touch-dispatchable window under the
finger.  When this was untrue, it would NPE, but the NPE was caught
and discarded safely by higher-level guard code.

With this change, we now avoid the NPE entirely and report the
spurious condition as part of the debugging log stream.

(Also add the local-state object to DragEvent.toString()'s output.)

Change-Id: Idfa5f45d049e48415ee59c8b0ffb5b0ed4098ce3
2011-01-19 16:25:22 -08:00
Gilles Debunne
73ed89571c am 8d2480ca: am 0c44d1db: Merge "Race condition patched in Email autocompletion." into honeycomb
* commit '8d2480ca39502e1378a19a5cd28c2319d1e0c59f':
  Race condition patched in Email autocompletion.
2011-01-19 16:12:09 -08:00
Gilles Debunne
8d2480ca39 am 0c44d1db: Merge "Race condition patched in Email autocompletion." into honeycomb
* commit '0c44d1dbb152ed16df4eb2af39157f3d281323d9':
  Race condition patched in Email autocompletion.
2011-01-19 16:09:43 -08:00
Gilles Debunne
be2c4f92a9 Race condition patched in Email autocompletion.
Bug 3347962

Root cause of this problem: if the adapter's content gets updated by a backgroung
thread, the PopupDataSetObserver will call showDropDown which will popup the
list.

Added a flag to make this call show the popup iif it is already visible.
This relayout is needed to clear the mDataChanged flag set when the content was
modified and which otherwise prevents touch events on the result list.

ArrayAdapter didn't use its lock to protect access to mObject.

-------------------------------------------------

However, the study of the this race conditions revealed an other bug:

Updated adapter's content is not displayed in filtered AutoCompleteTextView
Bug 3369097

Change-Id: Icd90d452f98231866f4d8a1f6994c1492febecb9
2011-01-19 15:10:09 -08:00
Romain Guy
cf4b6c7cd6 am 1aae1c2a: am 8f36bedc: Merge "Don\'t attempt to create empty layers. Bug #3369888" into honeycomb
* commit '1aae1c2a9ba7ad229e8c2ba8ad1befc598986e57':
  Don't attempt to create empty layers. Bug #3369888
2011-01-19 14:41:29 -08:00
Romain Guy
1aae1c2a9b am 8f36bedc: Merge "Don\'t attempt to create empty layers. Bug #3369888" into honeycomb
* commit '8f36bedcf3fd3b5b3e5746af689b9915d506365f':
  Don't attempt to create empty layers. Bug #3369888
2011-01-19 14:38:04 -08:00
Romain Guy
8f36bedcf3 Merge "Don't attempt to create empty layers. Bug #3369888" into honeycomb 2011-01-19 14:36:22 -08:00
Romain Guy
514fb18827 Don't attempt to create empty layers.
Bug #3369888

Change-Id: Ic17bbd1c04bbf760cb17d0eb9e6767fd6479948c
2011-01-19 14:38:29 -08:00
Christopher Tate
22da4dd48e am 714066d8: am 5383d077: Merge "Fix a couple of drag & drop crashes" into honeycomb
* commit '714066d873b70098c09c2c094d374781b12d65a2':
  Fix a couple of drag & drop crashes
2011-01-19 13:55:55 -08:00
Christopher Tate
714066d873 am 5383d077: Merge "Fix a couple of drag & drop crashes" into honeycomb
* commit '5383d077ed79e9fec95361046fcd7491ee9a0fd4':
  Fix a couple of drag & drop crashes
2011-01-19 13:53:42 -08:00