Commit Graph

309172 Commits

Author SHA1 Message Date
Erik Kline
a3d5657027 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
2017-01-23 20:30:25 +09:00
Andrei Stingaceanu
2317b64f02 Merge "AutoSize TextView (part 7) - APIs for configuring auto-size" 2017-01-23 11:21:57 +00:00
Clara Bayarri
18e9f9f377 Expose Resources.getFont
Based on the work already done in aapt2, load a Font from a
resource id.

Test: WIP
Change-Id: Idc06bfbfd16452a328bfcc6ea9dcfb723b633f0c
2017-01-23 11:18:09 +00:00
Hugo Benichi
f688b2aebf Merge changes Idbde7000,Idde3c9d0 into nyc-mr2-dev-plus-aosp
am: 767b7ad7dc

Change-Id: I3d5a6c31629a5756e0ea97c9a66a19cc702bc5c6
2017-01-23 11:15:05 +00:00
Hugo Benichi
ae4265775c DO NOT MERGE ApfFilter: use elapsedRealTime for RA lifetime
am: 4c0b7cc776  -s ours

Change-Id: I13280034272754234df8d3db21319cdc7a9f7ef0
2017-01-23 11:14:59 +00:00
Hugo Benichi
10f09a416e DO NOT MERGE ApfFilter: systematically use u8, u16, u32 getters
am: c81837495d  -s ours

Change-Id: Idbcd29b95983d31f2e17674e48e24bf699ee392f
2017-01-23 11:14:05 +00:00
Erik Kline
dca8251d5a Merge "Add test for updateMobileRequiresDun()" am: 7f018500dc am: 2a3338084a am: 503374c0ae
am: 552f5620d1

Change-Id: Ib90e5f3ede42ae435ce5da1ebf89be5863601eae
2017-01-23 11:13:04 +00:00
Hugo Benichi
767b7ad7dc 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
2017-01-23 11:09:20 +00:00
Erik Kline
552f5620d1 Merge "Add test for updateMobileRequiresDun()" am: 7f018500dc am: 2a3338084a
am: 503374c0ae

Change-Id: I25751833ed6623ab156156fc76aa23b158a60fb4
2017-01-23 11:06:06 +00:00
Erik Kline
503374c0ae Merge "Add test for updateMobileRequiresDun()" am: 7f018500dc
am: 2a3338084a

Change-Id: I3fe2605bba2a8c8ee3284f3c3278258d37fae46b
2017-01-23 10:59:41 +00:00
Erik Kline
5a45170f95 Merge "Move TetheringConfiguration out to its own file" 2017-01-23 10:56:36 +00:00
Erik Kline
79868f8c57 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
2017-01-23 19:54:00 +09:00
Erik Kline
2a3338084a Merge "Add test for updateMobileRequiresDun()"
am: 7f018500dc

Change-Id: Ic7b984105e2c245a992446e15d11dd19e4671a57
2017-01-23 10:53:11 +00:00
Treehugger Robot
7f018500dc Merge "Add test for updateMobileRequiresDun()" 2017-01-23 10:44:20 +00:00
Manu Cornet
b68b765cbf 2D Recents: Keep nav bar hidden from transition thumbnail
Bug: 32101881
Bug: 33752154
Test: Checked (slow motion screencast) transitions on local sw600dp device
Change-Id: Id124f62df1063cf0fa81b5ef4367c047c3f51be3
2017-01-23 19:43:45 +09:00
Charles He
dea0c3b654 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
2017-01-23 09:38:49 +00:00
Gustav Sennton
364e160290 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
2017-01-23 09:30:11 +00:00
Erik Kline
973c7df054 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
2017-01-23 17:47:22 +09:00
Erik Kline
1628b97e54 Merge "More concisely export whether we have a "tetherable configuration"" am: 1b2a1b911d am: 72c17a7234 am: d0867fb876
am: 1a816ce119

Change-Id: I290df5269739bc7fb5ebc8614a96c38bf7faf367
2017-01-23 07:30:22 +00:00
Erik Kline
1a816ce119 Merge "More concisely export whether we have a "tetherable configuration"" am: 1b2a1b911d am: 72c17a7234
am: d0867fb876

Change-Id: Iba07ae91906fa2f0763dae831f56b4841572e1f1
2017-01-23 07:26:28 +00:00
Erik Kline
d0867fb876 Merge "More concisely export whether we have a "tetherable configuration"" am: 1b2a1b911d
am: 72c17a7234

Change-Id: Ic67b2d4589f586c67109216330f68cb1fc08c55a
2017-01-23 07:20:32 +00:00
Erik Kline
72c17a7234 Merge "More concisely export whether we have a "tetherable configuration""
am: 1b2a1b911d

Change-Id: I5f9717c9dab6b39f1fbf2186107b2a1f3f2d4f8f
2017-01-23 07:13:56 +00:00
Treehugger Robot
1b2a1b911d Merge "More concisely export whether we have a "tetherable configuration"" 2017-01-23 07:04:22 +00:00
gomo
d1e856cb9e Make the comments of some of the raw GNSS measurements more clear.
Test: Existing unit tests still pass.

Change-Id: I8c0a506b2c9f7979f8cdb33c9e65db53ff1c4b2b
2017-01-22 22:45:09 -08:00
Hugo Benichi
4c0b7cc776 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 305af8e98a)

Change-Id: Idbde700025fecfecefb8162d66b94194a87829d5
2017-01-23 14:53:22 +09:00
Hugo Benichi
c81837495d 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 995dd94673)

Change-Id: Idde3c9d03d39fbdf6f9b84d398f3fe8ea371483d
2017-01-23 14:49:16 +09:00
Erik Kline
d781fbad3f 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
2017-01-23 13:04:28 +09:00
TreeHugger Robot
3c682cabc9 Merge "Remove StorageManager#mountAppFuse hidden API." 2017-01-23 02:07:58 +00:00
Hyundo Moon
644e1375e8 ExifInterface: Accept decimal values for RATIONAL formats
Prior to android N, ExifInterface.setAttributes() accepted the
decimal values for SRATIONAL/URATIONAL formats. However in android N,
decimal values for RATIONAL formats are rejected. Since this behavior
breaks the backward compatibility, we should make setAttributes()
accept decimal values as before.

Bug: 34269464
Test: flashed modified build on angler and tested with an app
Change-Id: I9a77ce341c8c8c3ea74c8592b5a821243eb0257d
2017-01-23 10:59:37 +09:00
Jean-Michel Trivi
bde6044b01 Merge "PlayerBase: unregistration in player release" 2017-01-23 00:59:50 +00:00
Daichi Hirono
baa0116854 Remove StorageManager#mountAppFuse hidden API.
The API should be replaced with StorageManager#openProxyFileDescriptor.

Bug: 32891253
Test: build
Change-Id: Ibbf8b64f3a39900a1f05a52132aa931491d6fd48
2017-01-23 09:36:59 +09:00
TreeHugger Robot
e2a31c0226 Merge "Platform support for static shared libraries" 2017-01-22 23:45:12 +00:00
Eugene Susla
d72c39709d 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
2017-01-22 15:25:22 -08:00
Svet Ganov
6788212d17 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
2017-01-22 14:05:15 -08:00
Guang Zhu
a78fe62f1f adapt package manager presubmit test to GlobalPresubmit annotation
Bug: 34464569
Test: make ... tests
Change-Id: Ief707a2a1d3438212f88f78c3deb9b86261adaf5
2017-01-22 12:15:01 -08:00
Tobias Sargeant
d10e4af098 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
2017-01-22 18:59:12 +00:00
Svet Ganov
daca8ee6a5 Upstream allowing multiple toasts for focused app
Test:The topic contains CTS tests that pass

Change-Id: I60515845f7c9be23887764bb1c59bf2b3301adc8
2017-01-22 01:58:06 +00:00
Bill Yi
8e737ef842 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 40758bb7d2 -s ours
am: 7a2497c1d0  -s ours

Change-Id: Iacb511030a1f4983ec37d5daecf425fa85eb601c
2017-01-22 01:14:30 +00:00
Bill Yi
8f7bb485d2 Import translations. DO NOT MERGE am: c78569cc23 -s ours
am: 6e307f0cd8  -s ours

Change-Id: I8ada86da67601caa6bf6ef2b6ae7a31eed1ff8e8
2017-01-22 01:13:29 +00:00
Bill Yi
f5bae5e0ec Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev am: 96701d3c94 -s ours
am: 443276fcf3  -s ours

Change-Id: I65ca05a47129b8673577ddebb67dd4910807440c
2017-01-22 01:12:19 +00:00
Bill Yi
98e446e6d3 Import translations. DO NOT MERGE am: 7eefc3ed2a -s ours
am: d70c407393  -s ours

Change-Id: I7fc89da76a5aa59a2a55fbf0e426c9fabf21a514
2017-01-22 01:11:18 +00:00
Bill Yi
da42c31779 Import translations. DO NOT MERGE am: f60d275a45 -s ours
am: 1fdaba0518  -s ours

Change-Id: I6e8b033689555609d59097385c185cff0f0f6425
2017-01-22 01:10:16 +00:00
Bill Yi
7a2497c1d0 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 40758bb7d2  -s ours

Change-Id: I25058d9c3131588c724233d1d9faafad9f4104d6
2017-01-22 01:01:22 +00:00
Bill Yi
6e307f0cd8 Import translations. DO NOT MERGE
am: c78569cc23  -s ours

Change-Id: If9dd42a1c21fd84db10276fce6d79cc17e46061b
2017-01-22 01:01:15 +00:00
Bill Yi
443276fcf3 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev
am: 96701d3c94  -s ours

Change-Id: I7e2c5d5ea83dfce16529ef041f06ee18d5a16a11
2017-01-22 00:59:40 +00:00
Bill Yi
d70c407393 Import translations. DO NOT MERGE
am: 7eefc3ed2a  -s ours

Change-Id: I4d2301434bbd5e6aed99d7850ce0924939c6e62c
2017-01-22 00:59:33 +00:00
Bill Yi
1fdaba0518 Import translations. DO NOT MERGE
am: f60d275a45  -s ours

Change-Id: I1ab211b4274b8cf4efcc84bdc52101e058f4d184
2017-01-22 00:58:17 +00:00
TreeHugger Robot
2383236556 Merge "Import translations. DO NOT MERGE" 2017-01-22 00:50:50 +00:00
TreeHugger Robot
40758bb7d2 Merge "Import translations. DO NOT MERGE" into nyc-mr2-dev 2017-01-22 00:50:20 +00:00
TreeHugger Robot
0140631f28 Merge "Import translations. DO NOT MERGE" 2017-01-22 00:49:45 +00:00