Commit Graph

3032 Commits

Author SHA1 Message Date
Craig Mautner
92302af1ee am a978d9bf: am d51a68b3: Merge "Eliminate deferred surface destruction." into jb-dev
* commit 'a978d9bfefa8f7cb1591a1789effa955d902a9cf':
  Eliminate deferred surface destruction.
2012-05-21 12:41:26 -07:00
Dianne Hackborn
ba910bc004 am cefbeb68: am 20c0cdbb: Merge "Have the stable layout take into account the window\'s fullscreen flag." into jb-dev
* commit 'cefbeb683416a2bbc20905f280eaeadb349cb9d9':
  Have the stable layout take into account the window's fullscreen flag.
2012-05-17 20:56:51 -07:00
Svetoslav Ganov
72e15ceb85 am cefd97c8: am e54c5f13: Merge "Exposing some accessiblity actions only for enabled views." into jb-dev
* commit 'cefd97c8546d6dca184e8ac9589ab2ff1b795c06':
  Exposing some accessiblity actions only for enabled views.
2012-05-17 20:56:37 -07:00
Adam Powell
3cd72d442b am f53952a9: am 648337b3: Merge "Fix a bug where late-invalidating views with animations would be held for too long by ViewRootImpl" into jb-dev
* commit 'f53952a9a7aa5ed8af4867b9efcc765c7910b038':
  Fix a bug where late-invalidating views with animations would be held for too long by ViewRootImpl
2012-05-17 17:18:15 -07:00
Jeff Brown
148e0b7a1d am 7ce7fe3b: am 33ebe8c8: Merge "Add systrace method tags for measure and layout." into jb-dev
* commit '7ce7fe3b6170c5765a8045a78a272e13f1064d6a':
  Add systrace method tags for measure and layout.
2012-05-17 17:18:05 -07:00
Jeff Brown
9b48e8063d am 046c8619: am 0d28cdf1: Merge "Fix a possible starvation issue related to vsync." into jb-dev
* commit '046c86191653ef3ba49c1397cb2242562a410ae4':
  Fix a possible starvation issue related to vsync.
2012-05-17 15:33:50 -07:00
Svetoslav Ganov
88b2b90e7d am c2f64117: am c5fb5805: Merge "Accessiblity focus not following input focus and text nav broken." into jb-dev
* commit 'c2f6411741949924d42e2c4aaefc33e6312cdd68':
  Accessiblity focus not following input focus and text nav broken.
2012-05-17 15:32:42 -07:00
Craig Mautner
a978d9bfef am d51a68b3: Merge "Eliminate deferred surface destruction." into jb-dev
* commit 'd51a68b3d2d347be989b53af1777454f97ad9b46':
  Eliminate deferred surface destruction.
2012-05-17 13:13:56 -07:00
Craig Mautner
d51a68b3d2 Merge "Eliminate deferred surface destruction." into jb-dev 2012-05-17 13:11:50 -07:00
Craig Mautner
bf08af3323 Eliminate deferred surface destruction.
Removing the code that delays a surface destruction when
WindowManager.FLAG_KEEP_SURFACE_WHILE_ANIMATING is set. The lock
screen that continued to animate after destroySurfaceLocked is no
longer used and this code was causing problems.

Also mDrawState was being set to NO_SURFACE in destroySurfaceLocked
even if the surface ended up not being destroyed. Later when it was
reused the false value of mDrawState was messing things up.

The screen lock bug referenced below no longer levaes the user stuck
with a black lockscreen. However it occasionally powers back up in the
launcher screen rather than the lock screen.

Fixes bug 6485955.

Change-Id: I684104c7e7c39c161a5118aa890889fbae92e635
2012-05-16 20:07:22 -07:00
Dianne Hackborn
cefbeb6834 am 20c0cdbb: Merge "Have the stable layout take into account the window\'s fullscreen flag." into jb-dev
* commit '20c0cdbbf79cef18e59514e0f53dfbcac0bef600':
  Have the stable layout take into account the window's fullscreen flag.
2012-05-16 19:43:37 -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
cefd97c854 am e54c5f13: Merge "Exposing some accessiblity actions only for enabled views." into jb-dev
* commit 'e54c5f13652166c5896ccfa55f047301a6c8b876':
  Exposing some accessiblity actions only for enabled views.
2012-05-16 18:45:31 -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
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
f53952a9a7 am 648337b3: Merge "Fix a bug where late-invalidating views with animations would be held for too long by ViewRootImpl" into jb-dev
* commit '648337b3a8024b22a77977024cdf171f83999d56':
  Fix a bug where late-invalidating views with animations would be held for too long by ViewRootImpl
2012-05-16 17:50:47 -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
Jeff Brown
7ce7fe3b61 am 33ebe8c8: Merge "Add systrace method tags for measure and layout." into jb-dev
* commit '33ebe8c8c2179af371514b9c7a7d88faf531b18b':
  Add systrace method tags for measure and layout.
2012-05-16 17:43:37 -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
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
Jeff Brown
046c861916 am 0d28cdf1: Merge "Fix a possible starvation issue related to vsync." into jb-dev
* commit '0d28cdf1c870ade242250ec1a82c710885982b4b':
  Fix a possible starvation issue related to vsync.
2012-05-16 16:27:03 -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
Svetoslav Ganov
c2f6411741 am c5fb5805: Merge "Accessiblity focus not following input focus and text nav broken." into jb-dev
* commit 'c5fb5805c92429b08ca715df37e949f31591466a':
  Accessiblity focus not following input focus and text nav broken.
2012-05-16 13:30:22 -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
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
dd36336ce9 am 9e981d83: am d44a1686: Merge "Don\'t draw onto a hw surface using the software renderer Bug #6485955" into jb-dev
* commit '9e981d83f1b8a1f1f88b67c32b1459a23455d3fe':
  Don't draw onto a hw surface using the software renderer Bug #6485955
2012-05-15 20:35:43 -07:00
Svetoslav Ganov
f22a7c34a4 am a379e733: am 67d10a58: Merge "Prefetching of accessibility node infos getting incorrect views." into jb-dev
* commit 'a379e733b81e44b7d91d90ea93bc26e43230fdb1':
  Prefetching of accessibility node infos getting incorrect views.
2012-05-15 20:35:40 -07:00
Romain Guy
9e981d83f1 am d44a1686: Merge "Don\'t draw onto a hw surface using the software renderer Bug #6485955" into jb-dev
* commit 'd44a16864d549e08506d0f80198031f05a03bd15':
  Don't draw onto a hw surface using the software renderer Bug #6485955
2012-05-15 20:30:21 -07:00
Svetoslav Ganov
a379e733b8 am 67d10a58: Merge "Prefetching of accessibility node infos getting incorrect views." into jb-dev
* commit '67d10a5867ac26155117f2ffda84f9d2a21dbcf0':
  Prefetching of accessibility node infos getting incorrect views.
2012-05-15 20:30:18 -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
4528b4e882 Prefetching of accessibility node infos getting incorrect views.
1. The prefetcher of accessibility nodes infos was not folloing
   the childForAccessibility relationship when finding the views
   whose node infos to prefetch.

2. NumberPicker was not reporting the correct parent.

bug:6471710

Change-Id: Ia7ad5dd031fb4b3816dfe630d5212201cfafa236
2012-05-15 18:32:23 -07:00
Chris Wren
446d44778e am 69337714: am 78cb7cf7: Allow animations to run past cancelled draws, if the view is visible.
* commit '69337714812db8735a66785f62db39f46a70fd26':
  Allow animations to run past cancelled draws, if the view is visible.
2012-05-15 11:39:31 -07:00
Svetoslav Ganov
da350b9ef3 am db3cf0dd: am 0e29ac9e: Merge "Accessibility focus traversal in virtual nodes." into jb-dev
* commit 'db3cf0dd580ce976ea9b90aeebc60ff34f62372a':
  Accessibility focus traversal in virtual nodes.
2012-05-15 11:39:23 -07:00
Romain Guy
ae197fd160 am d5cfec8d: am 7b8523aa: Merge "Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)" into jb-dev
* commit 'd5cfec8d34a59f2a4e98b655b5e49775d69ad64c':
  Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)
2012-05-15 11:39:12 -07:00
Svetoslav Ganov
38f4c223c0 am d83a0800: am 8ce2d78a: Merge "Improving accessibility focus traversal." into jb-dev
* commit 'd83a0800679583ccc99a90a128f8d6c11afbeca4':
  Improving accessibility focus traversal.
2012-05-15 11:38:57 -07:00
Jeff Brown
57ea2e0eaf am e2ec70bf: am 00ff4748: Merge "More VelocityTracker refactoring." into jb-dev
* commit 'e2ec70bf92e80800bd5163f56632b9eb14cce290':
  More VelocityTracker refactoring.
2012-05-15 11:38:46 -07:00
Eric Laurent
50e8a1649a am dd99f70a: am dfae6db0: Merge "Implement new volume display policy." into jb-dev
* commit 'dd99f70a3f8e661799ecda271d31fc385a80ecb5':
  Implement new volume display policy.
2012-05-15 11:38:37 -07:00
Chris Wren
6933771481 am 78cb7cf7: Allow animations to run past cancelled draws, if the view is visible.
* commit '78cb7cf7d1d82834c4405650a17e387370004570':
  Allow animations to run past cancelled draws, if the view is visible.
2012-05-15 11:32:53 -07:00
Svetoslav Ganov
db3cf0dd58 am 0e29ac9e: Merge "Accessibility focus traversal in virtual nodes." into jb-dev
* commit '0e29ac9e4ede6e75a5ca91eb744bbff83949c71e':
  Accessibility focus traversal in virtual nodes.
2012-05-15 11:32:40 -07:00
Romain Guy
d5cfec8d34 am 7b8523aa: Merge "Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)" into jb-dev
* commit '7b8523aaed11a3b5ee286776023233036ac0759d':
  Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)
2012-05-15 11:31:54 -07:00
Svetoslav Ganov
d83a080067 am 8ce2d78a: Merge "Improving accessibility focus traversal." into jb-dev
* commit '8ce2d78aa89e89e9a5607d8809bf6d248508a531':
  Improving accessibility focus traversal.
2012-05-15 11:31:28 -07:00
Jeff Brown
e2ec70bf92 am 00ff4748: Merge "More VelocityTracker refactoring." into jb-dev
* commit '00ff47484f8137aa3e59f680ff07d2662cfb4088':
  More VelocityTracker refactoring.
2012-05-15 11:31:08 -07:00
Eric Laurent
dd99f70a3f am dfae6db0: Merge "Implement new volume display policy." into jb-dev
* commit 'dfae6db0228a2ba4e34deb48d54fb06a2637e6a2':
  Implement new volume display policy.
2012-05-15 11:30:53 -07:00
Chris Wren
78cb7cf7d1 Allow animations to run past cancelled draws, if the view is visible.
Bug: 6475482
Change-Id: Iecb3a04744282135efa0049f1b70a46dc4a6bb23
2012-05-15 10:57:59 -07:00
Svetoslav Ganov
0e29ac9e4e Merge "Accessibility focus traversal in virtual nodes." into jb-dev 2012-05-15 10:48:44 -07:00
Svetoslav Ganov
791fd31a68 Accessibility focus traversal in virtual nodes.
1. Finished the implementation of support for maintaining
   accessibility focus in view with virtual descendants.

2. Finished the NumberPicker implementation of virtual
   subtree such that all requred attributes are reported
   and ensuring that it support accessibility focus in
   its virtual descentants.

3. Fixed a bug where if a predecessor of the view that is
   accessiiblity focused is removed the accessibliity focus
   host in ViewRootImpl is not cleared leading to a crash
   when trying to draw the accessibility focus highlight.:

bug:6472646
bug:6433864

Change-Id: I3645642b87b4a26025c0b2ba9dfaad92d11a48f1
2012-05-15 00:43:53 -07:00
Romain Guy
7b8523aaed Merge "Remove all Dalvik allocations from Cavnas.drawBitmap(int[], ...)" into jb-dev 2012-05-14 20:12:09 -07:00