16091 Commits

Author SHA1 Message Date
Dianne Hackborn
e3f617b23f Merge "Fix issue #28035090: Disallow abuse of JobScheduler" into nyc-dev 2016-04-13 17:44:52 +00:00
Dianne Hackborn
807de78c07 Fix issue #28035090: Disallow abuse of JobScheduler
We now keep track of how long each app has been running a job
for, in 30 minute batches.  If it is running jobs frequently,
we will bump down the priority its jobs run at to allow other
jobs to run before it.

Currently we count both pending and active as the job running,
which means that an app that has jobs waiting in the pending
queue will count against its abuse prevention.  This could
allow starvation -- if we bump down the priority of an app's
jobs and the system is so busy continually that they sit
in the pending queue a lot -- it could never recover.  But I
think that is okay...  if we are really in a state where we
are continually running as many jobs as possible, we probably
have other larger issues.

Change-Id: I838aa4b5840e91df49a1e17b53188d6e4a66a6d1
2016-04-13 10:42:51 -07:00
Wale Ogunwale
3fb1c81394 Merge changes Ieefeb843,Ic2a94b09 into nyc-dev
* changes:
  Update surface insets on window elevation changes.
  Fixed bug with cropping out drop shadow for pinned stack.
2016-04-13 16:59:36 +00:00
David Brazdil
e502345d71 Merge "Remove UsageStats post-OTA package update filter" into nyc-dev 2016-04-13 16:43:15 +00:00
Rebecca Silberstein
bf705b4aae Merge "Add error logging for softap commands" into nyc-dev 2016-04-13 16:07:51 +00:00
David Brazdil
4ef1982af8 Remove UsageStats post-OTA package update filter
Filtering packages for boot-time post-OTA update with
UsageStatsManager idleness API is too aggressive and leaves out even
apps used heavily in the foreground. Remove for now.

Bug: 27902702
Bug: 28161327

Change-Id: I7912f9ad5d8c6206c19068a76383e370d24818db
2016-04-13 16:41:39 +01:00
Gustav Sennton
5352dda479 Merge "Don't run the WebView preparation if using the same non-replaced package" into nyc-dev 2016-04-13 14:54:54 +00:00
Nick Kralevich
9e5922cf73 Merge "change directory name" into nyc-dev 2016-04-13 14:51:15 +00:00
Nick Kralevich
e91dba06f9 change directory name
external/sepolicy was renamed system/sepolicy

Change-Id: Id27cd8c22d966958e481c9ed0171f637b3ffe2c0
2016-04-13 07:49:28 -07:00
Rubin Xu
eadbe1db75 Merge "Remove temporary workaround of restoring periodic syncs." into nyc-dev 2016-04-13 13:41:22 +00:00
TreeHugger Robot
fc5f9f5127 Merge "Don't kill apps when only clearing caches." into nyc-dev 2016-04-13 08:23:20 +00:00
TreeHugger Robot
aceda5b93a Merge "Make wallpapers direct-boot aware." into nyc-dev 2016-04-13 04:40:18 +00:00
TreeHugger Robot
a74888ddf6 Merge "TRON refinements for multi-window" into nyc-dev 2016-04-13 04:18:31 +00:00
Jeff Sharkey
7b6c731fd8 Don't kill apps when only clearing caches.
Bug: 28152575
Change-Id: I469e87a75ce7ce6ddfeb934e00f8087cddcaa30a
2016-04-12 21:23:23 -06:00
Jeff Sharkey
1cab76af85 Make wallpapers direct-boot aware.
If the user's wallpaper isn't direct-boot aware, wait around for
the user to be unlocked, instead of clearing the wallpaper.

Also switch a few classes to using SystemService lifecycle, since
events are dispatched faster than through broadcasts.  Fix bug where
ContentService.systemReady() was never called, and make sure
EntropyMixer doesn't risk being GC'ed.

Bug: 26280055
Change-Id: I9fff468a439b868baa68cf11bb6ee9f7d52b7b5a
2016-04-12 21:15:50 -06:00
TreeHugger Robot
0a6a6dbe91 Merge "Added api to delete cache files for a given user" into nyc-dev 2016-04-13 03:13:49 +00:00
Jorim Jaggi
29379ec859 TRON refinements for multi-window
Bug: 26013430
Change-Id: I89b139b4ca3e7b6a06d8b5b351d67ffac240f73f
2016-04-12 19:43:52 -07:00
Jorim Jaggi
4196ab00e3 Merge "Fix calculation of content insets" into nyc-dev 2016-04-13 02:40:41 +00:00
Jorim Jaggi
656f6506fb Fix calculation of content insets
When calculating all the frames and insets, we need to use the actual
frame instead of layoutContainingFrame. To do this, we layout mFrame
with layoutContaining/layoutDisplayFrame, calculate all the content
frames and insets, and then offset everything by the constant offset.

Bug: 28075359
Change-Id: I78f0a54ca2a0cc6c7c8be21153c2b2c8f1d5c0a9
2016-04-12 19:35:24 -07:00
Jorim Jaggi
f0ad384e9e Merge "No input for windows in minimized docked stack" into nyc-dev 2016-04-13 02:31:49 +00:00
Lorenzo Colitti
3395ed1421 Merge "If we want to release the lock, release instead of acquiring it." into nyc-dev 2016-04-13 02:30:33 +00:00
Jorim Jaggi
b72c9ad721 No input for windows in minimized docked stack
Also make them unfocusable, and don't focus the docked
stack when tapping into it in that state.

Bug: 27972642
Change-Id: Ic24ff9a5f39f596fe4a2f50567566d4400f9c125
2016-04-12 19:29:28 -07:00
Jorim Jaggi
a5df489c9c Merge "Add shadow for minimized dock" into nyc-dev 2016-04-13 02:24:57 +00:00
Jorim Jaggi
2917dc4918 Add shadow for minimized dock
Bug: 27972642
Change-Id: Ic4c8145f61694ff2bb0e237da1142093c6a4d965
2016-04-12 19:17:24 -07:00
Paul Jensen
3e6a6fc60e Merge "If Internet probe is redirected, pass redirect destination to NetworkAgent." into nyc-dev 2016-04-13 01:33:37 +00:00
Suprabh Shukla
78c9eb8947 Added api to delete cache files for a given user
Added an api to delete application cache files for a specific user. This
allows settings to clear cache files for work profile apps as well.

Bug: b/25338468
Change-Id: I52d4944a7a03b6d63ad44dd6bb868aec62815eab
2016-04-12 18:23:56 -07:00
Julia Reynolds
5961ab3ac5 Merge "Remove category from managedservices." into nyc-dev 2016-04-13 00:57:52 +00:00
TreeHugger Robot
2376f9d35f Merge "Don't count system partition code against size." into nyc-dev 2016-04-13 00:54:58 +00:00
TreeHugger Robot
d1b8d6d342 Merge "Set label for links to resolver activities." into nyc-dev 2016-04-13 00:12:39 +00:00
Lifu Tang
d7e1d429c4 Merge "Removed all the references to deprecated class" into nyc-dev 2016-04-12 23:07:58 +00:00
Philip P. Moltmann
f8173ca8ac Set label for links to resolver activities.
Also: Add specific labels for capture-image-intent.

Fixes: 20134921
Change-Id: I3678def1089512a8340f19110645a03379c26cee
2016-04-12 15:44:00 -07:00
Makoto Onuki
1d616f0d88 Merge "ShortcutManager: Address API review feedback." into nyc-dev 2016-04-12 22:34:17 +00:00
Jeff Sharkey
959586b9a9 Don't count system partition code against size.
Bug: 28136734
Change-Id: I2b843b13c493bbf78c2ad9dd7d75faa302e3a11b
2016-04-12 16:28:57 -06:00
Svetoslav Ganov
65136ac6a4 Merge "Keep read/write external storage as built-in permissions" into nyc-dev 2016-04-12 22:11:19 +00:00
Lifu Tang
5b49d8a006 Removed all the references to deprecated class
Bug: 28144767
Change-Id: If14752a81f6662fb33aacc04d54bfee249221d74
2016-04-12 14:00:14 -07:00
Sunny Goyal
1fe7dfa66a Merge "Changing LauncherApps to resolve activity by component name" into nyc-dev 2016-04-12 20:55:32 +00:00
Bryce Lee
39a878dbca Merge "Properly check to see if a suppressor is present before returning it." into nyc-dev 2016-04-12 19:42:08 +00:00
Bryce Lee
ba3d895283 Properly check to see if a suppressor is present before returning it.
Bug: 28111086
Change-Id: Ib2cde8269443832e5490906396cd95832c7a146f
2016-04-12 12:39:15 -07:00
Craig Donner
dfd72d4308 Merge "Sets COARSE_LOCATION permission for VrCore when in vr mode." into nyc-dev 2016-04-12 19:12:46 +00:00
Jorim Jaggi
09c4954cc1 Make sure to report activity launch time when starting from recents
Bug: 27295491
Change-Id: I27d660ccc960610f39c72ba9bbab5963746fcd45
2016-04-12 18:18:23 +00:00
Jorim Jaggi
d7f6e7c769 Clip mWinShowWhenLocked if Keyguard is not showing
Bug: 28076605
Change-Id: I80ae6dbd09d419c258efd79639a62dce8c2fbe79
2016-04-12 18:13:26 +00:00
Jorim Jaggi
5ac2ba25ce Fix a small issue with IME adjustment
For some keyboards, display frame is the same as the fullscreen, because
the way they layout their stuff is different. In such cases, the stack
bounds were moved too far.

Bug: 28126905
Change-Id: Id3c2c8d9d16e27634006a8ef70d35d8826302da0
2016-04-12 18:10:29 +00:00
Makoto Onuki
b6d3523dfb ShortcutManager: Address API review feedback.
- "delete" -> "remove"
- add/deleteDynamicShortcut() now takes a list.
- Throttling default settings is now 2 calls / hour.

- Add categories to ShortcutInfo.
- getIconResourceId() is now public

Bug 27923857
Bug 27548047

Change-Id: I8457b30e4b2f7c63ab2988648b37178fd16ea45b
2016-04-12 10:35:20 -07:00
Ricky Wai
321cfa3791 Merge "Add tests for profile keys in LockSettingsStorage" into nyc-dev 2016-04-12 16:42:56 +00:00
Yohei Yukawa
cd1e1de4ce Merge "Make sure that Toast is always shown by Meta-Space." into nyc-dev 2016-04-12 16:22:48 +00:00
Gustav Sennton
2198a53ea4 Don't run the WebView preparation if using the same non-replaced package
Whenever all primary WebView packages become disabled or uninstalled the
fallback will be enabled and then used. The enabling causes an intent to
be broadcasted and that intent then causes WebViewUpdateService to rerun
its WebView preparation phase.
With this CL we ignore intents for changing the enabled-state of the
current WebView package if we will still use the same WebView package.
The only time we should rerun the preparation logic when the package
is the same (if it has the same name) is if it has been replaced by a
new version.

Bug: 27899444
Change-Id: Iea029e9f854e31b25b1803048c470fb6732e5d0f
2016-04-12 16:46:26 +01:00
Julia Reynolds
a20e8f314f Merge "Return everything but an autogroup summary." into nyc-dev 2016-04-12 15:33:21 +00:00
Julia Reynolds
a3dc1fb0b7 Remove category from managedservices.
Bug: 27976092
Change-Id: Ic6303b95fc6d612e83f3a42a933ae94bd7c17255
2016-04-12 11:28:48 -04:00
Julia Reynolds
4c4ad595dd Return everything but an autogroup summary.
Bug: 28132467
Change-Id: I9a6df6d3e876af00a9ef6fc8ed702ed8342c751a
2016-04-12 11:28:48 -04:00
Chris Wren
9bb991a3bb Merge "remove special case code for groups." into nyc-dev 2016-04-12 15:25:16 +00:00