OSDN Git Service

android-x86/frameworks-base.git
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 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 agoMerge "Implement RcsParticipant (base)"
Sahin Caliskan [Tue, 8 Jan 2019 22:34:15 +0000 (22:34 +0000)]
Merge "Implement RcsParticipant (base)"

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 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 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 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 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"

5 years agoMerge "Start NetworkStack on system server start"
Remi NGUYEN VAN [Wed, 26 Dec 2018 07:16:28 +0000 (07:16 +0000)]
Merge "Start NetworkStack on system server start"

5 years agoStart NetworkStack on system server start
Remi NGUYEN VAN [Tue, 18 Dec 2018 09:24:26 +0000 (18:24 +0900)]
Start NetworkStack on system server start

The network stack will host updatable network components that are being
moved from the system server.

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

5 years agoMerge "Add NetworkStack app"
Remi NGUYEN VAN [Wed, 26 Dec 2018 00:48:25 +0000 (00:48 +0000)]
Merge "Add NetworkStack app"

5 years agoMerge "[PT17] Small cleanup of PacManager"
Chalard Jean [Tue, 25 Dec 2018 10:55:10 +0000 (10:55 +0000)]
Merge "[PT17] Small cleanup of PacManager"

5 years agoMerge "Refactor logic in the enter() of WaitingForNextProbeState"
Chiachang Wang [Tue, 25 Dec 2018 03:08:01 +0000 (03:08 +0000)]
Merge "Refactor logic in the enter() of WaitingForNextProbeState"

5 years agoAdd NetworkStack app
Remi NGUYEN VAN [Fri, 7 Dec 2018 07:52:24 +0000 (16:52 +0900)]
Add NetworkStack app

The app is not started yet, and does not contain any service for now.

Test: built, booted
Bug: b/112869080
Change-Id: Id5a0fd02c891100e85d86b1040e53beec3581950

5 years agoRefactor logic in the enter() of WaitingForNextProbeState
Chiachang Wang [Mon, 24 Dec 2018 03:05:52 +0000 (11:05 +0800)]
Refactor logic in the enter() of WaitingForNextProbeState

For clarity, factoring logic in enter() out to a function.

Bug: 120014928
Test: atest FrameworksNetTests
Change-Id: Ib215594686fb08f8382178e8ada0b57f0e4a0590

5 years agoFix @NonNull -> Nullable for Intent.replaceExtras().
Tobias Thierer [Sun, 23 Dec 2018 14:25:58 +0000 (14:25 +0000)]
Fix @NonNull -> Nullable for Intent.replaceExtras().

extras == null is documented to result in all extras being
erased, and the implementation handles it correctly. The
@NonNull annotation on Bundle extras is therefore wrong.
This CL replaces it with the correct annotation, @Nullable.

The incorrect annotation was introduced in April 2017
(commit 30e06bb668f2e4b024c4ebc2a131de91c96de5eb). I've
looked through the other changes to Intent.java in that
commit but have found no further nullability annotation
errors.

Bug: 121438778
Test: Treehugger
Test: Looked through the other nullability annotations on
      Intent.java introduced by the same commit
      30e06bb668f2e4b024c4ebc2a131de91c96de5eb (Apr 2017)
      but found no further errors.

Change-Id: Iebbe17abc5c97146533e82114fbaf1d7036fd03a

5 years agoMerge "Refactor SignalStrength"
Nathan Harold [Sat, 22 Dec 2018 00:38:05 +0000 (00:38 +0000)]
Merge "Refactor SignalStrength"

5 years ago[view compiler] Re-enable host-side tests
Eric Holk [Sat, 22 Dec 2018 00:10:49 +0000 (16:10 -0800)]
[view compiler] Re-enable host-side tests

TEST_MAPPING supports both host and device tests now, so we should run both.

Test: atest
Bug: 111895153
Change-Id: I48f26093fc0ae3cdaa9e5295375945b5a519e1c2

5 years agoMerge "SubscriptionInfo contains int cardId"
Jordan Liu [Fri, 21 Dec 2018 21:55:07 +0000 (21:55 +0000)]
Merge "SubscriptionInfo contains int cardId"

5 years agoMerge "Fix/suppress statsd google-explicit-constructor warnings"
Chih-hung Hsieh [Fri, 21 Dec 2018 16:35:19 +0000 (16:35 +0000)]
Merge "Fix/suppress statsd google-explicit-constructor warnings"

5 years agoMerge "Fix/suppress incident* google-explicit-constructor warnings"
Chih-hung Hsieh [Fri, 21 Dec 2018 16:30:12 +0000 (16:30 +0000)]
Merge "Fix/suppress incident* google-explicit-constructor warnings"

5 years agoMerge "Fix/suppress pipeline google-explicit-constructor warnings"
Chih-hung Hsieh [Fri, 21 Dec 2018 16:29:55 +0000 (16:29 +0000)]
Merge "Fix/suppress pipeline google-explicit-constructor warnings"

5 years agoCheck if notification is valid before it finally vibrates because it can be canceled...
Seungho Lee [Wed, 31 Oct 2018 12:49:09 +0000 (21:49 +0900)]
Check if notification is valid before it finally vibrates because it can be canceled as soon as enqeued

Test: Build and run StatusBarTest/_NotifyBuilder
Test: Set notification sound and vibration
Test: Make notification with + button, and cancel it with - button quickly
TEst: Check notification not vibrating

Change-Id: Ia21f45c165f863ed4143da3707b492c89e58387c
Merged-In: Ia21f45c165f863ed4143da3707b492c89e58387c
Signed-off-by: Seungho Lee <shiny.lee@samsung.com>