219836 Commits

Author SHA1 Message Date
Dianne Hackborn
ccbf4e4211 Merge "Initial implementation of light-weight idle mode." 2015-10-20 17:51:34 +00:00
Dianne Hackborn
08c47a5dec Initial implementation of light-weight idle mode.
This mode turns on after the screen has been off for 15 minutes,
and then cycles through 15 minutes of idle and 1 minute of
maintenance, ragardless of whether the device is moving around.

It currently only impacts network access and sync/job scheduling.
It does not remove access to wake locks or alarms for any apps.
It also doesn't report in the public API that the device is in
idle mode (since it isn't modifying the behavior of the power
manager) -- this is probably what we desire, since we don't want
stuff like GCM to be reporting these frequent changes.

We'll probably at least want to have the alarm manager do some
kind of more aggressive batching of alarms in this most (not allowing
more than one wakeup every minute?).  That's for the future.

Also updated batterystats to include this new information, which
means the format of some of the data has changed -- device_idle
is no longer a flag, but an enum of (off, light, full), and there
is no information about time spent in light modes.

Also added new data about the maximum duration spent in both light
and full idle modes, to get a better understanding of how those
are behaving.

And did a little cleanup of DeviceIdleController, removing the
sensing alarm which was redundant with the regular alarm.

Change-Id: Ibeea6659577dc02deff58f048f97fcd9b0223307
2015-10-20 10:43:14 -07:00
Filip Gruszczynski
e8301ddaaf Merge "Don't throw when request size and docked stack is not visible." 2015-10-20 17:12:15 +00:00
Filip Gruszczynski
54977fe9e4 Don't throw when request size and docked stack is not visible.
When requesting size for the stack that is next to the dock stack, we
shouldn't crash if the dock stack is not visible (which we would treat
as if it was not availble). We continue to throw an exception if the
docked stack really isn't there, but if it's only not visible, we give
the other stack full screen bounds.

Bug: 25019182
Change-Id: Ia611733590a6cb5a4ef4cc636aa0a2a6a0958ceb
2015-10-20 09:28:44 -07:00
Filip Gruszczynski
7790fdca9e Merge "Improve docked & freeform task to front app transition." 2015-10-20 15:07:36 +00:00
Clara Bayarri
e5971fe520 Merge "Enable Work Profile passphrase verify/write with FBE" 2015-10-20 12:18:33 +00:00
Adam Powell
b26ce13bbe Merge "DO NOT MERGE Fix jank when intent resolver/chooser windows animate in" into mnc-dr-dev am: 4ecfbcfdea am: eeed032eae am: 2a61cc8032
am: f94ce52404  -s ours

* commit 'f94ce52404e9d0354f123d22a8d9cd8aa8a73f86':
  DO NOT MERGE Fix jank when intent resolver/chooser windows animate in
2015-10-20 02:05:27 +00:00
Adam Powell
f94ce52404 Merge "DO NOT MERGE Fix jank when intent resolver/chooser windows animate in" into mnc-dr-dev am: 4ecfbcfdea am: eeed032eae
am: 2a61cc8032

* commit '2a61cc803203e605b1f4a017deec0aedb21605f3':
  DO NOT MERGE Fix jank when intent resolver/chooser windows animate in
2015-10-20 01:49:35 +00:00
Mathieu Chartier
c678482c14 Merge "Fix read_mapinfo to recognize free list large object space" am: 59d548e1e5 am: 7acf8c21d8
am: 8bf71cb7e7

* commit '8bf71cb7e73816431409a8e96287cf34a5a48c81':
  Fix read_mapinfo to recognize free list large object space
2015-10-20 01:49:20 +00:00
Adrian Roos
c8b59474d2 Merge "Reload content description of KeyButtonView" into mnc-dr-dev am: 9a345f31f2 am: 574b5f71e8 am: 011f9eb1fc
am: 0fdcc66177

* commit '0fdcc6617769d8198012a92527c6aff2ced4831f':
  Reload content description of KeyButtonView
2015-10-20 01:18:09 +00:00
Todd Kennedy
be1226b939 Merge branch \'cw-e-dev\' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into cw-e-dev am: ec8a4ecc92 am: 7e5b18a9dd
am: 78891b64c9

* commit '78891b64c9245fd0780fa4559b018d4279766fb4':
2015-10-20 01:17:20 +00:00
Todd Kennedy
fc5ac06906 Merge "Set host when restoring a fragment" into mnc-dr-dev am: 986d4b482d am: d419d86952 am: e9c7512147
am: eede174f7b

* commit 'eede174f7b7ee6fa8f1ad7de237c1d647a5db05f':
  Set host when restoring a fragment
2015-10-20 01:16:19 +00:00
Mathieu Chartier
1d67f3d3f1 Merge "Fix read_mapinfo to recognize free list large object space" into mnc-dr-dev am: 7f2deeeef5 am: df0cc41a7b am: efa447e1ab
am: a6358d93a0

* commit 'a6358d93a0f1cbc6469c226f7a77858e00b7de77':
  Fix read_mapinfo to recognize free list large object space
2015-10-20 01:15:28 +00:00
Svetoslav Ganov
af9d635f8e Merge "Don\'t allow concurrent permission requests." into mnc-dr-dev am: e199016a82 am: aebff7f1ad am: 2a95159d2c
am: 7fdc5d95ad

* commit '7fdc5d95ada01a378877d6a7c8be1894eb869e04':
  Don't allow concurrent permission requests.
2015-10-20 01:14:04 +00:00
Aravind Akella
cf3cd44b3c am 73b6750c: am 005d36d1: Merge "Fix a possible race condition in SensorManager initialization." into mnc-dr-dev am: a817c90a7a
am: fd81002e71

* commit 'fd81002e719737696c1c5913f2ba77f2e28883f3':
  Fix a possible race condition in SensorManager initialization.
2015-10-20 01:12:52 +00:00
Adam Powell
2a61cc8032 Merge "DO NOT MERGE Fix jank when intent resolver/chooser windows animate in" into mnc-dr-dev am: 4ecfbcfdea
am: eeed032eae

* commit 'eeed032eae1ac03509155fe7002189df054bb8af':
  DO NOT MERGE Fix jank when intent resolver/chooser windows animate in
2015-10-20 01:12:40 +00:00
Mathieu Chartier
8bf71cb7e7 Merge "Fix read_mapinfo to recognize free list large object space" am: 59d548e1e5
am: 7acf8c21d8

* commit '7acf8c21d848305400f645126918100f1d99f921':
  Fix read_mapinfo to recognize free list large object space
2015-10-20 01:12:36 +00:00
Adam Powell
eeed032eae Merge "DO NOT MERGE Fix jank when intent resolver/chooser windows animate in" into mnc-dr-dev
am: 4ecfbcfdea

* commit '4ecfbcfdeaed67c3a08002069a530fa58582a48b':
  DO NOT MERGE Fix jank when intent resolver/chooser windows animate in
2015-10-20 00:54:34 +00:00
Daichi Hirono
9d4689dda9 Merge "Add device model name to MtpDocumentsProvider's roots." 2015-10-20 00:47:07 +00:00
Adam Powell
4ecfbcfdea Merge "DO NOT MERGE Fix jank when intent resolver/chooser windows animate in" into mnc-dr-dev 2015-10-20 00:33:37 +00:00
Adrian Roos
0fdcc66177 Merge "Reload content description of KeyButtonView" into mnc-dr-dev am: 9a345f31f2 am: 574b5f71e8
am: 011f9eb1fc

* commit '011f9eb1fcdfd5bda83185ee2190664b3bc3f22f':
  Reload content description of KeyButtonView
2015-10-20 00:32:09 +00:00
Mathieu Chartier
7acf8c21d8 Merge "Fix read_mapinfo to recognize free list large object space"
am: 59d548e1e5

* commit '59d548e1e54fa753d3776647b98dc34ea7c27685':
  Fix read_mapinfo to recognize free list large object space
2015-10-20 00:30:52 +00:00
Adam Powell
918b90108b DO NOT MERGE Fix jank when intent resolver/chooser windows animate in
An old optimization in ViewRoot prevents updating a window surface
while a window animation is playing. SystemUI and other small system
components that blend these animations disable this for a smoother
experience. Disable it in ResolverActivity as well.

Bug 24989381

Change-Id: Iac7d1c7b1101ed8d2bc4c3557277a773ce871beb
2015-10-19 16:56:20 -07:00
Todd Kennedy
78891b64c9 Merge branch \'cw-e-dev\' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into cw-e-dev am: ec8a4ecc92
am: 7e5b18a9dd

* commit '7e5b18a9ddfff06f01cb97dbea12ae58a662870e':
2015-10-19 23:53:37 +00:00
Todd Kennedy
eede174f7b Merge "Set host when restoring a fragment" into mnc-dr-dev am: 986d4b482d am: d419d86952
am: e9c7512147

* commit 'e9c751214715f3d136ae07fe9f553c488d01f352':
  Set host when restoring a fragment
2015-10-19 23:52:37 +00:00
Mathieu Chartier
a6358d93a0 Merge "Fix read_mapinfo to recognize free list large object space" into mnc-dr-dev am: 7f2deeeef5 am: df0cc41a7b
am: efa447e1ab

* commit 'efa447e1ab5a51c96219fc1d6204c128dbbaf661':
  Fix read_mapinfo to recognize free list large object space
2015-10-19 23:51:35 +00:00
Svetoslav Ganov
7fdc5d95ad Merge "Don\'t allow concurrent permission requests." into mnc-dr-dev am: e199016a82 am: aebff7f1ad
am: 2a95159d2c

* commit '2a95159d2cce4321205ca7f40027a97acc2fb77e':
  Don't allow concurrent permission requests.
2015-10-19 23:50:28 +00:00
Adrian Roos
011f9eb1fc Merge "Reload content description of KeyButtonView" into mnc-dr-dev am: 9a345f31f2
am: 574b5f71e8

* commit '574b5f71e80cb5b205dcca2d9ef33820e33a850e':
  Reload content description of KeyButtonView
2015-10-19 23:50:19 +00:00
Adrian Roos
574b5f71e8 Merge "Reload content description of KeyButtonView" into mnc-dr-dev
am: 9a345f31f2

* commit '9a345f31f23fc581f9ce501e854c821e865920ca':
  Reload content description of KeyButtonView
2015-10-19 23:43:32 +00:00
Todd Kennedy
7e5b18a9dd Merge branch \'cw-e-dev\' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into cw-e-dev
am: ec8a4ecc92

* commit 'ec8a4ecc9210fa509283a860bb91814f28d28a4f':
2015-10-19 23:32:29 +00:00
Todd Kennedy
e9c7512147 Merge "Set host when restoring a fragment" into mnc-dr-dev am: 986d4b482d
am: d419d86952

* commit 'd419d86952fd962e34011eb3d989f748e678691d':
  Set host when restoring a fragment
2015-10-19 23:31:34 +00:00
Mathieu Chartier
efa447e1ab Merge "Fix read_mapinfo to recognize free list large object space" into mnc-dr-dev am: 7f2deeeef5
am: df0cc41a7b

* commit 'df0cc41a7bfa480ce5584420bceda850ad0c56c8':
  Fix read_mapinfo to recognize free list large object space
2015-10-19 23:29:56 +00:00
Svetoslav Ganov
2a95159d2c Merge "Don\'t allow concurrent permission requests." into mnc-dr-dev am: e199016a82
am: aebff7f1ad

* commit 'aebff7f1ad23299d1ed71e83a3e76619a1a03574':
  Don't allow concurrent permission requests.
2015-10-19 23:28:55 +00:00
Adrian Roos
9a345f31f2 Merge "Reload content description of KeyButtonView" into mnc-dr-dev 2015-10-19 23:26:47 +00:00
Todd Kennedy
ec8a4ecc92 Merge branch 'cw-e-dev' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base into cw-e-dev 2015-10-19 23:25:04 +00:00
Todd Kennedy
d419d86952 Merge "Set host when restoring a fragment" into mnc-dr-dev
am: 986d4b482d

* commit '986d4b482da952cd07e329b3bd11c935edd7ec01':
  Set host when restoring a fragment
2015-10-19 23:22:57 +00:00
Todd Kennedy
17b2b27f64 Merge "Set host when restoring a fragment" into mnc-dr-dev
am: 986d4b482d

* commit '986d4b482da952cd07e329b3bd11c935edd7ec01':
  Set host when restoring a fragment
2015-10-19 23:19:51 +00:00
Mathieu Chartier
df0cc41a7b Merge "Fix read_mapinfo to recognize free list large object space" into mnc-dr-dev
am: 7f2deeeef5

* commit '7f2deeeef53887dcad74b8aed86936983353cec4':
  Fix read_mapinfo to recognize free list large object space
2015-10-19 23:17:09 +00:00
Svetoslav Ganov
aebff7f1ad Merge "Don\'t allow concurrent permission requests." into mnc-dr-dev
am: e199016a82

* commit 'e199016a82329b645a86db345c2d39322c8ad03a':
  Don't allow concurrent permission requests.
2015-10-19 23:13:46 +00:00
Chris Craik
ec3d759a34 Merge "Use null GL for unit tests/microbench" 2015-10-19 22:59:23 +00:00
Chris Craik
5fbd9db67a Use null GL for unit tests/microbench
Change-Id: Ie6234f03d8561b71fc2ebd149ddd7334f275d7c5
2015-10-19 15:52:28 -07:00
Todd Kennedy
986d4b482d Merge "Set host when restoring a fragment" into mnc-dr-dev 2015-10-19 22:52:27 +00:00
Mathieu Chartier
7f2deeeef5 Merge "Fix read_mapinfo to recognize free list large object space" into mnc-dr-dev 2015-10-19 22:47:45 +00:00
Mathieu Chartier
2e2069d053 Fix read_mapinfo to recognize free list large object space
Bug: 25081604

(cherry picked from commit 6421da8f46e2a60da55939d8a4f7d91ab286dfcf)

Change-Id: If676c2309e3e397676fa8cef21405c34db7d5db2
2015-10-19 15:44:26 -07:00
Svetoslav Ganov
e199016a82 Merge "Don't allow concurrent permission requests." into mnc-dr-dev 2015-10-19 22:41:35 +00:00
Mathieu Chartier
59d548e1e5 Merge "Fix read_mapinfo to recognize free list large object space" 2015-10-19 22:36:40 +00:00
Mathieu Chartier
6421da8f46 Fix read_mapinfo to recognize free list large object space
Bug: 25081604
Change-Id: Ie277fd964afcdc80b97432cbd611a8136a2059d7
2015-10-19 15:22:06 -07:00
George Mount
d532a4a076 Merge "Set the bounds on the drawable for ChangeBounds reparenting." 2015-10-19 22:20:52 +00:00
John Reck
ba64d6af95 Merge "Fix trace end in inflate" 2015-10-19 22:00:54 +00:00
Steve McKay
182f2de1a5 Merge "Decouple gesture detection." 2015-10-19 22:00:39 +00:00