28497 Commits

Author SHA1 Message Date
Fabrice Di Meglio
cd4161b134 Fix bug #5371909 Hebrew & Arabic mails are sent as LTR intead of RTL
- make paragraphs aware of text direction

Change-Id: I0b0cf5a47c7da870dea836cb6150aa83e9de0e90
2012-02-29 11:15:07 -08:00
Gilles Debunne
f17981b33b Merge "Vibrate on long press, even out of text" 2012-02-29 10:59:56 -08:00
George Mount
b290caafa7 Merge "Add support for maxlength text fields to WebViewInputConnection." 2012-02-29 07:17:12 -08:00
Fabrice Di Meglio
3fb824bae3 Fix bug #5217606 LocaleUtils constants TEXT_LAYOUT_DIRECTION_LTR_DO_NOT_USE and TEXT_LAYOUT_DIRECTION_RTL_DO_NOT_USE should be renamed
- replace them by the View constants

Change-Id: I7c2bf0213319247d3db369b6f7c36771fdf3e509
2012-02-28 18:08:11 -08:00
Gilles Debunne
1b3d01de38 Merge "InputConnection is warned when finished" 2012-02-28 18:05:28 -08:00
SeongJae Park
95148495fc Set width of spinner's dropdown to fit on device
Commit for issue at
http://code.google.com/p/android/issues/detail?id=25916&colspec=ID%20Type%20Status%20Owner%20Summary%20Stars&start=100

[Problem]
Dropdown popup of Spinner become wider than device's width if selected
item's content's width is larger than device's screen.

[Cause]
Spinner just display dropdown popup with measured content's width
although measured content's width is wider than device's screen.

[Solution]
If calculated content's width is wider than device's screen, set width
of spinner's dropdown popup to fit on device.

Change-Id: I3276e5ff745c6ba1437c07fc55645d6b53fef89a
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
2012-02-29 10:48:11 +09:00
Jake Hamby
0c49f03a04 Add support for CMAS warning notifications over CDMA.
Refactor SMS Cell Broadcast support to enable receiving CMAS warning
notifications over CDMA. The CellBroadcastReceiver app must also be
updated with the corresponding change. All cell broadcasts are now
delivered as a Parcelable SmsCbMessage object in the "message" extra
of the SMS_CB_RECEIVED_ACTION or SMS_EMERGENCY_CB_RECEIVED_ACTION,
instead of as a GSM/UMTS "pdu" byte array.

Existing functionality for ETWS and CMAS alerts over GSM/UMTS continues
to be supported using the new radio-technology independent SmsCbMessage
and related objects. Test cases are added to verify that valid and
invalid broadcast data is handled appropriately.

Unit testing discovered a bug in the BitwiseOutputStream utility class
used by the added test cases. When the BitwiseOutputStream object must be
expanded (in the private possExpand() method), the mEnd field is not
updated to the new array size. This causes a new array to be allocated
on every new write, and for all data beyond the original array allocation
to be replaced with zeroes. Fixed by adding a line to possExpand() to
update mEnd. Added a test case to BitwiseStreamsTest to verify the fix.
Besides the test cases, BitwiseOutputStream is only used by BearerData in
two places, both of which allocate a sufficient initial buffer. So the
bug in BitwiseOutputStream is not critical to fix for normal operation,
but should be fixed so that the test cases using it function correctly.

Bug: 5856308
Change-Id: Ie3e6af747976ce9b8a3e71e76fec71709cf86545
2012-02-28 16:49:17 -08:00
Robert Ly
e6c118b5d0 am 61a9a83a: am 40226da7: am f4994b3e: Merge "fix bug 5911175" into ics-mr1
* commit '61a9a83ac09246f815806fa4f64cc65a7e876f96':
  fix bug 5911175
2012-02-28 15:45:40 -08:00
Robert Ly
61a9a83ac0 am 40226da7: am f4994b3e: Merge "fix bug 5911175" into ics-mr1
* commit '40226da7aeb705fb823517f74739bf2f25fa86f3':
  fix bug 5911175
2012-02-28 15:42:32 -08:00
Robert Ly
40226da7ae am f4994b3e: Merge "fix bug 5911175" into ics-mr1
* commit 'f4994b3eb03e1e772d7d46e8b6dcfc88593db792':
  fix bug 5911175
2012-02-28 15:39:39 -08:00
Robert Ly
f4994b3eb0 Merge "fix bug 5911175" into ics-mr1 2012-02-28 15:37:21 -08:00
Gilles Debunne
3e804a615d Merge "Removed TextAlign in TextView" 2012-02-28 15:32:04 -08:00
George Mount
6012edec28 Add support for maxlength text fields to WebViewInputConnection.
Bug 6083776
 While WebKit limits the length of a field with maxlength, the
 InputConnection can get out of sync with it when it doesn't
 recognize that the characters haven't been changed. Adds
 maximum field length to WebViewInputConnection to limit the
 characters typed.
 WebKit Change: Ie02f82a3f5b3527c378938d93bac2dece802af26

Change-Id: I135871db7809e8dc28a3ad8d3aa852976a274555
2012-02-28 15:27:26 -08:00
Jeff Sharkey
8097e1c567 Merge "Disable verbose NetworkStats logging." 2012-02-28 15:14:19 -08:00
Jeff Sharkey
e7bb71d269 Disable verbose NetworkStats logging.
Bug: 6076584
Change-Id: I4efcda2b474f623f4fe70db8b43b0aa69017d749
2012-02-28 15:13:08 -08:00
Michael Jurka
a267f0a707 Merge "Add shortcut for voice search" 2012-02-28 14:40:33 -08:00
Michael Jurka
7a3489552c Add shortcut for voice search
On phones with soft nav bar, make long press on
home launch a voice search intent

Change-Id: I69840a96a08524a76e33a306b799222c879db095
2012-02-28 14:37:35 -08:00
Fabrice Di Meglio
ff40ab7a41 Fix bug #5180841 TextLayoutCache needs to support Indic
- add Tamil and Devanagari shaping support

Change-Id: I331ec52cd1987e157100deb699db27f855881c32
2012-02-28 14:35:48 -08:00
felipeal
96236bc8d9 am fa73815e: am e4ef9b1a: DO NOT MERGE (from master: Fixed minor typo on Javadoc)
* commit 'fa73815e1d953e67c635877440e717dc84465d97':
  DO NOT MERGE (from master: Fixed minor typo on Javadoc)
2012-02-28 14:07:26 -08:00
felipeal
fa73815e1d am e4ef9b1a: DO NOT MERGE (from master: Fixed minor typo on Javadoc)
* commit 'e4ef9b1ac2c4d7a1deb25f575e341255369c5c3b':
  DO NOT MERGE (from master: Fixed minor typo on Javadoc)
2012-02-28 14:04:20 -08:00
Eric Fischer
cb4c17d27a Merge "Import translations. DO NOT MERGE" 2012-02-28 13:55:24 -08:00
felipeal
e4ef9b1ac2 DO NOT MERGE
(from master: Fixed minor typo on Javadoc)

Change-Id: I7d62e37011a7fd4d792fdfe5bd62022a850303a6
2012-02-28 13:47:15 -08:00
Jeff Sharkey
c81ec3637b Merge "Suppress StrictMode in handleBindApplication()." 2012-02-28 13:21:04 -08:00
Eric Fischer
604a7d4e26 Import translations. DO NOT MERGE
Change-Id: If4aaaf59012a1e6b799e3020a98f6f71117d5895
2012-02-28 12:13:13 -08:00
Jeff Sharkey
7c5016787e Suppress StrictMode in handleBindApplication().
Allow disk access during application and provider setup.  This could
block processing ordered broadcasts, but later processing would
probably end up doing the same disk access.

Bug: 6083825
Change-Id: I80f383063cedba2b099c78465134faa811e898d8
2012-02-28 12:11:29 -08:00
John Reck
42fb45588f Merge "Fix cursorRingBounds NPE" 2012-02-28 11:40:00 -08:00
John Reck
c2baeffe00 Merge "Fix NPE" 2012-02-28 11:38:56 -08:00
John Reck
5528d7ccd1 Fix cursorRingBounds NPE
Bug: 6083657

Change-Id: I0aa30bc1df266b2f74b0fedfb635b71d63638fdb
2012-02-28 11:29:29 -08:00
John Reck
79d99bebc1 Fix NPE
Bug: 6083360

Change-Id: I8d4a4cfb4ca0bbefd848a6ed7a628bc3838e4f91
2012-02-28 11:21:17 -08:00
Gilles Debunne
9f102ca592 Vibrate on long press, even out of text
Bug 6073057

Change-Id: I53441f365419aa1ae4d51e03efff46697059d38a
2012-02-28 11:15:56 -08:00
Svetoslav Ganov
69db4df487 am 0c96daa5: am 0c7ffac4: am a2b41b43: NumberPicker showing IME when its input field gains focus.
* commit '0c96daa5d5a1ef778ad1ef4619ef1fa4c30519c6':
  NumberPicker showing IME when its input field  gains focus.
2012-02-28 10:41:42 -08:00
Svetoslav Ganov
8f4582a278 am c78f1217: am a2b41b43: NumberPicker showing IME when its input field gains focus.
* commit 'c78f121716ff7d4cbf8a70519a266ae030942751':
  NumberPicker showing IME when its input field  gains focus.
2012-02-28 10:39:17 -08:00
Svetoslav Ganov
0c96daa5d5 am 0c7ffac4: am a2b41b43: NumberPicker showing IME when its input field gains focus.
* commit '0c7ffac4caf413bd5fef2002079ec1d4bff2bc37':
  NumberPicker showing IME when its input field  gains focus.
2012-02-28 10:38:39 -08:00
Svetoslav Ganov
0c7ffac4ca am a2b41b43: NumberPicker showing IME when its input field gains focus.
* commit 'a2b41b438d45570867e4682c0caaf93ace5e712e':
  NumberPicker showing IME when its input field  gains focus.
2012-02-28 10:35:43 -08:00
Svetoslav Ganov
c78f121716 am a2b41b43: NumberPicker showing IME when its input field gains focus.
* commit 'a2b41b438d45570867e4682c0caaf93ace5e712e':
  NumberPicker showing IME when its input field  gains focus.
2012-02-28 10:35:18 -08:00
Mathias Agopian
3169e4bd15 Merge "move CursorWindow from libbinder to libandroidfw" 2012-02-27 19:48:21 -08:00
Mathias Agopian
49d2b1864c move CursorWindow from libbinder to libandroidfw
Change-Id: I3b304e4f74e0d0ec8b20c57296c62449c9a0f792
2012-02-27 18:11:20 -08:00
Jeff Sharkey
6f9d697d83 Merge "Move NetworkStatsFactory to faster ProcFileReader." 2012-02-27 18:09:29 -08:00
Jeff Sharkey
1d29a3064f Move NetworkStatsFactory to faster ProcFileReader.
Less GC overhead, and about 8x faster parse times.  Verified that
tests pass.

Change-Id: Iff1d374f36103395a193176a88a57eebffa93c56
2012-02-27 18:08:13 -08:00
Jeff Sharkey
d3b0b5df3f Merge "Suppress StrictMode when reading /proc/ files." 2012-02-27 17:44:09 -08:00
Jeff Sharkey
453dafa663 Suppress StrictMode when reading /proc/ files.
Bug: 6077051
Change-Id: If4f23e947d8b91f9f124baa0460600a6b9353732
2012-02-27 17:42:34 -08:00
Adam Powell
bce4d98609 Merge "View pressed state dispatching tweaks" 2012-02-27 17:38:51 -08:00
Svetoslav Ganov
a2b41b438d NumberPicker showing IME when its input field gains focus.
1. The NumberPicker was showing the IME if the input field
   gets focus and hiding it when the the arrows are pressed.
   The leads to a nasty behavior when the input is the first
   focusable and the uses presser an arrow button. In such
   a case the IME shows and hides on every arrow press pushing
   the window content up and down - this looks pretty ugly.
   Now the IME is show on double tap of the input field.

2. The NumberPicker input now by default has an IME action
   done, hence after editing it the IME goes away.

3. The NumberPicker input now clears focus when it gets
   IME action done, so the last picker in a sequence
   does not show selection which is focus driven.

4. NumberPicker was incorrectly detecting double tap to
   begin edit and it was possble to start edit on singe tap
   if the user has double tapped before to start an edit.
   Now double tap detection is using the double tap timeout
   correctly.

bug:6071977

Change-Id: I0ff5a491064e51663b3abec675d839d0a65b986a
2012-02-27 17:32:54 -08:00
felipeal
2b4d6517b4 Merge "Fixed minor typo on Javadoc" 2012-02-27 16:39:50 -08:00
Adam Powell
035a1fcd5e View pressed state dispatching tweaks
Bugs 6075823, 6050563

Revise pressed state dispatch logic:

Only propagate pressed state to non-clickable views. This should
eliminate the "double glow" problem in some list items where a
clickable child button has a secondary glow along with a clickable
parent. This only applies to setPressed(true) calls; setPressed(false)
must propagate. Don't early-out in setPressed to support this use
case.

Change-Id: Ibbe2309f5030282fad8d23e4a9bc4616b3f5dc7c
2012-02-27 16:30:19 -08:00
Alon Albert
5312d0805c Merge "Add new Reminder Method: Alarm" 2012-02-27 16:29:55 -08:00
Tom Taylor
2dc6c7fa48 Remove deleted pdu items from the updated cache
When pdu's are removed from the PduCache, make sure we remove
them from the list of pdu's currently being updated as well.

Change-Id: I45dde4a09d74019a344fca31e3926b1ece6c393d
2012-02-27 16:05:07 -08:00
Eric Fischer
2b1769fe26 Merge "Import translations. DO NOT MERGE" 2012-02-27 15:41:31 -08:00
Gilles Debunne
528e6dda42 Merge "Selection highlight made possible with no editor" 2012-02-27 15:30:57 -08:00
Gilles Debunne
0ca95700b1 Merge "Fix for NPE on long press to start a selection on text." 2012-02-27 15:30:37 -08:00