Commit Graph

1128 Commits

Author SHA1 Message Date
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
Dianne Hackborn
cfaf8878de Fix issue #3362484: Can't dismiss activity picker by tapping outside dialog
Change-Id: Idc2fe5a86c61e8f94fe9d902a0087a05f6f7918e
2011-01-18 15:28:41 -08:00
Romain Guy
ba7ac24e4d am a2dcab45: am 89108d5c: Merge "Add support for skew()" into honeycomb
* commit 'a2dcab45d8dbbd9fd8d93720a91f789f18ae4d76':
  Add support for skew()
2011-01-18 12:23:54 -08:00
Romain Guy
a2dcab45d8 am 89108d5c: Merge "Add support for skew()" into honeycomb
* commit '89108d5c311d0cc6879fb41c6392f17c58644fee':
  Add support for skew()
2011-01-18 11:23:07 -08:00
Romain Guy
807daf7df6 Add support for skew()
Change-Id: Ia3a9a867f74fd78b61f75179e3788fdc2f0cacd0
2011-01-18 11:19:19 -08:00
Jeff Brown
0f6226b9f4 Merge "Add joystick support to framework." 2011-01-17 15:57:44 -08:00
Romain Guy
ef1b612ebe am d80d81bb: am a43cfd29: Merge "Improve hardware layers rendering speed when setting a View\'s alpha." into honeycomb
* commit 'd80d81bb65a1e60c0cc1a70959f6a67f55bdd5f0':
  Improve hardware layers rendering speed when setting a View's alpha.
2011-01-17 14:48:15 -08:00
Romain Guy
d80d81bb65 am a43cfd29: Merge "Improve hardware layers rendering speed when setting a View\'s alpha." into honeycomb
* commit 'a43cfd2940d7c887a8130c0e972a1b398a887819':
  Improve hardware layers rendering speed when setting a View's alpha.
2011-01-17 14:45:32 -08:00
Romain Guy
d6cd572df8 Improve hardware layers rendering speed when setting a View's alpha.
Change-Id: Ib1275677f531c60d9919978c5538c663fdb823b5
2011-01-17 14:42:41 -08:00
Jeff Brown
cb1404e456 Add joystick support to framework.
Change-Id: I95374436708752e1a9cff3f85c5b9bc3e0987961
2011-01-17 13:51:00 -08:00
Jeff Brown
c886ff38c7 am fed9d654: am 5cdf0752: Merge "Support non-rectangular input regions." into honeycomb
* commit 'fed9d654e9f769a2d81682121faff01fee11555f':
  Support non-rectangular input regions.
2011-01-16 23:08:18 -08:00
Romain Guy
8675b3f79d am 761ae69b: am 3c372789: Merge "Don\'t dispatchDetachedFromWindow() if the View was not attached." into honeycomb
* commit '761ae69b7cb5639a5f468f258848578a6c8feb72':
  Don't dispatchDetachedFromWindow() if the View was not attached.
2011-01-16 23:00:35 -08:00
Jeff Brown
fed9d654e9 am 5cdf0752: Merge "Support non-rectangular input regions." into honeycomb
* commit '5cdf07524132722e0db69db1ca8dcaf3f0073265':
  Support non-rectangular input regions.
2011-01-16 19:24:17 -08:00
Jeff Brown
5cdf075241 Merge "Support non-rectangular input regions." into honeycomb 2011-01-16 19:22:01 -08:00
Jeff Brown
fbf0977321 Support non-rectangular input regions.
This enables the system bar to carve out a region through which
events will be sent to the IME behind it.

Bug: 3238092
Change-Id: I69b855a8d9b5b3ee525266c0861826e53e5b5028
2011-01-16 18:58:49 -08:00
Romain Guy
761ae69b7c am 3c372789: Merge "Don\'t dispatchDetachedFromWindow() if the View was not attached." into honeycomb
* commit '3c372789ea0b7836c6a9fe4852fac0de3f29fbbf':
  Don't dispatchDetachedFromWindow() if the View was not attached.
2011-01-16 13:30:43 -08:00
Romain Guy
90fc03bc49 Don't dispatchDetachedFromWindow() if the View was not attached.
Change-Id: I36cb697be76c8c03497284563dc339c5367559c6
2011-01-16 13:07:15 -08:00
Romain Guy
720b3ee1b1 am 2be00ccb: am 8dd5b1e5: Prevent NPE when a View is detached without having been attached. Bug #3355252
* commit '2be00ccbe7c8e2aedfa15b6b7c469160734dda15':
  Prevent NPE when a View is detached without having been attached. Bug #3355252
2011-01-16 10:40:38 -08:00
Romain Guy
8dd5b1e531 Prevent NPE when a View is detached without having been attached.
Bug #3355252

Change-Id: I58e03983ccf6a27a24619ec0f49659d6d7cc0a64
2011-01-14 17:28:51 -08:00
Romain Guy
2be00ccbe7 am 8dd5b1e5: Prevent NPE when a View is detached without having been attached. Bug #3355252
* commit '8dd5b1e53184ed3b786dd329e12d665ae59ca3f4':
  Prevent NPE when a View is detached without having been attached. Bug #3355252
2011-01-14 17:28:28 -08:00
Dianne Hackborn
a347733000 am 88471b25: Merge "DO NOT MERGE Added check to make orientation calculations more robust" into honeycomb
* commit '88471b25632818a8bc79193e20bd04a8be39f660':
  DO NOT MERGE Added check to make orientation calculations more robust
2011-01-14 16:03:30 -08:00
Niclas Kellgren
fcbbb31f27 DO NOT MERGE Added check to make orientation calculations more robust
Added check avoid a division by zero resulting in NaN which in turn
makes checkFullyTilted to ignore high tilt angles from then on.
If (x, y, z) == (0, 0, 0) then there is no tilt or rotation and
this vector must be ignored. This check is extended to ignore all
small acceleration values where noise can be of big influence.

Low or zero readings can happen when space travelling free falling,
but more commonly when shaking or getting bad readings from the sensor.
The accelerometer is turned off when not used and polling it too soon
after it is turned on may result in (0, 0, 0).

Change-Id: I7b61b77c8a9d4e137bf6352b84f0c358d93c82ae
2011-01-14 16:01:20 -08:00