9686 Commits

Author SHA1 Message Date
Daniel Sandler
e00913ebe4 am a0e0d580: Merge "Removing a notification that isn\'t there isn\'t a big deal." into jb-dev
* commit 'a0e0d5806c9aa12e291d9ceb60a35eb9b7fde5b0':
  Removing a notification that isn't there isn't a big deal.
2012-05-16 10:16:44 -07:00
Daniel Sandler
fe0806a3b6 Removing a notification that isn't there isn't a big deal.
You shouldn't do it, but there's no need to fault your
process.

Bug: 6396830
Change-Id: I47c20b9829e4e8bb98862f33c3c52be1b5987f37
2012-05-16 12:43:02 -04:00
Dianne Hackborn
4f9842ca45 am 80fea051: Merge "Fix some issues with updating the offsets of a window." into jb-dev
* commit '80fea051ba7e8e3ad82eca3d907aaa4a528658d1':
  Fix some issues with updating the offsets of a window.
2012-05-15 18:17:42 -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
80fea051ba Merge "Fix some issues with updating the offsets of a window." into jb-dev 2012-05-15 18:15:47 -07:00
Dianne Hackborn
3e52fc2515 Fix some issues with updating the offsets of a window.
- Apply the correct crop rect at this point.
- Apply the correct position by taking into account the frame left/top.
- Don't directly apply the new values if the window is currently
  animating, since we need to go through the whole animation step
  to determine what the correct position is (taking into account
  any transformations).

Change-Id: I15d79354d9779867c49c7c0880faccdead7b021d
2012-05-15 17:58:02 -07:00
Robert Greenwalt
b5aff3fde3 Add some logging to NDC.
bug:6492166
Change-Id: Ib7c7a0927d3e920f6c041f7252f3f24c8e597bc7
2012-05-15 17:26:57 -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
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
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
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
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
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
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
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
Geremy Condra
c9e7aede3e am b696c054: Merge "Adds support for the CertBlacklister." into jb-dev
* commit 'b696c0542cae70d7f66b9011be2f9d1812885159':
  Adds support for the CertBlacklister.
2012-05-15 11:30:36 -07:00
Kenny Root
017c5f78d9 am 4ebaf0f1: Merge "Change thread priority for disk measurement to bg" into jb-dev
* commit '4ebaf0f1d4be34f475bb663784b40cf79b9d2184':
  Change thread priority for disk measurement to bg
2012-05-15 11:30:23 -07:00
Amith Yamasani
bfc1be1101 Fix a problem in finish affinity in Activity Manager.
Finishing tasks with an activity affinity was failing if the
activity was found at index 0. This fixes the loop condition.

Change-Id: If2e0d294e3e4493bca8b7efd40f24adaf2eb0b6f
2012-05-15 11:12:17 -07:00
Jamie Gennis
06220076ab am 04d35218: Merge "WindowManager: unset the wallpaper window crop" into jb-dev
* commit '04d3521839c90d1cccf3ee428963a0aef0088ef9':
  WindowManager: unset the wallpaper window crop
2012-05-14 19:33:35 -07:00
Svetoslav Ganov
1ec37a9b17 am 11fd02f6: Merge "Update the API version checks." into jb-dev
* commit '11fd02f63acba18a1b03351b595490597136fc6a':
  Update the API version checks.
2012-05-14 19:32:49 -07:00
Svetoslav Ganov
21ba7c9603 am 8f761760: Merge "Removing default accessibility gesture handling." into jb-dev
* commit '8f76176016a63026168f5886604d4378f170fc6c':
  Removing default accessibility gesture handling.
2012-05-14 19:32:47 -07:00
Dianne Hackborn
2da87ec32e am 2a7a6ca0: Merge "Implement new window cropping." into jb-dev
* commit '2a7a6ca00ab176105b5bbfa6b17bb0dcd058d517':
  Implement new window cropping.
2012-05-14 19:32:39 -07:00
Dianne Hackborn
a827843f9b Merge "Fix issue #6020164: Settings crashed on orientation change..." into jb-dev 2012-05-14 17:31:53 -07:00
Dianne Hackborn
b61a02657b Fix issue #6020164: Settings crashed on orientation change...
...while listening to TTS example

This was a nice one.  What was happening is that immediately upon
being created, the activity was starting another activity in a
different process.  The second activity would never show, just
immediately exit.  However the original activity had time to
pause and get into stopping itself before the second activity had
come back to the activity manager to say it was going away, resulting
in the activity manager asking the original activity to resume.

At this point the activity manager's state is that the second
activity is finishing and gone, and the original activity is
resumed.  However in the app process the original activity is
still working on stopping itself, and it eventually completes
this and tells the activity manager.  The activity manager now
changes its state to STOPPED, even though it is actually resumed
and that is the last thing it told it to be, and it is now
proceeding to set itself in that state.

This would result later in the activity manager sending an
unnecessary state change to the application.  In the case of
the screen here, we next do a rotation change, the activity
manager thinks the current state is STOPPED not RESUMED, so it
tells the application to relaunch the activity in a new config
but not in the resumed state.  Now it does the whole "start a
new temporary activity" thing again, at which point it tries
to pause the original activity again, and we have an unbalanced
onPause() call to the app and it falls over.

Change-Id: I38b680746f4c61ae30e7ce831e1de187adf60902
2012-05-14 17:19:18 -07:00
Geremy Condra
b696c0542c Merge "Adds support for the CertBlacklister." into jb-dev 2012-05-14 15:53:48 -07:00
Kenny Root
a69b7eb1fc Change thread priority for disk measurement to bg
Change the thread priority for all disk measurement and statfs calls to
background priority.

Also move the measurement fully into the measurement task since it makes
more sense.

Bug: 6332097
Change-Id: Iafc2151313ad9b14117daf67e933dccd32f68d54
2012-05-14 15:02:19 -07:00
Jamie Gennis
521e0d794d WindowManager: unset the wallpaper window crop
This change removes the window crop of the wallpaper when setting its position.

Change-Id: I0f4dc10ea9a724b210f75286580ef391145286df
2012-05-14 04:11:02 -07:00
Svetoslav Ganov
11fd02f63a Merge "Update the API version checks." into jb-dev 2012-05-13 19:09:47 -07:00
Svetoslav Ganov
8f76176016 Merge "Removing default accessibility gesture handling." into jb-dev 2012-05-13 19:09:35 -07:00
Dianne Hackborn
2a7a6ca00a Merge "Implement new window cropping." into jb-dev 2012-05-13 15:24:32 -07:00
Svetoslav Ganov
5a48f9758b Update the API version checks.
1. Since the API version has been finalized this change
   updates the SDk version checks to use the JellyBean
   verson number.

bug:5947249

Change-Id: Ie22fa7e18a7ea7b0c7077d80246a26c17f327ceb
2012-05-13 13:34:00 -07:00
Dianne Hackborn
85afd1b6f8 Implement new window cropping.
The window manager now performs the crop internally, evaluating
it every animation from, to be able to update it along with
the surface position.

Change-Id: I960a2161b9defb6fba4840fa35aee4e411c39b32
2012-05-13 13:31:06 -07:00
Svetoslav Ganov
7b1e0c7046 Removing default accessibility gesture handling.
1. The initial design was to have some accessibility gestures
   being handled by the system if the gesture handling access
   service does not consume the gesture. However, we are not
   sure what a good default is and once we add a default handler
   we cannot remove it since people may rely on it. Thus, we
   take the simples approach and let the accessibility service
   handle the gestures. If no gestures are handled the system
   will work in explore by touch as before.

bug:5932640

Change-Id: I865a83549fa03b0141d27ce9713e9b7bb45a57b4
2012-05-13 12:39:51 -07:00
Michael Jurka
e4046724f6 am c8179e78: Merge "Improve transition out of recents" into jb-dev
* commit 'c8179e78052af3d68725e1160214a736f143f8a2':
  Improve transition out of recents
2012-05-12 14:03:56 -07:00
Michael Jurka
c8179e7805 Merge "Improve transition out of recents" into jb-dev 2012-05-12 14:01:43 -07:00
Michael Jurka
d5895a7e8a Improve transition out of recents
- During the transition, fade the bg to black
- Exiting activity fades to black
- Recents background no longer fades away, because
then it would fight against the fade to black
happening behind it
2012-05-12 13:24:58 -07:00
Geremy Condra
3d33c268cc Adds support for the CertBlacklister.
The CertBlacklister is a mechanism for allowing is to use gservices
to blacklist certs by serial number or public key.

Change-Id: Ie4b0c966a8a43c9823fb550c0b1691204f133ae7
2012-05-12 13:09:45 -07:00
Jeff Brown
a1f13767b3 am 11cfd0d4: Merge "Tell power HAL when user activity occurs." into jb-dev
* commit '11cfd0d41f3c848ffd54ba650aa921d5224e7917':
  Tell power HAL when user activity occurs.
2012-05-11 19:35:26 -07:00
Jeff Brown
a48816375f am 58770232: Merge "Move power HAL interactions to PowerManagerService." into jb-dev
* commit '58770232216cd735afdfd3dd53151070e06de5ce':
  Move power HAL interactions to PowerManagerService.
2012-05-11 19:35:23 -07:00
Jeff Brown
11cfd0d41f Merge "Tell power HAL when user activity occurs." into jb-dev 2012-05-11 19:33:17 -07:00
Jeff Brown
5877023221 Merge "Move power HAL interactions to PowerManagerService." into jb-dev 2012-05-11 19:32:56 -07:00
Jeff Brown
30e5eb4826 Tell power HAL when user activity occurs.
Bug: 6435382
Change-Id: I78754158b057851fcba807ebbda143899da387ec
2012-05-11 19:18:56 -07:00
Jeff Brown
7304c34382 Move power HAL interactions to PowerManagerService.
This refactoring sets the stage for a follow-on change that
will make use additional functions of the power HAL.

Moved functionality from android.os.Power into PowerManagerService.
None of these functions make sense being called outside of the
system server.  Moving them to the PowerManagerService makes it
easier to ensure that the power HAL is initialized exactly once.

Similarly, moved ShutdownThread out of the policy package and into
the services package where it can tie into the PowerManagerService
as needed.

Bug: 6435382
Change-Id: I958241bb124fb4410d96f5d5eb00ed68d60b29e5
2012-05-11 18:42:42 -07:00
Craig Mautner
ba523324f3 am ab1c5456: Merge "Keep launcher screen from flashing over lockscreen" into jb-dev
* commit 'ab1c5456b789205ef305b19e5a7682b6561aacac':
  Keep launcher screen from flashing over lockscreen
2012-05-11 16:09:31 -07:00
Craig Mautner
ab1c5456b7 Merge "Keep launcher screen from flashing over lockscreen" into jb-dev 2012-05-11 16:07:10 -07:00
Jeff Sharkey
f2fe4cb11b am cd586258: Merge "Enforce READ_EXTERNAL through Settings.Secure." into jb-dev
* commit 'cd5862586ab555b53ffd0a62488843838d1aa94d':
  Enforce READ_EXTERNAL through Settings.Secure.
2012-05-11 15:49:00 -07:00
Jeff Sharkey
cd5862586a Merge "Enforce READ_EXTERNAL through Settings.Secure." into jb-dev 2012-05-11 15:47:01 -07:00