Commit Graph

1149 Commits

Author SHA1 Message Date
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
Christopher Tate
5383d077ed Merge "Fix a couple of drag & drop crashes" into honeycomb 2011-01-19 13:51:58 -08:00
Romain Guy
741fbc13d2 am 2c197a07: am 9335f5b2: Merge "Make embedded hardware layers work. Bug #3369474" into honeycomb
* commit '2c197a0708dc3cb26c335371b572a3c47ca33736':
  Make embedded hardware layers work. Bug #3369474
2011-01-19 13:44:36 -08:00
Romain Guy
2c197a0708 am 9335f5b2: Merge "Make embedded hardware layers work. Bug #3369474" into honeycomb
* commit '9335f5b2fde244614184f45d29cc574d1ba8cbba':
  Make embedded hardware layers work. Bug #3369474
2011-01-19 13:42:33 -08:00
Romain Guy
9335f5b2fd Merge "Make embedded hardware layers work. Bug #3369474" into honeycomb 2011-01-19 13:40:43 -08:00
Romain Guy
42f3a4b7c3 Make embedded hardware layers work.
Bug #3369474

Change-Id: Ib6d7fb44eedda9dc2933b5e1b176f307968af91d
2011-01-19 13:42:26 -08:00
Christopher Tate
1fc014fd00 Fix a couple of drag & drop crashes
1. ViewGroups being removed from the layout during a drag would wind up
crashing the app with an NPE at drag-ended time, due to blind dereference
of now-cleared object pointers.

2. Passing a 'null' ClipData to startDrag() would crash the system
process with an NPE.  Should this even be valid?  I'm inclined to say
yes, though it means that apps will need to guard against it.

Fixes bug 3369542

Change-Id: I168fc1284d6fd4403999946609725414cf254df0
2011-01-19 13:02:24 -08:00
Eric Laurent
033b5f63c1 am 28e8c942: am 10f4ffe9: Merge "Issue 3315999: catch ToneGenerator exceptions." into honeycomb
* commit '28e8c9423c1e8ac8f5d945f6f7742511e58dac57':
  Issue 3315999: catch ToneGenerator exceptions.
2011-01-19 12:22:13 -08:00
Eric Laurent
28e8c9423c am 10f4ffe9: Merge "Issue 3315999: catch ToneGenerator exceptions." into honeycomb
* commit '10f4ffe9619ca3a943e3460d8bb7b5441575a173':
  Issue 3315999: catch ToneGenerator exceptions.
2011-01-19 12:19:51 -08:00
Eric Laurent
733a42b24b Issue 3315999: catch ToneGenerator exceptions.
When the AudioFlinger runs out of available AudioTracks (max 32),
the ToneGenerator constructor throws a RuntimeException. Although this
denotes an abnormal situation, VolumePanel should catch this exception.

Change-Id: Ida1312fe4857e99a0ef38b4013cb03e819405689
2011-01-19 12:16:19 -08:00
Romain Guy
9afbd5654d am 3e4f4b88: am 064f6ad3: Merge "Recreate the EGL surface when ViewRoot\'s surface changes. Bug #3306150" into honeycomb
* commit '3e4f4b88571a07ea08b8f6c8e98dc600dbe84f61':
  Recreate the EGL surface when ViewRoot's surface changes. Bug #3306150
2011-01-18 22:01:17 -08:00
Dianne Hackborn
310ae9b39c am fe86e979: am 661b6cfb: Merge "Okay, new plan for dialogs." into honeycomb
* commit 'fe86e9793ce62c6a1aa34e5712f16b45800efdd0':
  Okay, new plan for dialogs.
2011-01-18 22:00:21 -08:00
Christopher Tate
a953359db5 am 31cd02ad: am 17ed60c3: API CHANGE: add a no-View ctor for DragShadowBuilder
* commit '31cd02ade3dd85c676bb278a1c2181f57179c390':
  API CHANGE: add a no-View ctor for DragShadowBuilder
2011-01-18 21:58:32 -08:00
Dianne Hackborn
7fc5d4b8e7 am 2ec5a716: am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb
* commit '2ec5a7160b3d32887b2428edef7a751ee3700809':
  Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
2011-01-18 21:56:45 -08:00
Romain Guy
3e4f4b8857 am 064f6ad3: Merge "Recreate the EGL surface when ViewRoot\'s surface changes. Bug #3306150" into honeycomb
* commit '064f6ad3928c51996359694c00a580115b2dabfc':
  Recreate the EGL surface when ViewRoot's surface changes. Bug #3306150
2011-01-18 18:41:29 -08:00
Dianne Hackborn
fe86e9793c am 661b6cfb: Merge "Okay, new plan for dialogs." into honeycomb
* commit '661b6cfb2bcecdd335540db7059e5d8e22c2e79a':
  Okay, new plan for dialogs.
2011-01-18 18:40:22 -08:00
Christopher Tate
31cd02ade3 am 17ed60c3: API CHANGE: add a no-View ctor for DragShadowBuilder
* commit '17ed60c3d2e480ab9788b445958a22b9ae7b6e96':
  API CHANGE: add a no-View ctor for DragShadowBuilder
2011-01-18 18:36:06 -08:00
Romain Guy
2a83f001fd Recreate the EGL surface when ViewRoot's surface changes.
Bug #3306150

Change-Id: Ifbf0ab9deca7a34eff7d844ea7276d12d7284788
2011-01-18 18:28:21 -08:00
Romain Guy
064f6ad392 Merge "Recreate the EGL surface when ViewRoot's surface changes. Bug #3306150" into honeycomb 2011-01-18 18:26:22 -08:00
Dianne Hackborn
661b6cfb2b Merge "Okay, new plan for dialogs." into honeycomb 2011-01-18 17:48:22 -08:00
Dianne Hackborn
ef57575887 Okay, new plan for dialogs.
Don't dismiss by default when tapping outside, even for AlertDialog.

If AlertDialog doesn't have any buttons, tapping outside will dismiss it.

Applications can make their own dialogs (or activities looking like
dialogs) can use the existing and new APIs to control this behavior
themselves so that it does the right thing.

Change-Id: I02bfb9161e169de0033200211b3a7ec80080bd83
2011-01-18 17:35:17 -08:00
Christopher Tate
17ed60c3d2 API CHANGE: add a no-View ctor for DragShadowBuilder
Cf conversation with the API council.  Also expand the javadoc
a bit.

Change-Id: I9d4edb1042e00492b3db5c6bb7c7d9648581efad
2011-01-18 16:07:06 -08:00
Dianne Hackborn
2ec5a7160b am 36c84403: Merge "Fix issue #3362484: Can\'t dismiss activity picker by tapping outside dialog" into honeycomb
* commit '36c84403ec07439d11ed284ac5f9a9db807fbf92':
  Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
2011-01-18 15:32:44 -08:00
Dianne Hackborn
36c84403ec Merge "Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog" into honeycomb 2011-01-18 15:31:21 -08:00