77845 Commits

Author SHA1 Message Date
Stephen Hines
030ab67e7b am 69b2bda2: am a7ea0d39: Merge "Add unit tests for convert (with relaxed precision)." into jb-dev
* commit '69b2bda2e967a2f53e689c9622c748c0a810fb46':
  Add unit tests for convert (with relaxed precision).
2012-05-15 15:17:53 -07:00
Stephen Hines
69b2bda2e9 am a7ea0d39: Merge "Add unit tests for convert (with relaxed precision)." into jb-dev
* commit 'a7ea0d3968dc990aa76f3535c213e735e6d5e186':
  Add unit tests for convert (with relaxed precision).
2012-05-15 15:15:21 -07:00
Stephen Hines
a7ea0d3968 Merge "Add unit tests for convert (with relaxed precision)." into jb-dev 2012-05-15 15:11:55 -07:00
Stephen Hines
8a07109585 Merge "Test float vector versions of rsDebug()." 2012-05-15 15:08:09 -07:00
James Dong
2fd30eed37 am 7840dfaf: am 5301a56c: Merge "Revert "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine"" into jb-dev
* commit '7840dfaf1545e7299521c892b3281e64f4eb8dcf':
  Revert "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine"
2012-05-15 14:59:16 -07:00
Adam Powell
d80b71bee5 am 60d9dfcb: am 5ff7efa2: Merge "Appease the simians" into jb-dev
* commit '60d9dfcb7e613c5efbb055c2f666400e7cbad3d4':
  Appease the simians
2012-05-15 14:59:14 -07:00
James Dong
7840dfaf15 am 5301a56c: Merge "Revert "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine"" into jb-dev
* commit '5301a56cc38b8558d88220968880cc0381469ed2':
  Revert "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine"
2012-05-15 14:56:23 -07:00
Adam Powell
60d9dfcb7e am 5ff7efa2: Merge "Appease the simians" into jb-dev
* commit '5ff7efa253486b2b482031ab9a3714fc5cc10f7f':
  Appease the simians
2012-05-15 14:56:21 -07:00
James Dong
5301a56cc3 Merge "Revert "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine"" into jb-dev 2012-05-15 14:54:38 -07:00
Adam Powell
5ff7efa253 Merge "Appease the simians" into jb-dev 2012-05-15 14:54:00 -07:00
James Dong
f20e4f4b1a Revert "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine"
This reverts commit cbaa821b7f286a54767cc8bc549504ea2ed86e4d.
2012-05-15 14:51:52 -07:00
Adam Powell
a60314c707 Appease the simians
Ensure that the shown panel view is not currently attached to a parent
before adding it to the panel decor view.

Bug 6430928

Change-Id: Ic64ec4222db4754e64afdf06d7d2b77fb5ef825a
2012-05-15 14:33:13 -07:00
James Dong
22b25b185f am 1fb01d9a: am 6387c8a9: Merge "Remove dependency of libvideoeditor_jni.so on static libs from video editor engine" into jb-dev
* commit '1fb01d9a48dcb1dcdd6a4feca9f51213f50df94f':
  Remove dependency of libvideoeditor_jni.so on static libs from video editor engine
2012-05-15 14:29:35 -07:00
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
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
Adam Cohen
ad88c743f1 am ff94e5fc: am 0a283346: Merge "Adjusting default widget padding for sw600 dp devices (issue 6491977)" into jb-dev
* commit 'ff94e5fca347a009b112e98e9470391b278f31a3':
  Adjusting default widget padding for sw600 dp devices (issue 6491977)
2012-05-15 13:54:03 -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
Svetoslav Ganov
1a1318d9a0 am fdf567e4: am 0bef7245: Merge "Implement the global accessibility action to expand notifications." into jb-dev
* commit 'fdf567e44ded6f2e073ffa38997aaab7259d2576':
  Implement the global accessibility action to expand notifications.
2012-05-15 13:48:13 -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
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
Svetoslav Ganov
5c89f44ea1 Implement the global accessibility action to expand notifications.
bug:6468852

Change-Id: Id4494a07b1ed96773e22dcfdd5991afe3ee98004
2012-05-15 13:28:14 -07:00
Svetoslav Ganov
9b3e7d1871 am ef2f0dfb: am dff62196: Merge "Keeping the screen on during gesture detection." into jb-dev
* commit 'ef2f0dfb48f9c1e88fd6067c65786971bb9b5a65':
  Keeping the screen on during gesture detection.
2012-05-15 13:27:17 -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
Jeff Sharkey
c82c0087b1 am 6e547abd: am df7adb3a: Merge "Enable haptic feedback from ILockSettings." into jb-dev
* commit '6e547abdf09b0b869636fb692b9ecf2ecf1fb720':
  Enable haptic feedback from ILockSettings.
2012-05-15 13:23:54 -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
ec66b0d600 am 97bbac1b: am d9016b2c: Merge "Disable verbose RingtonePlayer debugging." into jb-dev
* commit '97bbac1b33ac8acae6a477889ef9d226694c19f3':
  Disable verbose RingtonePlayer debugging.
2012-05-15 12:48:34 -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
db17c38e17 am adba4f45: am 981bd8a4: Merge "Allow tests to run when bandwidth profiling fails" into jb-dev
* commit 'adba4f454e102c89bf08cc8bbfcaf9f3751c4bf6':
  Allow tests to run when bandwidth profiling fails
2012-05-15 12:43:34 -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
99bf850093 am a5695eee: am 0aeb05e6: Merge "Fix a problem in finish affinity in Activity Manager." into jb-dev
* commit 'a5695eeeafcd31bcf000eae320cf6025200cbb8c':
  Fix a problem in finish affinity in Activity Manager.
2012-05-15 12:09:47 -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