3350 Commits

Author SHA1 Message Date
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
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
6a73202e00 Merge "NoMan: Fix speedbump with multiple package priorities" into lmp-dev 2014-09-08 21:26:30 +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
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
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
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
b3fdbac020 Merge "Lock down window manager while changing opacity" into lmp-dev 2014-09-07 22:15:42 +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
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
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
Justin Koh
4021e50861 Merge "Make the image wallpaper component overlayable" into lmp-dev 2014-09-06 00:45:41 +00:00
Justin Koh
29c3016128 Make the image wallpaper component overlayable
This is necessary for devices that want to have wallpaper but don't have
SystemUi.

Bug: 17394246
Change-Id: I75c2a3a2120fd6600274d44059b3f85569b9a187
2014-09-05 17:20:16 -07:00
Tsuwei Chen
fec0f4fc30 Merge "Properly register all Intent filters. Bug: 17408889 Change-Id: Iff740def80eb50e0dc8391d7212a3ae7eeaed152" into lmp-dev 2014-09-05 23:59:13 +00:00
Jeff Sharkey
5341f94a19 Merge "Separate active state from open/close." into lmp-dev 2014-09-05 23:28:31 +00:00
Sreeram Ramachandran
8f4d42ce00 Reserve NetIds 1..50 for OEM use.
Also reserve 51..100 for our use.

Bug: 17303534
Change-Id: Id082368b493dc3c5b5c479e51d273458d80ec6aa
2014-09-05 16:24:51 -07:00
Jeff Sharkey
bc7bce38b2 Separate active state from open/close.
Also change name to setStagingProgress() to make it clearer that
system may adjust the range.  Start throwing from openSession() in
preparation for ASEC allocation moving.

Bug: 17405741
Change-Id: Id7da51a32d5d89cb512ddafbd7ceaafbcd41cac6
2014-09-05 16:16:39 -07:00
Tsuwei Chen
48d37f957a Properly register all Intent filters.
Bug: 17408889
Change-Id: Iff740def80eb50e0dc8391d7212a3ae7eeaed152
2014-09-05 23:05:49 +00:00
Sreeram Ramachandran
624a205e74 Merge "Unescape strings properly in NsdService." into lmp-dev 2014-09-05 22:26:20 +00:00
Christopher Tate
a0c9962388 Merge "Don't crash in addPackageHoldingPermissions()..." into lmp-dev 2014-09-05 22:23:07 +00:00
dcashman
522f671eb0 Merge "Fix boolean comparison after sig check." into lmp-dev 2014-09-05 22:18:50 +00:00
Christopher Tate
30f349d2ef Don't crash in addPackageHoldingPermissions()...
...in cases involving uninstalled apps, or apps whose install state
varies across different users.

Bug 17398315

Change-Id: I7297d82f8bf5d49c50a7fd53d795a706bf2d2313
2014-09-05 21:58:32 +00:00
Griff Hazen
69dd40d08a Merge "Reduce chance of notification listener dropped messages." into lmp-dev 2014-09-05 21:52:44 +00:00
dcashman
2de4f9f971 Fix boolean comparison after sig check.
Bug: 17402843
Change-Id: I0cb5ffba1a93f71a250294a41040011234ce1029
2014-09-05 14:45:46 -07:00
Carlos Valdivia
605e71922e Merge "We shouldn't delete accounts when a package is being updated." into lmp-dev 2014-09-05 21:01:53 +00:00
Carlos Valdivia
23f58260bd We shouldn't delete accounts when a package is being updated.
Bug: 17158237
Change-Id: Icbf9e672a6a698737b08ed39c78a64c161a7b802
2014-09-05 13:58:31 -07:00
Sreeram Ramachandran
ef12884da7 Unescape strings properly in NsdService.
NativeDaemonEvent.unescapeArgs() was improperly skipping the terminating
quote in cases like "\\", where the char preceding the quote is a
backslash, but the backslash itself is escaped, so the quote is indeed
an unescaped terminator.

unescapeArgs() doesn't unescape "\xxx" decimal escapes used by mDNS, so
fix NsdService to do that sort of unescaping explicitly (which is only
applicable when it receives a "fullname", in SERVICE_RESOLVED).

Bug: 16983542
Bug: 16986203

Change-Id: Idfa79749336c68424d961bc414f984c525b7e5e6
2014-09-05 20:31:46 +00:00
Michael Wright
a6863ad622 Merge "Allow for event dispatching when in non-interactive states." into lmp-dev 2014-09-05 19:58:12 +00:00
RoboErik
77a634503f Merge "send volume button events to adjustSuggestedStream instead of adjustStream" into lmp-dev 2014-09-05 19:49:56 +00:00
RoboErik
272e161c1a send volume button events to adjustSuggestedStream instead of adjustStream
This way the audio system can route the adjustments correctly when a bt
headset is connected.

bug:17281977
Change-Id: Ic41d038e47179baffc86e539562da285446148c7
2014-09-05 12:37:39 -07:00
Jason Monk
d208c79b3e Update downtime to handle TimeZone change
Bug: 17344461
Change-Id: Ic18d0c469fac5a4c8973e52dd1e687cea2266b55
2014-09-05 14:34:32 -04:00
Jeff Sharkey
43a2d06166 Merge "Allow badging updates to install sessions." into lmp-dev 2014-09-05 17:56:39 +00:00
Jeff Sharkey
ec9bad2015 Allow badging updates to install sessions.
For the system restore use-case, an installer may need to enqueue
their sessions quickly before badging details, like icons, have been
downloaded.  This change relaxes to allow an installer to update
their session badging after the session has been created.  Notify
observers when badging changes.

Rename callback registration methods to match style guide.  Relax
constraint that observers are home app.  Fix bug around internal
progress reporting.

Bug: 17376797, 17389236, 17334199
Change-Id: I5fb88508baea2f08e89a1504fcf5ef972afad4a7
2014-09-05 10:15:15 -07:00
Christoph Studer
fbac214103 NoMan: Fix speedbump with multiple package priorities
Bug: 16782616
Change-Id: I747dc981f7974720da9f277ec6e3fba31c21f226
2014-09-05 17:40:43 +02:00
Chris Wren
c237555c6c Merge "Keep contact affinities separate across users." into lmp-dev 2014-09-05 14:58:40 +00:00
Chris Wren
da4bd209cf Keep contact affinities separate across users.
Also ignore people extras on USER_ALL notifications.

Bug: 16213960
Change-Id: Ic0341c88d42d4a4f12cac35c0f41c2746aec02ac
2014-09-05 10:36:32 -04:00
Christoph Studer
7f579fda4b Merge "NoMan: Fix speedbump for PRIORITY_MIN intrusives" into lmp-dev 2014-09-05 14:11:52 +00:00
Christoph Studer
327bf78a7d NoMan: Fix speedbump for PRIORITY_MIN intrusives
Bug: 16782616
Change-Id: I35fb875bed8cbd90ecd37edc8973c1771be3584d
2014-09-05 14:11:37 +00:00
Jason Monk
b836ddef15 Merge "Allow downtime to exit from no interruptions" into lmp-dev 2014-09-05 13:39:23 +00:00
Brian Carlstrom
839849111c Merge "Fix backwards arguments to performDexOpt" into lmp-dev 2014-09-05 07:25:37 +00:00
Brian Carlstrom
d382be9b22 Fix backwards arguments to performDexOpt
Bug: 16696554
Change-Id: I302f8edc8243d3537afd564599cc798708124dbe
2014-09-05 00:07:25 -07:00