233892 Commits

Author SHA1 Message Date
Dianne Hackborn
970510b9c5 Work on issue #26390161: Throttle syncs/jobs when system is low on RAM
We now have a fixed array of job service contexts, which doesn't
vary by build configuration.  Instead, we keep track of the maximum
number of concurrent jobs we want to allow to run, and don't
make use of a context if it would put us over that limit.

The available contexts is now 8 (the largest used to be 6), although
the maximum we will normally schedule is still 6.  We have the other
two around only for use by the current foreground app, to allow it
to schedule work while the user is in it, even if we have reached
our normal limit on the number of concurrent jobs.

The maximum number of concurrent jobs varies based on the memory
state of the device, from 6 (if memory is normal) down to 1
(if memory is critical).  We aren't yet trying to stop all jobs
if memory gets lower than critical.

Instead of just keeping track of whether a uid is in the foreground,
we now track whether it is the top as well.  Only the top uid
can schedule additional jobs above the current limit.

Also improved some of the dumpsys output.

Change-Id: Icc95e42231a806f0bfa3e2f99ccc2b85cefac320
2016-02-25 13:00:56 -08:00
Adrian Roos
a52cce2c84 Merge "Fix duplicate eventlogtags warnings" into nyc-dev 2016-02-25 20:18:03 +00:00
Felipe Leme
262887834c Reset UI fields when dialog is reused, otherwise it might contain fields
from a previous bug report.

BUG: 26524513
Change-Id: If9d176806b28120b57dddeb62b636065f8ff7cf6
2016-02-25 12:10:43 -08:00
Felipe Leme
3fd6d9b371 Merge "Final (?) fixes on id / pid split." into nyc-dev 2016-02-25 19:57:42 +00:00
Pavel Zhamaitsiak
fbb584dfa0 Merge "Add registrationAssociatedUriChanged to ImsRegistrationListener" into mm-wireless-dev
am: d76b7ee263

* commit 'd76b7ee2636a9bc92d8e1e5fb5cb649e5bd67be9':
  Add registrationAssociatedUriChanged to ImsRegistrationListener
2016-02-25 19:46:20 +00:00
Pavel Zhamaitsiak
d76b7ee263 Merge "Add registrationAssociatedUriChanged to ImsRegistrationListener" into mm-wireless-dev 2016-02-25 19:43:31 +00:00
Selim Cinek
f045b5a61b Merge "Make group expanding nicer" into nyc-dev 2016-02-25 19:43:27 +00:00
Selim Cinek
dafa00cb98 Merge "Transforming notifications now based on the user dragging" into nyc-dev 2016-02-25 19:42:25 +00:00
Alan Viverette
fa5fa8f8a0 Merge "Always update drawable container source res" into nyc-dev 2016-02-25 19:38:26 +00:00
Xiaohui Chen
e90c2c5ae9 sysui: refactor for reuse
Bug: 27099709
Change-Id: I44d3abc7dbed0b655efeb1769fa6a2543bc8322e
2016-02-25 19:16:33 +00:00
Felipe Leme
85ae3cf46a Final (?) fixes on id / pid split.
The main goal of this CL was to change the test cases to send an
EXTRA_ID instead of EXTRA_PID, but in changing that it was revealed 2
minor bugs:

- When setting the name property, it was using id instead of pid (which
  is what dumpstate expects).
- When the pid is replaced by the name in the screenshots, it would be
  replaced twice if the pid was small enough (because the call to
  String.replace() would also replace the counter).

This CL fixes these issues, and removes the temporary assignment of id =
pid when the former is missing.

BUG: 27076108
Change-Id: I70e7ce7d145019438272594686ac0d4d5dbe1723
2016-02-25 11:14:03 -08:00
Randy Pan
037dd4aea0 Retire ScanResult.autoJoinStatus
am: 366da67282

* commit '366da672828864fa166f184757e44f89e5139a31':
  Retire ScanResult.autoJoinStatus
2016-02-25 19:12:41 +00:00
Selim Cinek
42357e030c Make group expanding nicer
The group expanding now follows the finger.

Bug: 19437552
Change-Id: If85557bb75ea2f2e560cb28d62a06c217187c9c3
2016-02-25 11:02:34 -08:00
Selim Cinek
8f2f6a67fa Transforming notifications now based on the user dragging
The animation is not a canned animation anymore but base on
the finger movement of the user.

Bug: 19437552
Change-Id: I0f81ac2ff05a92673e3f3b9b72a5c2de238890d0
2016-02-25 11:02:30 -08:00
Fyodor Kupolov
e6ddf45e6b Merge "Call prepareAppDataAfterInstall without mPackages lock" into nyc-dev 2016-02-25 18:57:30 +00:00
Fyodor Kupolov
3fb5b5d29c Call prepareAppDataAfterInstall without mPackages lock
prepareAppDataAfterInstallInternal may call into ActivityManager which will
try to obtain a lock in a reversed order, which causes a deadlock.

Bug: 27336728
Change-Id: I91bb74cd06c6aa6cee057bab5972b0275d12125b
2016-02-25 10:56:16 -08:00
Pablo Ceballos
0f61ae26ce Merge "Add glReadPixels with buffer-offset argument" into nyc-dev 2016-02-25 18:54:18 +00:00
Jorim Jaggi
58d3f97002 Merge "Start with mHiddenForOtherReasons=true" into nyc-dev 2016-02-25 18:52:27 +00:00
Jeff Sharkey
019f6d9caa Merge "Fix JobSchedulerService FBE regression." into nyc-dev 2016-02-25 18:52:14 +00:00
Jorim Jaggi
1eb39b009e Start with mHiddenForOtherReasons=true
Initially a surface is hidden after creating, so reflect that fact
in mHiddenForOtherReasons, so it doesn't get shown before the correct
transformation is applied.

Bug: 27350530
Change-Id: Idfe8723195dd1488894da066fafee1f2c2afc12d
2016-02-25 13:50:22 -05:00
Shishir Agrawal
70d5c8d246 Merge "Multi-SIM - Fixing inconsistent naming in CarrierConfigManager." into nyc-dev 2016-02-25 18:49:48 +00:00
Adrian Roos
9046222cb2 Add logging to crash and anr dialog
Bug: 26760334
Change-Id: If81c7a6834e86f7390febef6767a07fa4caded4d
2016-02-25 18:41:01 +00:00
Jorim Jaggi
d7dbe7c486 Merge "Accessibility for split-screen divider" into nyc-dev 2016-02-25 18:40:22 +00:00
Jae Seo
12eb094232 Merge "TIF: Define activity action to set up channel sources" into nyc-dev 2016-02-25 18:37:34 +00:00
Ben Kwa
355d731ece Merge changes from topic 'dragon-drop' into nyc-dev
* changes:
  Clean up after a drop event.
  Enable dragon drop for touch.
2016-02-25 18:32:48 +00:00
Wale Ogunwale
a06c25534c Merge "Remove starting window whenever the acitvity is stopped" into nyc-dev 2016-02-25 18:29:39 +00:00
Jorim Jaggi
88afd020b6 Accessibility for split-screen divider
- Add label
- Add actions

Bug: 27274494
Bug: 26894949
Change-Id: I041c44f793f1ec86ec27951cc8e87868148b527d
2016-02-25 13:18:12 -05:00
Shishir Agrawal
3bf26b5605 Multi-SIM - Fixing inconsistent naming in CarrierConfigManager.
All MSIM specific calls should not use a suffix/prefix.

Bug: 26772894
Change-Id: I49488dfc41bb7996a1a44447968ec11132e4dac7
2016-02-25 10:15:54 -08:00
Wale Ogunwale
9017ec0b15 Remove starting window whenever the acitvity is stopped
The main app window will never finish drawing at this point so there
is nothing to trigger the removal of the starting window.

Also, set ActivityRecord.mStartingWindowShown to true for some cases
where we were telling WM to show starting window but not setting the
flag that would later be used for clean-up.

Bug: 26659857
Change-Id: I7a8582521853f1f95b77d8b08f4dd0cf778f8cbf
2016-02-25 10:15:38 -08:00
Sunny Goyal
c1a3181d8d Merge "Fixing the parent check loop to allow RemoteViewsFrameLayout" into nyc-dev 2016-02-25 18:10:38 +00:00
Jeff Sharkey
822cbd130f Fix JobSchedulerService FBE regression.
Internally isReadyToBeExecutedLocked() needs to check if the target
service is actually present and runnable.  For example, when an FBE
device is locked, we need to keep any encryption-unaware jobs
pending until the device is later unlocked.

Bug: 26279465
Change-Id: I53ff4a2243ebe8a199d0e8dcf87dc3f5b06a2686
2016-02-25 11:09:57 -07:00
Chris Craik
dc32185b92 Merge "Cleanup vertex attrib management" into nyc-dev 2016-02-25 17:31:47 +00:00
Adrian Roos
4cc2a58ed2 Fix duplicate eventlogtags warnings
Moves the protos and event log tags into a library,
so the build system doesn't think they're duplicates.

Bug: 27151225
Change-Id: Ic96b6b811d4813a4c48940081ea77b12fb23f0bc
2016-02-25 09:28:13 -08:00
Alan Viverette
2d3ca47ef8 Always update drawable container source res
Bug: 27349209
Change-Id: I3bb3d4862a03fd5ce0beeb2bf5208f2917ec9320
2016-02-25 12:27:02 -05:00
Alan Viverette
4d85985f80 Merge "Use correct index when obtaining unresolved attribute value" into nyc-dev 2016-02-25 17:25:39 +00:00
Sunny Goyal
b880d167a6 Fixing the parent check loop to allow RemoteViewsFrameLayout
Bug: 27328093
Change-Id: I0f6ae8e95f952d40589eafb912ba188d15d7624c
2016-02-25 09:07:37 -08:00
Adrian Roos
1c7c9d45b4 Merge "Fix anti falsing detection" into nyc-dev 2016-02-25 16:22:38 +00:00
Santos Cordon
256aa5afd7 Merge "Add APIs to support CDMA add-call limitations." into nyc-dev 2016-02-25 16:16:43 +00:00
Ben Kwa
1b685e5363 Clean up after a drop event.
- Clear the drop target highlight.
- Exit selection mode.

BUG=27296889

Change-Id: I869bd01cb49555b28b19164638b4c0af48ca8583
2016-02-25 07:44:58 -08:00
Ben Kwa
e3dfebf846 Enable dragon drop for touch.
- Start a drag when the user long-presses on an already-selected item.
- Start a drag when the user mouse-drags on an already-selected item.
- Add highlighting of drop targets.

BUG=20556237

Change-Id: I450fd6768eeb08906304227385476942d641fd11
2016-02-25 07:35:30 -08:00
Gustav Sennton
ef417514e7 Merge "Trigger the webview update logic when receiving PACKAGE_CHANGED intents." into nyc-dev 2016-02-25 15:34:24 +00:00
Gustav Sennton
1e5d803195 Trigger the webview update logic when receiving PACKAGE_CHANGED intents.
Since which WebView implementation we use depends on whether the
different webview packages are enabled or disabled we should listen to
changes to the enabled-state of our webview packages (to keep the
webview implementation up to date).

Bug: 27340150
Change-Id: Ie384a48424c9138150ddcc9f7bfaf7b82a911f16
2016-02-25 15:02:20 +00:00
Jaesung Chung
596e1d3b7a Merge "Revert "Revert "ExifInterface: switch from using jhead to java implementation""" into nyc-dev 2016-02-25 14:14:28 +00:00
Jaesung Chung
15ef59e081 Revert "Revert "ExifInterface: switch from using jhead to java implementation""
This reverts commit 3c233ee291cfe1b765184920b6b7a69cb1bb82d9.

Bug: 27349581
Change-Id: Ib9f687e79ec36692fa7505ba3852099eb3e44573
2016-02-25 14:13:10 +00:00
Gustav Sennton
d48a25b8e7 Merge "Don't run WebView-preparation during an encryption boot phase." into nyc-dev 2016-02-25 13:58:08 +00:00
Gustav Sennton
c7db48b0ca Don't run WebView-preparation during an encryption boot phase.
When a device is booting up in an encrypted state WebView won't find the
packages needed for loading WebView and might thus try to use incorrect
webview packages. This in itself might cause us to incorrectly change
the webview provider setting but also causes us to crash the system
server if we try to enabled/disable a package that cannot be seen by the
package manager.

Bug: 27353062
Change-Id: I9349778506e8bec1c56b9b786fe4ed15c7c3260d
2016-02-25 13:49:26 +00:00
Sungsoo Lim
b21622d477 Merge "Revert "ExifInterface: switch from using jhead to java implementation"" into nyc-dev 2016-02-25 11:50:43 +00:00
Sungsoo Lim
3c233ee291 Revert "ExifInterface: switch from using jhead to java implementation"
This reverts commit bf24c9fcb3e66b25c90c0cd51f8bf4f401f6c3d6.

Change-Id: Id278e831a9c03f615208fd6eab51c65f7bb019eb
2016-02-25 11:48:10 +00:00
Andrei Stingaceanu
86ea8f002c Suspend packages - decline suspending privileged apps
Because there is a high risk of making the system instable.

Bug: 22776761
Bug: 26949256
Bug: 26949428
Bug: 26683041
Change-Id: I73b3f05c13b5023db5176e709320ca6e2e5f6354
2016-02-25 11:20:18 +00:00
Donghyun Cho
f72ecded69 Merge "MediaSession: Add a way to get a calling package" into nyc-dev 2016-02-25 10:01:15 +00:00