77172 Commits

Author SHA1 Message Date
James Dong
1fb01d9a48 am 6387c8a9: Merge "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine" into jb-dev
* commit '6387c8a9cb52e6b7bb1a0fb40ee3b66c00ad6697':
  Remove dependency of libvideoeditor_jni.so on static libs from video editor engine
2012-05-15 14:27:04 -07:00
James Dong
6387c8a9cb Merge "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine" into jb-dev 2012-05-15 14:24:13 -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
Adam Cohen
ff94e5fca3 am 0a283346: Merge "Adjusting default widget padding for sw600 dp devices (issue 6491977)" into jb-dev
* commit '0a283346aae1801e5b773673729d97336ce42c43':
  Adjusting default widget padding for sw600 dp devices (issue 6491977)
2012-05-15 13:50:26 -07:00
Adam Cohen
0a283346aa Merge "Adjusting default widget padding for sw600 dp devices (issue 6491977)" into jb-dev 2012-05-15 13:47:48 -07:00
Svetoslav Ganov
fdf567e44d am 0bef7245: Merge "Implement the global accessibility action to expand notifications." into jb-dev
* commit '0bef72450b954ab0254ab948f75a89d65af3808c':
  Implement the global accessibility action to expand notifications.
2012-05-15 13:44:13 -07:00
Svetoslav Ganov
0bef72450b Merge "Implement the global accessibility action to expand notifications." into jb-dev 2012-05-15 13:41:25 -07:00
Adam Cohen
cd1b10b257 Adjusting default widget padding for sw600 dp devices (issue 6491977)
Change-Id: Ib5ae1452509f4f12c3bfc485b61251490a37960b
2012-05-15 13:38:02 -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
Svetoslav Ganov
5c89f44ea1 Implement the global accessibility action to expand notifications.
bug:6468852

Change-Id: Id4494a07b1ed96773e22dcfdd5991afe3ee98004
2012-05-15 13:28:14 -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
Svetoslav Ganov
ef2f0dfb48 am dff62196: Merge "Keeping the screen on during gesture detection." into jb-dev
* commit 'dff621968da21d747c462c64cc80c1b27bd17dcc':
  Keeping the screen on during gesture detection.
2012-05-15 13:24:18 -07:00
Svetoslav Ganov
dff621968d Merge "Keeping the screen on during gesture detection." into jb-dev 2012-05-15 13:21:16 -07:00
Jeff Sharkey
6e547abdf0 am df7adb3a: Merge "Enable haptic feedback from ILockSettings." into jb-dev
* commit 'df7adb3a44f89578064975fa98324f0e9d84bdf3':
  Enable haptic feedback from ILockSettings.
2012-05-15 13:18:38 -07:00
Jeff Sharkey
df7adb3a44 Merge "Enable haptic feedback from ILockSettings." into jb-dev 2012-05-15 13:16:45 -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
d1ff736d01 Keeping the screen on during gesture detection.
1. During gesture detection we are not injecting the events we receive
   since we do not want the accessibility focus to move as a result of
   the hover event of the gesture. Because of that it was possible that
   we consume all events since the user performs only gesture to navigate
   resulting in the screen being off while the user is actively interacting
   with the device. Now we are poking the user activity in the power
   manager to keep the screen on.

bug:6485171

Change-Id: I06a09c5297f01bef5e20d471cee76fa7aae0c4fe
2012-05-15 12:51:43 -07:00
Jeff Sharkey
97bbac1b33 am d9016b2c: Merge "Disable verbose RingtonePlayer debugging." into jb-dev
* commit 'd9016b2c949309bccfdc2871e1dba36136969a3f':
  Disable verbose RingtonePlayer debugging.
2012-05-15 12:45:29 -07:00
Jeff Sharkey
d9016b2c94 Merge "Disable verbose RingtonePlayer debugging." into jb-dev 2012-05-15 12:43:48 -07:00
David Hu
adba4f454e am 981bd8a4: Merge "Allow tests to run when bandwidth profiling fails" into jb-dev
* commit '981bd8a4cdd488abd69e17b275dac08c14f2ec61':
  Allow tests to run when bandwidth profiling fails
2012-05-15 12:39:34 -07:00
David Hu
981bd8a4cd Merge "Allow tests to run when bandwidth profiling fails" into jb-dev 2012-05-15 12:37:52 -07:00
Jeff Sharkey
3fb0af38a1 Enable haptic feedback from ILockSettings.
Bug: 6438580
Change-Id: I671ef3c7ac816596ab1944609bae672d1b0cb0ef
2012-05-15 12:37:51 -07:00
Amith Yamasani
a5695eeeaf am 0aeb05e6: Merge "Fix a problem in finish affinity in Activity Manager." into jb-dev
* commit '0aeb05e6ded37dcf3d02ee1e8021ed61d4fec52a':
  Fix a problem in finish affinity in Activity Manager.
2012-05-15 12:06:27 -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
Amith Yamasani
0aeb05e6de Merge "Fix a problem in finish affinity in Activity Manager." into jb-dev 2012-05-15 12:01:55 -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
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
Jeff Sharkey
b6e404a95f Disable verbose RingtonePlayer debugging.
Bug: 6491451
Change-Id: I41119599b5bbcc1a2bb717b3673e01e4b5366b9c
2012-05-15 11:36:11 -07:00
Jeff Sharkey
d6c1e49847 Merge "Migrate stream extras in CHOOSER intents." into jb-dev 2012-05-15 11:35:45 -07:00
Romain Guy
952a4512a8 am 2298fe22: Merge "Avoid unnecessary copy when invoking drawBitmap(int[]) Bug #6483390" into jb-dev
* commit '2298fe223f1ae45d45dbdd69e115a24a8ea2df10':
  Avoid unnecessary copy when invoking drawBitmap(int[]) Bug #6483390
2012-05-15 11:32:55 -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
Chris Wren
d24286a1f4 am 66757217: Create separate dimensions for the notificaitons and notification rows. Use notification heights on layouts internal to the notificaitons. Use row heights where padding needs to be protected, on row layout decisions. Clean up values-xhdpi/dimens.xml since
* commit '66757217a6d8e6a156d15be55bf77940e2e6194b':
  Create separate dimensions for the notificaitons and notification rows. Use notification heights on layouts internal to the notificaitons. Use row heights where padding needs to be protected, on row layout decisions. Clean up values-xhdpi/dimens.xml since there is no longer a values-hdpi/dimens.xml.
2012-05-15 11:32:16 -07:00
Chris Wren
88a7212f4c am e9e37725: Update both views for rich notifications.
* commit 'e9e3772534f6410005ae3a61c415e71ac093e732':
  Update both views for rich notifications.
2012-05-15 11:32:15 -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
Jeff Brown
aebfdc231a am e4db99cf: Merge "Detect when pointer has stopped moving." into jb-dev
* commit 'e4db99cf87c47730e80dc1431f07f4f1062c648e':
  Detect when pointer has stopped moving.
2012-05-15 11:31:47 -07:00
Jeff Brown
634ec69aa9 am 08b544c7: Merge "Fix pointer indexing issue in VelocityTracker." into jb-dev
* commit '08b544c7be67343b10a4130611318b8273d06433':
  Fix pointer indexing issue in VelocityTracker.
2012-05-15 11:31:45 -07:00
Jim Miller
9de7027433 am a5b2d487: Merge "Fix 6483412: Disable search from navbar while SUW is running" into jb-dev
* commit 'a5b2d487005e967eb43b5e077713d6f9bc819fe4':
  Fix 6483412: Disable search from navbar while SUW is running
2012-05-15 11:31:34 -07:00
Jeff Brown
7469f8bb94 am 47a4a50d: Merge "Improve touch event resampling." into jb-dev
* commit '47a4a50df09b5ab76ee06cb8845fe5a02952ec32':
  Improve touch event resampling.
2012-05-15 11:31:32 -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
Adam Powell
95c9f90e55 am 9e8b7406: Merge "Fix text coloring for action mode "close" option" into jb-dev
* commit '9e8b7406ca4b4f46486a624ff8a9849f3e46cbd4':
  Fix text coloring for action mode "close" option
2012-05-15 11:31:11 -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