Commit Graph

23086 Commits

Author SHA1 Message Date
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
67d10a5867 Merge "Prefetching of accessibility node infos getting incorrect views." into jb-dev 2012-05-15 18:56:45 -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
Amith Yamasani
7dea5abd65 am 1bd25a4e: am 0763e01c: Merge "Fix amnesia problem in MultiSelectListPreference." into jb-dev
* commit '1bd25a4eef0c1f71842d5e1b2a5c32f2b084268b':
  Fix amnesia problem in MultiSelectListPreference.
2012-05-15 18:26:11 -07:00
Amith Yamasani
1bd25a4eef am 0763e01c: Merge "Fix amnesia problem in MultiSelectListPreference." into jb-dev
* commit '0763e01c78a0febd02e344db5755479f57349a26':
  Fix amnesia problem in MultiSelectListPreference.
2012-05-15 18:21:10 -07:00
Dianne Hackborn
7ba90544d9 am a15ebaa2: am 79f5777d: Merge "A few odds and ends." into jb-dev
* commit 'a15ebaa25c93c750c22e80498c2415b2af0f2f3e':
  A few odds and ends.
2012-05-15 18:20:45 -07:00
Amith Yamasani
0763e01c78 Merge "Fix amnesia problem in MultiSelectListPreference." into jb-dev 2012-05-15 18:18:43 -07:00
Dianne Hackborn
a15ebaa25c am 79f5777d: Merge "A few odds and ends." into jb-dev
* commit '79f5777d7c1652badeba4be92a5271d2c2276d22':
  A few odds and ends.
2012-05-15 18:17:39 -07:00
Dianne Hackborn
79f5777d7c Merge "A few odds and ends." into jb-dev 2012-05-15 18:15:20 -07:00
Adam Powell
8bf11c89f2 am c9f5b3d3: am e095ceaa: Merge "Handle returning a result from automatic up navigation from another task." into jb-dev
* commit 'c9f5b3d3ef1e0e329f6081cd120544f8d1d7576c':
  Handle returning a result from automatic up navigation from another task.
2012-05-15 17:20:06 -07:00
Amith Yamasani
cd9ea08d9c Fix amnesia problem in MultiSelectListPreference.
Bug: 6478079

Pointer assignment instead of copy was resulting in mValues being cleared
on next launch, since mValues became the same pointer as mNewValues.

Change-Id: I91014948e4f48056474b3ab31aab6d35e0ad69ca
2012-05-15 17:17:24 -07:00
Adam Powell
c9f5b3d3ef am e095ceaa: Merge "Handle returning a result from automatic up navigation from another task." into jb-dev
* commit 'e095ceaa7943b5465949e5971c14e0ec1a0752a2':
  Handle returning a result from automatic up navigation from another task.
2012-05-15 17:15:16 -07:00
Adam Powell
e095ceaa79 Merge "Handle returning a result from automatic up navigation from another task." into jb-dev 2012-05-15 17:11:45 -07:00
John Reck
0b49e42833 am d4cbf66b: am 7a59c5ae: Merge "Always do a HIT_TEST" into jb-dev
* commit 'd4cbf66bb34512f32310fbde711234ac6f89bedc':
  Always do a HIT_TEST
2012-05-15 17:01:35 -07:00
John Reck
d4cbf66bb3 am 7a59c5ae: Merge "Always do a HIT_TEST" into jb-dev
* commit '7a59c5aebc5506319deea8fd40d5d308192b8052':
  Always do a HIT_TEST
2012-05-15 16:57:33 -07:00
John Reck
7a59c5aebc Merge "Always do a HIT_TEST" into jb-dev 2012-05-15 16:55:45 -07:00
Adam Powell
3d193d92f6 Handle returning a result from automatic up navigation from another
task.

When navigating up from a different task, if the current activity has
a result set only finish the current activity instead of trying
finishAffinity. Log this so that developers know why this behavior is
happening.

Bug 6465336

Change-Id: Ic7cec6f0c0d5861296091e2aea9344309f5fc600
2012-05-15 16:53:34 -07:00
Michael Chan
a4fe397170 am b3961984: am 2faa075e: Merge "Update docs for launching custom app for calendar events" into jb-dev
* commit 'b3961984e5eb5e11e938b8f5a3f22db853e98e99':
  Update docs for launching custom app for calendar events
2012-05-15 16:36:06 -07:00
Michael Chan
b3961984e5 am 2faa075e: Merge "Update docs for launching custom app for calendar events" into jb-dev
* commit '2faa075ed78d39cc7783ed1d9681a5d7b2226173':
  Update docs for launching custom app for calendar events
2012-05-15 16:33:10 -07:00
Michael Chan
2faa075ed7 Merge "Update docs for launching custom app for calendar events" into jb-dev 2012-05-15 16:30:15 -07:00
Chris Craik
247d37624d am 7a4e7602: am 6675f691: Merge "Invalidate on new picture if scale/content size changes" into jb-dev
* commit '7a4e76024c210fb94474d0b620a5299296bd4253':
  Invalidate on new picture if scale/content size changes
2012-05-15 15:34:37 -07:00
Guang Zhu
3e0086b671 am a6605922: am 5c0a99f3: Merge "Expose class name in AppWidgetHostView for accessibility" into jb-dev
* commit 'a6605922b28c6f5458f9b17aa72123e20fe255f0':
  Expose class name in AppWidgetHostView for accessibility
2012-05-15 15:34:33 -07:00
Chris Craik
7a4e76024c am 6675f691: Merge "Invalidate on new picture if scale/content size changes" into jb-dev
* commit '6675f691ed952d37232a36a6e6f15e02fb419f9c':
  Invalidate on new picture if scale/content size changes
2012-05-15 15:30:19 -07:00
Guang Zhu
a6605922b2 am 5c0a99f3: Merge "Expose class name in AppWidgetHostView for accessibility" into jb-dev
* commit '5c0a99f3a10fed1e4328e0e2aeda5d805474d733':
  Expose class name in AppWidgetHostView for accessibility
2012-05-15 15:30:15 -07:00
Chris Craik
6675f691ed Merge "Invalidate on new picture if scale/content size changes" into jb-dev 2012-05-15 15:28:21 -07:00
Guang Zhu
5c0a99f3a1 Merge "Expose class name in AppWidgetHostView for accessibility" into jb-dev 2012-05-15 15:28:03 -07:00
Dianne Hackborn
e302a16235 A few odds and ends.
- Add documentation on "television" UI mode.
- Tweak new documentation and implementation around propagating
  URI grants through choosers.
- Add new activity launch flag for closing system dialogs.

Change-Id: I978c05f0dc3d16e1c55d43631828b9efa6335b19
2012-05-15 14:58:32 -07:00
Guang Zhu
1affb93764 Expose class name in AppWidgetHostView for accessibility
The class is public, part of framework, exposing it for launcher
testing.

Change-Id: Icd9b0f3e300de964b98de8d9f5f62fdc916584e3
2012-05-15 14:29:33 -07:00
Dianne Hackborn
b4131ccba3 am b4652172: am bea7afc5: Merge "Fix issue #6284404: ArrayIndexOutOfBoundsException in..." into jb-dev
* commit 'b4652172404643d0a8fffbcc315cddcc733ec5ba':
  Fix issue #6284404: ArrayIndexOutOfBoundsException in...
2012-05-15 14:03:06 -07:00
Dianne Hackborn
b465217240 am bea7afc5: Merge "Fix issue #6284404: ArrayIndexOutOfBoundsException in..." into jb-dev
* commit 'bea7afc52cc85e35b7fc200912246c62d3791198':
  Fix issue #6284404: ArrayIndexOutOfBoundsException in...
2012-05-15 13:59:47 -07:00
Dianne Hackborn
bea7afc52c Merge "Fix issue #6284404: ArrayIndexOutOfBoundsException in..." into jb-dev 2012-05-15 13:57:06 -07:00
George Mount
02c95c84f6 am 9b0ec73d: am d97d4f6c: Merge "Only open CAB for long-press." into jb-dev
* commit '9b0ec73d52749d187d2f8cbe554101bafc558068':
  Only open CAB for long-press.
2012-05-15 13:30:29 -07:00
George Mount
9b0ec73d52 am d97d4f6c: Merge "Only open CAB for long-press." into jb-dev
* commit 'd97d4f6cf642663375de59668f5d42ee12ee7a69':
  Only open CAB for long-press.
2012-05-15 13:27:13 -07:00
George Mount
d97d4f6cf6 Merge "Only open CAB for long-press." into jb-dev 2012-05-15 13:25:03 -07:00
Dianne Hackborn
03fcc333cf Fix issue #6284404: ArrayIndexOutOfBoundsException in...
...FragmentManagerImpl.restoreAllState

This was a bug related to the difference between the pre- and post-HC
behavior of onSaveInstanceState().  Prior to HC, state was saved
before calling onPause().  Starting with HC, it is saved between
onPause() and onStop().  To maintain compatibility with existing
applications, there is a check in ActivityThread for pre-HC to in
that case emulate the behavior of old applications, still calling
onSaveInstanceState() before onPause() but using the state later.

One of the special cases we had to deal with in the old model of
saving state before pausing was restarting an activity that is
already paused.

Consider, for example: you have two activities on screen, the one on
top not fullscreen so you can see the one behind.  The top activity
is resumed, the behind activity is paused.  In the pre-HC world, the
behind activity would have already had its state saved.

Now you rotate the screen, and we need to restart the activities.
We need to destroy the behind activity and create a new instance,
but the new instance has to end up in the paused state.  To
accompish this, we restart it with a flag saying that it should
end up paused.  For the pre-HC world, since it ends up paused,
we need to make sure we still have its instance state kept around
in case we need it because we can't regenerate it (since it is
already paused).

So that is what the changed code here is doing.  It goes through
the normal create/start/resume steps, but holds on to the current
saved state so that it isn't lost when resume clears it, and then
puts the activity back to paused and stuffs that old saved state
back in to it.

The problem is that this code was doing it for every application,
even HC apps.  So we end up in a bad state, when a HC app has its
saved state sitting there as if it had been saved, even though it
is only paused.  Now if we go to restart the activity again, instead
of asking it for a new saved state (as we should for a HC app as
part of stopping it), we just re-use the existing saved state again.

Now this wouldn't generally be a huge problem.  Worst case, when we
restart the activity yet again we are just instantiating it from
the same saved state as we used last time, dropping whatever changes
may have happened in-between.  Who cares?  All it has been doing is
sitting there in the background, visible to the user, but not something
they can interact with.  If the activity made changes to its
fragments, those changes will be lost, and we will restore it from
the older state.

However...  if one of those fragements is a retained fragment, this
will *not* appear in the saved state, but actually be retained across
each activity instance.  And now we have a problem: if the retained
fragments are changed during this time, the next activity instance
will be created from the most recent state for the retained fragments,
but the older state for everyting else.  If these are inconsistent...
wham, dead app.

To fix this, just don't keep the saved state for HC apps.

Also includes a small optimization to ActivityStack to not push
the home screen to the front redundantly.

Change-Id: Ic3900b12940de25cdd7c5fb9a2a28fb1f4c6cd1a
2012-05-15 13:13:33 -07:00
Svetoslav Ganov
2297edef71 am 8b764de2: am 0e3057c6: Merge "Add accessibility scroll support to some widgets." into jb-dev
* commit '8b764de2ad9787fb33f95bbcd1ac1a64427efaf3':
  Add accessibility scroll support to some widgets.
2012-05-15 12:06:09 -07:00
Svetoslav Ganov
8b764de2ad am 0e3057c6: Merge "Add accessibility scroll support to some widgets." into jb-dev
* commit '0e3057c667425e4b1326c598442e69a4e0e036e2':
  Add accessibility scroll support to some widgets.
2012-05-15 12:02:16 -07:00
Svetoslav Ganov
0e3057c667 Merge "Add accessibility scroll support to some widgets." into jb-dev 2012-05-15 11:58:55 -07:00
Jeff Sharkey
6b10c61ef9 am 68ba1c86: am d6c1e498: Merge "Migrate stream extras in CHOOSER intents." into jb-dev
* commit '68ba1c8604448049ded03a5d95d6b34241d0267d':
  Migrate stream extras in CHOOSER intents.
2012-05-15 11:44:06 -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
d6db7df171 am 1c2ecfa9: am 8b4d73b2: Merge "Revert "Showing default activity in activity chooser view only if enough space."" into jb-dev
* commit '1c2ecfa9ca918011549191e73495b5f61c5a1425':
  Revert "Showing default activity in activity chooser view only if enough space."
2012-05-15 11:39:28 -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
Gilles Debunne
83492861b6 am 8573c204: am 855f5407: Merge "Minor changes in SpellCheckSpan pool management in SpellChecker" into jb-dev
* commit '8573c204049d81d616616c6ed2ffd4629b051d59':
  Minor changes in SpellCheckSpan pool management in SpellChecker
2012-05-15 11:39:15 -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