117 Commits

Author SHA1 Message Date
Dianne Hackborn
e4fbd6235c AI 143318: am: CL 143169 am: CL 142870 Fix issue #1724917 (Applications (browser, maps, gmail) fail to retain their landscape state after coming out of sleep mode). We now rely on the listeners last known orientation, and make sure to clear it when enabling/disabling.
Also do most of the work for issue #1732012 (Only show screen rotation animation when triggered by sensor).  This just needs to be hooked up to the surface flinger API when that appears.
  Original author: hackbod
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143318
2009-03-27 18:09:16 -07:00
Eric Fischer
423f0e4205 AI 143314: am: CL 143165 am: CL 142861 Make TextView Emoji scale to match the size of the text.
Original author: enf
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143314
2009-03-27 18:04:12 -07:00
Suchi Amalapurapu
94befd1be9 AI 143311: am: CL 143162 am: CL 142858 Fix framework orientation issues
Define orientation limits for various cases.
  Values between 235 and 295 are considered landscape,
  0 - 60 are considered portrait.
  0-235 are ignored since we don't support Surfaces for 180 and 270 yet.
  A linear threshold value is calculated for values between 265 and 355 to switch between landscape and portrait.(different for both cases)
  Based on current mode we not only calculate the threshold but also compare accordingly based on increasing or decreasing orientation
  BUG = 1734325
  Original author: asuchitra
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143311
2009-03-27 18:00:44 -07:00
Jeffrey Sharkey
f5f8d247d1 AI 143308: am: CL 143159 am: CL 142855 Fix SHOW_OR_CREATE intent to correctly handle duplicate E-mail or IM entries for a person.
Added a new WITH_EMAIL_OR_IM_FILTER_URI to find people with a given string as either an E-mail or IM address.  This cleans up the original code, and lets us handle duplicates when there are multiple ContactMethod matches for a single person.  (We don't get GROUP BY through the ContentProvider interface.)
  In ContactsListActivity we don't show possibly-incorrect labels when in MODE_QUERY_PICK_TO_VIEW, as any labels and values would be identical.  (The people appearing in that list are there because their ContactMethod matches the query.)
  Original author: jsharkey
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143308
2009-03-27 17:57:15 -07:00
Michael Chan
da53eca79e AI 143298: am: CL 143150 Fixed the problem where setEnabled(false) has no effect from onResume().
The problem was that the Preference widget was reenabled when its dependency
  was in enabled state. The enabled field was basically overloaded.  The fix was
  to add an additional field to keep track of whether its dependencies were met.
  Original author: chanm
  Merged from: //branches/donutburger/...

Automated import of CL 143298
2009-03-27 17:46:36 -07:00
Jean-Baptiste Queru
bf62297bd1 AI 143296: Merge from donut Change 143147
Automated import of CL 143296
2009-03-27 17:43:53 -07:00
Romain Guy
604ed546b7 AI 143281: am: CL 142990 Fixes #1739360. SimpleCursorAdapter was calling (unnecessarily) toString() on the Cursor even in the case where a ViewBinder was being used. This could cause crashes when the cursor was currently on a blob. This change defers the String conversion to the case where no ViewBinder is used.
Original author: romainguy
  Merged from: //branches/donutburger/...

Automated import of CL 143281
2009-03-27 16:58:23 -07:00
Ed Heyl
a2debb356d AI 143278: Merge 142826: Add tutorial to platform. The tutorial can be launched with the new Intent ACTION_SYSTEM_TUTORIAL and
is available through Settings->About->System Tutorial

Automated import of CL 143278
2009-03-27 16:52:45 -07:00
Romain Guy
d9b7d24667 AI 143249: am: CL 142820 am: CL 142818 Fixes #1735278. Deep hierarchies could generate stack overflow exception due to new local variables introduces in Cupcake. This change removes 4 ints from the dispatchDraw/drawChild code path to save a bit of stack on deep hierarchies. This is a stop-gap measure but that's all we can/should do for now.
Original author: romainguy
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143249
2009-03-27 15:40:27 -07:00
Andreas Huber
059c446fbf AI 143244: am: CL 142801 am: CL 142799 Ensure thread exit resets mThread to null (synchronized with sListeners)
If sensors_data_poll failed the sensor thread would exit leaving
  mThread non-null, hence SensorManager would never again attempt
  to start the thread because it assumes that it's still running,
  compromising future sensor notifications.
  Original author: andih
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143244
2009-03-27 15:36:43 -07:00
Romain Guy
c4a5f87c7a AI 143240: am: CL 142790 am: CL 142788 Fixes #1730741. Marquee text was not always animated in context menus.
The reason for that bug was that the marquee could potentially be stopped/started as part of the layout workflow. Unfortunately TextView was relying on setFrame() being called after onMeasure() which is *not* always the case, especially when the widget is inside of a ListView. This change simply checks for the marquee restart flag in on the onDraw() method in case we skipped the setFrame() step.
  Original author: romainguy
  Merged from: //branches/cupcake/...
  Original author: android-build
  Merged from: //branches/donutburger/...

Automated import of CL 143240
2009-03-27 15:30:50 -07:00
Amith Yamasani
a565e5e3d0 Automated import from //branches/master/...@142936,142936 2009-03-26 10:19:09 -07:00
Grace Kloba
52cf58a2a4 Automated import from //branches/master/...@142846,142846 2009-03-25 20:05:44 -07:00
Nick Pelly
b8088b9bc9 Automated import from //branches/master/...@142774,142774 2009-03-25 16:25:37 -07:00
Eric Fischer
fea44a0cc2 Automated import from //branches/master/...@142759,142759 2009-03-25 16:13:51 -07:00
Mark Womack
78ef45602a Automated import from //branches/master/...@142755,142755 2009-03-25 16:10:13 -07:00
Chris Tate
a7f7dee1e2 Automated import from //branches/master/...@142751,142751 2009-03-25 16:05:06 -07:00
Raphael Moll
0704009786 Automated import from //branches/master/...@142746,142746 2009-03-25 15:58:47 -07:00
Eric Fischer
09691cd15b Automated import from //branches/master/...@142739,142739 2009-03-25 15:51:17 -07:00
Karl Rosaen
c06a594d85 Automated import from //branches/master/...@142737,142737 2009-03-25 15:49:02 -07:00
Daisuke Miyakawa
c9a8e0ba6c Automated import from //branches/master/...@142673,142673 2009-03-25 15:23:27 -07:00
Leon Scroggins
6e3835ff4a Automated import from //branches/master/...@142632,142632 2009-03-25 15:15:24 -07:00
Jack Palevich
1badb712b9 Automated import from //branches/master/...@142578,142578 2009-03-25 15:12:17 -07:00
Dianne Hackborn
15ba27802e Automated import from //branches/master/...@142576,142576 2009-03-25 15:09:04 -07:00
Romain Guy
9c802c1e95 Automated import from //branches/master/...@142575,142575 2009-03-25 15:07:31 -07:00
Jean-Baptiste Queru
8b0662878e Automated import from //branches/master/...@142574,142574 2009-03-25 15:05:51 -07:00
Fred Quintana
603073430b Automated import from //branches/master/...@142414,142414 2009-03-24 22:48:12 -07:00
Jean-Michel Trivi
6c349db7f2 Automated import from //branches/master/...@142373,142373 2009-03-24 22:42:57 -07:00
Dianne Hackborn
4840e143df Automated import from //branches/master/...@142348,142348 2009-03-24 22:40:29 -07:00
Cedric Beust
afb6c8eafc Automated import from //branches/master/...@142319,142319 2009-03-24 22:35:42 -07:00
Joe Onorato
062a75be9c Automated import from //branches/master/...@142308,142308 2009-03-24 22:34:00 -07:00
Suchi Amalapurapu
3fd65be666 Automated import from //branches/master/...@142306,142306 2009-03-24 22:32:56 -07:00
Romain Guy
9ea028f1e4 Automated import from //branches/master/...@142130,142130 2009-03-24 21:36:11 -07:00
Ficus Kirkpatrick
b3f4db8e2b Automated import from //branches/master/...@141998,141998 2009-03-24 21:21:18 -07:00
Nick Pelly
bb564a2879 Automated import from //branches/master/...@141981,141981 2009-03-24 21:18:37 -07:00
Mike Lockwood
a0de355ce0 Automated import from //branches/master/...@141912,141912 2009-03-24 21:08:33 -07:00
Romain Guy
4087f5425c Automated import from //branches/master/...@141886,141886 2009-03-24 21:07:52 -07:00
Eric Fischer
1711c06dd0 Automated import from //branches/master/...@141869,141869 2009-03-24 21:06:32 -07:00
Jaikumar Ganesh
83557ec4f1 Automated import from //branches/master/...@141865,141865 2009-03-24 21:05:50 -07:00
Jack Palevich
708c17b416 Automated import from //branches/master/...@141860,141860 2009-03-24 21:05:22 -07:00
Ficus Kirkpatrick
10270f2b77 Automated import from //branches/master/...@141740,141740 2009-03-24 20:51:15 -07:00
Dianne Hackborn
f85f081ded Automated import from //branches/master/...@141727,141727 2009-03-24 20:49:27 -07:00
Nick Pelly
37b5a1065f Automated import from //branches/master/...@141698,141698 2009-03-24 20:46:18 -07:00
Mathias Agopian
db9540e7b3 Automated import from //branches/master/...@141533,141533 2009-03-24 20:29:58 -07:00
Eric Fischer
45c3ce585f Automated import from //branches/master/...@141530,141530 2009-03-24 20:29:22 -07:00
Romain Guy
58cd82b486 Automated import from //branches/master/...@141527,141527 2009-03-24 20:28:52 -07:00
Dianne Hackborn
eb785fa71a Automated import from //branches/master/...@141518,141518 2009-03-24 20:27:03 -07:00
Chris Tate
8f91d2b5c9 Automated import from //branches/master/...@141392,141392 2009-03-24 20:11:39 -07:00
Fred Quintana
22f711423e Automated import from //branches/master/...@141380,141380 2009-03-24 20:10:17 -07:00
Bob Lee
ef0996ffa3 Automated import from //branches/master/...@141357,141357 2009-03-24 20:06:19 -07:00