20141 Commits

Author SHA1 Message Date
Dianne Hackborn
19c3b5d0d9 Merge "Work on issue #17581375: Nexus 5 getting low on RAM" into lmp-dev 2014-09-22 20:40:17 +00:00
Michael Wright
3119b82c43 Merge "Monitor MediaRouter for remote display connections." into lmp-dev 2014-09-22 20:04:30 +00:00
Dianne Hackborn
d412563922 Work on issue #17581375: Nexus 5 getting low on RAM
Try to catch any cases where we remove a ProcessRecord from the LRU
list when it may still have a process associated with it, report
that this happened, and try to make sure the process is killed.

Change-Id: Icd74439caba5e1c283c01a49a46dae926a00ba71
2014-09-22 12:52:49 -07:00
Yohei Yukawa
ca5e72c5ae Merge "Work on issue #17506095: Plumb a new configuration to IMMS" into lmp-dev 2014-09-22 18:02:12 +00:00
Yohei Yukawa
e63b5fae8d Work on issue #17506095: Plumb a new configuration to IMMS
This CL makes a plumbing from SystemConfig to IMMS.

Change-Id: Ia70b870723acf647e0c27f24aff91b40d6f85543
2014-09-21 10:34:35 +09:00
Jeff Brown
6e53b7476e Merge "Decouple turning screen on from waking up in policy." into lmp-dev 2014-09-20 01:09:40 +00:00
Jeff Brown
1ecada8582 Merge "Ensure that the screen on blocker is applied while dozing." into lmp-dev 2014-09-20 01:08:52 +00:00
Dianne Hackborn
000e464f30 Merge "Fix issue #17492300: NavUtils.shouldUpRecreateTask returns different..." into lmp-dev 2014-09-20 00:22:52 +00:00
Dianne Hackborn
f3eb843665 Fix issue #17492300: NavUtils.shouldUpRecreateTask returns different...
...value in L

Only do the new logic when the task is a document.

Change-Id: I4664b94a3fe86ea266c2feb4e889c14c06751a15
2014-09-19 17:21:46 -07:00
Svetoslav
49c469165f Merge "TouchExploer computes incorectly the click location." into lmp-dev 2014-09-20 00:02:46 +00:00
Svetoslav
8d412fe18b TouchExploer computes incorectly the click location.
If there is accessibilty focus and the user touch explores
location that does not change accessibility focus that is
not in the app window, e.g. system bar, double tap does not
click on the system UI affordance. This is due to obsolete
logic from the time where accessibility focus was only in
the active window at the time of double clicking.

bug:17588024

Change-Id: Ib780103e873d8a2afd3b35de3227d54116f1a1b0
2014-09-19 16:54:20 -07:00
Dianne Hackborn
cf456e3c22 Merge "Fix issue #17574819: Chrome browser process is killed in background..." into lmp-dev 2014-09-19 23:26:18 +00:00
Dianne Hackborn
cfb67ee40c Merge "Work on issue #17381033: Program icon and shortcut disappear after..." into lmp-dev 2014-09-19 23:24:19 +00:00
Dianne Hackborn
0ed82e2c21 Work on issue #17381033: Program icon and shortcut disappear after...
...running monkey test overnight [FACTORY ROM BLOCKER]

Add surface tracing to debug output.

Change-Id: I65f7fc90c51b0805f7e0090141c33d6b60ccb3b4
2014-09-19 16:22:50 -07:00
Christopher Tate
eae9216770 Logspam is spam
This turns out to happen a lot in normal usage, but we're logging
copiously about it each time.  It's reporting "oh hey we're already
in this state" -- and so the log is not useful anyway.

Logspam is spam.

Bug 15169507

Change-Id: Ie2d01ff1b0b3600dd9c15ccf83d60875558f1dc2
2014-09-19 22:49:20 +00:00
Dianne Hackborn
0fe3c25658 Fix issue #17574819: Chrome browser process is killed in background...
...due to dying renderer process

Don't kill processes if they are bound to a service but not impacting
oom adjustment.

Change-Id: I1cc44e633feaeaad6e996b79a6cfd7b386c04095
2014-09-19 15:09:39 -07:00
Michael Wright
89c2cb6f31 Monitor MediaRouter for remote display connections.
Since we're reusing the cast tile for screen sharing we need to make sure there's only ever one
mirroring presentation going on at a time.

Bug: 9905068
Change-Id: I249932d0f8853880dd453eb57c2a258e6ae952b0
2014-09-19 15:02:34 -07:00
Dianne Hackborn
79572afb33 Merge "Add new activity dumpsys command to persist all data." into lmp-dev 2014-09-19 21:41:39 +00:00
Jeff Sharkey
804d37fd57 Merge "Fix bugs when system apps reclaim permissions." into lmp-dev 2014-09-19 20:58:45 +00:00
Jeff Brown
36c4db8bd3 Decouple turning screen on from waking up in policy.
This allows us to ensure windows are fully drawn before unblocking
screen on while dozing.

Bug: 17516245
Change-Id: Ibe63c212b8db855ce26a34a8169f33764b266ee6
2014-09-19 13:14:29 -07:00
Jeff Brown
606e4e8c98 Ensure that the screen on blocker is applied while dozing.
The screen on blocker is used to keep the screen blank while the
system is drawing new content to prevent the user from seeing a
flash of stale content while the screen is being turned on.
This patch ensures that the screen on blocker functionality
is also applied while dozing.

Bug: 17516245
Change-Id: I77c2d0f2b99476a59ad212099f44c63aa2ef9c34
2014-09-19 13:14:28 -07:00
Dianne Hackborn
ce0fd7665f Add new activity dumpsys command to persist all data.
Very useful for testing persisting/restoring, to make sure
that all pending changes have been written.

Change-Id: I0e3b7cd3af8afb0b6e751e086081566ab00b76c9
2014-09-19 12:58:15 -07:00
Michael Wright
4bc92b064b Merge "Respect intent-filter priority for system keyboard layouts." into lmp-dev 2014-09-19 19:52:54 +00:00
Jason Monk
f6b46cb8b1 Fix crash in PacManager
The PacManager would clear the pac url by setting it to null, however
everywhere else, pac url is cleared to Uri.EMPTY.  This sometimes leads
to an NPE when PAC is set and cleared rapidly and take down the whole
framework.

Bug: 17581527
Change-Id: I84ce215f4f6a8a7e804372fc0a1e20ac609a21f1
2014-09-19 18:34:32 +00:00
Jeff Sharkey
bfed9f34c0 Fix bugs when system apps reclaim permissions.
Recently we started letting system apps always take precedence over
third-party apps when defining permissions.  This change fixes that
logic to claim the permission immediately, instead of delaying until
after the next reboot.  (Permissions are always reevaluated after
each install.)

We also tighten the constraints slightly to prevent two system
apps from fighting over a permission definition; the first system
app to claim the permission wins.

Bug: 17526617
Change-Id: I49686407f5e99322bc511795c653c5d702becd9d
2014-09-19 11:11:25 -07:00
Christoph Studer
bc46c83073 Merge "Remove FLAG_FOREGROUND_SERVICE on Service.stopForeground()" into lmp-dev 2014-09-19 16:43:47 +00:00
Jeff Sharkey
c1cdd4bda3 Merge "Only revoke ownerless grants when unprivileged." into lmp-dev 2014-09-19 16:32:52 +00:00
Jeff Sharkey
29b2516012 Only revoke ownerless grants when unprivileged.
Recently we relaxed revokeUriPermission() to allow apps to revoke
Uri permissions that had been granted to them, but this uncovered
bugs in apps that had been relying on the previous no-op behavior.

To mitigate this, only revoke ownerless Uri permissions when in the
unprivileged state; an active owner indicates that another component
of the calling app still needs the permission.

Bug: 17554268
Change-Id: Icc412933b29041ffb699d20136a623440ecc71ec
2014-09-19 09:15:45 -07:00
Amith Yamasani
8d9f121618 Merge "Allow primary user profile owner to set device restrictions" into lmp-dev 2014-09-19 15:51:39 +00:00
Jessica Hummel
ccfa1a9799 Merge "bug fix: Allow enableSystemApps to be called by profile and device owner." into lmp-dev 2014-09-19 14:22:43 +00:00
Paul Jensen
7bfa35742a Merge "Fix to make repeated lingerings work." into lmp-dev 2014-09-19 11:59:50 +00:00
Jessica Hummel
dd31a10c7f bug fix: Allow enableSystemApps to be called by profile and device owner.
We had an additional check for managed profile in there, so it wasn't working for device owners. Also needed to look at uninstalled packages.

Change-Id: I4813f23b00d7905e92ade582ce082a6f295a322d
Bug: 17384318
2014-09-19 09:56:19 +00:00
Christoph Studer
365e4c38d5 Remove FLAG_FOREGROUND_SERVICE on Service.stopForeground()
When services call Service.stopForeground(), remove
FLAG_FOREGROUND_SERVICE from the notification that was supplied
to Service.startForeground().

This enables services to post notifications that become user
dismissable when they switch to being a background service.

Restrict this to targetSdk=L apps to reduce the risk of breaking
existing apps.

Bug: 17551106
Change-Id: Iff8541e5bb2a23ad1fbc9ad80df5fd6eb683148b
2014-09-19 09:53:12 +02:00
Dianne Hackborn
aad42d1204 Merge "Fix issue #17564607: Apps in the managed profile can send any intent..." into lmp-dev 2014-09-19 02:01:58 +00:00
Dianne Hackborn
ace27915d2 Fix issue #17564607: Apps in the managed profile can send any intent...
...to the primary user, even if it was not whitelisted to be forwarded.

The path where getActivityInfo is called for the ResolverActivity
would not correctly apply the requested user ID to the result, so
it wouldn't run under the correct user.

Change-Id: I1da47c54bbed26091832a28236d0b06762c92437
2014-09-18 19:01:01 -07:00
Mike Lockwood
51938c205f Merge "USB string descriptors are not UTF8, so it is not safe to treat them as such." into lmp-dev 2014-09-19 02:00:26 +00:00
Michael Wright
8ebac23196 Respect intent-filter priority for system keyboard layouts.
Bug: 17573945
Change-Id: Id357e199b37ef771c4362c2a5c4ae762071f0042
2014-09-18 18:48:19 -07:00
Craig Mautner
6920feedb5 Merge "Don't count finishing activities as effective activities." into lmp-dev 2014-09-18 23:08:25 +00:00
Craig Mautner
4767f4b3a9 Don't count finishing activities as effective activities.
They were being counted as effectiveRoot even though they were
finishing.

Fixes bug 17550936.

Change-Id: Iaf7201e6150095e55f88344e4b257e4ae8f19a2b
2014-09-18 22:40:12 +00:00
Amith Yamasani
c34dc7cdeb Allow primary user profile owner to set device restrictions
In addition to device owners, profile owners on the primary user
can also set user restrictions that are necessary to lock down the
user.

This is to enable the case of a profile owner registered after setup
wizard is completed, on the primary user.

Also make managed profile vs. profile wording consistent in the
DevicePolicyManager docs.

Bug: 17555025
Change-Id: Ib9d08b8af34a99b25e11757fa7dc83673a7deb32
2014-09-18 15:14:26 -07:00
Adrian Roos
8f2152c021 Merge "Additional check to determine insets for recents animation" into lmp-dev 2014-09-18 21:30:00 +00:00
Craig Mautner
bc3126f859 Merge "Remove activity icon bitmaps from system process." into lmp-dev 2014-09-18 21:25:24 +00:00
Craig Mautner
648f69b95c Remove activity icon bitmaps from system process.
When a TaskDescription is sent up to the system process, the Bitmap
contained in the mIcon member is immediately flushed to disk and the
name of the file replaces it in the TaskDescription. Thereby saving
mucho RAM for better uses.

Fixes bug 17527308.

Change-Id: Ifac63ea5d12ed091d1eb03e178b8b847a827f940
2014-09-18 14:16:26 -07:00
Christopher Tate
547f97ac93 Merge "Log alarm delivery only when localLOGV" into lmp-dev 2014-09-18 20:56:25 +00:00
Christopher Tate
2ff5a73c3c Log alarm delivery only when localLOGV
Logspam is spam.

Change-Id: I3bb63f3026fc6222eb8e1496b3a5db4cdf3c7f57
2014-09-18 13:47:57 -07:00
Craig Mautner
103b143ecd Merge "Don't remove active stacks from window manager" into lmp-dev 2014-09-18 17:20:51 +00:00
Winson Chung
397157ce9c Additional check to determine insets for recents animation
Bug: 17555722

Change-Id: I1474de7960dfebbdd32f159ace6677019a6b87a5
2014-09-18 12:51:48 +00:00
Svetoslav
4c6a4ce03b Some accessibility events wrongly filtered out (regression).
We added new APIs to allow accessibility services to query all
windows a user can touch. Sometimes the window state change
event arrives before the window manager sent over the new window
state which leads to a case that the app gets the event and
asks for the window and the window is not there. To address this
if we do not have the window, we hold on to the event and
fire it as soon as the window arrives. This logic is correct
except we were wrongly expecting that the window should have
input focus.

bug:17464645

Change-Id: I1ef50ebddeb4416a6c0776b096bb16aee703700c
2014-09-18 01:40:27 +00:00
Craig Mautner
0cf001db60 Merge "Protect from null Intent" into lmp-dev 2014-09-18 01:36:09 +00:00
Tsuwei Chen
b610b18a8a Merge "Allow carrier specific requirement on GPS features to be specified through a dedicated configuration key. Currently, carrier requirement is specified through CAPABILITIES key, whose original purpose is to indicate the capability of the hardware, not to enable/disable features in GPS HW. With this fix, carrier requirement on GPS features can be specified properly without messing up with the real capability. This will satisfy VzW, Sprint and USC's requirement on SUPL mode, without sacrificing the capability of HW geofence." into lmp-dev 2014-09-18 01:00:50 +00:00