200418 Commits

Author SHA1 Message Date
Jeff Sharkey
1a4efb77dd Merge "Add locking when mutating RecentTasks." into mnc-dr-dev 2015-10-20 17:22:27 +00:00
Jeff Sharkey
38463bb950 Merge "Ignore network policies with missing IMSI." into mnc-dr-dev 2015-10-20 17:21:46 +00:00
Alan Viverette
840f38905c Merge "Update drawable matrix when bounds change in invalidateDrawable()" into mnc-dr-dev 2015-10-20 16:54:12 +00:00
George Mount
1313020acc Merge "Set the bounds on the drawable for ChangeBounds reparenting." into mnc-dr-dev 2015-10-20 16:41:33 +00:00
Abodunrinwa Toki
3b8a5ea036 Re-set PROCESS_TEXT selection if nothing was returned.
Bug: 25043887
Change-Id: If069a5e23f1adf6a2c3aac8fe7e3f19cff2e28ad
2015-10-20 17:11:26 +01:00
Michael Wright
57a5cba606 Merge "Add SystemUI component to watch for keyboard attachment." into mnc-dr-dev 2015-10-20 15:31:01 +00:00
Todd Kennedy
ad968cf4e5 Merge "Retain fragment loaders" into mnc-dr-dev 2015-10-20 14:36:00 +00:00
Alan Viverette
01320de844 Update drawable matrix when bounds change in invalidateDrawable()
Bug: 24797872
Change-Id: Ib2bcce6f7d6fab33633a915882821b00d94e4e44
2015-10-20 13:51:21 +00:00
Jeff Sharkey
a11234794a Add locking when mutating RecentTasks.
Otherwise there is a really rare race condition where we try tearing
down the tasks while we're still setting them up.

Bug: 25078914
Change-Id: Icf89241f9abec3fadc8606cfb4fbc029bbe91515
2015-10-19 17:46:08 -07: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
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
Jeff Sharkey
56859f323c Ignore network policies with missing IMSI.
In rare cases, we might have created a network policy before an IMSI
was available.  Because this policy is persisted, and we incorrectly
think that it always applies, we end up annoying the user when data
usage goes over the 2GB default warning threshold.

This patch fixes the network matching logic to ignore these empty
network policies when present.

Bug: 24972775
Change-Id: Id26499b6716121dddf0f2c05b848b0bed5995e72
2015-10-19 16:52:08 -07:00
George Mount
ef396b57c6 Set the bounds on the drawable for ChangeBounds reparenting.
Bug 24993183

The bounds for the drawable weren't being set, so the
drawable was never drawn to the correct size.

Change-Id: I992951f28ee6fac2ce8752d2dc0e23f51d3cf584
(cherry picked from commit f2a3703696f5dc8b1a0d243051e0db65c2145452)
2015-10-19 23:42:38 +00:00
Todd Kennedy
2ee19c7f46 Retain fragment loaders
Remove the partial fix [it did not work for child fragment managers]
and replace with a more general fix that works with all fragments.

Bug: 23838271
Change-Id: I88b465f6a06a6ad627b9651b9e2eea41fae08972
2015-10-19 16:40:03 -07:00
Adrian Roos
9a345f31f2 Merge "Reload content description of KeyButtonView" into mnc-dr-dev 2015-10-19 23:26:47 +00: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
Aravind Akella
a817c90a7a Merge "Fix a possible race condition in SensorManager initialization." into mnc-dr-dev 2015-10-19 21:15:28 +00:00
Todd Kennedy
ac0e6ca0d2 Set host when restoring a fragment
When we restore a fragment [i.e. on configuration change], we need to
make sure the host is set prior to calling into lifecycle methods
such as onInflate(). These use data contained within the host.

Bug: 22512520
Change-Id: I709365a858cfc555ec5b7fc200629fa8d022faad
2015-10-19 12:55:19 -07:00
Aravind Akella
a05df455e8 Fix a possible race condition in SensorManager initialization.
Bug: 24526176
Change-Id: Ib8bae6eee16a5b787d3c2da6ef03af311cfdfadc
2015-10-19 12:18:37 -07:00
Geoff Mendal
7ba59c3559 Merge "Import translations. DO NOT MERGE" into mnc-dr-dev 2015-10-19 15:55:17 +00:00
Geoff Mendal
c555378f4c Import translations. DO NOT MERGE
Change-Id: I76444ef3a3911763f41010e0cd0f5015a2f756e9
Auto-generated-cl: translation import
2015-10-19 08:03:19 -07:00
Geoff Mendal
5e4863205e Import translations. DO NOT MERGE
Change-Id: Ie8f3e950a4c69ad49e6f370b97398b507d488111
Auto-generated-cl: translation import
2015-10-19 07:01:55 -07:00
Chris Wren
c7f2058cef Merge "count notification peeks by window action" into mnc-dr-dev 2015-10-17 21:30:37 +00:00
Ruben Brunk
c03443b23d Fix lens shading map origin calculation.
Bug: 24816235
Change-Id: Id4609f3349f86c811cbc3d5e1839f880da926486
2015-10-17 06:55:15 +00:00
Adrian Roos
3bab515b19 Reload content description of KeyButtonView
Reload the content description whenever the
configuration changes.

Bug: 24977838
Change-Id: I875f0d83976b7d007a9bb2e56b28ff8fb6365a38
2015-10-16 23:53:12 +00:00
Selim Cinek
b9a73d2ce3 Merge "Stopping chronometers now when the shade is closed" into mnc-dr-dev 2015-10-16 23:28:46 +00:00
Selim Cinek
98713a4fcf Stopping chronometers now when the shade is closed
Bug: 23978877
Change-Id: I01a9e756d7eeef7aa239ca0c67d4084624aaed12
2015-10-16 15:58:10 -07:00
Matthew Williams
1f0ec16b6d DO NOT MERGE Sanity check loaded periodics and cap runtime.
BUG: 24900376
We've seen an issue where periodic run times can be massively
inflated after loading from disk.
As a safeguard, cap the period's loaded runtime to be [p, 2p]
from the time of loading.

Change-Id: Ie4464490c8d6702fee8efe9190c3da5dc5f013f6
(cherry picked from commit fa8e5084eed63ab8d92c71fcff656690a30293c3)
2015-10-16 21:56:55 +00:00
Roozbeh Pournader
5362f273e9 Merge "Fix line height problem with inline images in StaticLayout." into mnc-dr-dev 2015-10-16 21:54:12 +00:00
Adrian Roos
70ea857859 Merge "Fix wrongly laid out navigation color view" into mnc-dr-dev 2015-10-16 20:43:32 +00:00
Svetoslav
ffb32b1f24 Don't allow concurrent permission requests.
bug:24690277

Change-Id: Ie8c6eae230cd20e40d32cf688d30f6d40f9a9acd
2015-10-16 13:42:32 -07:00
Chris Wren
063926bda7 count notification peeks by window action
Bug: 20751989
Change-Id: I9b1093b98f303656a299c18b503c1d8c9f032335
2015-10-16 16:26:41 -04:00
Julia Reynolds
a762c210d2 Merge "Add 'until next alarm' option to QS zen panel." into mnc-dr-dev 2015-10-16 19:38:22 +00:00
Matthew Williams
6875011626 Merge "DO NOT MERGE Change scheduling logic to run network jobs sooner" into mnc-dr-dev 2015-10-16 18:51:48 +00:00
Adam Powell
749334bffb Merge "Fix ChooserTarget app scoring" into mnc-dr-dev 2015-10-16 18:08:36 +00:00
Adam Powell
77a533f5b2 Fix ChooserTarget app scoring
An initial sorting step before applying modifiers to the ChooserTarget
scores provided by apps was backwards, causing subsequent target
scores to be heavily penalized. Targets are then heavily influenced by
the lowest score in the set relative to the targets from other apps.

Bug 25013559

Change-Id: I39d5d7c601712fc6a19e694d5846d2c8d17a214f
2015-10-16 10:58:08 -07:00
Tyler Gunn
a5917b71b0 Merge "DO NOT MERGE Add a new carrier config for DTMF tone gap in CDMA." into mnc-dr-dev 2015-10-16 17:36:40 +00:00
Roshan Pius
482e9d9984 DO NOT MERGE Add a new carrier config for DTMF tone gap in CDMA.
Adding a new carrier config key to specify the gap between the DTMF
tones sent out to the network. Setting it to 100ms by default.
This is based on a similar set of changes for IMS calls: ag/747865.

BUG: 19118840
Change-Id: Ifb64fe406509fe7c401ad1c4b4e906d6643e327b
2015-10-16 09:45:29 -07:00
Abodunrinwa Toki
9c76f61dea Merge "DO NOT MERGE: Reduce delay of floating toolbar appearance." into mnc-dr-dev 2015-10-16 16:36:28 +00:00
Jeff Sharkey
0c15693e8d Merge "Update docs to reflect adoptable behavior." into mnc-dr-dev 2015-10-16 16:18:38 +00:00
Wale Ogunwale
be6555105a Merge "Disassociate system windows from apps" into mnc-dr-dev 2015-10-16 16:14:45 +00:00
tiger_huang
20ebb4c2d4 Disassociate system windows from apps
With the original logic, if an app creates a system window, when the
user goes to home screen, the system window will be still there and
become unable to receive input events, because the system window will
be also changed to the stopped state with the app window, and the
current logic of ViewRootImpl forbid a stopped window receiving input
events.

This change prevents assigning the token of the app window to system
windows created by the app, so that when the app goes to the stopped
state, its system windows won't be affected (can still receive input
events).

This change is related to the following changes:
a5d29971f8
15ed2754a3
c3672cd3f7
41725dedc3

Bug: 24967303
Bug: https://code.google.com/p/android/issues/detail?id=189710

Change-Id: I515e47bafcf39a2b1bdf92f11f623bef8fb6263c
2015-10-16 08:21:45 -07:00
Abodunrinwa Toki
a6200068af DO NOT MERGE: Reduce delay of floating toolbar appearance.
Bug: 21956394
Change-Id: I3db39e84afd3474b5bb53522c5a4c738ec1511bf
2015-10-16 16:01:00 +01:00
Roozbeh Pournader
431e506b53 Fix line height problem with inline images in StaticLayout.
Previously, paragraphs with ImageSpans in their middle would continue to
carry the height of the image into the line height of next lines. This was
a regression from L.

The bug was due to StaticLayout's out() method almost always
modifying the value of its parameter "fm", although that was only
intended when there were LineHeightSpans in the text. The method
generate() was assuming that it can restore fmTop etc to metrics of
the current span by setting them from "fm" after out() was run, while
"fm" was modified by out() and its original values was lost!

The fix makes sure to set chooseHt back to null if there were no
LineHeightSpans, so out() would not modify "fm" unless necessary.

AOSP bug: https://code.google.com/p/android/issues/detail?id=188042
Bug: 24548073

Change-Id: I0d00af384c35a9d863377972318da9db7668118f
2015-10-16 02:49:13 -07:00
Sanket Padawe
8d6d735fa8 Merge "Mask IccId which gets printed in bug reports & radio logs." into mnc-dr-dev 2015-10-16 00:38:55 +00:00
Matthew Williams
b91987634b DO NOT MERGE Change scheduling logic to run network jobs sooner
BUG: 24385082
BUG: 23144425
BUG: 18117279

Run jobs with connectivity constraints as soon as the developer-allotted
delay has expired, rather than waiting for the override deadline. This
is more in tune with what developers expect, although it reduces the
amount of batching the scheduler can theoretically do.
This will also have the side effect of fixing several failing cts
tests that started breaking b/c the signal to 'run connectivity
jobs early' was removed in M and nothing was put in to replace it.

Change-Id: I7e63c2b62f2882ee906f748445bbf10c32e19c5f
(cherry picked from commit aa9843198dec910a581bdc509d3937a9ea6ceca9)
2015-10-15 23:33:06 +00:00
Dianne Hackborn
56f4197148 Merge "Fix issue #24571425: Device does not come out of idle mode for maintenance" into mnc-dr-dev 2015-10-15 23:11:12 +00:00