Commit Graph

7361 Commits

Author SHA1 Message Date
Ruben Brunk
0cbe76be29 Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev
am: b77f9ec93a

* commit 'b77f9ec93a11841aacb72d4fecd1bf56f6253254':
  Revert "DO NOT SUBMIT: Hide VR features for preview."
2016-02-29 19:55:40 +00:00
Ruben Brunk
b77f9ec93a Merge "Revert "DO NOT SUBMIT: Hide VR features for preview."" into nyc-dev 2016-02-29 19:50:37 +00:00
Ruben Brunk
e5d76e8276 Revert "DO NOT SUBMIT: Hide VR features for preview."
This reverts commit cfa66a2a45.

Change-Id: Ibf36092205b14c29935d1f28be5f5b5f64b1d16c
2016-02-29 19:50:15 +00:00
Ruben Brunk
420d9dae55 Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev
am: 8ccb68af89

* commit '8ccb68af89c68e32b908652436acfa339e034bcc':
  DO NOT SUBMIT: Hide VR features for preview.
2016-02-29 19:50:03 +00:00
Ruben Brunk
8ccb68af89 Merge "DO NOT SUBMIT: Hide VR features for preview." into nyc-dev 2016-02-29 19:43:55 +00:00
Jeff Sharkey
6a7a297e61 Merge "Sigh, someone is pushing 2MB through StopInfo." into nyc-dev
am: 341de33e3c

* commit '341de33e3c9a8a8685d99602690e95ccb64b77a2':
  Sigh, someone is pushing 2MB through StopInfo.
2016-02-29 18:34:10 +00:00
Jeff Sharkey
369f509d56 Sigh, someone is pushing 2MB through StopInfo.
Bug: 27401092
Change-Id: Ib27a56ecc63662ce2d6210890ac65eca09fac9d6
2016-02-29 11:29:37 -07:00
Jeff Sharkey
917fe2f8a5 Merge "When system server goes down, crash apps more." into nyc-dev
am: 004bf6ade3

* commit '004bf6ade3e7e400c896541cce0e513eef179738':
  When system server goes down, crash apps more.
2016-02-28 00:24:21 +00:00
Jeff Sharkey
f8880561e6 When system server goes down, crash apps more.
Similar to first patch, but now using new "rethrowFromSystemServer()"
method which internally translates DeadObjectException into
DeadSystemException.  New logic over in Log.printlns() now
suppresses the DeadSystemException stack traces, since they're
misleading and just added pressure to the precious log buffer space.

Add some extra RuntimeInit checks to suppress logging-about-logging
when the system server is dead.

Bug: 27364859
Change-Id: I05316b3e8e42416b30a56a76c09cd3113a018123
2016-02-27 17:17:01 -07:00
Adrian Roos
8bef84a2f4 Merge "Fix crash with decorated custom notifications" into nyc-dev
am: 7006b01f5d

* commit '7006b01f5d91c77c9f658d392fb2cc183bc504be':
  Fix crash with decorated custom notifications
2016-02-27 02:33:20 +00:00
Adrian Roos
7006b01f5d Merge "Fix crash with decorated custom notifications" into nyc-dev 2016-02-27 02:29:15 +00:00
Selim Cinek
4ff315113f Merge "Adapted the notficication style" into nyc-dev
am: 9620d8652b

* commit '9620d8652bacc84e179ff9a2548d7cb833887437':
  Adapted the notficication style
2016-02-27 01:24:32 +00:00
Selim Cinek
9620d8652b Merge "Adapted the notficication style" into nyc-dev 2016-02-27 01:19:46 +00:00
Adrian Roos
5081c0de54 Fix crash with decorated custom notifications
Clones notifications before adding them to remote views so
the original stays parcelable on its own.

Also prevents the compatibility inflation from triggering when
an app uses a decorating style to prevent recursive wrapping.
Those styles only exist on N and later anyways.

Also fixes the compatibility inflation in listeners.

Bug: 27368615
Change-Id: Iedf3036bf315dd9c7b476c7e8bcce57de5b5c9c8
2016-02-26 17:11:29 -08:00
Selim Cinek
60a5425592 Adapted the notficication style
The text sizes are now uniform and textsize manipulations
are not allowed anymore.

Bug: 24866646
Change-Id: I14b094d9238bee0320c387e3032806d00d4f200c
2016-02-26 17:05:03 -08:00
Ruben Brunk
cfa66a2a45 DO NOT SUBMIT: Hide VR features for preview.
Bug: 26945446
Change-Id: I37e2f9f6ffc65be60bcbef4bdf87da89561ef313
2016-02-26 15:32:40 -08:00
Oren Blasberg
b53eef9256 Merge "WallpaperManager: support custom default cropper." into nyc-dev
am: 203b353018

* commit '203b353018e1533251528b087345cc9933aa38fe':
  WallpaperManager: support custom default cropper.
2016-02-26 22:15:17 +00:00
Oren Blasberg
203b353018 Merge "WallpaperManager: support custom default cropper." into nyc-dev 2016-02-26 22:09:54 +00:00
Oren Blasberg
60598ea0aa WallpaperManager: support custom default cropper.
If the component name is specified by the OEM, that component is used
as the default (fallback) cropper rather than
com.android.wallpapercropper.

Bug: 26084319
Change-Id: I5c79beb8e84721944e752bda637cdf0377b8d826
2016-02-26 13:19:30 -08:00
Julia Reynolds
2b53b701d8 Merge "Api review: NotificationManager" into nyc-dev
am: 01e81117a9

* commit '01e81117a9bc86849f0bf20d7729c8f8101b0baf':
  Api review: NotificationManager
2016-02-26 21:03:47 +00:00
Julia Reynolds
92a187ddaf Merge "Api review: Notification.Builder" into nyc-dev
am: 1adc816f2d

* commit '1adc816f2dcf0a827b4619eb21a780d1b3d827b3':
  Api review: Notification.Builder
2016-02-26 21:00:21 +00:00
Chong Zhang
fb3403f5f0 Merge "Do not stop window if preserving the window" into nyc-dev
am: fd3d5e92ea

* commit 'fd3d5e92ea05ca20e6c3700e2309d849d96f2f7d':
  Do not stop window if preserving the window
2016-02-26 20:58:32 +00:00
Julia Reynolds
01e81117a9 Merge "Api review: NotificationManager" into nyc-dev 2016-02-26 20:56:27 +00:00
Jorim Jaggi
b6b9eee960 Merge "App transition delay tracking" into nyc-dev
am: a8914a0096

* commit 'a8914a00969b6942211d29fd923b0692a1b70f9a':
  App transition delay tracking
2016-02-26 20:56:03 +00:00
Julia Reynolds
1adc816f2d Merge "Api review: Notification.Builder" into nyc-dev 2016-02-26 20:52:21 +00:00
Chong Zhang
fd3d5e92ea Merge "Do not stop window if preserving the window" into nyc-dev 2016-02-26 20:52:17 +00:00
Jorim Jaggi
a8914a0096 Merge "App transition delay tracking" into nyc-dev 2016-02-26 20:51:40 +00:00
Julia Reynolds
0edb50c4bf Api review: NotificationManager
Bug: 27365672
Change-Id: Ic0fd82fb9442d10d6b308182a3859497aa882d07
2016-02-26 15:44:41 -05:00
Julia Reynolds
3b84812271 Api review: Notification.Builder
Bug: 27364889
Change-Id: I95cee3336f1adb64e37e71a9ab40e68feb1d9c5b
2016-02-26 15:44:02 -05:00
Chong Zhang
7687f25e58 Do not stop window if preserving the window
bug: 27350647
Change-Id: I670d2641ee7e600a6ea46f7b329afd4df10a3862
2016-02-26 12:37:00 -08:00
Jorim Jaggi
275561a746 App transition delay tracking
Add TRON logging for all kinds aspects when we execute an app transition.

Bug: 27295491
Change-Id: Icb0cbdb92d4d5fbfedadd40a017a50eb217058aa
2016-02-26 14:15:00 -05:00
Selim Cinek
39e1cc558b Merge "Added convenience methods to use chronometer countdown methods" into nyc-dev
am: a94742c7f9

* commit 'a94742c7f9b6287c97a5cd47cf6542ce25e86513':
  Added convenience methods to use chronometer countdown methods
2016-02-26 19:08:33 +00:00
Selim Cinek
a94742c7f9 Merge "Added convenience methods to use chronometer countdown methods" into nyc-dev 2016-02-26 19:05:04 +00:00
Dianne Hackborn
387ae4971d Merge "Work on issue #26390161: Throttle syncs/jobs when system is low on RAM" into nyc-dev
am: 77ca74d941

* commit '77ca74d941eb4addd7051c747362bace0746b7a7':
  Work on issue #26390161: Throttle syncs/jobs when system is low on RAM
2016-02-26 18:47:53 +00:00
Dianne Hackborn
77ca74d941 Merge "Work on issue #26390161: Throttle syncs/jobs when system is low on RAM" into nyc-dev 2016-02-26 18:44:55 +00:00
Jeff Sharkey
de6fe0c800 Merge "When system server goes down, crash apps." into nyc-dev
am: 49607029be

* commit '49607029bef037d162f64f841468d7b99d862489':
  When system server goes down, crash apps.
2016-02-26 18:19:22 +00:00
Jeff Sharkey
49607029be Merge "When system server goes down, crash apps." into nyc-dev 2016-02-26 18:14:52 +00:00
Dimitry Ivanov
155e89f4dd Merge "Create linker-namespace for the classloader" into nyc-dev
am: 1a2cb453fa

* commit '1a2cb453fa8204db84d92fd2de92b0ed1e546a03':
  Create linker-namespace for the classloader
2016-02-26 18:10:23 +00:00
Dimitry Ivanov
1a2cb453fa Merge "Create linker-namespace for the classloader" into nyc-dev 2016-02-26 18:03:56 +00:00
Thierry Strudel
b7f515cf9b Merge "Fix typo in SwappedOut reporting" into nyc-dev
am: f40969ac2c

* commit 'f40969ac2c19399847f153bfa248efcc0935db3c':
  Fix typo in SwappedOut reporting
2016-02-26 02:02:29 +00:00
Christopher Tate
2973c936e5 Merge "Fix \'<\' / \'>\' in JobService docs" into nyc-dev
am: 7f220b8ec5

* commit '7f220b8ec51386f0c19720293d7c9e372e91eb00':
  Fix '<' / '>' in JobService docs
2016-02-26 02:00:40 +00:00
Thierry Strudel
f40969ac2c Merge "Fix typo in SwappedOut reporting" into nyc-dev 2016-02-26 01:47:36 +00:00
Thierry Strudel
9b51160e0c Fix typo in SwappedOut reporting
Change-Id: I55b3725eba054d3d6d2b38041cf375fc7b141c69
2016-02-25 17:46:38 -08:00
Jeff Sharkey
27b2e69787 When system server goes down, crash apps.
Apps making calls into the system server may end up persisting
internal state or making security decisions based on the perceived
success or failure of a call, or the default values returned.

The reality is that if the system process just died, init will be
along shortly to kill all running apps, so we should have no problem
rethrowing the RemoteException as a RuntimeException.

Bug: 27364859
Change-Id: If632cc36f68cd399a34de513b2d979abaa36fcaa
2016-02-25 17:40:12 -07:00
Christopher Tate
a8e24f24bd Fix '<' / '>' in JobService docs
Bug 27291714

Change-Id: I7e6ec24442bdd071d34faa980d201f4c747cadff
2016-02-25 16:28:35 -08:00
Selim Cinek
81c23aac78 Added convenience methods to use chronometer countdown methods
Bug: 27343480
Change-Id: Iea4d0259ba8c3ab91fec5ee04ea4b39e5dd988bf
2016-02-25 16:23:13 -08:00
Dimitry Ivanov
a55c7f15a3 Create linker-namespace for the classloader
With this change ApplicationLoaders.getClassLoader()
creates linker-namespace for the classloader at the
construction time. Before this change the namespace
was created on first load of a jni library.

With this change we ensure that every classloader
has initialized namespace associated with it.

As an additional advantage we now can avoid storing
namespace-specific fields in the classloaders.

Bug: http://b/27189432
Bug: http://b/22548808
Change-Id: I3b160bd478a55171008682c40b2ebc13bdbd9882
2016-02-25 14:57:55 -08:00
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
Winson Chung
27f2698fa4 Merge changes Ib309e9de,Ia7cf8b99,I055b0825,Ie2ea4318,If92221d3 into nyc-dev
am: e1c4641d6f

* commit 'e1c4641d6f7d234a912284254f67c0122d7eca5b':
  Fixing crash when focusing tasks.
  Minor tweaks to layout and visuals.
  Improving transition from paging to stack.
  Fixing issue with persistent screenshot notification
  Updating task description when activity is visible.
2016-02-25 03:17:24 +00:00
Winson Chung
e1c4641d6f Merge changes Ib309e9de,Ia7cf8b99,I055b0825,Ie2ea4318,If92221d3 into nyc-dev
* changes:
  Fixing crash when focusing tasks.
  Minor tweaks to layout and visuals.
  Improving transition from paging to stack.
  Fixing issue with persistent screenshot notification
  Updating task description when activity is visible.
2016-02-25 03:15:25 +00:00