3785 Commits

Author SHA1 Message Date
Dianne Hackborn
aadc76edb1 am 2146dc79: am 0ad9e247: Merge "Add new wallpaper features for insets and offsets." into lmp-dev
* commit '2146dc791c53895b60161d8819b25b4277290c4b':
  Add new wallpaper features for insets and offsets.
2014-09-09 16:55:06 +00:00
Dianne Hackborn
bb8c483461 Merge "Add new wallpaper features for insets and offsets." into lmp-dev 2014-09-09 16:41:44 +00:00
Paul Jensen
7f7e0b07a7 am d40b08f4: am 2ea21f45: Merge "Stop logging false error when lingering completes." into lmp-dev
* commit 'd40b08f44a77e5fd4779d532492d902bdd7b8c1f':
  Stop logging false error when lingering completes.
2014-09-09 11:18:05 +00:00
Paul Jensen
3c745386f0 am 12610b50: am 61892299: Merge "Don\'t send listening NetworkRequests to NetworkFactories." into lmp-dev
* commit '12610b501956772e697f04a152fe617a31a9d1e0':
  Don't send listening NetworkRequests to NetworkFactories.
2014-09-09 11:18:00 +00:00
Paul Jensen
551cb38e95 am 035010e5: am 6801c1b7: Merge "Implement ConnectivityManager.reportBadNetwork() to trigger network validation." into lmp-dev
* commit '035010e5975f0f4b70cfc4361c622dc2685b0ce2':
  Implement ConnectivityManager.reportBadNetwork() to trigger network validation.
2014-09-09 11:17:55 +00:00
Paul Jensen
eea87a3a44 Merge "Stop logging false error when lingering completes." into lmp-dev 2014-09-09 10:59:42 +00:00
Paul Jensen
fc2c5c9199 Merge "Don't send listening NetworkRequests to NetworkFactories." into lmp-dev 2014-09-09 10:59:20 +00:00
Paul Jensen
f9b42de2ab Merge "Implement ConnectivityManager.reportBadNetwork() to trigger network validation." into lmp-dev 2014-09-09 10:58:59 +00:00
Michael Wright
3256adc666 am 437bd674: am f71585f6: Merge "Use new device identifier to check if a layout has been set." into lmp-dev
* commit '437bd674a962fecb5d0cbf8bfe5f2c07c3aa527e':
  Use new device identifier to check if a layout has been set.
2014-09-09 05:21:49 +00:00
Michael Wright
e04c75eb38 Merge "Use new device identifier to check if a layout has been set." into lmp-dev 2014-09-09 03:27:10 +00:00
Michael Wright
86aaca6824 Use new device identifier to check if a layout has been set.
Bug: 16486654
Change-Id: If55eacfc6878109b5bcb36ca338eb2cd75a40309
2014-09-08 19:25:10 -07:00
Dianne Hackborn
067e5f68b9 Add new wallpaper features for insets and offsets.
Issue #17394151: WallpaperService / Engines need to get notified
of WindowInsets

Issue #17394203 Wallpapers need a system API to be shifted in order
to support burn in protection

Adds a new API on WallpaperManager to set additional offsets to
make wallpapers extend beyond the display size.

Insets are now reported to wallpapers, to use as they may.  This
includes information about the above offsets, so they can place
their content within the visible area.  And to help with this, also
expose the stable offsets APIs in WindowInsets which is also very
useful information for the wallpaper.

Another new API on WallpaperManager to set a raw offset to apply
to the wallpaper window, forcing it to move on the screen regardless
of what the wallpaper is drawing.

Fix wallpapers when used with overscan enabled, so they still extend
out across the entire screen.  Conveniently, the above new window
insets information is very useful for this case as well!

And a new wallpaper test app for all this stuff.

Change-Id: I287ee36581283dd34607609fcd3170d99d120d8e
2014-09-08 18:02:18 -07:00
Andreas Gampe
f43f04ed6f Merge "Frameworks/base: Add native bridge post-fork initialization" into lmp-dev 2014-09-09 00:41:35 +00:00
Sreeram Ramachandran
6371ab64cf am 61e1d7da: am ccfdd756: Merge "Reserve NetIds 1..50 for OEM use." into lmp-dev
* commit '61e1d7da7b087656a63079d41000f755d03820db':
  Reserve NetIds 1..50 for OEM use.
2014-09-08 23:42:46 +00:00
Michael Wright
d7b6de2f4d am 3026f1b7: am 64ae551a: Merge "Remove unused variables from UsbHostManager." into lmp-dev
* commit '3026f1b71089bde3ff0be7254c7b2bb3989088a6':
  Remove unused variables from UsbHostManager.
2014-09-08 23:31:48 +00:00
Sreeram Ramachandran
e7df34e01d Merge "Reserve NetIds 1..50 for OEM use." into lmp-dev 2014-09-08 23:28:48 +00:00
Michael Wright
58d90c18ec Merge "Remove unused variables from UsbHostManager." into lmp-dev 2014-09-08 23:13:43 +00:00
Tsuwei Chen
c4c7c9d5f2 am 62645748: am 38000b0f: Merge "Manually merge QC\'s change for SUPL_ES." into lmp-dev
* commit '626457486cbf5e40c77019f965755ae30b72af22':
  Manually merge QC's change for SUPL_ES.
2014-09-08 22:48:30 +00:00
Michael Wright
f5e56d41a2 Remove unused variables from UsbHostManager.
Change-Id: I68067b69de077667482633cc6ecd97ee94ecb699
2014-09-08 15:27:42 -07:00
Tsuwei Chen
ff4f6c8859 Merge "Manually merge QC's change for SUPL_ES." into lmp-dev 2014-09-08 22:15:32 +00:00
Christoph Studer
9360609a5c am a68d6e31: am ea3bd1ac: Merge "NoMan: Fix speedbump with multiple package priorities" into lmp-dev
* commit 'a68d6e319faf12b304194b85d329b71045385482':
  NoMan: Fix speedbump with multiple package priorities
2014-09-08 21:40:02 +00:00
Christoph Studer
6a73202e00 Merge "NoMan: Fix speedbump with multiple package priorities" into lmp-dev 2014-09-08 21:26:30 +00:00
John Spurlock
6155cfc52d am 7570a672: am e5feafcd: Merge "Zen: Remove suppression of untagged vibrations in zen mode." into lmp-dev
* commit '7570a6725701432e74d4a80f4ad2acb7b1f061e7':
  Zen: Remove suppression of untagged vibrations in zen mode.
2014-09-08 21:00:51 +00:00
John Spurlock
897b01b39e Merge "Zen: Remove suppression of untagged vibrations in zen mode." into lmp-dev 2014-09-08 20:40:46 +00:00
Craig Mautner
b1550f7b19 am 0e7b0ba3: am 8ffe407a: Merge "Relax requirements on Activity.requestVisibleBehind" into lmp-dev
* commit '0e7b0ba35c3d4341faf438b86570127ec9543bc2':
  Relax requirements on Activity.requestVisibleBehind
2014-09-08 20:30:48 +00:00
John Spurlock
1564b6d8d7 Zen: Remove suppression of untagged vibrations in zen mode.
Bug:17313184
Change-Id: I07d24a7d9ce15160a4990391c53d7d6309a13c3e
2014-09-08 16:16:25 -04:00
Craig Mautner
ff56885db3 Merge "Relax requirements on Activity.requestVisibleBehind" into lmp-dev 2014-09-08 20:12:35 +00:00
Andreas Gampe
6b0ed64fb8 Frameworks/base: Add native bridge post-fork initialization
(cherry picked from commit d7746a8b65ee4690427ed798816f970218578fa3)

Change-Id: I5a20de1cb68dd1802937b369b14c50c9c1031c67
2014-09-08 13:07:59 -07:00
Jason Monk
d0d5e41ada am 70e3eac1: am 01ac9651: Merge "Update downtime to handle TimeZone change" into lmp-dev
* commit '70e3eac113387297e93c9c8ccd6f0ec43ce83422':
  Update downtime to handle TimeZone change
2014-09-08 18:49:37 +00:00
Craig Mautner
e05da2757c am b36ef767: am 851f7eb5: Merge "Ignore finishing activities when fetching the top" into lmp-dev
* commit 'b36ef767ba68b66457b05c9b185a45fd595fb4ed':
  Ignore finishing activities when fetching the top
2014-09-08 18:49:32 +00:00
Jason Monk
100d9471ab Merge "Update downtime to handle TimeZone change" into lmp-dev 2014-09-08 18:33:09 +00:00
Craig Mautner
d2a38c7854 Merge "Ignore finishing activities when fetching the top" into lmp-dev 2014-09-08 18:32:01 +00:00
Jeff Sharkey
6098a3acc9 am fa8211c5: am 2f0ed017: Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev
* commit 'fa8211c5f7b8939e230f5643cd94a6e8686571b6':
  Delayed ASEC allocation, refine progress handling.
2014-09-08 17:00:42 +00:00
Jeff Sharkey
e016605981 Merge "Delayed ASEC allocation, refine progress handling." into lmp-dev 2014-09-08 16:38:42 +00:00
Jeff Sharkey
77d218e186 Delayed ASEC allocation, refine progress handling.
For restore use-case, session creation needs to complete quickly, so
delay ASEC allocation until session is opened.  When preflighting
size checks, only consider external when we have a known size for the
container.  Also relax size checks when using MODE_INHERIT_EXISTING
on external, since we don't know how much of existing app will be
copied over.

Consider session as "active" while commit is ongoing, until we're
either finished or pending user interaction.

Always publish first client needle movement away from 0.  Use 25% of
internal progress to reflect ASEC allocation.

Avoid CloseGuard messages about leaking PFDs.

Bug: 17405741, 17402982
Change-Id: I6247a1d335d26621549c701c4c4575a8d16ef8c2
2014-09-08 09:31:49 -07:00
Tsuwei Chen
3324e95412 Manually merge QC's change for SUPL_ES.
Original CL: https://android-review.googlesource.com/#/c/105431

Emergency SUPL

Added emergency SUPL when UE is
in emergency mode.

Bug: 17118312


Change-Id: Id9b77add9bbab139b983a84d5a4c798c9c94df43
2014-09-08 07:11:02 +00:00
Craig Mautner
0175b882b5 Ignore finishing activities when fetching the top
When the top activity is finishing we don't want to be comparing
it for matches to launching activities. This was keeping curTop
from matching itself when launching a lower task.

Fixes bug 17383648.

Change-Id: I837ac087ef965d99d12c98ab1c779de46716e204
2014-09-07 18:05:31 -07:00
Craig Mautner
aea5ceded8 Relax requirements on Activity.requestVisibleBehind
The requirement that the top app be resumed in order to request
background visibility was too strict. In particular when the
background app is pausing the top app will be stopped waiting for
pause to complete. This is an appropriate time for the background
app to request visibility but we were rejecting that request.

Also, there is no need for the top app to have an active thread
except to notify it of the changed state.

Fixes bug 17383876.

Change-Id: I52f910baf6c109565694e053445516e1e5fd1c48
2014-09-07 17:08:39 -07:00
Craig Mautner
49fd6e1d09 am 83f2feb5: am 86f289be: Merge "Lock down window manager while changing opacity" into lmp-dev
* commit '83f2feb5fc92fd6364f036fd4430dd7331a85d89':
  Lock down window manager while changing opacity
2014-09-07 22:35:28 +00:00
Craig Mautner
b3fdbac020 Merge "Lock down window manager while changing opacity" into lmp-dev 2014-09-07 22:15:42 +00:00
Winson Chung
2e29a6dc03 am 3004eee6: am 04682c2f: Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
* commit '3004eee618c3fad547768210f9252bad5abb0f69':
  Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
2014-09-07 20:25:59 +00:00
Craig Mautner
6f61204bca Lock down window manager while changing opacity
Surfaces were being modified after destroy(). The check for mSurface
being null was not done while holding window the window manager lock.
This change adds locking to the surface modification methods.

Fixes bug 17383628.

Change-Id: I12ebbddc0f2cd7b43659370fac2c4fb053999bb5
2014-09-07 13:13:23 -07:00
Winson Chung
2e7f3bdcc9 Removing unnecessary delays, ensuring transition thumbnail is the size of the header. (Bug. 16987565)
Change-Id: Ic104876c5fe16997eca00e0a2b3d8644c927120c
2014-09-07 20:08:40 +00:00
Dianne Hackborn
7bc4c08323 am 8c7be259: am 6a83e4d1: Merge "Work on issue #17357238: Recents is often slow if not used in a while" into lmp-dev
* commit '8c7be25983e44e8e1bfcb721f50ae23ca7aabf32':
  Work on issue #17357238: Recents is often slow if not used in a while
2014-09-07 19:20:00 +00:00
Paul Jensen
b31c063634 Stop logging false error when lingering completes.
When lingering completes ConnectivityService would log an error message
saying the Network still had NetworkRequests.  Fixed by ignoring
listening NetworkRequests which aren't a problem.

Change-Id: Ie78a1f91c47b012eae28a377dd77bee2cfcbde3b
2014-09-07 13:16:03 -04:00
Paul Jensen
d7063e66ab Don't send listening NetworkRequests to NetworkFactories.
We were doing this when a NetworkAgent updated its score.

bug:17393458
Change-Id: Id19ffc36b942b7112da70dfadd6abd57fcd128bd
2014-09-07 13:10:07 -04:00
Dianne Hackborn
a4e102ee58 Work on issue #17357238: Recents is often slow if not used in a while
Add a new activity attribute, resumeWhilePausing, that allows an
activity specifying it to immediately start running without waiting
for the previous activity to pause.  The recents activity is updated
to use this.

The implementation of this is ultimately fairly simple -- if we are
in the path of resuming such an activity, and find that we first need
to pause the existing activity, then within the activity manager we
do the regular pause flow but act like it has immediately finished
pausing right then so that we can immediately go on to the resume.
To make this clean, we tell the activity when asking it to pause that
it should not come back and tell us it is done, because we aren't in
any way waiting for it.

One potentially important change I needed to make here is the pause
callback no longer provides the saved persistent state, because we
now can't count on that callback happening.  I don't think there was
really any utility in this anyway -- all modern apps will have their
save state flow happen as part of stopping, not pausing, so we'll
only capture that saved state when the stop is reported back anyway.
And since we do send the saved state back when stopping, it would
always blow away whatever we had gotten at the pause.

Finally, update the documentation for AppTask.startActivity(), and
fix the implementation handling that to be cleaner -- we need to
deal with inTask first before getting in to "oh noes add NEW_TASK
if this isn't coming from a calling activity" flow.

Change-Id: Ia1da0fac90d7bdbaafdda2e34850d795ce17a39f
2014-09-05 18:43:43 -07:00
Christopher Tate
c1777510f5 am 96d3c4ae: am 57f1f19d: Merge "Fix binder identity use when clearing wallpapers" into lmp-dev
* commit '96d3c4ae29213085709cd9c82cc2e2148f998d92':
  Fix binder identity use when clearing wallpapers
2014-09-06 01:27:26 +00:00
Justin Koh
2f8734c1ee am 77cfcaec: am 5b3d4452: Merge "Make the image wallpaper component overlayable" into lmp-dev
* commit '77cfcaec23210f9362f636e6aef759eed2f33d70':
  Make the image wallpaper component overlayable
2014-09-06 01:09:50 +00:00
Christopher Tate
ecd827ac0d Fix binder identity use when clearing wallpapers
Don't restore it too soon, because the rarely-needed fallback path
will need to be executed as system, too.

Bug 17394246

Change-Id: Ic5e662d4eae331b016fc91ffd08647bd8d4d6ff3
2014-09-05 17:57:16 -07:00