Commit Graph

22622 Commits

Author SHA1 Message Date
Amith Yamasani
e43e08bb24 Merge "Avoid launching dialogs twice from double-clicking a preference." into jb-dev 2012-05-17 09:57:38 -07:00
John Reck
76c0c612cd Merge "Don't send an ontouchmove until slop is exceeded" into jb-dev 2012-05-17 09:22:06 -07:00
George Mount
3c8140723f Merge "Only clear the caret when in caret selection mode." into jb-dev 2012-05-17 09:05:37 -07:00
George Mount
84c4b08bd4 Merge changes Ia5729aaf,I91584b7d into jb-dev
* changes:
  Remove selection highlight when replacing/deleting.
  Don't do character add/delete when there is a selection.
2012-05-17 09:05:30 -07:00
Ben Murdoch
93e3bf1260 Merge "Fix up the WebCoreThreadWatchdog" into jb-dev 2012-05-17 09:00:26 -07:00
Chris Wren
4ed80d581c Don't assume digest lines are GONE, we may be recycling them.
Bug: 6500945
Change-Id: I0f01ccdde25bebb8335f0d34408877b895d286ff
2012-05-17 09:35:34 -04:00
Ben Murdoch
74d37b9653 Fix up the WebCoreThreadWatchdog
Make the WebCoreWatchdog aware of the WebViews it is monitoring
(rather than the Activity context which may become stale) and
ensure that the code for the prompt dialog is run on the UI
thread.

Bug: 6420310
Change-Id: Ied003938edb04858c85bcc2491c4b2c4c0ede6eb
2012-05-17 12:38:07 +01:00
John Reck
94c478e9e5 Don't send an ontouchmove until slop is exceeded
Bug: 6490959

Change-Id: I0f447f65c84f9ce208ce52caba05e7dcb2f76bc5
2012-05-16 20:34:48 -07:00
Dianne Hackborn
20c0cdbbf7 Merge "Have the stable layout take into account the window's fullscreen flag." into jb-dev 2012-05-16 19:41:09 -07:00
Svetoslav Ganov
a4c1b0a7ca Merge "Fixing the build for real." into jb-dev 2012-05-16 19:25:59 -07:00
Svetoslav Ganov
1e7456ba74 Fixing the build for real.
Change-Id: I792d029c7fff4d96fbe238ff4b3f268cb8603b95
2012-05-16 19:15:34 -07:00
Svetoslav Ganov
e54c5f1365 Merge "Exposing some accessiblity actions only for enabled views." into jb-dev 2012-05-16 18:43:31 -07:00
Svetoslav Ganov
824aa860cd Merge "Accessibility service needs to request permission to be bound to." into jb-dev 2012-05-16 17:52:59 -07:00
Svetoslav Ganov
fb1e80a247 Exposing some accessiblity actions only for enabled views.
1. Some accessibility actions should not be performed on disabled
   views. For example, scrolling should not be permitted while
   accessibility focus should be. Made a quick pass over the
   actions we expose now.

Change-Id: I36626dfbc0d2f480309a910f58f1de64e9e05675
2012-05-16 17:51:52 -07:00
Adam Powell
648337b3a8 Merge "Fix a bug where late-invalidating views with animations would be held for too long by ViewRootImpl" into jb-dev 2012-05-16 17:46:10 -07:00
Carlos Valdivia
864019503c Merge "Streamline the logic to add account." into jb-dev 2012-05-16 17:44:34 -07:00
Adam Powell
7fde8e2ba2 Merge "Be more tolerant in TaskStackBuilder" into jb-dev 2012-05-16 17:44:25 -07:00
Carlos Valdivia
cf0a881f1c Streamline the logic to add account.
This cl ensures that we immediately route the user to the add account
activity if they don't have an account and their is only one relevant
account type. Also reordered the setContent logic to reduce flicker.

Note that as of this CL there is still some flicker remaining when
launching G+ without an account. But it appears to be fixed in other
apps.

Bug: 6455975
Change-Id: I91e33b4fb9618a31765b4a8651334b1c52640828
2012-05-16 17:43:17 -07:00
Jeff Brown
33ebe8c8c2 Merge "Add systrace method tags for measure and layout." into jb-dev 2012-05-16 17:40:03 -07:00
Jeff Brown
6dc23b8e70 Merge "Add a label for the new video trace tag." into jb-dev 2012-05-16 17:39:29 -07:00
John Reck
b27a4f9b0e Merge "Remove custom scrollbar logic" into jb-dev 2012-05-16 17:35:08 -07:00
Adam Powell
3e3c4ee047 Fix a bug where late-invalidating views with animations would be held
for too long by ViewRootImpl

Change-Id: I1e32bf2683b50f8834f215a753f881b5d4b8dbc9
2012-05-16 17:34:21 -07:00
Jeff Brown
c8d2668bc4 Add systrace method tags for measure and layout.
Change-Id: I739f6384b390d1b34b09b622ca0f752de1dd7304
2012-05-16 17:27:24 -07:00
Jeff Brown
f558780c20 Add a label for the new video trace tag.
Change-Id: Ie296b4b5ca73987cdea7766f8698fc43704b2e81
2012-05-16 17:27:24 -07:00
Dianne Hackborn
5b5cc4d536 Have the stable layout take into account the window's fullscreen flag.
When using stable layouts, you are typically expected to hide and
show the status bar through the system UI fullscreen flag.  This hides
both the status bar and the action bar.  The stable layout assumed
that when not hiding the status bar through the system UI flags, that
the status bar would be visible.

This change makes things a little smarter, also looking at the
window's fullscreen flag (which only hides the status bar).  If this
flag is set on the window, then the stable layout now assumes that
the status bar will never be shown.  This allows us to position the
action bar correctly in the situation where the application has set
the window to fullscreen and requested a stable layout, instead of
always leaving room for the status bar above it.

Change-Id: I757072ae99cd3741753af7210dbf51afe94d3db5
2012-05-16 17:24:11 -07:00
Amith Yamasani
ade026f749 Avoid launching dialogs twice from double-clicking a preference.
Bug: 6500628

Only create the dialog if another one doesn't already exist.

Change-Id: Ie9be06a58c369299bcb67526e668785e6735a307
2012-05-16 17:02:32 -07:00
Jeff Brown
0d28cdf1c8 Merge "Fix a possible starvation issue related to vsync." into jb-dev 2012-05-16 16:25:05 -07:00
Adam Powell
b00b8b0d53 Be more tolerant in TaskStackBuilder
Let callers try to get a parent stack for an activity class with no
parent declared.

Bug 6503702

Change-Id: Iec1bc7a8d9e5b65b756a8ebd0e53d63506796aa3
2012-05-16 16:23:03 -07:00
Mathias Agopian
128c89cd08 Merge "fix SensorManager.getAngleChange() documentation" into jb-dev 2012-05-16 16:12:27 -07:00
Svetoslav Ganov
53e184d34e Accessibility service needs to request permission to be bound to.
1. Every accessibility services targeting JellyBean or higher has
   to request a special permission for the system to bind to it.

Change-Id: I6e579326bdf3597f148d6c67317455701ec8af68
2012-05-16 15:57:15 -07:00
Svetoslav Ganov
6467f94b37 Merge "Make AbsSeekBar widget adjustable via accessibility actions." into jb-dev 2012-05-16 15:53:35 -07:00
Mathias Agopian
fb89097099 fix SensorManager.getAngleChange() documentation
Bug: 6442517

Change-Id: I4b22540817560bdff134d2cc3274e3b39c92d3b1
2012-05-16 15:31:07 -07:00
John Reck
7c2e329ef2 Remove custom scrollbar logic
Bug: 6505722
 When we scroll the base layer we do so by calling scrollTo on the view,
 which handles all the scrollbar logic for us. Remove the custom keep alive
 code which floods the handler queue, as well as remove the unnecessary
 invalidate and awakenScrollbar calls (View does that for us)

Change-Id: Ia2503c549a22ec71d99295fe62b676fecc367ea3
2012-05-16 15:21:18 -07:00
George Mount
c4c3bc9b83 Remove selection highlight when replacing/deleting.
Bug 6506101

Change-Id: Ia5729aafa30cbb502e94adf92f7534cb552199a6
2012-05-16 15:20:03 -07:00
John Reck
c43db491a6 Merge "Fix android:focusableInTouchMode support" into jb-dev 2012-05-16 15:19:22 -07:00
George Mount
0925a76bb9 Only clear the caret when in caret selection mode.
Bug 6506761

Change-Id: I5772691053bff30c25870e6068f5d85b850b7b81
2012-05-16 15:01:46 -07:00
John Reck
435e6f5fd2 Fix android:focusableInTouchMode support
Bug: 6448106

Change-Id: I17161754eaf08145623466a6db25893e3e5b2e16
2012-05-16 14:56:20 -07:00
George Mount
5d09bf69e2 Don't do character add/delete when there is a selection.
Bug 6506644

Change-Id: I91584b7df23951bc5e735b25161ed6e0bcdbc2b7
2012-05-16 14:56:09 -07:00
alanv
c826b7d8fa Make AbsSeekBar widget adjustable via accessibility actions.
Change-Id: I559da3cea139c2d5a4c82e2854921de173fbfa4f
2012-05-16 14:19:21 -07:00
Adam Cohen
e0bb6fe333 Merge "Cap widget bitmap usage by screen size (issue 6464700)" into jb-dev 2012-05-16 13:43:27 -07:00
Svetoslav Ganov
c5fb5805c9 Merge "Accessiblity focus not following input focus and text nav broken." into jb-dev 2012-05-16 13:26:54 -07:00
Jeff Brown
b080660dfd Fix a possible starvation issue related to vsync.
This makes a noticeable improvement in cases where applications
post messages that need to be processed between animation frames.

Bug: 6418353
Change-Id: If225742e37aeaf3f0ca9710f9bf43dbb03bcde12
2012-05-16 12:50:41 -07:00
Chris Wren
b46f3f6743 Merge "Defensively reset the default state of layout elements." into jb-dev 2012-05-16 12:01:44 -07:00
Daniel Sandler
70334ac231 Merge changes If0b865ac,Ie0c61300 into jb-dev
* changes:
  Move BigPicture's header to the top of its large view.
  Action button improvements:
2012-05-16 06:19:15 -07:00
Daniel Sandler
8680bf865a Action button improvements:
- Horizontal layout
  - At most 2 are shown
  - Tombstones are now shown (if the intent is null, the
    button is disabled; use it for quick feedback of an
    action's effect)

Bug: 6418617 (tombstones)
Bug: 6482237 (action separators)
Change-Id: Ie0c613006227bbfe1c0ec6eab1cda4f3782a05f2
2012-05-16 01:27:54 -04:00
Chris Wren
67dc9a02cf Defensively reset the default state of layout elements.
Bug: 6500945
Change-Id: Idf7300c44955413e2db26ecbabdef9f67f12f360
2012-05-16 01:03:20 -04:00
Svetoslav Ganov
64899e5c8f Accessiblity focus not following input focus and text nav broken.
1. View is checking if the accessibility focus is its
   descendant it clears the accessibility focus state
   in ViewRootImpl. The check in View was missing the
   case that the descendant may be the view itself. In
   such a case we want the normal clearing code to run.

2. The check whether a view has iterable text for
   accessibility was inverted and text nav was not
   working.

Change-Id: I1a13b6809fb7f205fff76ca09cd449179d06e530
2012-05-15 21:14:10 -07:00
Romain Guy
d44a16864d Merge "Don't draw onto a hw surface using the software renderer Bug #6485955" into jb-dev 2012-05-15 19:19:41 -07:00
Romain Guy
413baf8a03 Don't draw onto a hw surface using the software renderer
Bug #6485955

If an invalidate gets scheduled right before the EGL surface is destroyed,
the next draw pass is done in software. This causes the software renderer
to connect to the surface forever which prevents the hardware renderer
from coming back when the screen is turned back on.

The fix here is to ignore the draw request when hw acceleration is requested
but not yet available. Proper software fallback will still happen when an
error is encountered with hardware rendering (in which case hw acceleration
will not be marked as requested anymore.)

Change-Id: I1edc4a51c8dd38240aa2345092a18a081a756fc1
2012-05-15 19:15:47 -07:00
Svetoslav Ganov
67d10a5867 Merge "Prefetching of accessibility node infos getting incorrect views." into jb-dev 2012-05-15 18:56:45 -07:00