25342 Commits

Author SHA1 Message Date
Amith Yamasani
5691c7a2d6 Fix preference screen padding for legacy apps (non Holo).
Also fixes the right margin for single pane preferences on phones, so the
scrollbar is fully visible.

Bug: 5262868
Bug: 5263470
Change-Id: Ifbbe22744bd42ab33578d1f01daecdea4d59f5cc
2011-09-11 13:19:14 -07:00
Dianne Hackborn
fe75cb342e Merge "Fix inflating of animations." 2011-09-11 13:07:24 -07:00
Chet Haase
6a6977e872 Merge "Fix 5266335: bad DIRTY/invalidation logic" 2011-09-11 12:58:45 -07:00
Dianne Hackborn
8962028b6e Fix inflating of animations.
Need to define attributes for animation set, to have correct indices.

Also small fixes elsewhere.

Change-Id: If596147e8aee4ebffe4e184872070341eff6df73
2011-09-11 12:47:45 -07:00
Chet Haase
f186f30a7c Fix 5266335: bad DIRTY/invalidation logic
The DIRTY flag is used to track which elements of the view hierarchy need
to be redrawn on the next drawing operation. This flag is set on the parent
hierarchy of a view when that view is invalidated. There is an optimization for
opaque views that tells the parent that it is dirty, but that it need not
redraw its own content because the view will cover it (since it is opaque).

This dirty-opaque logic breaks down in the current code because we only set
these dirty flags on the parent hierarchy, not on the view itself. In the situation
raised by this bug, we would invalidate the parent container directly (which does
not case the dirty flag to be set), then we would invalidate a child of that view.
Because the child is opaque, the DIRTY_OPAQUE flag would be set on the parent
container. This would cause us, in the later rendering process, to skip the
drawing on that parent container, assuming that it was only asked to be redrawn
because of its opaque child's invalidation.

The fix is to now set the DIRTY flag on an invalidated view, not just on its parent
hierarchy. The DIRTY_OPAQUE logic will avoid setting the opaque flag on views/parents
that are already marked DIRTY, thus an invalidated parent will be correctly drawn
during the drawing process.

Change-Id: Ib5e014a125a4f5168f6a5a3166e941474659aca5
2011-09-11 11:06:06 -07:00
Dianne Hackborn
1a9c6c97fa Merge "The wave view attributes should not be public." 2011-09-11 10:56:01 -07:00
Svetoslav Ganov
fd19906b50 Merge "Inter process interrogation ocassionally gets stuck." 2011-09-09 18:57:35 -07:00
Svetoslav Ganov
6bc5e53001 Inter process interrogation ocassionally gets stuck.
1. There was a bug that was not handling correctly the
   case for which the interrogator requests an accessibility
   node info and the message describing how to fetch the
   latter for the same process case was delivered after the
   code that checks whether the message is there in order to
   dispatch it is executed. Now the message handling is done
   correctly - the caller checks if the message is present and
   if so processes it, otherwise the caller sleeps and is
   interrupted if such a message arrives.

bug:5138933

Change-Id: I4c2940b46c9a52a51c5ee48b83ca6811489765d6
2011-09-09 18:52:26 -07:00
Dianne Hackborn
acc3012cd0 The wave view attributes should not be public.
Change-Id: I7f021fc79385f5cf2e252389cc5f672f334ee4c4
2011-09-09 18:35:23 -07:00
Adam Powell
81cca039bd Merge "Fix metrics on Holo progress dialogs" 2011-09-09 17:47:23 -07:00
Adam Powell
ba3c377ba4 Fix metrics on Holo progress dialogs
Change-Id: I8818d002dcee0ca6d6deead9e0403c07e8ef4460
2011-09-09 17:40:06 -07:00
Romain Guy
3593fc4c3f Merge "Go faster!!!!" 2011-09-09 17:35:02 -07:00
Jeff Brown
78f6e63031 Handle DOWN/MOVE/UP gestures with fling.
Bug: 5265814

When MOVE events are batched, a ListView may not receive only
one MOVE event followed immediately by an UP in the case of
a quick fling.  Unfortunately, the old code relied on there
being at least one additional MOVE event following the first
in order to really scroll or fling.

This change extracts common code from onTouchEvent to
handle scrolls as soon as they are started if there is additional
remaining motion beyond the initial touch slop (taken care of by
mMotionCorrection).

Change-Id: I8c8f03f580bfba96aa69cf111d245ba7fd3b4c2a
2011-09-09 17:15:31 -07:00
Gilles Debunne
c9fd978da6 Bug 5281947: add to dictionnary option promoted in suggestions.
When several SuggestionSpans are available at a given position, their
content are merged, in creation time order.

As a result, the IME's suggestions are picked before the spell check, and
no add to dictionnary option is created.

This CL modifies the comparator to make easy correction spans appear first
(Voice IME), then misspelled words and then regular suggestions.

Also avoids the creation of a new comparator and length hash map on every display.

Change-Id: I1f9f031a6fdcbbc09f248a192b83051092765f8e
2011-09-09 17:01:31 -07:00
Gilles Debunne
5132273273 Hide method to fix the build
Change-Id: I5a556454a722bf037932632fa7e6ee6a2832a68d
2011-09-09 16:46:42 -07:00
Mangesh Ghiware
886b372b52 On zoom to overview, reflow text, if necessary.
Reset the text wrap scale to the correct value (i.e., reading level
scale) on zoom to overview. This addresses the scenario where text is
wrapped at a larger scale following a pinch zoom and double tap to
reflow.

Bug: 5254253
Change-Id: I57f706ef4254dd3f194cc35f109dd48b61b72f73
2011-09-09 16:22:51 -07:00
Ben Murdoch
a3809b344c Merge "Relax form autocomplete conditions" 2011-09-09 16:14:20 -07:00
Adam Powell
67fe057344 Merge "Fix bug 5214224 - Align stock framework list item padding for dialogs" 2011-09-09 16:12:03 -07:00
Gilles Debunne
2bfc75a6d9 Merge "Bug 5255124: Move cursor to the end of a word after correction popup alternates selection" 2011-09-09 16:01:08 -07:00
Robert Greenwalt
61db35da2b am 2f835a61: Merge "Make copies of NetworkInfo to give out." into honeycomb-LTE
* commit '2f835a6193c14e27cf761d85ac3ea4c9bd9296f8':
  Make copies of NetworkInfo to give out.
2011-09-09 15:52:42 -07:00
Gilles Debunne
4f2b0dc552 Merge "Bug 5278456: text highlight color depends on the type of suggestion spans." 2011-09-09 15:52:09 -07:00
Peter Ng
039482153d Spinner touchstates now in line with list states
Change-Id: I693eb5f16193119eb71dfc1d7991a786efbb8b79
2011-09-09 15:51:20 -07:00
Adam Powell
88f8b84e4c Fix bug 5214224 - Align stock framework list item padding for dialogs
Set holo dialog themes to 16dip of padding for list items to align with
theme dialog metrics.

Change-Id: Ia07c08f05fadfe8bbcb596d6fe8a27cc14805c6c
2011-09-09 15:49:03 -07:00
Jaikumar Ganesh
61eb5ae855 Don't override the hash code for the channel.
Each channel is uniquely represented by the object itself,
so use the hash code to identify it. Using channelPath in the
calculation will mess up things - since in Connecting state the
channel path is null and when its connected, we will get a different
hash code.

Change-Id: I6af6c783e18fddbd38344432b8156e000baafb15
2011-09-09 15:48:22 -07:00
Romain Guy
1ef3fdbe04 Go faster!!!!
The less we do, the faster we draw.

Change-Id: I7bbc3908b36d8ae295ea3e61ef71fd9ee2187970
2011-09-09 15:34:49 -07:00
Dianne Hackborn
7b8d7cb59c Merge "Pull animation attributes out of main view class." 2011-09-09 15:27:44 -07:00
Jaikumar Ganesh
6d172e60bb Merge "Add error codes for channel disconnection / connection." 2011-09-09 15:19:43 -07:00
Adam Powell
4eb37f8a2c Merge "Bug 5214224 - List item metrics" 2011-09-09 15:18:01 -07:00
Robert Greenwalt
6aecb98a62 Make copies of NetworkInfo to give out.
Otherwise we'll change it out from under those we've given it too.
bug:5233462

Change-Id: Iffc886849edfa6ced3da1133f9d363e11b2733f8
2011-09-09 15:10:42 -07:00
Gilles Debunne
1a87ba4636 Bug 5255124: Move cursor to the end of a word after correction popup alternates selection
Change-Id: Idd3edc72edf864f256df173bcf643163192ecbde
2011-09-09 15:02:10 -07:00
Ben Komalo
13c7197da8 Revert encryption mapping for device wipes.
External storage volumes that were emulated+encrypted needed to have
their encryption mapping removed so that it doesn't try to encrypt the
volume after formatting them.

This just wires through an argument through vold, and assumes that vold
will do the right thing even if there is no encryption mapping set.

Bug: 5017638
Change-Id: I858fae3d12cb415bc34637f520f71220ad9daaad
2011-09-09 14:44:40 -07:00
Dianne Hackborn
ddb715b238 Pull animation attributes out of main view class.
These are now in a separate class that is only allocated when
needed by the view.

Change-Id: I9601bb43b3b4bfdabd982b02f7cd7534437b8ac3
2011-09-09 14:43:39 -07:00
Adam Powell
7c8375d652 Bug 5214224 - List item metrics
Base list item padding on the theme. Adjust stock framework list items
to obey this. Adjust text sizes in stock list items based on existing
theme attributes.

Change-Id: I98a441e5494fa1d1d34a5f05e525e54e8b0d78b9
2011-09-09 14:41:37 -07:00
Ben Murdoch
2376f8253f Relax form autocomplete conditions
Use the URL host and path rather than the complete url to store
form autocomplete data. This helps in the situation that a site
uses some dynamic query string on the page that contains the form.

Also set the autoocmplete threshold to 1 so that we don't flick the
autocomplete options up and down as you type the first few characters.

Bug: 5265606
Change-Id: I7b372400062ae34f70a78b786007910dc179b101
2011-09-09 22:38:39 +01:00
Dianne Hackborn
104f6a07c9 Merge "Fix issue #5273986: The power usage of the mp3 background playback..." 2011-09-09 14:28:05 -07:00
Peter Ng
d67ff5c41d Merge "list_dividers for xh are now 2pixels high." 2011-09-09 13:38:40 -07:00
Dianne Hackborn
9fe6cb5cc2 Fix issue #5273986: The power usage of the mp3 background playback...
...increased from ~50mA to 260mA

Change-Id: I24d7188185f4ec5ff9e1f29c15472ae56c851e5e
2011-09-09 13:02:43 -07:00
Peter Ng
920d06db8d Merge "Updated CAB done assets" 2011-09-09 11:27:40 -07:00
Svetoslav Ganov
99e109915e Merge "The time and data pickers did not support IME editor action correctly." 2011-09-09 11:24:24 -07:00
Peter Ng
4618a53e38 list_dividers for xh are now 2pixels high.
-1px everywhere but xhdpi
-deleted no dpi
-changed holo_light #000 15%
-changed holo_dark #fff 10%

Change-Id: I1ee16bb21b80655d62b91a2b43b3740700463cc7
2011-09-09 11:23:50 -07:00
Svetoslav Ganov
5b60d38a8a Merge "Update the sharing UI according to latest UX specs." 2011-09-09 11:18:40 -07:00
Peter Ng
d64cb7d579 Updated CAB done assets
-removed cab background on press and focused

Change-Id: Ib93632955bbaa62497acc82079091019ba7991c3
2011-09-09 11:07:51 -07:00
Jeff Brown
1d50a2c068 Merge "Adjust layers for system overlays." 2011-09-09 11:06:25 -07:00
Subir Jhanb
37f8b51b43 Merge "NPE check in the SyncStateContract BUG:5196483" 2011-09-09 10:36:09 -07:00
Fred Quintana
7cbfa977ec Merge "Add a form of getAuthToken that both accepts an options Bundle and doesn't accepts an activity." 2011-09-09 09:52:45 -07:00
Ken Wakasa
8b83a72976 Fix a bug in InputMethodSubtype constructor
bug: 5249480

Change-Id: I707e45cc0606dae7824c478ab586fc24d3f417f8
2011-09-09 20:56:29 +09:00
Jim Miller
4f4ed38a88 Merge "Fix 5185505: Add support for weak biometric sensors to lockscreen." 2011-09-09 00:58:01 -07:00
Jim Miller
6edf2637e9 Fix 5185505: Add support for weak biometric sensors to lockscreen.
Added binder interfaces to the framework.

Change-Id: I7d55b45baa4d1600ebd2a3828e85c3357cfcfb58
2011-09-09 00:53:02 -07:00
Michael Jurka
6c0d41a4ea Merge "Fix FrameLayout padding when foreground drawable is set" 2011-09-08 20:56:35 -07:00
Michael Jurka
02473da2b0 Fix FrameLayout padding when foreground drawable is set
The padding of the foreground drawable was being added to the padding that already existed, even if the foreground drawable was drawing within the padded region. This was preventing having a foreground drawable and a background drawable set on a FrameLayout that overlapped perfectly.

Change-Id: I355ff9323fb49afc5816f47ec9e257e0ff849861
2011-09-08 20:39:16 -07:00