67963 Commits

Author SHA1 Message Date
Gilles Debunne
c1e79b45a2 Fix NPE on Activity start in TextView
Bug 6065279

The selection can be created programatically, and mEditor may be null
when it happens.

Make sure mEditor is created to display the selection highlight.

Change-Id: Idd66a5fd4ad327f9b390b539574e6878c794ba4a
2012-02-24 17:40:22 -08:00
Stephen Hines
a16c98c155 Merge "Support running ForEach on non-root functions." 2012-02-23 09:58:56 -08:00
Gilles Debunne
a172b6e969 Merge "Updated min/maxLines and singleLine documentation" 2012-02-23 09:26:25 -08:00
Andreas Huber
05e8074eaa Merge "Add new APIs AMessage::(set|find)Buffer to make it safer to pass" 2012-02-23 09:13:45 -08:00
Jean-Baptiste Queru
812c623563 am ad3102d0: am f3d94b44: am a91b052e: am fc24982a: Merge "Call onTimeChanged when AM/PM changed."
* commit 'ad3102d06bc6060f739e0803d0e45dec8020703b':
  Call onTimeChanged when AM/PM changed.
2012-02-23 08:35:03 -08:00
Tsu Chiang Chuang
453057a9d5 am 7b306ae2: am 90cfe0f2: am 2d559b53: Merge "fix NPE in race condition." into ics-mr1
* commit '7b306ae225b0a7337972f4d8bff51e8f79be3a03':
2012-02-23 08:34:56 -08:00
Tsu Chiang Chuang
541710a9ae am c16d9de7: am a626f8d6: am 2d559b53: Merge "fix NPE in race condition." into ics-mr1
* commit 'c16d9de72996950ec7f55af80d2864cd2abad1c2':
  fix NPE in race condition.
2012-02-23 08:34:44 -08:00
Adam Powell
a4b8a2e4d1 am 49913d8c: am 8035db11: am 482ae5f2: Bug 6021294 - Contextual action bar animation tweaks
* commit '49913d8c60a2add8989435bcda532959e86f99b1':
2012-02-23 07:30:09 -08:00
Adam Powell
1f0f9d28a1 am c0d0dddc: am fef000e3: am 482ae5f2: Bug 6021294 - Contextual action bar animation tweaks
* commit 'c0d0dddc20827846dcf3235f7307ad76d2893ba6':
  Bug 6021294 - Contextual action bar animation tweaks
2012-02-23 07:30:01 -08:00
Jean-Baptiste Queru
68e696b137 am 058bd2ec: am 1d4c4d42: am 44c1f012: Merge "Return error code when composing PDU fails"
* commit '058bd2ecbcf8057511b00685eddc4ff5061bdbc1':
  Return error code when composing PDU fails
2012-02-23 07:29:46 -08:00
Jean-Baptiste Queru
d7170f3262 am 4b3ec09b: am 99ccf407: am c2461eb3: Merge "Add support for bmp and wav content types in MMS"
* commit '4b3ec09b8199d3c70fbb025a73e8f0a46dcd22c9':
  Add support for bmp and wav content types in MMS
2012-02-23 07:29:42 -08:00
The Android Open Source Project
bd06f16077 am e3804813: am f5f5d61c: Reconcile with ics-mr1-release
* commit 'e380481381b8679bf4bd4afb922e82e0a849b2bb':
2012-02-23 07:29:21 -08:00
Jean-Baptiste Queru
00ef7e8f2f am 50ff08a2: am 8a33803d: am a1ee18f1: Merge "Increase PDU parts buffer size for performance reasons"
* commit '50ff08a24e7a94c196f9b5c0b5b9ebdc03064a36':
  Increase PDU parts buffer size for performance reasons
2012-02-23 07:29:15 -08:00
The Android Open Source Project
12c5502612 am a4ea7a8f: am c30fdda0: Reconcile with ics-mr1-release
* commit 'a4ea7a8f204890aee9a50d2e65b410bb443b7149':
2012-02-23 07:29:06 -08:00
Marc Blank
0d1490bd3b am cedcdc98: (-s ours) am d3ea7331: am 094bf51e: Use ' for apostrophe in HTML encoding DO NOT MERGE
* commit 'cedcdc984cf36d3b3aeca359b4866e5680427c51':
2012-02-23 07:28:54 -08:00
Marc Blank
9b99df6ce6 am cdbf0efc: (-s ours) am 970c74ac: am 094bf51e: Use ' for apostrophe in HTML encoding DO NOT MERGE
* commit 'cdbf0efcdc42ea0ef7290c4d73da16f596c8e8be':
  Use ' for apostrophe in HTML encoding DO NOT MERGE
2012-02-23 07:28:51 -08:00
Steve Block
2eb7309388 Merge "Drop support for Android HTTP stack" 2012-02-23 04:29:30 -08:00
Gilles Debunne
0b5a6b2e8a Merge "Fixed comment for selectAllOnFocus" 2012-02-22 18:27:27 -08:00
Gilles Debunne
e58b7f45ec Fixed comment for selectAllOnFocus
Pre-focusable in touch mode ? cursor moves to tapped position.
or previous position when using d-pad/keyboard.

Change-Id: Iac725ff233bfeac2dc14e870118047a9a8418ff9
2012-02-22 18:26:04 -08:00
Gilles Debunne
e35a07050d Updated min/maxLines and singleLine documentation
Bug http://code.google.com/p/android/issues/detail?id=24891

Change-Id: I0b35d2e0583f285f38e14e43563433433a8984d1
2012-02-22 18:24:17 -08:00
George Mount
ebb8e95657 Merge "Characters sent directly to InputConnection treated as changes." 2012-02-22 17:33:03 -08:00
George Mount
6420ec4cd5 Characters sent directly to InputConnection treated as changes.
Bug 6045123

Change-Id: Iab8c1e3c307ec84c4f6934abfa2d0cea726d9efe
2012-02-22 17:23:23 -08:00
Svetoslav Ganov
2822111948 Merge "Add check for no children in VIew hosting virtual view tree." 2012-02-22 16:49:36 -08:00
Svetoslav Ganov
311a63af40 Add check for no children in VIew hosting virtual view tree.
1. For accessibility purposes View may report a virtual tree
   rooted at them to convey the logical structure they draw.
   These are usually custom Views. Such views cannot have
   children and this patch adds a check for that.

bug:6022217

Change-Id: I3795a613b4aef1a7ec5810db8584a11b648870f2
2012-02-22 16:45:10 -08:00
Andreas Huber
5c850396b3 Add new APIs AMessage::(set|find)Buffer to make it safer to pass
ABuffer objects through messages.

Change-Id: I9f8b4e4c4767d0d70a0105e0c0813b754379b49d
2012-02-22 16:20:59 -08:00
George Mount
49cc3d98e2 Merge "Changes that don't map to keys sent as text changes." 2012-02-22 16:02:30 -08:00
Dima Zavin
77d9ee4df6 Merge "libui: add ability to force a framebuffer format for EGL's use" 2012-02-22 16:00:49 -08:00
Dima Zavin
180600dec8 libui: add ability to force a framebuffer format for EGL's use
This does not actually change the framebuffer format. It merely
fakes this format to surfaceflinger so that when it creates
framebuffer surfaces it will use this format. It's really a giant
HACK to allow interworking with buggy gralloc+GPU driver
implementations. You should *NEVER* need to set this for shipping
devices.

Change-Id: I03eeb5b4d72838ef219df386ecc489fc20ab9cc7
Signed-off-by: Dima Zavin <dima@android.com>
2012-02-22 15:44:46 -08:00
John Reck
29cc47e62e Merge "Fix drawing focus node rect in touch mode" 2012-02-22 15:39:23 -08:00
Stephen Hines
473a2048d3 Support running ForEach on non-root functions.
BUG=6000538

Change-Id: Ie2b16893b150cc5955ee4b9d028c988f69a82744
2012-02-22 15:24:29 -08:00
George Mount
592b213608 Merge "Add caret thumb following selection handle logic." 2012-02-22 15:17:00 -08:00
Andreas Huber
0ae6b481e4 Merge "Implementation of a java media codec interface and associated tools." 2012-02-22 15:13:44 -08:00
George Mount
7bc111cc9d Add caret thumb following selection handle logic.
Webkit Change: I3cb0499c5fa3a7de241025d9be04ff44f54f2a74

Change-Id: I669653ca6890fe1136fdd42e24f4c3a34c00d1e4
2012-02-22 15:13:19 -08:00
George Mount
3c30d14560 Changes that don't map to keys sent as text changes.
Bug 6033096

Change-Id: I61da4d398ac140fdacfdd344dc0e2885da907ce0
2012-02-22 15:10:08 -08:00
Andreas Huber
88572f7a3e Implementation of a java media codec interface and associated tools.
Change-Id: I13e54062d4de584355c5d82bb027a68aeaf2923b
2012-02-22 15:06:06 -08:00
Romain Guy
1eec6804d2 Merge "Reduce logs" 2012-02-22 14:36:28 -08:00
Romain Guy
9c10ab03cd Reduce logs
Change-Id: I2768972ec62f4d3ad800a4d7a4c44307a2fa0105
2012-02-22 14:34:58 -08:00
Gilles Debunne
5ca6f9e56f Merge "EditText-specific data extracted from TextView" 2012-02-22 14:30:43 -08:00
Gilles Debunne
60e2186c35 EditText-specific data extracted from TextView
All edit-specific data has been moved to an EditData inner class in TextView.

The instance of this class is created as soon as one of its fields is set to
a non-default value. Regular TextViews (buttons, checkboxes...) should never
have to instantiate the Editor, thus reducing their memory footprint.

Note: this is a debug version. The getEditor() method is here to track
possible problems and should be removed in the final version. Indentation
will be fixed then.

Next step is to extract more methods and classes into Editor and create a
dedicated class for it. mMovement may also be Editor specific.

Change-Id: Ic241953a2fb73213180f300c3609a9e6799aa884
2012-02-22 14:24:56 -08:00
Gilles Debunne
36a5822484 Merge "Added bottom padding in textview's focused rectangle" 2012-02-22 14:18:17 -08:00
John Reck
2b3d842a1c Fix drawing focus node rect in touch mode
Change-Id: I5981d038e48a7218cb5f6dcd09ef909746de158d
2012-02-22 14:11:17 -08:00
Alex Sakhartchouk
8ad41a3fdc Merge "Simplifying programmatic creation." 2012-02-22 14:10:58 -08:00
Alex Sakhartchouk
370dc48650 Merge "Properly pipe texture names through." 2012-02-22 14:10:45 -08:00
James Dong
be3835c64d Merge "Removed out-of-date TODO in video editor performance/stress test cases" 2012-02-22 14:00:38 -08:00
Glenn Kasten
3bf96c9c9a Merge "Avoid wp<>::unsafe_get() with a few exceptions" 2012-02-22 13:22:13 -08:00
Glenn Kasten
685c9ce3bd Avoid wp<>::unsafe_get() with a few exceptions
Avoid using wp<>::unsafe_get() except in a log, and other specific cases
when it's known to be safe.

Use more specific subclass types for parameters to avoid down-casts.

When a constructor or method parameter is "this" of an object that is
currently being constructed, it's better to use a raw pointer rather
than either sp<> or wp<>.

Using the raw pointer is safe, provided either:
 - it is "this" of an object being constructed (which has sp<> refcount of 0),
 - or the caller already holds an sp<>

The raw pointer is simpler and faster, and it avoids the problem of the
sp<> reference count being incremented and then decremented to zero on
scope exit, which would cause the object's destructor to run while the
object is still being constructed.

Also removed some dead code per a review comment.

Change-Id: I7375f64da3aec11b928c33cb01faff186252ef5e
2012-02-22 13:19:26 -08:00
Eric Fischer
c185ca6dda Merge "Import translations. DO NOT MERGE" 2012-02-22 13:17:22 -08:00
Glenn Kasten
8c5ecd6af5 Merge "Fix build warning" 2012-02-22 13:14:50 -08:00
Eric Fischer
8f8bcc26c7 Import translations. DO NOT MERGE
Change-Id: I5f20bf25b80b45f83abf272590b6557d6d858001
2012-02-22 13:09:01 -08:00
Daisuke Miyakawa
c4bec73f3b Merge "Remove the entire PIM directory." 2012-02-22 13:06:58 -08:00