Commit Graph

309172 Commits

Author SHA1 Message Date
Guang Zhu
045ae6dab7 Merge "adapt package manager presubmit test to GlobalPresubmit annotation" 2017-01-23 18:31:35 +00:00
Peter Qiu
1379fd0b1e wifi: WifiConfiguration: add isHomeProviderNetwork field
This is a boolean field indicating if the given WiFi network is provided
by a Passpont home provider. This is useful for the Passpoint provisioning
app to determine if the current WiFi connection is allowed to perform
Passpoint subscription or policy updates when it needs to.

This field will be set by PasspointNetworkEvaluator when generating
a WifiConfiguration for a Passpoint network.

Bug: 34467212
Test: make update-api; make -j32
Change-Id: I47310cda078cbf1f2d1b0a9bf79f487230fb668f
2017-01-23 10:28:58 -08:00
John Reck
51c51df46c Add missing nothingToDraw() check
Fixes: 34598346

Prior to 2874daa4d3 we
never freed the resources of root nodes. Now that this is being
done we need to ensure that the backdrop has content before
we try to draw that content. All other nodes passed in
deferRenderNodeScene check that nothingToDraw() returns false
before drawing them, but that check was missed on the backdrop
node.

Test: manual. open calculator then long-press on recents
Change-Id: I495749161b38b57278bdb60d5f872eeeb2b218d0
2017-01-23 10:26:28 -08:00
Peter Qiu
4a2a0399de wifi: WifiManager API change for supporting Passpoint Release 2
The changes include:
- Split WNM notifications intent to dedicated intent for each
  event: Deauth Imminent Notice and Subscription Remediation
- Add intent for broadcast OSU Providers List
- Update Passpoint icon intent definitions to conform to the
  API guide
- Make WifiManager#queryPasspointIcon public

All added/updated intents will required receiver to have
android.Manifest.permission.ACCESS_WIFI_STATE in order to
receive the intents.

The deprecated hidden intent definitions will be removed once
the WifiService is updated to use the new intents.

Bug: 34198926
Test: make -j32
Change-Id: Ic17eef8364d79144eb530c68c6877712efcb5209
2017-01-23 10:24:33 -08:00
TreeHugger Robot
ec30d6e12f Merge "add a signaled reader to the eventlog" 2017-01-23 18:18:30 +00:00
thecrazyskull
dbb1176b49 Merge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904 am: f15075c9f8 am: d0fff5284f
am: c0f87db026

Change-Id: I24f5c280be0107080d66ee793999e5e0e5ffe8ac
2017-01-23 17:59:12 +00:00
Jason Monk
9c7844cb91 Work on sysui dependencies
One of the many problems with PhoneStatusBar is that it holds
dependencies for many other parts of SysUI. Fix this by creating
a static method of grabbing dependencies that are global to sysui
this cleans up a lot of chains of interdependence.

Also add easy way to inject mocks of these dependencies for the
purpose of testing.

Test: runtest systemui
Change-Id: Ia0e947faea62d15b665facada47ac9916c99f895
2017-01-23 12:55:53 -05:00
thecrazyskull
c0f87db026 Merge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904 am: f15075c9f8
am: d0fff5284f

Change-Id: I319f88d1d88ff9e4b8507224ca7209eb7631dc99
2017-01-23 17:55:03 +00:00
TreeHugger Robot
c3f3595153 Merge "Delete accidentally submitted FontResourcesParser" 2017-01-23 17:51:33 +00:00
thecrazyskull
d0fff5284f Merge "LocalDisplayAdapter: don't crash when no color modes available" am: 24218db904
am: f15075c9f8

Change-Id: Idcccd811808be32b492d8e2cb753439fc4d9de46
2017-01-23 17:42:04 +00:00
Geoffrey Pitsch
331a64d091 Fix cancel notification race condition bug.
Cancel should always remove notifications, regardless of whether
they've been posted internally.  Primarily accomplished by ensuring
all cancels happen on the same handler, and that they check the
enqueued list as well the main notifications list.

Also fixes snoozing for enqueued notifications, since it is
implemented via cancelling.

Test: runtest systemui-notification
Change-Id: If8295a38102f245013d29831a060fabd80716e4b
2017-01-23 12:37:03 -05:00
thecrazyskull
f15075c9f8 Merge "LocalDisplayAdapter: don't crash when no color modes available"
am: 24218db904

Change-Id: I89d080a00fb87c73c2af1604f617706f0f60f32b
2017-01-23 17:35:11 +00:00
Polina Bondarenko
1eb7161f45 Merge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780 am: cf176500e6 am: b46a93ff04
am: 308bcec713  -s ours

Change-Id: I89faa271ee2c384019d827f7981ae97b03f84e0e
2017-01-23 17:28:09 +00:00
Treehugger Robot
24218db904 Merge "LocalDisplayAdapter: don't crash when no color modes available" 2017-01-23 17:25:11 +00:00
Polina Bondarenko
308bcec713 Merge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780 am: cf176500e6
am: b46a93ff04

Change-Id: I8f17bef7ccde5953f5b810bd806fc51a4c69e194
2017-01-23 17:20:58 +00:00
Polina Bondarenko
b46a93ff04 Merge "Make TelephonyManager#get/setAllowedCarriers system api" am: 6d064d8780
am: cf176500e6

Change-Id: Ic278e3a9bd7c9c99345150228c6e87343737079e
2017-01-23 17:14:35 +00:00
Charles He
34f04ffa0b Merge "DPM: Notify DO/PO of security updates." 2017-01-23 17:11:53 +00:00
Polina Bondarenko
cf176500e6 Merge "Make TelephonyManager#get/setAllowedCarriers system api"
am: 6d064d8780

Change-Id: I8f9b1c8e9ce1fda6cd03cd0dd459ead8837bd90d
2017-01-23 17:10:05 +00:00
Robin Lee
91a0c0983f Merge "Disable always-on VPN in factoryReset" am: 63c14e0ab6 am: 1135d509c5 am: e2554d51c4
am: 08d05b2719

Change-Id: Iaccb7394994ccce66df0ab2f713fd890a8b999c8
2017-01-23 17:05:42 +00:00
TreeHugger Robot
26ba16e4d1 Merge "Fix thumbnails in landscape in recents" 2017-01-23 17:02:38 +00:00
Robin Lee
08d05b2719 Merge "Disable always-on VPN in factoryReset" am: 63c14e0ab6 am: 1135d509c5
am: e2554d51c4

Change-Id: I99207281321861a3e720b5c1e2e316e12b104677
2017-01-23 17:01:31 +00:00
Treehugger Robot
6d064d8780 Merge "Make TelephonyManager#get/setAllowedCarriers system api" 2017-01-23 17:01:25 +00:00
Robin Lee
e2554d51c4 Merge "Disable always-on VPN in factoryReset" am: 63c14e0ab6
am: 1135d509c5

Change-Id: I66b6721932ae8798cbb406cafa04ed0c92fe47f6
2017-01-23 16:54:59 +00:00
Robin Lee
1135d509c5 Merge "Disable always-on VPN in factoryReset"
am: 63c14e0ab6

Change-Id: I021b288e3db17ddefbea3645fd282e3ee123a6e8
2017-01-23 16:47:58 +00:00
Todd Kennedy
22040a537a Merge "null check" 2017-01-23 16:47:45 +00:00
Todd Kennedy
540dcb222e null check
Fixes: 34598376
Test: Manual
Change-Id: Ia2508434f6fada2219c1eea9b05f9101fc4490e3
2017-01-23 08:45:44 -08:00
Chris Wren
d09bf8271e add a signaled reader to the eventlog
Test: manual using a logspammer app
Change-Id: I89e3dda82d4d1d3fc6d343b634642687e550f70a
2017-01-23 11:40:52 -05:00
Robin Lee
63c14e0ab6 Merge "Disable always-on VPN in factoryReset" 2017-01-23 16:40:07 +00:00
TreeHugger Robot
a2feb80b83 Merge "Strong auth timeout refactor" 2017-01-23 16:37:00 +00:00
Toby Sargeant
773deddaf5 Merge "WebView: Add the definition of the renderer importance API." 2017-01-23 16:21:18 +00:00
thecrazyskull
b34c8104cb LocalDisplayAdapter: don't crash when no color modes available
Test: none

Change-Id: Ic11b5b66864fdd97b290722cba534b2aa38ac054
2017-01-23 09:52:22 -06:00
Clara Bayarri
764ff2740f Delete accidentally submitted FontResourcesParser
This should have not been part of commit
Idc06bfbfd16452a328bfcc6ea9dcfb723b633f0c

Test: none
Change-Id: I0701e5fad0df898ba64ea695ec31d0dd7d3bb333
2017-01-23 15:43:54 +00:00
Torne (Richard Coles)
b26428b3c2 Expose isMultiProcessEnabled via WebViewDelegate.
Allow the WebView implementation to call isMultiProcessEnabled via the
delegate, so that it doesn't have to fetch and interpret the value of
the system setting itself.

Bug: 21643067
Test: manual (requires modifications to chromium to call)
Change-Id: I1ef2b7ea0054c606965040e02034c938d5e6464c
2017-01-23 15:09:55 +00:00
Clara Bayarri
04d72abde1 Expose fonts.xml via public API with a service
This change creates a new FontManagerService, in charge of providing
font management data. It exposes a public API to retrieve the
information in fonts.xml without accessing it directly. To do this,
it also refactors FontListParser's internal classes into a new public
FontConfig class holding all the font data.

getSystemFonts() returns all the available information in fonts.xml
as well as file descriptors for all the fonts. This allows us to
share the memory consumed by these files between all clients.

Bug: 34190490
Test: See attached CTS change in topic
Change-Id: I0e922f8bcc9a197a1988d04071eb485328d66fb7
2017-01-23 15:02:23 +00:00
Michal Karpinski
e71f583c78 Strong auth timeout refactor
Move timeout scheduling mechanism from KeyguardUpdateMonitor to
LockSettingsStrongAuth.
Move reporting about successful strong auth unlock from
KeyguardUpdateMonitor#reportSuccessfulStrongAuthUnlockAttempt()
to LockSettingsService#doVerifyCredential() - the latter also
covers work challenge strong auth unlocking.

Test: manual with all types of strong and non-strong auth, including work challenge
Bug: 29825955
Change-Id: I38e51b21e3a455b95e3c857e091fe07ee388c7f8
2017-01-23 14:53:56 +00:00
Jason Monk
993b919951 Add long-click to app info for plugin settings
Test: manual
Change-Id: Ibb702e4f7d2392a96cb4af96d454689224b9f1f1
2017-01-23 09:27:24 -05:00
TreeHugger Robot
83d577581b Merge "Expose Resources.getFont" 2017-01-23 13:31:33 +00:00
TreeHugger Robot
2899a69295 Merge changes I72139780,I8e563654
* changes:
  Fix screenshotting with includeDecor=true in multi-window
  Implement restoring & correct caching of snapshots
2017-01-23 13:24:37 +00:00
Jorim Jaggi
366a5b27dd Fix thumbnails in landscape in recents
Bug: 31339431
Change-Id: If657df7889d43f1f6eafe50ae0581dd70013888e
2017-01-23 14:18:13 +01:00
Jorim Jaggi
bfbd9dc963 Fix screenshotting with includeDecor=true in multi-window
The old code wasn't really tested and stackBounds variable was
null in any case.

Test: Go to multi-window, go to recents, make sure screenshot is
correct.
Bug: 31339431

Change-Id: I721397800ba7519dba7f569461c5f339eba0591b
2017-01-23 14:17:44 +01:00
Erik Kline
c1398d1734 Merge "Move TetheringConfiguration out to its own file" am: 5a45170f95 -s ours am: fc97509a3e am: 42bd98f1ce
am: 5edf4f1101

Change-Id: Ic459905b4cc18b011ac874e1be926d75f88fa714
2017-01-23 13:10:12 +00:00
Erik Kline
86014f06ce resolve merge conflicts of 261932b98c to nyc-mr2-dev-plus-aosp
am: 0b8e889424

Change-Id: I774d9393c23b32b8a767cffcc62db171563b12af
2017-01-23 13:09:13 +00:00
Jorim Jaggi
7361babf94 Implement restoring & correct caching of snapshots
Introduce a retrieval cache that holds the last accessed
snapshots, in addition to the cache of the activities
that are the top most activtiy of a task that have a
running process.

Change everything to use an integer id instead of a Task object
to work around the issue that some tasks SystemUI might access
might not exist in WM yet (not yet restored from recents).

Don't put anything in the cache on the SystemUI side, but still
retrieve the thumbnails after a task changed event to make sure
the cache on the system_server side is fresh.

Test: runtest frameworks-services -c
com.android.server.wm.TaskSnapshotCacheTest

Bug: 31339431
Change-Id: I8e56365459a677735320adaa169da8fb033ceab0
2017-01-23 14:05:35 +01:00
Erik Kline
5edf4f1101 Merge "Move TetheringConfiguration out to its own file" am: 5a45170f95 -s ours am: fc97509a3e
am: 42bd98f1ce

Change-Id: I3580c86b3d252209dfa84c9beb4c42403609b267
2017-01-23 13:05:15 +00:00
Mahaver
6cd4716f16 Provisioning terms screen constants
They are logged only once per provisioning session.

Test: NA

Bug: 34434241
Change-Id: Icc45f132ec2e43efe0fa6920eb97eaeb585ee2d1
2017-01-23 12:56:32 +00:00
Erik Kline
0b8e889424 resolve merge conflicts of 261932b98c to nyc-mr2-dev-plus-aosp
Change-Id: I8476804f77567cf01693a4126d5a41bcdb0016e8
2017-01-23 21:49:40 +09:00
Erik Kline
42bd98f1ce Merge "Move TetheringConfiguration out to its own file" am: 5a45170f95 -s ours
am: fc97509a3e

Change-Id: I28eabc6e3f58ac2b3b45fa5d218fcaf41b13de5c
2017-01-23 12:24:15 +00:00
Erik Kline
261932b98c Move TetheringConfiguration out to its own file
am: a3d5657027

Change-Id: I429649e576fdd0f6c08b2a90c0dfba5de2316c4f
2017-01-23 12:23:16 +00:00
Erik Kline
fc97509a3e Merge "Move TetheringConfiguration out to its own file"
am: 5a45170f95  -s ours

Change-Id: I6a6bc4b2679432dd539d6b6930d7a32229fab363
2017-01-23 12:20:35 +00:00
TreeHugger Robot
b334b8f0f2 Merge "AAPT: Add support for 'font' resource type" 2017-01-23 11:48:12 +00:00