OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Fix spelling of "HARDWARE""
Hans Boehm [Wed, 9 Jan 2019 19:11:33 +0000 (19:11 +0000)]
Merge "Fix spelling of "HARDWARE""

5 years agoMerge "Adjust map names due to new bpfloader"
Treehugger Robot [Wed, 9 Jan 2019 18:34:49 +0000 (18:34 +0000)]
Merge "Adjust map names due to new bpfloader"

5 years agoMerge changes Ic4bd706a,I680224ba
Nathan Harold [Wed, 9 Jan 2019 17:38:10 +0000 (17:38 +0000)]
Merge changes Ic4bd706a,I680224ba

* changes:
  Log Invalid Level as an Error in SignalStrength
  Set DBG Flag False for CellSignalStrengthLte

5 years agoMerge "118395019: Hide constants and methods in StatsLogInternal"
Adrian Roos [Wed, 9 Jan 2019 14:57:05 +0000 (14:57 +0000)]
Merge "118395019: Hide constants and methods in StatsLogInternal"

5 years agoMerge "Remove unnecessary right padding from time picker"
Treehugger Robot [Wed, 9 Jan 2019 11:50:36 +0000 (11:50 +0000)]
Merge "Remove unnecessary right padding from time picker"

5 years agoMerge "Add control flags in asynchronous DNS query API"
Luke Huang [Wed, 9 Jan 2019 11:30:18 +0000 (11:30 +0000)]
Merge "Add control flags in asynchronous DNS query API"

5 years agoMerge "Move DhcpServer to NetworkStack app"
Remi NGUYEN VAN [Wed, 9 Jan 2019 10:42:48 +0000 (10:42 +0000)]
Merge "Move DhcpServer to NetworkStack app"

5 years agoMerge "Add priv-app permissions for NetworkStack"
Remi NGUYEN VAN [Wed, 9 Jan 2019 09:14:12 +0000 (09:14 +0000)]
Merge "Add priv-app permissions for NetworkStack"

5 years agoMerge "Add start time to LmkKillOccurred"
Jim Blackler [Wed, 9 Jan 2019 08:44:35 +0000 (08:44 +0000)]
Merge "Add start time to LmkKillOccurred"

5 years agoMove DhcpServer to NetworkStack app
Remi NGUYEN VAN [Tue, 4 Dec 2018 03:13:09 +0000 (12:13 +0900)]
Move DhcpServer to NetworkStack app

Test: atest FrameworksNetTests && atest NetworkStackTests
Bug: b/112869080

Change-Id: I96c40e63e9ceb37b67705bdd4d120307e114715b

5 years agoMerge "DO NOT MERGE: Revert: use legacy way to get tcp packet count"
Treehugger Robot [Wed, 9 Jan 2019 05:10:05 +0000 (05:10 +0000)]
Merge "DO NOT MERGE: Revert: use legacy way to get tcp packet count"

5 years agoMerge "Change package name for NetworkStack"
Remi NGUYEN VAN [Wed, 9 Jan 2019 04:57:19 +0000 (04:57 +0000)]
Merge "Change package name for NetworkStack"

5 years agoMerge "Add /product sepolicy support to SELinuxMMAC.java"
Tri Vo [Wed, 9 Jan 2019 04:26:15 +0000 (04:26 +0000)]
Merge "Add /product sepolicy support to SELinuxMMAC.java"

5 years agoDO NOT MERGE: Revert: use legacy way to get tcp packet count
junyulai [Wed, 9 Jan 2019 02:23:20 +0000 (10:23 +0800)]
DO NOT MERGE: Revert: use legacy way to get tcp packet count

In Q, legacy way to get tcp packet count is not planned to be
supported. Users who use this unsupported API e.g., data stall
detection are also planned to be removed.

Thus, this change reverts a5c3fb10f2576 which is the short term
solution in P.

Bug: 110443385
Test: atest FrameworksNetTests
Change-Id: Ia09f908edbf194b9aa873a3bdd5aee7b6fcb16bc

5 years agoAdd priv-app permissions for NetworkStack
Remi NGUYEN VAN [Thu, 27 Dec 2018 02:49:21 +0000 (11:49 +0900)]
Add priv-app permissions for NetworkStack

Bug: b/112869080
Test: m, flashed, booted
Change-Id: Ia2cf0f708d815a5e5f49924fb15bb9c728f4ad56

5 years agoLog Invalid Level as an Error in SignalStrength
Nathan Harold [Tue, 8 Jan 2019 23:02:55 +0000 (15:02 -0800)]
Log Invalid Level as an Error in SignalStrength

If one of the CellSignalStrength classes returns a
level value that's out of range, it should be logged
as an error. This CL adds loge() to SignalStrength
and logs this event at the correct level.

Bug: 8675309
Test: compilation
Change-Id: Ic4bd706ae83e647cd782a60d94db7077c6d0fc1b

5 years agoSet DBG Flag False for CellSignalStrengthLte
Nathan Harold [Tue, 8 Jan 2019 22:57:15 +0000 (14:57 -0800)]
Set DBG Flag False for CellSignalStrengthLte

The debug flag for CellSignalStrengthLte was left
"true" due to "f23153f - Refactor SignalStrength".

This CL sets it to false to fix log spam.

Bug: 122545223
Test: compilation
Change-Id: I680224ba726dde26c1e45584bd37d85bc02aa91a

5 years agoMerge "Implement RcsParticipant (base)"
Sahin Caliskan [Tue, 8 Jan 2019 22:34:15 +0000 (22:34 +0000)]
Merge "Implement RcsParticipant (base)"

5 years ago118395019: Hide constants and methods in StatsLogInternal
Tor Norbye [Tue, 8 Jan 2019 20:07:15 +0000 (12:07 -0800)]
118395019: Hide constants and methods in StatsLogInternal

This CL updates the code generator which creates the
hidden StatsLogInternal class to explicitly hide
the generated constants and write methods as well.

The intent of this class was for everything to be hidden,
but it turns out that public methods and fields in
hidden classes which are extended by a public class also
ends up in the SDK, even though they don't appear in the
signature file. StringBuilder#setLength(int) is an
example of this.

Bug: 118395019
Test: make sdk
Change-Id: I97e510e8155ee50ade653f6abeb5479c7ca9029d

5 years agoMerge "Move the implementation of ProxyErrorListener to libpac"
vichang [Tue, 8 Jan 2019 20:08:43 +0000 (20:08 +0000)]
Merge "Move the implementation of ProxyErrorListener to libpac"

5 years agoMerge "[view compiler] Compile all layouts in an APK"
Treehugger Robot [Tue, 8 Jan 2019 17:55:04 +0000 (17:55 +0000)]
Merge "[view compiler] Compile all layouts in an APK"

5 years agoAdd control flags in asynchronous DNS query API
Luke Huang [Thu, 20 Dec 2018 06:53:29 +0000 (14:53 +0800)]
Add control flags in asynchronous DNS query API

Test: built, flashed, booted
      cts test: NativeDnsAsyncTest

Change-Id: Ief04d99b2b289d95e54899572d28576d464037b8

5 years agoMerge "Move default sounds to /product"
Anton Hansson [Tue, 8 Jan 2019 08:17:55 +0000 (08:17 +0000)]
Merge "Move default sounds to /product"

5 years agoChange package name for NetworkStack
Remi NGUYEN VAN [Tue, 8 Jan 2019 07:58:21 +0000 (16:58 +0900)]
Change package name for NetworkStack

Test: flashed, booted, apk started as expected
Bug: b/112869080
Change-Id: I8aaf5a89ffff7bba1228ea7214e662acbe47e776

5 years agoMerge "Add nullability annotations to public methods of ConnManager."
Chalard Jean [Tue, 8 Jan 2019 07:58:13 +0000 (07:58 +0000)]
Merge "Add nullability annotations to public methods of ConnManager."

5 years agoMerge "Cleaned up dead code"
Treehugger Robot [Tue, 8 Jan 2019 06:36:18 +0000 (06:36 +0000)]
Merge "Cleaned up dead code"

5 years agoMerge "Fix linter errors in NetworkMonitor"
Remi NGUYEN VAN [Tue, 8 Jan 2019 05:33:45 +0000 (05:33 +0000)]
Merge "Fix linter errors in NetworkMonitor"

5 years agoMerge "Fix linter errors in IpServer and its dependencies"
Remi NGUYEN VAN [Tue, 8 Jan 2019 05:32:26 +0000 (05:32 +0000)]
Merge "Fix linter errors in IpServer and its dependencies"

5 years agoMerge "fix mmap leak of graphicsstats service"
Treehugger Robot [Tue, 8 Jan 2019 05:03:47 +0000 (05:03 +0000)]
Merge "fix mmap leak of graphicsstats service"

5 years agoFix linter errors in NetworkMonitor
Remi NGUYEN VAN [Mon, 7 Jan 2019 02:14:00 +0000 (11:14 +0900)]
Fix linter errors in NetworkMonitor

The fixes are necessary to move the class to packages/NetworkStack.

Test: atest FrameworksNetTests
Bug: b/112869080
Change-Id: I1fe42d9edf4cc86de1b9c75808407183e23a87e2

5 years agoRemove unnecessary right padding from time picker
Tetsutoki Shiozawa [Tue, 8 Aug 2017 04:25:00 +0000 (13:25 +0900)]
Remove unnecessary right padding from time picker

Symptom:
When the device language was set to Spanish, "A.M." label was not fully
displayed on the time picker widget. "M." was lacked.

Root cause:
There are unnecessary right paddings on the layout definition of time
picker. It uselessly consumes the room for ampm_layout.

Bug: 64498105
Change-Id: Ie52fafc0fb7d6d6ea5b0ca2eaeb53755d4aebc19

5 years agoFix linter errors in IpServer and its dependencies
Remi NGUYEN VAN [Fri, 21 Dec 2018 07:17:09 +0000 (16:17 +0900)]
Fix linter errors in IpServer and its dependencies

Test: atest FrameworksNetTests NetworkStackTests
Change-Id: I534b391458433ac24dffe78f287e3c83a264acfd

5 years agoMerge "Add parceling for DhcpServingParams"
Remi NGUYEN VAN [Tue, 8 Jan 2019 01:53:19 +0000 (01:53 +0000)]
Merge "Add parceling for DhcpServingParams"

5 years agoFix spelling of "HARDWARE"
Hans Boehm [Tue, 8 Jan 2019 01:42:05 +0000 (17:42 -0800)]
Fix spelling of "HARDWARE"

Happened to notice this while reading the code for other purposes.

Test: Treehugger
Change-Id: I2d1b1e239bfd8d2506a62173fe854f608a45f5b0

5 years agoCleaned up dead code
Jack Yu [Tue, 8 Jan 2019 00:54:16 +0000 (16:54 -0800)]
Cleaned up dead code

Cleaned up dead code and simplified code path.

Test: Telephony sanity tests + unit tests
Bug: 73659459
Change-Id: I0c066d59f2fde9af315f4dabe0fe7b55600fa9f8

5 years agoMerge "Fix/suppress hwui/tests google-explicit-constructor warnings"
Chih-hung Hsieh [Tue, 8 Jan 2019 00:29:21 +0000 (00:29 +0000)]
Merge "Fix/suppress hwui/tests google-explicit-constructor warnings"

5 years ago[view compiler] Compile all layouts in an APK
Eric Holk [Sat, 22 Dec 2018 01:25:38 +0000 (17:25 -0800)]
[view compiler] Compile all layouts in an APK

Test: atest
Bug: 111895153
Change-Id: I5f4b9b4c1160acf1c04a4492f5e3a736fbaf2fdc

5 years agoImplement RcsParticipant (base)
Sahin Caliskan [Wed, 12 Dec 2018 18:03:08 +0000 (10:03 -0800)]
Implement RcsParticipant (base)

This change adds the tables, APIs and provider for RcsParticipants. It
is now possible to add/update/query participants.

Test: Added unit tests

Bug: 109759350
Change-Id: I61f3ee3bcb0b3a2d70906a282258677377d9fa5a

5 years agoMerge "NetworkPolicy: Replace fake allLocks"
Andreas Gampe [Mon, 7 Jan 2019 18:10:15 +0000 (18:10 +0000)]
Merge "NetworkPolicy: Replace fake allLocks"

5 years agoMerge "[view compiler] Add XML to DEX compilation"
Treehugger Robot [Mon, 7 Jan 2019 17:43:50 +0000 (17:43 +0000)]
Merge "[view compiler] Add XML to DEX compilation"

5 years agoMerge "Stop exposing reasons through phone state listener"
Jack Yu [Mon, 7 Jan 2019 15:25:38 +0000 (15:25 +0000)]
Merge "Stop exposing reasons through phone state listener"

5 years agoMove default sounds to /product
Anton Hansson [Mon, 7 Jan 2019 14:13:43 +0000 (14:13 +0000)]
Move default sounds to /product

The set of audio files is frequently customized, so move the default
set to /product. The frameworks scans both of these directories.

Bug: 80410283
Bug: 118826166
Test: verify sounds available in soundpicker
Change-Id: I3bfc71b46eb64b4d4614b62c65fb8821bf1c271a
Merged-In: I3bfc71b46eb64b4d4614b62c65fb8821bf1c271a

5 years agoAdd nullability annotations to public methods of ConnManager.
Chalard Jean [Mon, 7 Jan 2019 10:26:34 +0000 (19:26 +0900)]
Add nullability annotations to public methods of ConnManager.

This is mainly for Kotlin compatibility.
https://android-developers.googleblog.com/2018/08/android-pie-sdk-is-now-more-kotlin.html

Bug: 122437895
Test: no logic changes
Change-Id: Ic1b9a774aee0099397b1ccfd958ff3b61d69a7fb

5 years agoStop exposing reasons through phone state listener
Jack Yu [Thu, 3 Jan 2019 00:51:08 +0000 (16:51 -0800)]
Stop exposing reasons through phone state listener

The data connection reasons are implementation details
of telephony and should not be exposed externally. The
data connection fail cause, which is different from
reasons, are still available.

Test: Telephony sanity tests + unit tests
Bug: 73659459

Merged-In: Ia005abf19664e6213118ee932495950af118456d
Change-Id: Ia005abf19664e6213118ee932495950af118456d
(cherry picked from commit 4d1c9450005dbd05c5c619d444938467068047a3)

5 years agoMerge "Cleaned up dead code"
Jack Yu [Mon, 7 Jan 2019 06:37:30 +0000 (06:37 +0000)]
Merge "Cleaned up dead code"

5 years agoMerge "Null locale causing the VTS fail."
Treehugger Robot [Mon, 7 Jan 2019 04:19:22 +0000 (04:19 +0000)]
Merge "Null locale causing the VTS fail."

5 years agoAdd parceling for DhcpServingParams
Remi NGUYEN VAN [Mon, 10 Dec 2018 07:35:30 +0000 (16:35 +0900)]
Add parceling for DhcpServingParams

Introduce a stable AIDL parcel class, DhcpServingParamsParcel, and
methods to convert to and from that class to DhcpServingParams.
This will be used to move DhcpServer to the NetworkStack app.

Test: atest FrameworksNetTests
Bug: b/112869080
Change-Id: I276b7affccb938059769c90a53f0f6beb26e6ede

5 years agoCleaned up dead code
Jack Yu [Mon, 24 Dec 2018 03:59:08 +0000 (19:59 -0800)]
Cleaned up dead code

Renamed the scanning state to retrying. Removed the
old retrying dead code.

Test: Telephony sanity tests
Bug: 73659459

Merged-In: I54849bafbd0d05206e67636f0717b4b833a5e229
Change-Id: I54849bafbd0d05206e67636f0717b4b833a5e229
(cherry picked from commit 5de4a2d86972a882dafc24b541164a68a37adf31)

5 years agoMerge "Implement RcsThread querying (base)"
Sahin Caliskan [Sat, 5 Jan 2019 21:19:09 +0000 (21:19 +0000)]
Merge "Implement RcsThread querying (base)"

5 years ago[view compiler] Add XML to DEX compilation
Eric Holk [Mon, 17 Dec 2018 23:46:18 +0000 (15:46 -0800)]
[view compiler] Add XML to DEX compilation

Test: atest
Bug: 111895153
Change-Id: I91c01ff4474e080c87b902ae963b5d655346f859

5 years agoMerge "Fix WCDMA Level Calculation for Default CC"
Nathan Harold [Sat, 5 Jan 2019 01:25:14 +0000 (01:25 +0000)]
Merge "Fix WCDMA Level Calculation for Default CC"

5 years agoMerge "Add tryCreateView to LayoutInflater"
Treehugger Robot [Sat, 5 Jan 2019 01:02:28 +0000 (01:02 +0000)]
Merge "Add tryCreateView to LayoutInflater"

5 years agoImplement RcsThread querying (base)
Sahin Caliskan [Tue, 11 Dec 2018 17:38:13 +0000 (09:38 -0800)]
Implement RcsThread querying (base)

This change does a first pass to introduce RcsThread querying. We can
now insert threads and query them back.

Test: Added unit test

Bug: 109759350
Change-Id: Ib116cd533a19ce4d099864a095f585ac47cdc9f6

5 years agoMerge "Deprecate Android beam APIs and create a feature flag to gate them"
Treehugger Robot [Fri, 4 Jan 2019 21:49:14 +0000 (21:49 +0000)]
Merge "Deprecate Android beam APIs and create a feature flag to gate them"

5 years agoDeprecate Android beam APIs and create a feature flag to gate them
Ruchi Kandoi [Tue, 23 Oct 2018 21:40:29 +0000 (14:40 -0700)]
Deprecate Android beam APIs and create a feature flag to gate them

Test: Test application trying to invoke the API
Bug: 117519147
Change-Id: Icd3187e4f3e0f180cb42d36011f60895fb395002

5 years agoFix WCDMA Level Calculation for Default CC
Nathan Harold [Thu, 3 Jan 2019 18:30:31 +0000 (10:30 -0800)]
Fix WCDMA Level Calculation for Default CC

The default carrier config was setting the level
calculation method to an empty string, which caused
the level to be set forcibly to NONE/UNKNOWN due to
the logic failing to account for empty strings. This
patch sets the default to something sane "rssi" that
matches legacy behavior and also adds guards so that
an empty string will be considered default, and a non
empty but otherwise invalid string will also try to
use RSSI instead of simply failing to display signal
bars.

-Add protection against invalid array sizes
-Fix a bug where RSCP could use RSSI thresholds
-Add fallback for RSCP thresholds being null when the
 measurement type is set to RSCP.
-Define RSCP thresholds as constants.

Bug: 118800169
Test: atest CellSignalStrengthWcdmaTest
Change-Id: I8d6261bc5adab6bf9b0a88f7d59b259d338a49e9

5 years agoAdd tryCreateView to LayoutInflater
Eric Holk [Fri, 14 Dec 2018 18:27:29 +0000 (10:27 -0800)]
Add tryCreateView to LayoutInflater

This method is needed so that precompiled layouts can reuse the factory logic
from the LayoutInflater.

Bug: 111895153
Test: atest android.view.cts.LayoutInflaterTest
Change-Id: Ifd1028906b655af2bd14247d586dc16b35550c82

5 years agoAdjust map names due to new bpfloader
Chenbo Feng [Sat, 22 Dec 2018 21:20:31 +0000 (13:20 -0800)]
Adjust map names due to new bpfloader

With the new loader support added. The bpf map format is defined by bpf
kernel program as well. Change the netd bpf program to the new format.

Test: CtsUsageStatsTestCases
Bug: 112334572
Change-Id: I34e38e0a8cf0cca54dc52ec897771452f9d90525

5 years agoMerge changes from topic "multi-se-support"
Ruchi Kandoi [Fri, 4 Jan 2019 19:56:41 +0000 (19:56 +0000)]
Merge changes from topic "multi-se-support"

* changes:
  Add a mechanism to register AIDs to specific off-host SE
  Add Off-Host Card Emulation Features

5 years agoMerge "Fix/suppress aapt/aapt2 google-explicit-constructor warnings"
Treehugger Robot [Fri, 4 Jan 2019 19:34:30 +0000 (19:34 +0000)]
Merge "Fix/suppress aapt/aapt2 google-explicit-constructor warnings"

5 years agoFix/suppress hwui/tests google-explicit-constructor warnings
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:49:51 +0000 (13:49 -0800)]
Fix/suppress hwui/tests google-explicit-constructor warnings

* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: I59c61af29ab09209c5a4c2bf43b10215bf59756a

5 years agoFix/suppress aapt/aapt2 google-explicit-constructor warnings
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:37:44 +0000 (13:37 -0800)]
Fix/suppress aapt/aapt2 google-explicit-constructor warnings

* Add explicit to conversion constructors/operators
* Use NOLINT or NOLINTNEXTLINE to suppress warnings on intended converters

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ie02101ea7c422e8add535c111a30a2f21ead0ace

5 years agoMove the implementation of ProxyErrorListener to libpac
Victor Chang [Wed, 2 Jan 2019 19:52:20 +0000 (19:52 +0000)]
Move the implementation of ProxyErrorListener to libpac

The implementation logs the error in Android.

libpac will provide C API, not C++ API. This change
prepares for the migration.

Bug: 121269980
Test: m droid
Change-Id: Ib39e76d1880c33656d5ddbffdc3c124e7e911c16

5 years agoAdd start time to LmkKillOccurred
Jim Blackler [Wed, 21 Nov 2018 15:24:48 +0000 (15:24 +0000)]
Add start time to LmkKillOccurred

To accompany Piper cl/222070329 and https://googleplex-android-review.git.corp.google.com/c/platform/system/core/+/5578724

Bug: 119854389
Test: Manual
Change-Id: Ib2af1b66d4649279fdcb97e7cdf8cdb92e361765
Merged-In: Ib2af1b66d4649279fdcb97e7cdf8cdb92e361765
(cherry picked from Ib2af1b66d4649279fdcb97e7cdf8cdb92e361765)

5 years agoMerge "Ignore ipv6 tx traffic on clat uid."
Junyu Lai [Fri, 4 Jan 2019 09:29:10 +0000 (09:29 +0000)]
Merge "Ignore ipv6 tx traffic on clat uid."

5 years agoAdd a mechanism to register AIDs to specific off-host SE
Ruchi Kandoi [Fri, 19 Oct 2018 20:08:34 +0000 (13:08 -0700)]
Add a mechanism to register AIDs to specific off-host SE

Test: manual
Bug: 117253962
Change-Id: Id34bf84dcff7789548eac19478010838bebd9758

5 years agoMerge "Skeleton implementation of RCS APIs"
Sahin Caliskan [Fri, 4 Jan 2019 00:04:43 +0000 (00:04 +0000)]
Merge "Skeleton implementation of RCS APIs"

5 years agoAdd Off-Host Card Emulation Features
Ruchi Kandoi [Wed, 17 Oct 2018 00:29:16 +0000 (17:29 -0700)]
Add Off-Host Card Emulation Features

Test: CTS test; manual
Bug: 117253962
Change-Id: I7c35b1bffbc57870bb8c67704811a2649854d94e

5 years agoSkeleton implementation of RCS APIs
Sahin Caliskan [Sat, 1 Dec 2018 01:03:34 +0000 (17:03 -0800)]
Skeleton implementation of RCS APIs

This change adds the classes for RCS Storage APIs. There
is no business logic implemented yet, and the parcelable boilerplate
code doesn't really do anything.

This was needed as these APIs are meant to be interconnected, i.e. to
use an RcsPart, the app developer will need an RcsMessage, and for
that they will need the RcsThread etc.

Test: Builds fine. Tests will be added as I add business logic.

Bug: 109759350
Change-Id: I20897946dc1d9218f60274c7e3242194c7e2ac32

5 years agoMerge "Update sound/vibrate notification key only when it actually buzz/beep."
Treehugger Robot [Thu, 3 Jan 2019 20:51:22 +0000 (20:51 +0000)]
Merge "Update sound/vibrate notification key only when it actually buzz/beep."

5 years agoMerge "Check if notification is valid before it finally vibrates because it can be...
Julia Reynolds [Thu, 3 Jan 2019 19:43:36 +0000 (19:43 +0000)]
Merge "Check if notification is valid before it finally vibrates because it can be canceled as soon as enqeued"

5 years agoMerge "Fix/suppress services/core google-explicit-constructor warnings"
Treehugger Robot [Wed, 2 Jan 2019 23:48:35 +0000 (23:48 +0000)]
Merge "Fix/suppress services/core google-explicit-constructor warnings"

5 years agoAdd /product sepolicy support to SELinuxMMAC.java
Tri Vo [Sat, 22 Dec 2018 00:06:17 +0000 (16:06 -0800)]
Add /product sepolicy support to SELinuxMMAC.java

Bug: 119305624
Test: normal/recovery boot aosp_taimen
Test: this log entry is in logcat
SELinuxMMAC: Using policy file /product/etc/selinux/product_mac_permissions.xml
Test: wfcactivation app works without denials. Its mac permissions are
now in /product.
Change-Id: I977ad0d763e46dbcb5bff36fc6361b4e70098c13

5 years agoMerge "Fix @NonNull -> Nullable for Intent.replaceExtras()."
Treehugger Robot [Wed, 2 Jan 2019 22:49:30 +0000 (22:49 +0000)]
Merge "Fix @NonNull -> Nullable for Intent.replaceExtras()."

5 years agoFix/suppress services/core google-explicit-constructor warnings
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:51:59 +0000 (13:51 -0800)]
Fix/suppress services/core google-explicit-constructor warnings

* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Id2493c1e248e774042dc67f39ada6bb3a4521d0c

5 years agoMerge "[LayoutInflater] Cleanup - remove some nesting"
Treehugger Robot [Wed, 2 Jan 2019 21:51:19 +0000 (21:51 +0000)]
Merge "[LayoutInflater] Cleanup - remove some nesting"

5 years agoMerge "Fix/suppress bootanimation google-explicit-constructor warnings"
Chih-hung Hsieh [Wed, 2 Jan 2019 19:34:29 +0000 (19:34 +0000)]
Merge "Fix/suppress bootanimation google-explicit-constructor warnings"

5 years agoMerge "[view-compiler] Better namespacing of util functions"
Treehugger Robot [Wed, 2 Jan 2019 19:19:00 +0000 (19:19 +0000)]
Merge "[view-compiler] Better namespacing of util functions"

5 years ago[LayoutInflater] Cleanup - remove some nesting
Eric Holk [Wed, 2 Jan 2019 19:11:24 +0000 (11:11 -0800)]
[LayoutInflater] Cleanup - remove some nesting

The parseInclude method had some deep nesting that could be improved by
rearranging things a little.

Test: atest android.view.cts.LayoutInflaterTest
Change-Id: I2ee13c2ee80bcb220371d39a5a6da6044cfa245c

5 years ago[view-compiler] Better namespacing of util functions
Eric Holk [Thu, 13 Dec 2018 21:23:43 +0000 (13:23 -0800)]
[view-compiler] Better namespacing of util functions

This moves some helper functions into our own namespace to avoid conflicting
with other util.h files.

Bug: 111895153
Change-Id: I2b4c77732a97b34a8528d69867c15ed802686703

5 years agoMerge "[view compiler] Re-enable host-side tests"
Treehugger Robot [Wed, 2 Jan 2019 15:43:40 +0000 (15:43 +0000)]
Merge "[view compiler] Re-enable host-side tests"

5 years agoMerge "Limit access to suspected false positives."
Mathew Inwood [Wed, 2 Jan 2019 12:30:32 +0000 (12:30 +0000)]
Merge "Limit access to suspected false positives."

5 years agofix mmap leak of graphicsstats service
liulvping [Thu, 20 Dec 2018 12:34:56 +0000 (20:34 +0800)]
fix mmap leak of graphicsstats service

Test: repeat dumpsys graphicsstats and check process maps

Change-Id: Iae2baa7eb7761aefb867644edfaaf8dbe2132c7b
Signed-off-by: liulvping <liulvping@xiaomi.com>
5 years agoFix/suppress bootanimation google-explicit-constructor warnings
Chih-Hung Hsieh [Thu, 20 Dec 2018 21:39:40 +0000 (13:39 -0800)]
Fix/suppress bootanimation google-explicit-constructor warnings

* Add explicit to conversion constructors/operators

Bug: 28341362
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,google-explicit-constructor
Change-Id: Ia6ada49250973d507ae8b10d8f0d7c2d47ee805c

5 years agoMerge "Do not use default to get TelephonyManager"
Shuo Qian [Fri, 28 Dec 2018 20:59:16 +0000 (20:59 +0000)]
Merge "Do not use default to get TelephonyManager"

5 years agoMerge "Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check"
Shuo Qian [Fri, 28 Dec 2018 20:14:44 +0000 (20:14 +0000)]
Merge "Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check"

5 years agoDo not use default to get TelephonyManager
sqian [Sat, 15 Dec 2018 05:47:49 +0000 (21:47 -0800)]
Do not use default to get TelephonyManager

Bug: 112657134
Test: Manual
Change-Id: I4ffe5e3284478a6337136dbc79ec5eed72013cc4
Merged-In: I4ffe5e3284478a6337136dbc79ec5eed72013cc4
(cherry picked from commit b0ae02b6464b3bd7f49ef68ae16ac0660ea169d9)

5 years agoAdd Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check
sqian [Mon, 10 Dec 2018 22:29:06 +0000 (14:29 -0800)]
Add Emergency Dial into RIL and Remove PhoneNumberUtils Ecclist check

Bug: 112657134
Test: Treehugger
Change-Id: I297334be370688fd9a9d46920a09152f57152039
Merged-In: I297334be370688fd9a9d46920a09152f57152039
(cherry picked from commit 6279e97c43f80012cc3a5a6f269506fb55a165e3)

5 years agoMerge "EmergencyNumber enhancement"
Shuo Qian [Fri, 28 Dec 2018 18:07:23 +0000 (18:07 +0000)]
Merge "EmergencyNumber enhancement"

5 years agoLimit access to suspected false positives.
Mathew Inwood [Thu, 20 Dec 2018 15:30:45 +0000 (15:30 +0000)]
Limit access to suspected false positives.

Members modified herein are suspected to be false positives: i.e. things
that were added to the greylist in P, but subsequent data analysis
suggests that they are not, in fact, used after all.

Add a maxTargetSdk=P to these APIs. This is lower-risk that simply
removing these things from the greylist, as none of out data sources are
perfect nor complete.

For APIs that are not supported yet by annotations, move them to
hiddenapi-greylist-max-p.txt instead which has the same effect.

Exempted-From-Owner-Approval: Automatic changes to the codebase
affecting only @UnsupportedAppUsage annotations, themselves added
without requiring owners approval earlier.

Bug: 115609023
Test: m
Change-Id: Ia937d8c41512e7f1b6e7f67b9104c1878b5cc3a0
Merged-In: I020a9c09672ebcae64c5357abc4993e07e744687

5 years agoEmergencyNumber enhancement
sqian [Thu, 27 Dec 2018 22:12:11 +0000 (14:12 -0800)]
EmergencyNumber enhancement

1) Add Database source for EmergencyNumber
2) add mergeEmergencyNumber for merging two emergency numbers
3) enable Listener.EmergencyNumber enhancement
4) no need to pass any parameter to PhoneNotifier
5) modify API documentation
6) deprecate PhoneNumberUtils.isEmergencyNumber
7) modify API documentation for security exception and backward
compatibility
9) introduce some utils in EmergencyNumber for merging number purposes
10) add mnc into EmergencyNumber

Bug: 112657134
Test: Treehugger
Change-Id: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
Merged-In: I0dcd01bdad7d9c37294cd8b87eda54b4ac9d0a0b
(cherry picked from commit 9f93a12e1f2548fa49c9220c092ddeaff9d76962)

5 years agoMerge "Add Emergency service categories in ImsCallProfile"
Shuo Qian [Thu, 27 Dec 2018 22:03:45 +0000 (22:03 +0000)]
Merge "Add Emergency service categories in ImsCallProfile"

5 years agoMerge "Make some SubscriptionManager APIs system APIs"
Shuo Qian [Thu, 27 Dec 2018 21:58:00 +0000 (21:58 +0000)]
Merge "Make some SubscriptionManager APIs system APIs"

5 years agoMerge "Update api/current.txt for setuid deprecation"
Treehugger Robot [Thu, 27 Dec 2018 19:44:28 +0000 (19:44 +0000)]
Merge "Update api/current.txt for setuid deprecation"

5 years agoMerge "Adding check for HMAC/EC key size for StrongBox"
Treehugger Robot [Thu, 27 Dec 2018 01:58:05 +0000 (01:58 +0000)]
Merge "Adding check for HMAC/EC key size for StrongBox"

5 years agoMerge "Fix BSIC Check in CellIdentityGsm"
Nathan Harold [Thu, 27 Dec 2018 01:44:14 +0000 (01:44 +0000)]
Merge "Fix BSIC Check in CellIdentityGsm"

5 years agoFix BSIC Check in CellIdentityGsm
Nathan Harold [Thu, 27 Dec 2018 01:14:25 +0000 (17:14 -0800)]
Fix BSIC Check in CellIdentityGsm

Because Java uses signed bytes, a comparison between
a byte and 0xFF will always fail after integer
promotion. Fix this by forcing 0xFF to be treated as
a byte for comparison.

Bug: 119224773
Test: fixes build breakage

Change-Id: I9615667a6b442060f1d43084d56bc9c3fdb3ba35

5 years agoMerge "Refactor CellInfo Constructors"
Nathan Harold [Wed, 26 Dec 2018 23:07:53 +0000 (23:07 +0000)]
Merge "Refactor CellInfo Constructors"

5 years agoRefactor CellInfo Constructors
Nathan Harold [Mon, 10 Dec 2018 21:39:40 +0000 (13:39 -0800)]
Refactor CellInfo Constructors

Bug: 119224773
Test: atest FrameworksTelephonyTests
Change-Id: Ibf56797b5be2508656409a3437ff79210334bfd6

5 years agoMerge "Add UiccCardInfo APIs"
Jordan Liu [Wed, 26 Dec 2018 16:16:02 +0000 (16:16 +0000)]
Merge "Add UiccCardInfo APIs"