OSDN Git Service
TreeHugger Robot [Mon, 23 Jan 2017 20:27:27 +0000 (20:27 +0000)]
Merge "Fix recent checkPermission() bug."
TreeHugger Robot [Mon, 23 Jan 2017 20:20:10 +0000 (20:20 +0000)]
Merge "Change WebView fallback mechanism to consider all users' package states."
TreeHugger Robot [Mon, 23 Jan 2017 19:57:16 +0000 (19:57 +0000)]
Merge "Expose fonts.xml via public API with a service"
TreeHugger Robot [Mon, 23 Jan 2017 19:51:34 +0000 (19:51 +0000)]
Merge "Add missing nothingToDraw() check"
Brad Ebinger [Mon, 23 Jan 2017 19:49:34 +0000 (19:49 +0000)]
Merge "Deprecate old TelecomManager actions" am:
d1ab15a1af am:
ee9a9babb1 am:
50315f010c
am:
aaad10d729
Change-Id: I35639813b1d356df1fea82c9470bd18fda1c5267
Brad Ebinger [Mon, 23 Jan 2017 19:38:42 +0000 (19:38 +0000)]
Merge "Deprecate old TelecomManager actions" am:
d1ab15a1af am:
ee9a9babb1
am:
50315f010c
Change-Id: I89621d6f584ee743b67838a11fde212d2030900c
Brad Ebinger [Mon, 23 Jan 2017 19:31:18 +0000 (19:31 +0000)]
Merge "Deprecate old TelecomManager actions" am:
d1ab15a1af
am:
ee9a9babb1
Change-Id: Ib24d46d70b10cd8bb6ac39fd4dc915ac9a19a3ba
TreeHugger Robot [Mon, 23 Jan 2017 19:31:11 +0000 (19:31 +0000)]
Merge "Work on sysui dependencies"
TreeHugger Robot [Mon, 23 Jan 2017 19:29:01 +0000 (19:29 +0000)]
Merge changes from topic 'anb'
* changes:
Adding HardwareBuffer, a Java wrapper around AHardwareBuffer.
AHardwareBuffer implementation.
Brad Ebinger [Mon, 23 Jan 2017 19:23:35 +0000 (19:23 +0000)]
Merge "Deprecate old TelecomManager actions"
am:
d1ab15a1af
Change-Id: Id76db43d6cc4477a328698e049558ef936a4fe1d
TreeHugger Robot [Mon, 23 Jan 2017 19:18:44 +0000 (19:18 +0000)]
Merge "Do not log boot times for secondary users and upgrades"
TreeHugger Robot [Mon, 23 Jan 2017 19:16:30 +0000 (19:16 +0000)]
Merge "Fix cancel notification race condition bug."
Brad Ebinger [Mon, 23 Jan 2017 19:09:11 +0000 (19:09 +0000)]
Merge "Deprecate old TelecomManager actions"
Eugene Susla [Mon, 23 Jan 2017 19:02:12 +0000 (19:02 +0000)]
Merge "Add ability to dump settings as proto buf"
TreeHugger Robot [Mon, 23 Jan 2017 18:58:31 +0000 (18:58 +0000)]
Merge "Make the comments of some of the raw GNSS measurements more clear."
Jeff Schumacher [Mon, 23 Jan 2017 18:50:12 +0000 (18:50 +0000)]
Merge "Opened some App Links APIs to @SystemApi"
Jeff Sharkey [Mon, 23 Jan 2017 18:37:24 +0000 (11:37 -0700)]
Fix recent checkPermission() bug.
It should be checking if the UID argument passed in has the requested
permission; not the calling UID.
Test: builds, boots
Bug:
34528367
Change-Id: Ie1828f571d9f143ce9f5bdca2eedcf2fa6ccfd79
Guang Zhu [Mon, 23 Jan 2017 18:31:31 +0000 (18:31 +0000)]
Merge "adapt package manager presubmit test to GlobalPresubmit annotation"
John Reck [Mon, 23 Jan 2017 18:24:27 +0000 (10:24 -0800)]
Add missing nothingToDraw() check
Fixes:
34598346
Prior to
2874daa4d38bddd3a5f0edb3774d5e5884dd9554 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
TreeHugger Robot [Mon, 23 Jan 2017 18:18:26 +0000 (18:18 +0000)]
Merge "add a signaled reader to the eventlog"
thecrazyskull [Mon, 23 Jan 2017 17:59:12 +0000 (17:59 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available" am:
24218db904 am:
f15075c9f8 am:
d0fff5284f
am:
c0f87db026
Change-Id: I24f5c280be0107080d66ee793999e5e0e5ffe8ac
Jason Monk [Wed, 18 Jan 2017 20:21:53 +0000 (15:21 -0500)]
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
thecrazyskull [Mon, 23 Jan 2017 17:55:03 +0000 (17:55 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available" am:
24218db904 am:
f15075c9f8
am:
d0fff5284f
Change-Id: I319f88d1d88ff9e4b8507224ca7209eb7631dc99
TreeHugger Robot [Mon, 23 Jan 2017 17:51:29 +0000 (17:51 +0000)]
Merge "Delete accidentally submitted FontResourcesParser"
thecrazyskull [Mon, 23 Jan 2017 17:42:04 +0000 (17:42 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available" am:
24218db904
am:
f15075c9f8
Change-Id: Idcccd811808be32b492d8e2cb753439fc4d9de46
Geoffrey Pitsch [Tue, 17 Jan 2017 19:00:47 +0000 (14:00 -0500)]
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
thecrazyskull [Mon, 23 Jan 2017 17:35:11 +0000 (17:35 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available"
am:
24218db904
Change-Id: I89d080a00fb87c73c2af1604f617706f0f60f32b
Polina Bondarenko [Mon, 23 Jan 2017 17:28:09 +0000 (17:28 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api" am:
6d064d8780 am:
cf176500e6 am:
b46a93ff04
am:
308bcec713 -s ours
Change-Id: I89faa271ee2c384019d827f7981ae97b03f84e0e
Treehugger Robot [Mon, 23 Jan 2017 17:25:10 +0000 (17:25 +0000)]
Merge "LocalDisplayAdapter: don't crash when no color modes available"
Polina Bondarenko [Mon, 23 Jan 2017 17:20:58 +0000 (17:20 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api" am:
6d064d8780 am:
cf176500e6
am:
b46a93ff04
Change-Id: I8f17bef7ccde5953f5b810bd806fc51a4c69e194
Polina Bondarenko [Mon, 23 Jan 2017 17:14:35 +0000 (17:14 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api" am:
6d064d8780
am:
cf176500e6
Change-Id: Ic278e3a9bd7c9c99345150228c6e87343737079e
Charles He [Mon, 23 Jan 2017 17:11:50 +0000 (17:11 +0000)]
Merge "DPM: Notify DO/PO of security updates."
Polina Bondarenko [Mon, 23 Jan 2017 17:10:05 +0000 (17:10 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api"
am:
6d064d8780
Change-Id: I8f9b1c8e9ce1fda6cd03cd0dd459ead8837bd90d
Robin Lee [Mon, 23 Jan 2017 17:05:42 +0000 (17:05 +0000)]
Merge "Disable always-on VPN in factoryReset" am:
63c14e0ab6 am:
1135d509c5 am:
e2554d51c4
am:
08d05b2719
Change-Id: Iaccb7394994ccce66df0ab2f713fd890a8b999c8
TreeHugger Robot [Mon, 23 Jan 2017 17:02:35 +0000 (17:02 +0000)]
Merge "Fix thumbnails in landscape in recents"
Robin Lee [Mon, 23 Jan 2017 17:01:31 +0000 (17:01 +0000)]
Merge "Disable always-on VPN in factoryReset" am:
63c14e0ab6 am:
1135d509c5
am:
e2554d51c4
Change-Id: I99207281321861a3e720b5c1e2e316e12b104677
Treehugger Robot [Mon, 23 Jan 2017 17:01:24 +0000 (17:01 +0000)]
Merge "Make TelephonyManager#get/setAllowedCarriers system api"
Robin Lee [Mon, 23 Jan 2017 16:54:59 +0000 (16:54 +0000)]
Merge "Disable always-on VPN in factoryReset" am:
63c14e0ab6
am:
1135d509c5
Change-Id: I66b6721932ae8798cbb406cafa04ed0c92fe47f6
Robin Lee [Mon, 23 Jan 2017 16:47:58 +0000 (16:47 +0000)]
Merge "Disable always-on VPN in factoryReset"
am:
63c14e0ab6
Change-Id: I021b288e3db17ddefbea3645fd282e3ee123a6e8
Todd Kennedy [Mon, 23 Jan 2017 16:47:41 +0000 (16:47 +0000)]
Merge "null check"
Todd Kennedy [Mon, 23 Jan 2017 16:44:40 +0000 (08:44 -0800)]
null check
Fixes:
34598376
Test: Manual
Change-Id: Ia2508434f6fada2219c1eea9b05f9101fc4490e3
Chris Wren [Fri, 2 Dec 2016 22:43:23 +0000 (17:43 -0500)]
add a signaled reader to the eventlog
Test: manual using a logspammer app
Change-Id: I89e3dda82d4d1d3fc6d343b634642687e550f70a
Robin Lee [Mon, 23 Jan 2017 16:40:05 +0000 (16:40 +0000)]
Merge "Disable always-on VPN in factoryReset"
TreeHugger Robot [Mon, 23 Jan 2017 16:36:56 +0000 (16:36 +0000)]
Merge "Strong auth timeout refactor"
Toby Sargeant [Mon, 23 Jan 2017 16:21:15 +0000 (16:21 +0000)]
Merge "WebView: Add the definition of the renderer importance API."
thecrazyskull [Sun, 18 Dec 2016 17:48:20 +0000 (12:48 -0500)]
LocalDisplayAdapter: don't crash when no color modes available
Test: none
Change-Id: Ic11b5b66864fdd97b290722cba534b2aa38ac054
Clara Bayarri [Mon, 23 Jan 2017 15:43:54 +0000 (15:43 +0000)]
Delete accidentally submitted FontResourcesParser
This should have not been part of commit
Idc06bfbfd16452a328bfcc6ea9dcfb723b633f0c
Test: none
Change-Id: I0701e5fad0df898ba64ea695ec31d0dd7d3bb333
Clara Bayarri [Tue, 10 Jan 2017 17:31:51 +0000 (09:31 -0800)]
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
Michal Karpinski [Fri, 13 Jan 2017 18:18:49 +0000 (18:18 +0000)]
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
TreeHugger Robot [Mon, 23 Jan 2017 13:31:30 +0000 (13:31 +0000)]
Merge "Expose Resources.getFont"
TreeHugger Robot [Mon, 23 Jan 2017 13:24:32 +0000 (13:24 +0000)]
Merge changes I72139780,I8e563654
* changes:
Fix screenshotting with includeDecor=true in multi-window
Implement restoring & correct caching of snapshots
Jorim Jaggi [Fri, 20 Jan 2017 16:53:01 +0000 (17:53 +0100)]
Fix thumbnails in landscape in recents
Bug:
31339431
Change-Id: If657df7889d43f1f6eafe50ae0581dd70013888e
Jorim Jaggi [Fri, 20 Jan 2017 17:13:01 +0000 (18:13 +0100)]
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
Erik Kline [Mon, 23 Jan 2017 13:10:12 +0000 (13:10 +0000)]
Merge "Move TetheringConfiguration out to its own file" am:
5a45170f95 -s ours am:
fc97509a3e am:
42bd98f1ce
am:
5edf4f1101
Change-Id: Ic459905b4cc18b011ac874e1be926d75f88fa714
Erik Kline [Mon, 23 Jan 2017 13:09:13 +0000 (13:09 +0000)]
resolve merge conflicts of
261932b98cb6 to nyc-mr2-dev-plus-aosp
am:
0b8e889424
Change-Id: I774d9393c23b32b8a767cffcc62db171563b12af
Jorim Jaggi [Mon, 16 Jan 2017 16:17:58 +0000 (17:17 +0100)]
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
Erik Kline [Mon, 23 Jan 2017 13:05:15 +0000 (13:05 +0000)]
Merge "Move TetheringConfiguration out to its own file" am:
5a45170f95 -s ours am:
fc97509a3e
am:
42bd98f1ce
Change-Id: I3580c86b3d252209dfa84c9beb4c42403609b267
Erik Kline [Mon, 23 Jan 2017 12:49:40 +0000 (21:49 +0900)]
resolve merge conflicts of
261932b98cb6 to nyc-mr2-dev-plus-aosp
Change-Id: I8476804f77567cf01693a4126d5a41bcdb0016e8
Erik Kline [Mon, 23 Jan 2017 12:24:15 +0000 (12:24 +0000)]
Merge "Move TetheringConfiguration out to its own file" am:
5a45170f95 -s ours
am:
fc97509a3e
Change-Id: I28eabc6e3f58ac2b3b45fa5d218fcaf41b13de5c
Erik Kline [Mon, 23 Jan 2017 12:23:16 +0000 (12:23 +0000)]
Move TetheringConfiguration out to its own file
am:
a3d5657027
Change-Id: I429649e576fdd0f6c08b2a90c0dfba5de2316c4f
Erik Kline [Mon, 23 Jan 2017 12:20:35 +0000 (12:20 +0000)]
Merge "Move TetheringConfiguration out to its own file"
am:
5a45170f95 -s ours
Change-Id: I6a6bc4b2679432dd539d6b6930d7a32229fab363
TreeHugger Robot [Mon, 23 Jan 2017 11:48:08 +0000 (11:48 +0000)]
Merge "AAPT: Add support for 'font' resource type"
Erik Kline [Sat, 21 Jan 2017 05:33:56 +0000 (14:33 +0900)]
Move TetheringConfiguration out to its own file
Test: as follows
- built (bullhead)
- flashed
- booted
- runtest frameworks-net
- vanilla tethering works
- changing from no dun requirement to dun shows dun required
Bug:
32163131
Change-Id: I488449570dff057311b37335923ce6a199b363b7
Andrei Stingaceanu [Mon, 23 Jan 2017 11:21:53 +0000 (11:21 +0000)]
Merge "AutoSize TextView (part 7) - APIs for configuring auto-size"
Clara Bayarri [Mon, 19 Dec 2016 16:20:29 +0000 (16:20 +0000)]
Expose Resources.getFont
Based on the work already done in aapt2, load a Font from a
resource id.
Test: WIP
Change-Id: Idc06bfbfd16452a328bfcc6ea9dcfb723b633f0c
Hugo Benichi [Mon, 23 Jan 2017 11:15:05 +0000 (11:15 +0000)]
Merge changes Idbde7000,Idde3c9d0 into nyc-mr2-dev-plus-aosp
am:
767b7ad7dc
Change-Id: I3d5a6c31629a5756e0ea97c9a66a19cc702bc5c6
Hugo Benichi [Mon, 23 Jan 2017 11:14:59 +0000 (11:14 +0000)]
DO NOT MERGE ApfFilter: use elapsedRealTime for RA lifetime
am:
4c0b7cc776 -s ours
Change-Id: I13280034272754234df8d3db21319cdc7a9f7ef0
Hugo Benichi [Mon, 23 Jan 2017 11:14:05 +0000 (11:14 +0000)]
DO NOT MERGE ApfFilter: systematically use u8, u16, u32 getters
am:
c81837495d -s ours
Change-Id: Idbcd29b95983d31f2e17674e48e24bf699ee392f
Erik Kline [Mon, 23 Jan 2017 11:13:04 +0000 (11:13 +0000)]
Merge "Add test for updateMobileRequiresDun()" am:
7f018500dc am:
2a3338084a am:
503374c0ae
am:
552f5620d1
Change-Id: Ib90e5f3ede42ae435ce5da1ebf89be5863601eae
Hugo Benichi [Mon, 23 Jan 2017 11:09:15 +0000 (11:09 +0000)]
Merge changes Idbde7000,Idde3c9d0 into nyc-mr2-dev-plus-aosp
* changes:
DO NOT MERGE ApfFilter: use elapsedRealTime for RA lifetime
DO NOT MERGE ApfFilter: systematically use u8, u16, u32 getters
Erik Kline [Mon, 23 Jan 2017 11:06:06 +0000 (11:06 +0000)]
Merge "Add test for updateMobileRequiresDun()" am:
7f018500dc am:
2a3338084a
am:
503374c0ae
Change-Id: I25751833ed6623ab156156fc76aa23b158a60fb4
Erik Kline [Mon, 23 Jan 2017 10:59:41 +0000 (10:59 +0000)]
Merge "Add test for updateMobileRequiresDun()" am:
7f018500dc
am:
2a3338084a
Change-Id: I3fe2605bba2a8c8ee3284f3c3278258d37fae46b
Erik Kline [Mon, 23 Jan 2017 10:56:35 +0000 (10:56 +0000)]
Merge "Move TetheringConfiguration out to its own file"
Erik Kline [Sat, 21 Jan 2017 05:33:56 +0000 (14:33 +0900)]
Move TetheringConfiguration out to its own file
Test: as follows
- built (bullhead)
- flashed
- booted
- runtest frameworks-net
- vanilla tethering works
- changing from no dun requirement to dun shows dun required
Bug:
32163131
Change-Id: I488449570dff057311b37335923ce6a199b363b7
Erik Kline [Mon, 23 Jan 2017 10:53:11 +0000 (10:53 +0000)]
Merge "Add test for updateMobileRequiresDun()"
am:
7f018500dc
Change-Id: Ic7b984105e2c245a992446e15d11dd19e4671a57
Treehugger Robot [Mon, 23 Jan 2017 10:44:19 +0000 (10:44 +0000)]
Merge "Add test for updateMobileRequiresDun()"
Charles He [Fri, 13 Jan 2017 10:04:12 +0000 (10:04 +0000)]
DPM: Notify DO/PO of security updates.
We add a variant of notifyPendingSystemUpdate method which takes an
additional isSecurityPatch boolean flag. This information, if available,
will be persisted and available to device and profile owners when they
call getPendingSystemUpdate method.
Test: gts-tradefed run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.DeviceOwnerTest#testPendingSystemUpdate
Test: gts-tradefed run gts -m GtsGmscoreHostTestCases -t com.google.android.gts.devicepolicy.ManagedProfileTest#testPendingSystemUpdate
Bug:
33102479
Bug:
30961046
Change-Id: If3f1b765bb18a359836ac43ac9a0a9f29e9f8428
Gustav Sennton [Wed, 14 Dec 2016 09:10:50 +0000 (09:10 +0000)]
Change WebView fallback mechanism to consider all users' package states.
MultiProcess WebView will use a Service to start a separate process (the
renderer process). This Service can only be started if the WebView
package is enabled for the current user. To ensure that the current
WebView package is usable by all users on a single device we now only
use a WebView package as WebView implementation if that package is
enabled and installed for all user on the device. This also means that
the WebView-fallback mechanism will trigger when disabling the primary
WebView package for any user (not just the system user).
Also add multi-user unit tests to cover this new change.
Bug:
32894152
Test: run unit tests in WebViewUpdateServiceTest
Test: ensure the standalone WebView package becomes enabled (for all
device users) when disabling Chrome for a secondary user.
Test: load WebView (both using Monochrome, and using the standalone
WebView).
Change-Id: Iad3fc48aa50273062c2f29ae48a343c2dea38116
Erik Kline [Mon, 23 Jan 2017 06:55:16 +0000 (15:55 +0900)]
Add test for updateMobileRequiresDun()
This test validates that when a mobile upstream has been requested
changing the "DUN required" state results in updating the requested
network appropriately.
Test: as follows
- built
- flashed
- booted
- runtest frameworks-test passes
Bug:
32163131
Change-Id: Ia3a1f6493ea348eb75e334344468a980206f618f
Erik Kline [Mon, 23 Jan 2017 07:30:22 +0000 (07:30 +0000)]
Merge "More concisely export whether we have a "tetherable configuration"" am:
1b2a1b911d am:
72c17a7234 am:
d0867fb876
am:
1a816ce119
Change-Id: I290df5269739bc7fb5ebc8614a96c38bf7faf367
Erik Kline [Mon, 23 Jan 2017 07:26:28 +0000 (07:26 +0000)]
Merge "More concisely export whether we have a "tetherable configuration"" am:
1b2a1b911d am:
72c17a7234
am:
d0867fb876
Change-Id: Iba07ae91906fa2f0763dae831f56b4841572e1f1
Erik Kline [Mon, 23 Jan 2017 07:20:32 +0000 (07:20 +0000)]
Merge "More concisely export whether we have a "tetherable configuration"" am:
1b2a1b911d
am:
72c17a7234
Change-Id: Ic67b2d4589f586c67109216330f68cb1fc08c55a
Erik Kline [Mon, 23 Jan 2017 07:13:56 +0000 (07:13 +0000)]
Merge "More concisely export whether we have a "tetherable configuration""
am:
1b2a1b911d
Change-Id: I5f9717c9dab6b39f1fbf2186107b2a1f3f2d4f8f
Treehugger Robot [Mon, 23 Jan 2017 07:04:21 +0000 (07:04 +0000)]
Merge "More concisely export whether we have a "tetherable configuration""
gomo [Fri, 20 Jan 2017 08:02:18 +0000 (00:02 -0800)]
Make the comments of some of the raw GNSS measurements more clear.
Test: Existing unit tests still pass.
Change-Id: I8c0a506b2c9f7979f8cdb33c9e65db53ff1c4b2b
Hugo Benichi [Mon, 17 Oct 2016 05:21:33 +0000 (14:21 +0900)]
DO NOT MERGE ApfFilter: use elapsedRealTime for RA lifetime
This patch replaces System.currentTimeMillis() with
SystemClock.elapsedRealTime() to make RA lifetime computation more
resilient to various external events inducing jumps in
currentTimeMillis().
Test: ApfTest passes.
(cherry picked from commit
305af8e98a4fce712c1a93daf3b050dac2e8b91a)
Change-Id: Idbde700025fecfecefb8162d66b94194a87829d5
Hugo Benichi [Thu, 13 Oct 2016 00:26:01 +0000 (09:26 +0900)]
DO NOT MERGE ApfFilter: systematically use u8, u16, u32 getters
This patch adds a getUint8 getter for ByteBuffers and changes ApfFilter
to make uses of getUint8/16/32 everywhere.
The return types of getUint16 is also changed from long to int, which
will expand gracefully to long as an unsigned int as it is guaranteed to
be positive after getUint16.
Test: ApfTest passes
(cherry picked from commit
995dd94673005b43d32456e2de5fda0090b23576)
Change-Id: Idde3c9d03d39fbdf6f9b84d398f3fe8ea371483d
Erik Kline [Mon, 23 Jan 2017 04:01:58 +0000 (13:01 +0900)]
More concisely export whether we have a "tetherable configuration"
Test: as follows
- built (bullhead)
- flashed
- booted
- runtest frameworks-net passes
- vanilla WiFi-to-mobile tethering works
Bug:
32163131
Change-Id: I20dd36b5bf7fc55a639c76ea4bdb55b650654881
TreeHugger Robot [Mon, 23 Jan 2017 02:07:53 +0000 (02:07 +0000)]
Merge "Remove StorageManager#mountAppFuse hidden API."
Jean-Michel Trivi [Mon, 23 Jan 2017 00:59:46 +0000 (00:59 +0000)]
Merge "PlayerBase: unregistration in player release"
Daichi Hirono [Wed, 16 Nov 2016 06:30:40 +0000 (15:30 +0900)]
Remove StorageManager#mountAppFuse hidden API.
The API should be replaced with StorageManager#openProxyFileDescriptor.
Bug:
32891253
Test: build
Change-Id: Ibbf8b64f3a39900a1f05a52132aa931491d6fd48
TreeHugger Robot [Sun, 22 Jan 2017 23:45:06 +0000 (23:45 +0000)]
Merge "Platform support for static shared libraries"
Eugene Susla [Tue, 27 Dec 2016 23:49:30 +0000 (15:49 -0800)]
Add ability to dump settings as proto buf
Test: Extracted the result via proto bug and as text and compared,
ran new CTS Setting incident test
Change-Id: Icf7b54b9c5c0a613dfd413ad575001c7b637ca01
Svet Ganov [Mon, 12 Dec 2016 00:36:34 +0000 (16:36 -0800)]
Platform support for static shared libraries
This change adds support for static shared libraries that
emulate static linking allowing apps that statically link
against the same library version to share a common
implementation. A library is hosed by a package in a standard
APK.
Static shared libraries have a name and a version declared
by a dedicated manifest tag. A client uses also a new tag
to refer to the static library it uses by specifying the
lib name, version, and the hash of the signing certificate.
This allows two apps to rely on two different library versions
and prevents impersonation of the shared library by a side-loaded
app with the same package name.
Internally apps providing static libs use synthetic package
name generated from the manifest package name and the library
version. This allows having different "versions" of the same
package installed at the same time.
An application cannot be installed if a static shared lib it
depends on is missing. A used shared library cannot be uninstalled.
Shared libraries can rotate certificates like normal apps. The
versions of these libs should be ordered similarly to the version
codes of the hosting package. Such libs cannot use shared user
id, cannot be ephemeral, cannot declare other libraries, cannot
rename their package, cannot declare child-packages. They must
target O SDK. Also they cannot be suspended or hidden or their
uninstall blocked. Generally, speaking policy regarding code in
static shared libs should be applied to the packages using the
library as it could have just statically linked the code.
We now have APIs to query information about the shared libraries
on the device in general. To clients static shared libraries are
presented as multiple versions of the same package which is how
they are declared and published. Therefore, one can have two
versions of the same package which means we need way to query
for and uninstall a specific version of a package. Also static
shared libs can depend on other static shared libs which are
versioned packages. To ease representation we add the concept
of a versioned package which should be used in the case of
static shared libs.
A client can see only the static shared libs it depends on and
more specifically only the versions it depends would be retrieved
by using the standard package manager APIs. There is a new
dedicated API to get info about all shared libraries which
would provide data about all static shared lib versions. Also
these libraries must use v2 signing scheme.
Test: CTS tests pass
bug:
30974070
Change-Id: I4f3d537ee7a81f880950377b996e1d9d4813da5c
Guang Zhu [Sun, 22 Jan 2017 19:55:54 +0000 (11:55 -0800)]
adapt package manager presubmit test to GlobalPresubmit annotation
Bug:
34464569
Test: make ... tests
Change-Id: Ief707a2a1d3438212f88f78c3deb9b86261adaf5
Tobias Sargeant [Thu, 19 Jan 2017 14:03:09 +0000 (14:03 +0000)]
WebView: Add the definition of the renderer importance API.
The renderer importance API is used to specify how important
out-of-process WebView renderer services are for the purposes of OOM
killing and scheduling with respect to the binding application.
This allows an application to - for example - specify that renderers can
be killed while the application is not in the foreground, thus cleaning
up additional resources.
Bug:
30824898
Test: Tests await Chromium change.
Change-Id: I6dca3d427d6cdb5cb7e0be6f7fb8ece64bd24af9
Svet Ganov [Sun, 22 Jan 2017 01:40:40 +0000 (17:40 -0800)]
Upstream allowing multiple toasts for focused app
Test:The topic contains CTS tests that pass
Change-Id: I60515845f7c9be23887764bb1c59bf2b3301adc8
Bill Yi [Sun, 22 Jan 2017 01:14:30 +0000 (01:14 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am:
40758bb7d2 -s ours
am:
7a2497c1d0 -s ours
Change-Id: Iacb511030a1f4983ec37d5daecf425fa85eb601c
Bill Yi [Sun, 22 Jan 2017 01:13:29 +0000 (01:13 +0000)]
Import translations. DO NOT MERGE am:
c78569cc23 -s ours
am:
6e307f0cd8 -s ours
Change-Id: I8ada86da67601caa6bf6ef2b6ae7a31eed1ff8e8
Bill Yi [Sun, 22 Jan 2017 01:12:19 +0000 (01:12 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am:
96701d3c94 -s ours
am:
443276fcf3 -s ours
Change-Id: I65ca05a47129b8673577ddebb67dd4910807440c