Commit Graph

24959 Commits

Author SHA1 Message Date
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
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
Guang Zhu
5c0a99f3a1 Merge "Expose class name in AppWidgetHostView for accessibility" into jb-dev 2012-05-15 15:28:03 -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
Daniel Sandler
a9daa4707f am 4924f237: am 8414beac: Merge "Test new fonts and use correct OS version." into jb-dev
* commit '4924f2375eb78e7ec5297e7e5fb56059798b38b8':
  Test new fonts and use correct OS version.
2012-05-15 13:36:15 -07:00
Daniel Sandler
4924f2375e am 8414beac: Merge "Test new fonts and use correct OS version." into jb-dev
* commit '8414beac87b9fb411566c0c99f772c54d4223a31':
  Test new fonts and use correct OS version.
2012-05-15 13:32:22 -07:00
Daniel Sandler
8414beac87 Merge "Test new fonts and use correct OS version." into jb-dev 2012-05-15 13:30:41 -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
Daniel Sandler
f89d5079e4 Test new fonts and use correct OS version.
Bug: 6499146
Change-Id: I83d6298725fe1f3385d5bf0a34487658583141a4
2012-05-15 16:15:15 -04: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
Jeff Sharkey
68ba1c8604 am d6c1e498: Merge "Migrate stream extras in CHOOSER intents." into jb-dev
* commit 'd6c1e49847ed5389e8917ff315c91b89493ebe9f':
  Migrate stream extras in CHOOSER intents.
2012-05-15 11:38:55 -07:00
Dianne Hackborn
f2d3c418c4 am 1bcd6b8c: am a827843f: Merge "Fix issue #6020164: Settings crashed on orientation change..." into jb-dev
* commit '1bcd6b8ce8f7769e0b61dd630c98d56116d43595':
  Fix issue #6020164: Settings crashed on orientation change...
2012-05-15 11:38:54 -07:00
Adam Powell
85d598329b am 8e49098f: am e48d12b7: Merge "Fix ActionProviders that have submenus" into jb-dev
* commit '8e49098f76042c63b4fa8ede9ef9bdf75b77f509':
  Fix ActionProviders that have submenus
2012-05-15 11:38:52 -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
Chris Craik
1eda20218e am 6b65cfbe: am dbd98bfe: Merge "Remove unused native method" into jb-dev
* commit '6b65cfbe97b366ee2df4584c3ef80fd065e06cc9':
  Remove unused native method
2012-05-15 11:38:43 -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
George Mount
45f82f6149 am 124d767e: am 108feca9: Merge "Change selection to use left/right instead of base/extent." into jb-dev
* commit '124d767e9369fc3cc02bebe1e9d6ece3b98b3186':
  Change selection to use left/right instead of base/extent.
2012-05-15 11:38:30 -07:00
Jeff Sharkey
d6c1e49847 Merge "Migrate stream extras in CHOOSER intents." into jb-dev 2012-05-15 11:35:45 -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
1c2ecfa9ca am 8b4d73b2: Merge "Revert "Showing default activity in activity chooser view only if enough space."" into jb-dev
* commit '8b4d73b2d5ba91bd61b6892f5620603fe3428e50':
  Revert "Showing default activity in activity chooser view only if enough space."
2012-05-15 11:32:42 -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
Gilles Debunne
8573c20404 am 855f5407: Merge "Minor changes in SpellCheckSpan pool management in SpellChecker" into jb-dev
* commit '855f5407c74694ebd924b36738ecc79241c4becf':
  Minor changes in SpellCheckSpan pool management in SpellChecker
2012-05-15 11:32:09 -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
Dianne Hackborn
1bcd6b8ce8 am a827843f: Merge "Fix issue #6020164: Settings crashed on orientation change..." into jb-dev
* commit 'a827843f9b46700a187bd3a506498a0f36f474fa':
  Fix issue #6020164: Settings crashed on orientation change...
2012-05-15 11:31:16 -07:00
Adam Powell
8e49098f76 am e48d12b7: Merge "Fix ActionProviders that have submenus" into jb-dev
* commit 'e48d12b78011ff5ddbb6838a038ea5384190ec92':
  Fix ActionProviders that have submenus
2012-05-15 11:31:13 -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
Chris Craik
6b65cfbe97 am dbd98bfe: Merge "Remove unused native method" into jb-dev
* commit 'dbd98bfecb34eb3f7101994a6026c7a68ea1e8a9':
  Remove unused native method
2012-05-15 11:31:00 -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
George Mount
124d767e93 am 108feca9: Merge "Change selection to use left/right instead of base/extent." into jb-dev
* commit '108feca9a02e7b5da705161660b76d4f356f5900':
  Change selection to use left/right instead of base/extent.
2012-05-15 11:30:41 -07:00
Svetoslav Ganov
48d1586f40 Add accessibility scroll support to some widgets.
1. Added support for accessibility scroll action to
   some widgets that are scrollable.

2. Making the super call when handling an accessibility
   action in the views to call super first to allow
   an accessibility delegate to intercept the call.

bug:5932640

Change-Id: I5eb37d64bf9fba1d5c596981132e0df717e2a18a
2012-05-15 11:21:32 -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
8b4d73b2d5 Merge "Revert "Showing default activity in activity chooser view only if enough space."" into jb-dev 2012-05-15 10:49:01 -07:00
Svetoslav Ganov
0e29ac9e4e Merge "Accessibility focus traversal in virtual nodes." into jb-dev 2012-05-15 10:48:44 -07:00
George Mount
899f609f78 Only open CAB for long-press.
Bug 6182286

Change-Id: I18590c457548e63cf45f5f7b626f5e8bd855f521
2012-05-15 08:28:28 -07:00