OSDN Git Service

android-x86/frameworks-base.git
5 years agoApiLint: Performance improvements for verification
Adrian Roos [Sat, 5 Jan 2019 19:09:38 +0000 (20:09 +0100)]
ApiLint: Performance improvements for verification

Test: tools/apilint/apilint_sha.sh HEAD
Test: python tools/apilint/apilint_test.py
Change-Id: I90f18181cd0d3c43f176d7c9d1b198f6f5172390
(cherry picked from commit 7f8886a9933abbb6f1fdd97d920185b80d439339)

5 years agoApiLint: Performance improvements for 2.0 signature format parsing
Adrian Roos [Fri, 4 Jan 2019 19:10:06 +0000 (20:10 +0100)]
ApiLint: Performance improvements for 2.0 signature format parsing

Test: tools/apilint/apilint_sha.sh HEAD
Test: python tools/apilint/apilint_test.py
Change-Id: I76b979dd81702afce6468ac377230e589a25e08f
(cherry picked from commit a30d062775da3812589a6ce3e49be9d697ef0d6d)

5 years agoApiLint: Allow parsing 2.0 API signature files
Adrian Roos [Thu, 3 Jan 2019 17:54:33 +0000 (18:54 +0100)]
ApiLint: Allow parsing 2.0 API signature files

Test: tools/apilint/apilint_sha.sh HEAD
Test: python tools/apilint/apilint_test.py
Change-Id: Id2e1792392b3626746f1ec99f481d0cb27e523a1
(cherry picked from commit d170961b02bf67189ddd14f358c9f263009df786)

5 years agoapilint: Fix API lint issues 2/2
Adrian Roos [Wed, 19 Dec 2018 16:11:21 +0000 (17:11 +0100)]
apilint: Fix API lint issues 2/2

Fixes false positives that occur when a class in current.txt is faulty, and an
entry for that class is then added to system-current.txt.

This was so because when parsing the previous revison's system-current.txt, we
did not know about the class and thus didn't look for it in current.txt, and
thus never recorded that the error is preexisting.

To avoid that, we track all classes in system-current.txt with a matching entry
in current.txt in the current revision, and later use that to look up all classes we
may have missed when examining the previous revision.

Test: python tools/apilint/apilint_test.py
Change-Id: Ibe09f1159e351e56b35b8816ce0db760de4ef791
(cherry picked from commit 61e3730bc07e04181a01760d2eb1db834a854683)

5 years agoapilint: Fix API lint issues
Adrian Roos [Wed, 19 Dec 2018 16:10:22 +0000 (17:10 +0100)]
apilint: Fix API lint issues

Fixes a bug where only the name instead of the fully qualified name was
considered when looking for a class, which lead to faulty results for inner
classes.

Test: python tools/apilint/apilint_test.py
Change-Id: Ib015669ed3faef21d2bdd16f1e27bc55c8669d70
(cherry picked from commit 2c5cacfd36128f43f5fab4f0665acf69ac049a44)

5 years agoAPI Lint: Add support for base current.txt
Adrian Roos [Thu, 13 Dec 2018 21:08:29 +0000 (22:08 +0100)]
API Lint: Add support for base current.txt

Allows specifying a base current.txt and previous.txt file when linting
system-current.txt and test-current.txt to avoid false positive error
messages due to public API members not being duplicated in the respective
non-public APIs

Test: python tools/apilint/apilint.py --base-current=api/current.txt api/system-current.txt
Change-Id: I306a99b1423584ef3fcdc9272a83cb5eacc37227
(cherry picked from commit 7690d0d4eea0ffa429351b0b1caa34cdb3e0d37f)

5 years agoGuide towards Context.createPackageContextAsUser().
Jeff Sharkey [Wed, 28 Nov 2018 00:33:42 +0000 (17:33 -0700)]
Guide towards Context.createPackageContextAsUser().

It's a better alternative that should be used instead of adding
new "ForUser" or "AsUser" methods.

Bug: 115654727
Test: manual
Change-Id: I8742c2ef42d743ef69f8f7a91378f498fdc81e43
(cherry picked from commit 86445841ac90e04941dbc8dad34f2a893a2e0f8b)

5 years agoMoar lint rulez!
Jeff Sharkey [Thu, 27 Sep 2018 22:29:25 +0000 (16:29 -0600)]
Moar lint rulez!

Bug: 3753464211667569111679827172059458111790177
Test: manual
Change-Id: Ib079ae580a827f225be08f90dbdddeee7d341c48
(cherry picked from commit daac37f229f84ed844adcf1ffd3432b235524d9b)

5 years agoUpdate lint rules for graphics/text package layering
Siyamed Sinir [Thu, 13 Sep 2018 23:06:59 +0000 (16:06 -0700)]
Update lint rules for graphics/text package layering

Test: N/A
Bug: 77347886
Change-Id: I907d99b4a1dee0c69b914e55a033d3d9c4eebe56
(cherry picked from commit e23aeb802409cb337ad66454049c9e3b6af0db9a)

5 years agoHandle new current.txt format.
Jeff Sharkey [Tue, 17 Jul 2018 19:29:40 +0000 (13:29 -0600)]
Handle new current.txt format.

We're starting to see "@interface" show up, so handle them like any
other interface.  We're also seeing more details argument lists
with names and annotations; ignore them for now, since all our
existing lint checks work on the "real" data type.

Verified that it handles new support library current.txt files
without causing any regressions against existing framework
current.txt files.

Test: manual inspection
Bug: 111555356
Change-Id: Id11c3561edd317e4ba1a9b43993fd96d8243e00d
(cherry picked from commit bd2611916990b0d18a36483060365207fdd94c13)

5 years agoExtend lint script to emit API statistics.
Jeff Sharkey [Fri, 20 Apr 2018 17:26:16 +0000 (11:26 -0600)]
Extend lint script to emit API statistics.

Bug: 77588754
Test: manual
Change-Id: I240dba5fae1a8635a4265a1af903517f00dec54c
(cherry picked from commit daa7cf3a365c24e3a81d0df178c188b12e6d3a91)

5 years agoMerge "Delay start of bootanimation until after the Runtime APEX is mounted."
Nicolas Geoffray [Tue, 22 Jan 2019 08:43:55 +0000 (08:43 +0000)]
Merge "Delay start of bootanimation until after the Runtime APEX is mounted."

5 years agoMerge "Add NetworkStack metrics to system API"
Remi NGUYEN VAN [Tue, 22 Jan 2019 07:48:39 +0000 (07:48 +0000)]
Merge "Add NetworkStack metrics to system API"

5 years agoMerge "Fix lint errors for moving IpClient to NetworkStack"
Remi NGUYEN VAN [Tue, 22 Jan 2019 07:13:39 +0000 (07:13 +0000)]
Merge "Fix lint errors for moving IpClient to NetworkStack"

5 years agoMerge "Properly expect all callbacks in testStackedLinkProperties."
Lorenzo Colitti [Tue, 22 Jan 2019 06:31:23 +0000 (06:31 +0000)]
Merge "Properly expect all callbacks in testStackedLinkProperties."

5 years agoFix lint errors for moving IpClient to NetworkStack
Remi NGUYEN VAN [Fri, 18 Jan 2019 10:05:29 +0000 (19:05 +0900)]
Fix lint errors for moving IpClient to NetworkStack

Test: checklint at upload, m
Bug: 112869080
Change-Id: I82fb9c9037cc0a9d3c80958d64552ff1ef0a90ab

5 years agoMerge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java"
Xiangyu/Malcolm Chen [Tue, 22 Jan 2019 03:16:28 +0000 (03:16 +0000)]
Merge "Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java"

5 years agoMerge "Add NetworkMonitor constants to SystemApi"
Remi NGUYEN VAN [Tue, 22 Jan 2019 03:03:37 +0000 (03:03 +0000)]
Merge "Add NetworkMonitor constants to SystemApi"

5 years agoMerge "Add startActivityAsUser to SystemApi"
Remi NGUYEN VAN [Tue, 22 Jan 2019 02:01:29 +0000 (02:01 +0000)]
Merge "Add startActivityAsUser to SystemApi"

5 years agoProperly expect all callbacks in testStackedLinkProperties.
Lorenzo Colitti [Tue, 22 Jan 2019 00:47:54 +0000 (09:47 +0900)]
Properly expect all callbacks in testStackedLinkProperties.

Currently testStackedLinkProperties accounts for some of the
NetworkCallbacks that are fired, but not all of them. The test
passes because it only ever expects LinkProperties changed
callbacks (and not, e.g., lost callbacks), because it uses
waitForIdle(), and because at the end, when the callback is
unregistered, it does not call assertNoCallback().

Add the missing callback expectation and expect a LOST callback
at the end. Also add an assertNoCallback, even though it's not
strictly necessary. Remove all the waitForIdle statements, which
are no longer necessary because every assertion happens after
waiting for a callback.

Making the expectations more precise in a separate CL will help
ensure that upcoming changes to this code don't break anything,
and will make said changes easier to review.

Bug: 65674744
Test: atest FrameworksNetTests
Test: ConnectivityServiceTest#testStackedLinkProperties passes 400 times
Change-Id: I73cda0dd029a0e6546f7272beedf841ce5a4c0dc

5 years agoMerge "Add IIpClient API for IpClient"
Remi NGUYEN VAN [Tue, 22 Jan 2019 01:10:17 +0000 (01:10 +0000)]
Merge "Add IIpClient API for IpClient"

5 years agoMerge changes I5a6174a4,Idfbfdf54
Remi NGUYEN VAN [Mon, 21 Jan 2019 23:31:07 +0000 (23:31 +0000)]
Merge changes I5a6174a4,Idfbfdf54

* changes:
  Acquire lock to write NetworkStackConnector
  Allow Bluetooth to bind to NetworkStack

5 years agoAdd startActivityAsUser to SystemApi
Remi NGUYEN VAN [Sun, 20 Jan 2019 12:18:22 +0000 (21:18 +0900)]
Add startActivityAsUser to SystemApi

Normal applications do not have permissions to use this method.

Test: m
Bug: 112869080
Merged-In: I693b3bf56f3be71f0790776e3aad5694717786ef
Change-Id: Ibe91c1bc4c94883a313e799cb0a37db7696fc62e

5 years agoAdd NetworkStack metrics to system API
Remi NGUYEN VAN [Sat, 19 Jan 2019 12:13:24 +0000 (21:13 +0900)]
Add NetworkStack metrics to system API

Test: atest FrameworksNetTests NetworkStackTests
Bug: 112869080
Change-Id: Ie52c55f248c173e2a5ee603ecd004fbac9004ac1

5 years agoMerge "Add fields used by NetworkStack to the API"
Remi NGUYEN VAN [Mon, 21 Jan 2019 23:20:26 +0000 (23:20 +0000)]
Merge "Add fields used by NetworkStack to the API"

5 years agoMerge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList"
Xiangyu/Malcolm Chen [Mon, 21 Jan 2019 22:45:09 +0000 (22:45 +0000)]
Merge "Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList"

5 years agoMerge "Add helper API to hide subscriptions when getting active subscriptions"
Xiangyu/Malcolm Chen [Mon, 21 Jan 2019 22:44:30 +0000 (22:44 +0000)]
Merge "Add helper API to hide subscriptions when getting active subscriptions"

5 years agoAdd helper API to hide subscriptions when getting active subscriptions
Malcolm Chen [Sat, 22 Dec 2018 01:00:30 +0000 (17:00 -0800)]
Add helper API to hide subscriptions when getting active subscriptions

Adding a hidden API that only return user visible active subscriptions.

Bug: 121396526
Test: manual
Change-Id: Ib69f1c2c51d22c2a58cfa93c662dc65521f7874f
Merged-In: Ib69f1c2c51d22c2a58cfa93c662dc65521f7874f

5 years agoConnect IRadioConfig 1.1 HAL interfaces with RadioConfig.java
Malcolm Chen [Fri, 21 Dec 2018 23:43:57 +0000 (15:43 -0800)]
Connect IRadioConfig 1.1 HAL interfaces with RadioConfig.java

IRadioConfig 1.1 getPhoneCapability and setPreferredDataModem
are defined. Here we hook the calls into RadioConfig.

Bug: 121354686
Test: sanity
Change-Id: I2a198d446962510ef9a3019d3aa30b40e796ebe0
Merged-In: I2a198d446962510ef9a3019d3aa30b40e796ebe0

5 years agoRemove mistake of calling iSub twice in getSelectableSubscriptionInfoList
Malcolm Chen [Wed, 19 Dec 2018 23:56:13 +0000 (15:56 -0800)]
Remove mistake of calling iSub twice in getSelectableSubscriptionInfoList

Don't call getAvailableSubscriptionInfoList twice in
getSelectableSubscriptionInfoList.

Test: build
Change-Id: Ie5821b1d8a01834228401ce6bb1e9ae251168760
Merged-In: Ie5821b1d8a01834228401ce6bb1e9ae251168760

5 years agoMerge "Clean up config of tabs and trailing whitespace"
Treehugger Robot [Mon, 21 Jan 2019 15:34:35 +0000 (15:34 +0000)]
Merge "Clean up config of tabs and trailing whitespace"

5 years agoMerge changes from topics "coreapi-flag", "coreapi-stubs-csv"
David Brazdil [Mon, 21 Jan 2019 14:31:05 +0000 (14:31 +0000)]
Merge changes from topics "coreapi-flag", "coreapi-stubs-csv"

* changes:
  hiddenapi: Support 'core-platform-api' flag
  hiddenapi: Expect public/private API as CSV

5 years agoAcquire lock to write NetworkStackConnector
Remi NGUYEN VAN [Mon, 21 Jan 2019 11:57:05 +0000 (20:57 +0900)]
Acquire lock to write NetworkStackConnector

As Java reference writes are atomic, the previous code should not have
issues, but since mConnector is marked @GuardedBy it could trigger
static analysis.

Test: m
Change-Id: I5a6174a4f32c349e593d0a16d58293d608a487c7

5 years agoMerge "Add OsConstants networking constants to public API"
Remi NGUYEN VAN [Mon, 21 Jan 2019 14:15:42 +0000 (14:15 +0000)]
Merge "Add OsConstants networking constants to public API"

5 years agoAdd fields used by NetworkStack to the API
Remi NGUYEN VAN [Sun, 20 Jan 2019 03:52:43 +0000 (12:52 +0900)]
Add fields used by NetworkStack to the API

Test: m
Bug: 112869080
Change-Id: I59f6d5ae8a601b7496548b87f137a577f2365a37

5 years agoMerge "Replace uses of libcore.io.SizeOf with X.BYTES."
Treehugger Robot [Mon, 21 Jan 2019 13:47:24 +0000 (13:47 +0000)]
Merge "Replace uses of libcore.io.SizeOf with X.BYTES."

5 years agoClean up config of tabs and trailing whitespace
Chalard Jean [Mon, 21 Jan 2019 13:40:31 +0000 (22:40 +0900)]
Clean up config of tabs and trailing whitespace

Test: whitespace only change
Change-Id: Ib2d8132e04b3bf604e2174deb1a54a074d8299d8

5 years agoAdd NetworkMonitor constants to SystemApi
Remi NGUYEN VAN [Thu, 17 Jan 2019 05:38:31 +0000 (14:38 +0900)]
Add NetworkMonitor constants to SystemApi

NetworkMonitor lives in the NetworkStack which must only use system
APIs. This includes constants used by NetworkMonitor and captive portal
login.

Bug: 112869080
Test: m
Merged-In: I8b5f0bb61c3ef0d2f33af7dd67b72ac6c5a1d1b5
Change-Id: I4879568d3fbf9435767c8d4d0ab5198d421a2f4f

5 years agoAdd OsConstants networking constants to public API
Remi NGUYEN VAN [Mon, 21 Jan 2019 11:38:10 +0000 (20:38 +0900)]
Add OsConstants networking constants to public API

Test: m
Bug: 123062477
Change-Id: Iac5c0c6acf8d24c17fb4780bcb97164ee21cca8f

5 years agoReplace uses of libcore.io.SizeOf with X.BYTES.
Tobias Thierer [Mon, 21 Jan 2019 10:34:19 +0000 (10:34 +0000)]
Replace uses of libcore.io.SizeOf with X.BYTES.

libcore.io.SizeOf is an internal API and is going away soon.

Note: The files touched by this CL have some other unused
imports which I did not touch. Therefore I had to use
"repo upload --no-verify" to upload this CL to gerrit.

Bug: 123174577
Test: Manually checked that this CL applies cleanly in internal
      master and that no other uses of SizeOf then remain in
      internal master's frameworks/base
Test: Treehugger
Change-Id: Ib29a195f3dda2f21ebbe2f7073e0af4dbb524b19

5 years agoDelay start of bootanimation until after the Runtime APEX is mounted.
Martin Stjernholm [Thu, 17 Jan 2019 21:27:37 +0000 (21:27 +0000)]
Delay start of bootanimation until after the Runtime APEX is mounted.

It depends on libdexfile_external and libnative{bridge,helper,loader} which
are provided by the Runtime APEX.

Test: flash & boot
Test: atest CtsJdwpTestCases
Bug: 113373927
Change-Id: Id9a78f9adb4c928ab4c91fda0ee3ea4b13eed592

5 years agoMerge changes I2ddfef0c,I49bee0c9
Chalard Jean [Mon, 21 Jan 2019 09:34:41 +0000 (09:34 +0000)]
Merge changes I2ddfef0c,I49bee0c9

* changes:
  [MS08] Read back attributes and blobs.
  [MS07] Implement storeNetworkAttributes and storeBlob.

5 years agoAdd IIpClient API for IpClient
Remi NGUYEN VAN [Sat, 12 Jan 2019 06:36:47 +0000 (15:36 +0900)]
Add IIpClient API for IpClient

The API will be used to interact with IpClient once it is moved to the
NetworkStack process.
This change keeps compatibility with the previous API so that clients
can be migrated independently.

Test: atest FrameworksNetTests NetworkStackTests
Bug: b/112869080
Change-Id: I57d8164afae849230bbc0e25f17859c0b22d0f29

5 years agoAllow Bluetooth to bind to NetworkStack
Remi NGUYEN VAN [Sat, 12 Jan 2019 18:10:49 +0000 (03:10 +0900)]
Allow Bluetooth to bind to NetworkStack

Test: flashed, verified bluetooth tethering gets IP address
Bug: b/112869080
Change-Id: Idfbfdf54754fea46eb0099b9b9a3bdc29dd241e0

5 years agoMerge "Add stable AIDL parcelables for IIpClient API"
Remi NGUYEN VAN [Mon, 21 Jan 2019 08:01:26 +0000 (08:01 +0000)]
Merge "Add stable AIDL parcelables for IIpClient API"

5 years agoMerge "fix getIfaceStats and getTotalStats bug"
Junyu Lai [Mon, 21 Jan 2019 07:33:14 +0000 (07:33 +0000)]
Merge "fix getIfaceStats and getTotalStats bug"

5 years ago[MS08] Read back attributes and blobs.
Chalard Jean [Thu, 27 Dec 2018 11:59:41 +0000 (20:59 +0900)]
[MS08] Read back attributes and blobs.

Test: New tests in IpMemoryStore
Bug: 113554482

Change-Id: I2ddfef0c2ed37459c038f75d1dfc92fdefbf58f5

5 years ago[MS07] Implement storeNetworkAttributes and storeBlob.
Chalard Jean [Tue, 18 Dec 2018 13:05:19 +0000 (22:05 +0900)]
[MS07] Implement storeNetworkAttributes and storeBlob.

Test: New tests in IpMemoryStore
Bug: 113554482

Change-Id: I49bee0c903247e77ab93517efbe44548313cf1a4

5 years agoAdd stable AIDL parcelables for IIpClient API
Remi NGUYEN VAN [Fri, 18 Jan 2019 09:49:16 +0000 (18:49 +0900)]
Add stable AIDL parcelables for IIpClient API

Test: atest FrameworksNetTests NetworkStackTests
Bug: b/112869080
Change-Id: Ia4ac1eb482850a06c4dc1b6c1fe55d33d4087388

5 years agoMerge "Remove dead KeepaliveInfo if it cannot be started"
Junyu Lai [Mon, 21 Jan 2019 03:48:15 +0000 (03:48 +0000)]
Merge "Remove dead KeepaliveInfo if it cannot be started"

5 years agoMerge "Update signature files to the new format"
Tor Norbye [Sun, 20 Jan 2019 15:09:18 +0000 (15:09 +0000)]
Merge "Update signature files to the new format"

5 years agoMerge "Adjust to new OpenNativeLibrary API."
Nicolas Geoffray [Sun, 20 Jan 2019 13:58:49 +0000 (13:58 +0000)]
Merge "Adjust to new OpenNativeLibrary API."

5 years agohiddenapi: Support 'core-platform-api' flag
David Brazdil [Fri, 7 Dec 2018 11:49:55 +0000 (11:49 +0000)]
hiddenapi: Support 'core-platform-api' flag

Libcore class members annotated with @CorePlatformApi now generate
a new hiddenapi flag. This is the first of "domain API" flags which
can be used in conjunction with API list flags. Therefore modify
the 'generate_hiddenapi_lists.py' logic to treat them differently.
Specifically, the script marks otherwise unassigned class members
blacklisted. A class member with 'core-platform-api' may still not
be assigned an API list and should be blacklisted.

Bug: 119068555
Test: m appcompat
Change-Id: I2b67e7a619677e853c87bc2da934410458ce4d14

5 years agohiddenapi: Expect public/private API as CSV
David Brazdil [Thu, 13 Dec 2018 17:00:09 +0000 (17:00 +0000)]
hiddenapi: Expect public/private API as CSV

Refactor of `hiddenapi` changed the output format of public/private API
lists to a single CSV file. Change API list generation accordingly.

In order to avoid special-casing this CSV file, it is treated the same
as the CSV files produced by `class2greylist`. The merging rules are
relaxed so that signatures in CSV files are not checked against
a pre-initialized set of all signatures (previously generated from the
public/private API files). This should not lead to build errors as the
CSV files are always auto-generated, and a missing/extra signature will
be caught by `hiddenapi`.

API lists in frameworks/base/config are processed later and checked
that they are a subset of the signatures in CSV.

Bug: 119068555
Test: compiles, hiddenapi-flags.csv unchanged
Change-Id: I33f2cbaa15f2d423a75e6ca64abe1c5b0c40c86f

5 years agoUpdate signature files to the new format
Tor Norbye [Thu, 27 Dec 2018 03:55:07 +0000 (19:55 -0800)]
Update signature files to the new format

The new format is described in tools/metalava/FORMAT.md.

Fixes: 116589402 Switch signature files over to the v2 format
Fixes: 112626813 Drop "synchronized" modifier from the signature format
Fixes: 122358225 Omit overriding methods that only differ in final [...]
Fixes: 73088715 API Review: Need doclava to output nullability
Fixes: 79739773 API Review: Metalava enforcing constants are constant
Exempt-From-Owner-Approval: Large-scale tooling change
Test: make sdk, make update-api, make checkapi
Change-Id: I8314f4e7099fa92e4f8ed7d283ccf836cc9a84a0
Merged-In: Ia248aece5250e84e47c815c601133b698bf644c2

5 years agoMerge "Pass in calling UID and package to dumpstate"
Treehugger Robot [Sat, 19 Jan 2019 13:48:29 +0000 (13:48 +0000)]
Merge "Pass in calling UID and package to dumpstate"

5 years agoMerge "Trigger PhoneStateListener onCallAttributesChanged"
Treehugger Robot [Sat, 19 Jan 2019 06:49:09 +0000 (06:49 +0000)]
Merge "Trigger PhoneStateListener onCallAttributesChanged"

5 years agoMerge "Remove the eng tag from invoke_mock_media_player"
Treehugger Robot [Sat, 19 Jan 2019 04:24:23 +0000 (04:24 +0000)]
Merge "Remove the eng tag from invoke_mock_media_player"

5 years agoMerge "Fix potential NULL dereference errors."
Treehugger Robot [Sat, 19 Jan 2019 02:39:35 +0000 (02:39 +0000)]
Merge "Fix potential NULL dereference errors."

5 years agoMerge "Carrier restriction enhancements for Android Q"
Michele Berionne [Sat, 19 Jan 2019 00:13:56 +0000 (00:13 +0000)]
Merge "Carrier restriction enhancements for Android Q"

5 years agoMerge "[b/109850442]Fail to adjust volume when connect Ampplifier.]"
Jean-Michel Trivi [Fri, 18 Jan 2019 23:30:27 +0000 (23:30 +0000)]
Merge "[b/109850442]Fail to adjust volume when connect Ampplifier.]"

5 years agoMerge "Quiet SNaN inputs in Half.toFloat()"
Treehugger Robot [Fri, 18 Jan 2019 23:18:15 +0000 (23:18 +0000)]
Merge "Quiet SNaN inputs in Half.toFloat()"

5 years agoMerge "Cellular data stall recovery based on networkStatus"
Jayachandran Chinnakkannu [Fri, 18 Jan 2019 22:54:38 +0000 (22:54 +0000)]
Merge "Cellular data stall recovery based on networkStatus"

5 years agoCellular data stall recovery based on networkStatus
Jayachandran C [Thu, 6 Dec 2018 19:12:07 +0000 (11:12 -0800)]
Cellular data stall recovery based on networkStatus

This CL introduces cellular data stall recovery based on
network validation result. It still re-uses the existing
recovery steps but the triggers are based on networkStatus
from NetworkMonitor when the network is bad. Each recovery
step is spaced by a configurable grace period (default 3 mins)
to avoid back to back recovery.

This feature is controlled by the following settings. If this
feature is enabled then the legacy data stall detection based
on TrafficStats will automatically be disabled.

Settings.Global.DATA_STALL_RECOVERY_ON_BAD_NETWORK
1 => Enabled (default)
0 => Disabled

Settings.Global.MIN_DURATION_BETWEEN_RECOVERY_STEPS_IN_MS
3 minutes is default value

Bug: 113916551
Test: atest FrameworksTelephonyTests:com.android.internal.telephony.dataconnection.DcTrackerTest

Change-Id: I738fc7ed08803de1114f7a3d79bf278449e94ea8

5 years agoRemove the eng tag from invoke_mock_media_player
Dan Willemsen [Fri, 18 Jan 2019 22:40:54 +0000 (14:40 -0800)]
Remove the eng tag from invoke_mock_media_player

The test using this has been suppressed for >9 years since we moved
testing from eng devices to userdebug.

Test: treehugger
Change-Id: Ie91f3b97a33a8e8e5be49ea2098f163567e2496d

5 years agoCarrier restriction enhancements for Android Q
Michele Berionne [Wed, 28 Nov 2018 02:45:05 +0000 (18:45 -0800)]
Carrier restriction enhancements for Android Q

Add support for dual SIM to carrier restrictions.
Add support to exclude specific carriers in the list of carrier
restrictions.

Bug: 120313541
Test: Created test application to verify correct functionality.
Test: Added test cases for CarrierRestrictionRules.
Change-Id: I2723fb07db13efdafbc74471a87182e2d2a32718
Merged-In: I2723fb07db13efdafbc74471a87182e2d2a32718

5 years agoMerge "Avoid calling ParcelFileDescriptor.fromSocket on new Sockets."
Josh Gao [Fri, 18 Jan 2019 22:25:35 +0000 (22:25 +0000)]
Merge "Avoid calling ParcelFileDescriptor.fromSocket on new Sockets."

5 years agoMerge "Fix maindexclasses use of proguard"
Treehugger Robot [Fri, 18 Jan 2019 22:18:50 +0000 (22:18 +0000)]
Merge "Fix maindexclasses use of proguard"

5 years agoMerge "Add SOONG_HIDDENAPI_FLAGS as hiddenapi_flags.csv dependencies"
Treehugger Robot [Fri, 18 Jan 2019 22:13:53 +0000 (22:13 +0000)]
Merge "Add SOONG_HIDDENAPI_FLAGS as hiddenapi_flags.csv dependencies"

5 years agoMerge "Add thread ID reuse to API contract"
Leland Miller [Fri, 18 Jan 2019 19:32:37 +0000 (19:32 +0000)]
Merge "Add thread ID reuse to API contract"

5 years agoMerge "Remove LTE Rsrp Boost from SignalStrength"
Nathan Harold [Fri, 18 Jan 2019 19:09:50 +0000 (19:09 +0000)]
Merge "Remove LTE Rsrp Boost from SignalStrength"

5 years agoMerge changes from topic "EnableAirplaneModeInSafeMode"
Rene Mayrhofer [Fri, 18 Jan 2019 18:20:25 +0000 (18:20 +0000)]
Merge changes from topic "EnableAirplaneModeInSafeMode"

* changes:
  Add import of android.provider.Settings
  Enable airplane mode when booting in safe mode

5 years ago[b/109850442]Fail to adjust volume when connect Ampplifier.]
Stanley Chang [Tue, 28 Aug 2018 00:16:03 +0000 (08:16 +0800)]
[b/109850442]Fail to adjust volume when connect Ampplifier.]

[Description]
Fix this issue : Don't suppress adjustments for single volume device

Test: Android TV: press vol button once
Change-Id: I2d37ce60c3e6928e00b036a805f01f281437f4ac

5 years agoAdd SOONG_HIDDENAPI_FLAGS as hiddenapi_flags.csv dependencies
David Brazdil [Fri, 18 Jan 2019 15:17:43 +0000 (15:17 +0000)]
Add SOONG_HIDDENAPI_FLAGS as hiddenapi_flags.csv dependencies

Hiddenapi build logic has moved to soong and list of flags.csv files
is now being passed to make files through SOONG_HIDDENAPI_FLAGS
variable. Adjust the build rule for hiddenapi_flags.csv accordingly.

Test: aosp compiles
Change-Id: I930f918fb36ce3532478035e83c2632559fd07b6

5 years agoRemove dead KeepaliveInfo if it cannot be started
junyulai [Thu, 17 Jan 2019 07:15:45 +0000 (15:15 +0800)]
Remove dead KeepaliveInfo if it cannot be started

If KeepaliveInfo was created but cannot be started, current
design will only notify apps but not remove it from local
hashmap, which will cause unexpected behavior if someone
tries to iterate records and fire callbacks.

Bug: 122636283
Test: atest FrameworksNetTests
Change-Id: If4cb25a881dd3555f569c729f88741675f7f3bdf

5 years agoAdjust to new OpenNativeLibrary API.
Nicolas Geoffray [Fri, 18 Jan 2019 11:59:41 +0000 (11:59 +0000)]
Adjust to new OpenNativeLibrary API.

Bug: 122874359
Test: m
Change-Id: Ia018fd334eaf77b690ee6f7b5852743d1efa0e2f

5 years agoMerge "Split applyNewState into enable/disable APN"
Jack Yu [Fri, 18 Jan 2019 09:07:16 +0000 (09:07 +0000)]
Merge "Split applyNewState into enable/disable APN"

5 years agoFix maindexclasses use of proguard
Dan Willemsen [Fri, 18 Jan 2019 06:57:06 +0000 (22:57 -0800)]
Fix maindexclasses use of proguard

Fixes: 122988865
Test: OUT_DIR=$HOME/out mmma frameworks/base/core/tests/hosttests/test-apps
Change-Id: I7f1f22dbe016182d2502643e45e095a5d8f60e41

5 years agoMerge "Update sharedPreference to false when exits new device provisioning"
Jayachandran Chinnakkannu [Fri, 18 Jan 2019 05:57:50 +0000 (05:57 +0000)]
Merge "Update sharedPreference to false when exits new device provisioning"

5 years agoMerge "[CS] Add an option to block sensitive network specifier"
Etan Cohen [Fri, 18 Jan 2019 05:03:44 +0000 (05:03 +0000)]
Merge "[CS] Add an option to block sensitive network specifier"

5 years agoMerge "Add Dynamic tiles for Settings"
Fan Zhang [Fri, 18 Jan 2019 00:47:52 +0000 (00:47 +0000)]
Merge "Add Dynamic tiles for Settings"

5 years agoSplit applyNewState into enable/disable APN
Jack Yu [Wed, 16 Jan 2019 22:47:38 +0000 (14:47 -0800)]
Split applyNewState into enable/disable APN

This is the preliminary work for adding handover
type for enable/disable APN.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
Change-Id: I51fd01d798cdf8d04fd41455126d017ac97f5f3f
(cherry picked from commit ade6d1a66d0cc4ef9260c80c760093a2386679d8)

5 years agoUpdate sharedPreference to false when exits new device provisioning
chen xu [Wed, 16 Jan 2019 00:17:47 +0000 (16:17 -0800)]
Update sharedPreference to false when exits new device provisioning

Update sharedPreference to false when exits new device provisioning,
indicating no users modifications on the settings for new devices.
Thus carrier specific default roaming settings can be applied for new devices.

Bug: 122817867
Test: Manual test on VZW SIM in Setupwizard
Merged-in: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07
Change-Id: Ic93b16f9f96ccc98d12f46c79ab1008ae0df8a07

5 years ago[CS] Add an option to block sensitive network specifier
Etan Cohen [Mon, 31 Dec 2018 01:59:59 +0000 (17:59 -0800)]
[CS] Add an option to block sensitive network specifier

Network specifiers are used for 2 purposes:

- As part of network requests to specify more information on the type
  of requested networks.
- On network agents to specify information about their networks.

The network specifiers of the requests and agents are matched to each
other. However, the agent network specifier may contain sensitive
information which we do not want forwarded to any app.

This CL adds an option to strip out this agent network specifier before
the network capabilities are forwarded to the app.

Bug: 122160111
Test: atest ConnectivityServiceTest (frameworks/base/tests/net)
Test: atest frameworks/base/tests/net
Test: atest frameworks/opt/net/wifi/tests/wifitests
Test: atest frameworks/opt/telephony/tests/telephonytests
Test: atest frameworks/opt/net/ethernet/tests
Test: atest android.net.cts - some flakiness!
Test: act.py ThroughputTest
Test: act.py DataPathTest
Test: atest SingleDeviceTest (cts)
Change-Id: If08d312ff814bdde1147518f923199e6349503d5

5 years agoRemove LTE Rsrp Boost from SignalStrength
Nathan Harold [Tue, 15 Jan 2019 19:59:54 +0000 (11:59 -0800)]
Remove LTE Rsrp Boost from SignalStrength

The RSRP boost is no longer used in SignalStrength,
and there are no major users of this value to
justify keeping the value around even though there is
no direct alternative. Thus, removing it from
SignalStrength.

Bug: 122846268
Test: compilation (code removal)
Change-Id: I2d4409986a64aa13379e2894457d000ae43f92ca

5 years agoMerge "Atom: Update BluetoothConnectionStateChanged atom"
Treehugger Robot [Thu, 17 Jan 2019 22:31:08 +0000 (22:31 +0000)]
Merge "Atom: Update BluetoothConnectionStateChanged atom"

5 years agoMerge "Atom: Add BluetoothLinkLayerConnectionEvent atom"
Treehugger Robot [Thu, 17 Jan 2019 22:30:43 +0000 (22:30 +0000)]
Merge "Atom: Add BluetoothLinkLayerConnectionEvent atom"

5 years agoMerge "Use better Exception handling in IMS APIs."
Brad Ebinger [Thu, 17 Jan 2019 22:05:44 +0000 (22:05 +0000)]
Merge "Use better Exception handling in IMS APIs."

5 years agoMerge "Revert to previous constant value for ApnSetting.TYPE_DEFAULT."
Jayachandran Chinnakkannu [Thu, 17 Jan 2019 21:34:02 +0000 (21:34 +0000)]
Merge "Revert to previous constant value for ApnSetting.TYPE_DEFAULT."

5 years agoRevert to previous constant value for ApnSetting.TYPE_DEFAULT.
yuemingw [Tue, 25 Sep 2018 17:12:52 +0000 (18:12 +0100)]
Revert to previous constant value for ApnSetting.TYPE_DEFAULT.

Bug: 113097474
Test: m -j && atest ApnSettingTest
Change-Id: Iadbb5cde21a9f1fff77000f10cee218ca9806b2e

5 years agoMerge "Invoke Both onDataConnectionStateChanged Methods"
Nathan Harold [Thu, 17 Jan 2019 21:23:50 +0000 (21:23 +0000)]
Merge "Invoke Both onDataConnectionStateChanged Methods"

5 years agoMerge "DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master"
Xin Li [Thu, 17 Jan 2019 21:19:43 +0000 (21:19 +0000)]
Merge "DO NOT MERGE - Merge pie-platform-release (PPRL.190105.001) into master"

5 years agoMerge "EuiccManager handles multiple eUICCs using cardId"
Jordan Liu [Thu, 17 Jan 2019 20:24:09 +0000 (20:24 +0000)]
Merge "EuiccManager handles multiple eUICCs using cardId"

5 years agoMerge "[LayoutInflater] Use precompiled layouts if available"
Treehugger Robot [Thu, 17 Jan 2019 18:39:48 +0000 (18:39 +0000)]
Merge "[LayoutInflater] Use precompiled layouts if available"

5 years agoMerge "Add Emergency Call Routing"
Shuo Qian [Thu, 17 Jan 2019 18:05:45 +0000 (18:05 +0000)]
Merge "Add Emergency Call Routing"

5 years agoAdd Emergency Call Routing
sqian [Wed, 19 Dec 2018 05:09:21 +0000 (21:09 -0800)]
Add Emergency Call Routing

Some countries or carriers require some emergency numbers that must
be handled with normal call routing or emergency routing.

Do not send service types from the database
as the emergency service categories

When searching for the corresponding service categories,
try to find the one that comes from the radio indication.

Test: Treehugger
Bug: 112657134
Change-Id: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
Merged-In: I95dadd07e9155c6e402a72339f307b4d7ef32fe4
(cherry picked from commit a4bd738b8b4a4402a26747d6be5d9a2228a45329)

5 years ago[LayoutInflater] Use precompiled layouts if available
Eric Holk [Wed, 2 Jan 2019 18:38:54 +0000 (10:38 -0800)]
[LayoutInflater] Use precompiled layouts if available

This change enables the use of precompiled layouts, provided a couple of
conditions are met:

1. Precompiled layouts are enabled by the system property
   view.use_precompiled_layouts.
2. There is a file called compiled_view.dex in the application's code cache
   directory.

If these conditions are met, when a layout is inflated, the LayoutInflater will
first check if a precompiled version is available and use that. If anything goes
wrong, such as if the layout is not available or something goes wrong during the
inflation process, then the LayoutInflater will fall back on interpretting the
layout resource as before.

Bug: 111895153
Test: atest $ANDROID_BUILD_TOP/cts/tests/tests/view/src/android/view/cts/LayoutInflaterTest.java
Change-Id: Id050072c0206080322a0e876782ee2b66d03916d

5 years agoAdd import of android.provider.Settings
Rene Mayrhofer [Wed, 16 Jan 2019 20:58:29 +0000 (12:58 -0800)]
Add import of android.provider.Settings

One use case for changing settings during initialization is enabling airplane mode in safe mode bootup.

Test: manual
Change-Id: I846f09faca22b35f502a18348b70800d1edabb60

5 years agoPass in calling UID and package to dumpstate
Nandana Dutt [Wed, 16 Jan 2019 18:18:38 +0000 (18:18 +0000)]
Pass in calling UID and package to dumpstate

BUG: 111441001
Test: builds
Change-Id: Ib623f6d4f50b81f331131cf3fda92fe2526dd6c7

5 years agoMerge "Switch TextClassifier implementation from native to java"
Nikita Iashchenko [Thu, 17 Jan 2019 15:34:02 +0000 (15:34 +0000)]
Merge "Switch TextClassifier implementation from native to java"